2015-02-09 59 views
2

我用来从java calss axis2-java2wsdl-maven-plugin生成wsdl。下面我举一个通道的pom.xml:如何指定axis2-java2wsdl-maven-plugin中的地址位置?

<plugin> 
       <groupId>org.apache.axis2</groupId> 
       <artifactId>axis2-java2wsdl-maven-plugin</artifactId> 
       <version>1.6.2</version> 
       <configuration> 
        <className>Path_to_ws_class</className> 
       <outputFileName>src/main/webapp/webservice.wsdl</outputFileName> 
     <schemaTargetNamespace>http://test.test/xsd</schemaTargetNamespace> 
        <wsdlVersion>${project.version}</wsdlVersion> 
       </configuration> 
       <executions> 
        <execution> 
         <goals> 
          <goal>java2wsdl</goal> 
         </goals> 
        </execution> 
       </executions> 
      </plugin> 

但它在WSDL文件的底部产生:

<wsdl:port name="WebServiceHttpSoap11Endpoint" binding="axis2:WebServiceSoap11Binding"> 
<soap:address location="http://localhost:8080/axis2/services/MerchantWebService"/> 
</wsdl:port> 

我不需要以下的部分,因为我的网络服务不可用此链接:

<soap:address location="http://localhost:8080/axis2/services/MerchantWebService"/> 

是否可以在插件配置中指定位置作为参数? locationUri不工作:(

回答

2

添加

<locationUri>http://localhost:8080/AppRootContext/services/MerchantWebService</locationUri> 

<configuration> 
+0

谢谢,阿南德。这正是我需要的,但它这么想的以https工作... – Daniyar 2015-09-01 07:51:53