简体   繁体   English

当服务器使用 Windows 集成身份验证时,从 wsdl 生成 webservice soap 客户端

[英]Generate webservice soap client from wsdl when server using Windows Integrated Authentication

There is an SAP server that has some webservices I need to use, so I am trying to use wsimport to generate the client stubs.有一个 SAP 服务器有一些我需要使用的网络服务,所以我试图使用 wsimport 来生成客户端存根。

I don't want to find all the wsdls and schemas that are referenced and modify them to do it locally, as that isn't sustainable, if they service should change.我不想找到所有引用的 wsdls 和模式并修改它们以在本地执行,因为如果它们的服务发生变化,这是不可持续的。

So, how can I use wsimport to fetch a wsdl and generate the client stubs when the server is using Windows Integrated Authentication, where even the wsdl requires credentials.那么,当服务器使用 Windows 集成身份验证时,我如何使用 wsimport 获取 wsdl 并生成客户端存根,即使 wsdl 也需要凭据。

The best solution I have found is to just copy the wsdl, and add in the changes to get it to work with wsimport, and save it on the jboss server, since it is unlikely someone will figure out the name of the directory, and only port 8009 is open to the world, even the jboss port is closed.我发现的最佳解决方案是复制 wsdl,并添加更改以使其与 wsimport 一起使用,并将其保存在 jboss 服务器上,因为不太可能有人会找出目录的名称,并且只有8009端口对外开放,连jboss端口都关闭了。

It isn't the best solution, but it works.这不是最好的解决方案,但它有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM