2011-12-09 106 views
0

我有春季肥皂web服務,運行良好。但我的JS客戶Spring的WS客戶端WS

var req = new XMLHttpRequest(); 
if(req.readyState == 4){....} 
req.open('POST', 'http://localhost:8080/CurrencyService', true); 
req.setRequestHeader("Content-Type", "text/xml"); 
req.send(msg); 

拋出

405 Method Not Allowed - http://localhost:8080/CurrencyService 

我怎樣才能解決呢?

回答

2

我對Spring WS一無所知,但無論你已經定義了什麼處理/ CurrencyService都不接受POST。瀏覽docs我想說你的WebServiceMessageReceiverHttpHandler丟失或配置錯誤。