Axis2遠程調用WebService注意事項

  1. // 禁用分塊支持
    options.setProperty(HTTPConstants.CHUNKED, false);
    可參考鏈接:https://www.cnblogs.com/macaque/p/3355879.html
    
  2. 客戶端調用及異常信息First Element must contain the local name, Envelope , but found definitions

    // 將WS-Addressing設置爲端點
    final EndpointReference endpointReference = new EndpointReference(url);
    url中不應包含"?wsdl"
    
  3. 打包運行後,發現Addressing-1.7.9.jar找不到

    <plugin>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-maven-plugin</artifactId>
                    <configuration>
                        <includeSystemScope>true</includeSystemScope>
                        <requiresUnpack>
                            <dependency>
                                <groupId>org.apache.axis2</groupId>
                                <artifactId>addressing</artifactId>
                            </dependency>
                        </requiresUnpack>
                    </configuration>
                </plugin>

     

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章