使用 JAX-WS for SOAP 通过 Web 界面访问 Java 中的远程服务
我有一个公共 EJB 类,我希望将其作为 Web 服务在线访问。我已经生成了 WSDL 并且 SOAP 消息传递似乎可以工作。我使用soapUI来测试连接。我不清楚的是我将如何使用这个公开的网络服务。我想尝试另一种语言,例如 Python,然后通过该接口进行调用。我知道 WSDL 应该帮助潜在客户构建其客户端代码,但我不确定如何指定连接、位置和登录信息(如果有的话)。我知道我问的话题很大,但任何信息都会有帮助。谢谢
编辑:所以基本上我只是想知道我是否必须使用像 axis2 这样的工具从 WSDL 生成客户端代码。或者Python 使用的任何东西。或者我可以手写代码吗?一般是做什么的。服务器引用是否包含在该 WSDL 中,并且通常会生成调用方法吗?
I have a public EJB class that I want accessible online as a web service. I have generated a WSDL and the SOAP mesasging seems to work. I used soapUI to test the connection. What I'm not clear about is how would I then use this exposed web service. I'd like to try another language like Python to then make calls through that interface. I know that the WSDL is supposed to help a potential client build it's client side code but I'm not sure about how to specify the connection and location and login information if I had that. I know I'm asking a large topic but any information would help. Thanks
Edit: so basicaly I'm just wondering do I have to use tools to generate my client code from the WSDL like axis2. Or whatever Python uses. Or can I write the code by hand? What's generally done. is the server reference included in that WSDL and are call methods generated usually?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看看ZSI
但是ZSI太复杂并且花费更多时间来生成代理
我建议你使用 suds。 suds 动态生成代理,速度非常快,我在一些项目中使用了它。
其他软件包可用:
Take a look at ZSI
But ZSI is too complex and spends more time to generate proxies
I suggest you to use suds. suds generates the proxies On the fly and so fast, i used it in some projects.
another packages are available: