2013-10-02 14 views
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創建客戶???

回答

0

我發現我的問題的解決方案,我用CXF來解決這個問題, 我編輯wsdl爲rpc,通過更改綁定樣式爲rpc而不是文檔。

謝謝