我有运行良好的Spring soap网络服务。但是我的js客户端
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
我该如何解决?
我对Spring WS一无所知,但是显然您定义用于处理/ CurrencyService的任何内容都不接受POST。略过docs我会说您的WebServiceMessageReceiverHttpHandler丢失或配置错误。