You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Mohannad Hammadeh <Mo...@orionhealth.com> on 2009/04/14 22:22:11 UTC

Possible bug in axis2 1.4

Hi there,

I have recently upgraded from apache axis2 1.3 to 1.4 and noticed some strange behaviour when I deploy my wsdl aar files in axis2 under tomcat. 

My aar file structure is as follows:
TstServerConsumerNE.aar
  META-INF
    TstServerConsumerNE.wsdl
    TstServerConsumerInterface.wsdl
    StandardError.xsd
    service.xml

The WSDL has the following service:
 
  <wsdl:service name="TstServerConsumerNE">
      <wsdl:port name="TstServerConsumer" binding="tns:TstServerConsumerBinding">
         <soap:address location="http://DUMMY_VALUE"/>
      </wsdl:port>
   </wsdl:service> 

Originally, when being deployed under axis2 1.3, axis2 resolved the host to and port correctly:

  <wsdl:service name="TstServerConsumerNE">
      <wsdl:port name="TstServerConsumerNESOAP11port_http" binding="tns:TstServerConsumerNESOAP11Binding">
          <soap:address location="http://localhost:8080/axis2/services/TstServerConsumerNE"/>
      </wsdl:port>
      <wsdl:port name="TstServerConsumerNESOAP12port_http" binding="tns:TstServerConsumerNESOAP12Binding">
          <soap12:address location="http://localhost:8080/axis2/services/TstServerConsumerNE"/>
      </wsdl:port>
      <wsdl:port name="TstServerConsumerNEHttpport" binding="tns:TstServerConsumerNEHttpBinding">
          <http:address location="http://localhost:8080/axis2/services/TstServerConsumerNE"/>
      </wsdl:port>
  </wsdl:service>

However when I upgraded to axis2 1.4, the host and port where not modified so my WSDL contained the DUMMY_VALUE as the location. I deleted the StandardError.xsd and re-deployed the aar file, axis2 1.4 generated the following:

  <wsdl:service name="TstServerConsumerNE">
      <wsdl:port name="TstServerConsumerNEHttpSoap11Endpoint" binding="axis2:TstServerConsumerNESoap11Binding">
          <soap:address location="http://localhost:8080/axis2/services/TstServerConsumerNE.TstServerConsumerNEHttpSoap11Endpoint"/>
      </wsdl:port>
      <wsdl:port name="TstServerConsumerNEHttpSoap12Endpoint" binding="axis2:TstServerConsumerNESoap12Binding">
          <soap12:address location="http://localhost:8080/axis2/services/TstServerConsumerNE.TstServerConsumerNEHttpSoap12Endpoint"/>
      </wsdl:port>
      <wsdl:port name="TstServerConsumerNEHttpEndpoint" binding="axis2:TstServerConsumerNEHttpBinding">
          <http:address location="http://localhost:8080/axis2/services/TstServerConsumerNE.TstServerConsumerNEHttpEndpoint"/>
      </wsdl:port>
  </wsdl:service>



Why does axis2 1.4 generate the address as host.port? Is there any way i can get it to behave the same way as axis2 1.3 did?

Regards,


-- 
Mohannad Hammadeh | Legacy Interface Developer | Orion Health

P: +64 9 638 0600 | M: +64 21 334 143
F: +64 9 638 0699 | skype: mohannad.hammadeh

Orion Health | www.orionhealth.com

2nd Floor, Orion House | Cnr Mary and Enfield St | Mount Eden | Auckland 1003 | New Zealand

This e-mail and any attachments are intended only for the person to whom it is addressed and may contain privileged, proprietary, or other data protected from disclosure under applicable law. If you are not the addressee or the person responsible for delivering this to the addressee you are hereby notified that reading, copying or distributing this transmission is prohibited. If you have received this e-mail in error, please telephone us immediately and remove all copies of it from your system. Thank you for your co-operation.