如题,原系统使用axis开发的webservice服务端,现在想做个前置机,前置机用cxf提供webservice给其他系统,但是功能还是得调用原系统的webservice,使用了ClientProxyFactoryBean动态客户端,不成功。
原来的axis的wsdl文件也不能生成cxf的客户端。wsdl2java出错。而且在eclipse里面校验时有警告。
该服务只有一个方法:productorder,参数Productorder是个对象
axis服务端生成的wsdl文档:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://_interface.productorder.product.jboss.callcenter.com" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://_interface.productorder.product.jboss.callcenter.com" xmlns:intf="http://_interface.productorder.product.jboss.callcenter.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)-->
<wsdl:types>
<schema targetNamespace="http://_interface.productorder.product.jboss.callcenter.com" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="Productorder">
<sequence>
<element name="card_id" type="xsd:string"/>
<element name="product_id" type="xsd:string"/>
<element name="opert_id" type="xsd:string"/>
<element name="trade_id" type="xsd:string"/>
<element name="amount_month" type="xsd:string"/>
</sequence>
</complexType>
</schema>
</wsdl:types>
<wsdl:message name="productorderRequest">
<wsdl:part name="productorder" type="impl:Productorder"/>
</wsdl:message>
<wsdl:message name="productorderResponse">
<wsdl:part name="productorderReturn" type="soapenc:string"/>
</wsdl:message>
<wsdl:portType name="ProductOrderServicePort">
<wsdl:operation name="productorder" parameterOrder="productorder">
<wsdl:input message="impl:productorderRequest" name="productorderRequest"/>
<wsdl:output message="impl:productorderResponse" name="productorderResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="ProductOrderServicePortSoapBinding" type="impl:ProductOrderServicePort">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="productorder">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="productorderRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://_interface.productorder.product.jboss.callcenter.com" use="encoded"/>
</wsdl:input>
<wsdl:output name="productorderResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://_interface.productorder.product.jboss.callcenter.com" use="encoded"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="ProductOrderServicePortService">
<wsdl:port binding="impl:ProductOrderServicePortSoapBinding" name="ProductOrderServicePort">
<wsdlsoap:address location="http://10.1.1.187:9000/BossServiceForTS/services/ProductOrderServicePort"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
难道一定要用axis才能调用?
PS:用axis生成的客户端是可以成功调用的
分享到:
相关推荐
cxf客户端调用axis服务端流程
cxf客户端调用axis服务端流程.docxcxf客户端调用axis服务端流程.docx
cxf_axis_xfire客户端调用的几种方法[收集].pdf
NULL 博文链接:https://shenxueliang.iteye.com/blog/1734414
cxf_axis_xfire客户端调用的几种方法.docx
纯java调用ws-security+CXF实现的webservice安全接口
springboot+webservice搭建webservice服务端及使用java客户端两种方式进行调用webservice接口
如何使用CXF(和wsimport)生成Web服务客户端的示例。 git clone https://github.com/Transmode/webservice_clients.git cd webservices_client 运行托管元素收集器 在命令行上运行: cd mer/collector_mer ../.....
对方的webservice服务端使用axis1.4开发,参数有String[]类型,试了cxf、xfire等都无法生成客户端,只能使用axis4. 解压后lib包已经全了。修改xx.bat里webservice地址一项,执行xx.bat生成客户端文件。 生成之后,...
个人经验总结性文档,都是成功的经验,绝对超值
只要WebService公开了服务接口,远程客户端就可以调用服务。WebService 是基于Http协议的组件服务,WebService是分散式应用程序的发展趋势。 WebService更多是一种标准,而不是一种具体的技术。不同的平台,不同的语言...
PC版本的WEbservice客户端库非常丰富,例如Axis2,CXF等,但这些开发包对于Android系统过于庞大,也未必很容易移植到Android系统中。因此,这些开发包并不是在我们的考虑范围内。适合手机的WebService客户端的SDK有...
PC版本的WEbservice客户端库非常丰富,例如Axis2,CXF等,但这些开发包对于Android系统过于庞大,也未必很容易移植到Android系统中。因此,这些开发包并不是在我们的考虑范围内。适合手机的WebService客户端的SDK
PC版本的WEbservice客户端库非常丰富,例如Axis2,CXF等,但这些开发包对于Android系统过于庞大,也未必很容易移植到Android系统中。因此,这些开发包并不是在我们的考虑范围内。适合手机的WebService客户端的SDK有...
它们的新的项目分别是ApacheCXF和Axis2.Java语言也制定关于REST网络服务规范:JAX-RS:JavaAPIforRESTfulWebServices(JSR311)。相信还会出现更多与REST相关的激动人心的信息。 REST与AJAX技术 尽管AJAX技术的...