Spring-ws SOAP 404错误
我在此之后做了一个教程 -> http://java.dzone.com/articles/spring-ws-how 当我转到网址 http://localhost:8080/myService/services/MemberDetailsRequest.wsdl ,我得到了静态 wsdl 文件..但是当我使用 SoapUI 导入 wsdl 文件然后测试它时..我只得到 404 错误,any1 有解决方案吗?
有什么建议吗,为什么我无法通过soapUI 得到任何回复?
i did a tutorial after this -> http://java.dzone.com/articles/spring-ws-how
when i go to url http://localhost:8080/myService/services/MemberDetailsRequest.wsdl , i get the static wsdl file.. but when i use SoapUI to import in the wsdl file and then test it.. i only get 404 error, any1 has a solution to that?
any suggestions, why i can't get any responses with soapUI?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
检查以确保您的 @PayloadRoot 初始值设定项正确。我的“localpart”定义与 XSD 中的元素名称不匹配。这是我的 Java 类现在的样子:
这是 XSD:
Check to make sure that your @PayloadRoot initializers are correct. My "localpart" definition did not match the element name in the XSD. here is how my Java class looks now:
And here is the XSD:
确保 SoapUI 遵循您的 URL 映射。
就我而言,SoapUI 不会自动在末尾附加“.wsdl”。
在我的 web.xml 中:
在 Soap UI 中,“.wsdl”不存在。只需将其手动添加到地址栏中,就像 Soap UI 中的内容一样,然后继续进行测试。
Make sure SoapUI follows your URL mapping.
In my case, SoapUI did not automatically append ".wsdl" at the end.
in my web.xml:
In Soap UI, the ".wsdl" was not there. Just add it manually in the address-bar like thing in Soap UI and proceed with your test.
PayloadRoot 命名空间和 schema 命名空间应该相同
PayloadRoot namespace and schema namespace should be same
对包含所有端点的包进行组件扫描。这对我有用。在memberservice-servlet.xml中包含以下内容
Do a component scan on the package that contains all the endpoints. This worked for me. In memberservice-servlet.xml include the following