0
我嘗試使用兩個版本的軸創建客戶端,我甚至嘗試了ws-import,但注意到正在工作。無法使用軸1或軸2爲SOAP 1.1創建客戶端
U可以找到WSDL這裏
問題與軸2
<wsdl:message name="getReservationbyPNRRequest">
<wsdl:part name="OTA_ReadRQ" element="tns:OTA_ReadRQ"/>
<wsdl:part name="AAReadRQExt" element="ns1:AAReadRQExt"/>
</wsdl:message>
它抱怨說,此消息有兩個部分,我試圖設置樣式爲RPC。
org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessingException: The binding operation getAvailability is RPC/literal. The message parts for this operation must use the type attribute as specificed by WS-I Basic Profile specification (4.4.1). Message part, OTA_AirAvailRQ, violatesthis rule. Please remove the element attribute and use the type attribute.
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addPartToElement(WSDL11ToAxisServiceBuilder.java:2066)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.getNewComplextType(WSDL11ToAxisServiceBuilder.java:1931)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.createSchemaForPorttype(WSDL11ToAxisServiceBuilder.java:1601)
當我用軸1,報告說的是
2003\_05\MoneyOrPercentageType.java:28: MoneyOrPercentageType(java.math.BigDecimal) is already defined in org.opentravel.www.OTA._2003._05.MoneyOrPercentageType
public MoneyOrPercentageType(java.math.BigDecimal _value) {
任何機構可以建議我如何從此WSDL創建客戶???