Spring WS的JavaScript客户端

问题描述 投票:0回答:1

我有运行良好的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

我该如何解决?

javascript java spring spring-ws
1个回答
2
投票

我对Spring WS一无所知,但是显然您定义用于处理/ CurrencyService的任何内容都不接受POST。略过docs我会说您的WebServiceMessageReceiverHttpHandler丢失或配置错误。

© www.soinside.com 2019 - 2024. All rights reserved.