使Axis 1.1客户端与Axis2服务对话 [英] Getting a Axis 1.1 client talk to an Axis2 service

查看:143
本文介绍了使Axis 1.1客户端与Axis2服务对话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使Axis 1.1客户端与Axis2 Web服务端点进行对话?据我了解,Web服务通过使用服务的WSDL指定的模式来回传递XML SOAP消息来工作,但是我不确定这些版本的Axis是否利用了不同版本的Web服务规范来阻止它们从说话.有什么想法吗?

Is it possible to have an Axis 1.1 client talk to an Axis2 web service endpoint? From my understanding, web services work by passing XML SOAP messages back and forth using the schema specified by the service's WSDL, but I'm unsure as to whether or not these versions of Axis utilize different versions of the web service specification that would stop them from talking. Any thoughts?

推荐答案

好的,使用Axis 1.1与Axis2 Web服务进行通信就可以了.我使用Axis 1.1生成了存根,创建了Client类并进行了测试. Axis 1.1的API没有提供我以前的Axis 1.4所允许的某些功能,特别是在ParameterDesc类中,您可以在其中指定Web服务方法参数是否可填充或它们的minOccurs,但我的调用似乎正常

Alright, using Axis 1.1 to communicate with an Axis2 web service works just fine. I generated the stubs using Axis 1.1, created a Client class, and tested. Axis 1.1's API doesn't offer some of the same functionality that my previous Axis 1.4 allows, specifically in the ParameterDesc class, where you can specify if web service method parameters are nillable or their minOccurs, but my calls seemed to work just fine.

总而言之,它可以使用(似乎是)基本的WSDL定义来完成,但是,我不确定Axis2是否利用了由于Axis 1.1的API过时而无法容纳Axis 1.1的新功能. ...

All in all, it can be done with (what appear to be) basic WSDL definitions, however, I'm unsure as to whether or not Axis2 utilizes new functionality that Axis 1.1 cannot accommodate due to Axis 1.1's aged API...

哦,最后一点,我需要对请求使用SOAP 1.1存根.我不是100%知道为什么会这样,因为我的答复是从SOAP 1.2回来的,但是您已经知道了.

Oh, and one last note, I needed to use SOAP 1.1 stubs for my request. I'm not 100% sure why since my responses were coming back as SOAP 1.2, but there you have it.

这篇关于使Axis 1.1客户端与Axis2服务对话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆