2011-12-09 78 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丢失或配置错误。