简体   繁体   English

具有Axis服务的JAX-WS客户端

[英]JAX-WS client with Axis service

I'm relatively new to web services, but I need to integrate a call to an existing service in my application. 我是Web服务的新手,但是我需要在应用程序中集成对现有服务的调用。 Ideally, I'd like to use JAX-WS because I'm looking for the simplest, quickest-to-develop solution on my end, and MyEclipse is able to generate a JAX-WS client from a WSDL. 理想情况下,我想使用JAX-WS,因为我正在寻找最简单,开发最快的解决方案,而MyEclipse能够从WSDL生成JAX-WS客户端。 Unfortunately, the WSDL I've inherited was built from what appears to be Axis using RPC. 不幸的是,我继承的WSDL是使用RPC似乎是由Axis构建的。 Will this still work? 这仍然有效吗? When trying to generate the code, I get these errors, and the web searches I've found seem to say that it's the service end that needs to upgrade: 尝试生成代码时,出现这些错误,并且我发现的网络搜索似乎表明服务端需要升级:

<restriction base="soapenc:Array">
    <attribute ref="soapenc:arrayType" wsdl:arrayType="impl:MyTypeList[]" />
</restriction>
  • WS-I: (BP2108) An Array declaration uses - restricts or extends - the soapEnc:Array type, or the wsdl:arrayType attribute is used in the type declaration WS-I:(BP2108)数组声明使用-限制或扩展-soapEnc:Array类型,或者在类型声明中使用wsdl:arrayType属性

  • WS-I: (BP2122) A wsdl:types element contained a data type definition that is not an XML schema definition WS-I:(BP2122)wsdl:types元素包含的数据类型定义不是XML模式定义

    <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://ws.host.com" use="encoded" /> <wsdlsoap:body encodingStyle =“ http://schemas.xmlsoap.org/soap/encoding/”名称空间=“ http://ws.host.com” use =“已编码” />

  • WS-I: (BP2406) The use attribute of a soapbind:body, soapbind:fault, soapbind:header and soapbind:headerfault does not have value of "literal". WS-I:(BP2406)soapbind:body,soapbind:fault,soapbind:header和soapbind:headerfault的use属性不具有“文字”值。

Do you know what version of Axis was used by the service? 您知道该服务使用了哪个版本的Axis?

Your best bet is to generate a client using the same version of Axis that was used by the service. 最好的选择是使用服务使用的相同版本的Axis生成客户端。 This is definitely the quickest-to-develop solution. 这绝对是开发最快的解决方案。 Using JAX-WS will not work. 使用JAX-WS将不起作用。

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

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