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 EL ALAMI Ihab <el...@intalio.com> on 2011/11/08 01:09:02 UTC

Why does Axis2 autogenerated endpoint append the port name to the service endpoint

Hello all,

 

I have published a service using Axis2 on the endpoint
http://localhost:8080/something. This service is using the port:
canonicPort.

 

The WSDL automatically generated by Axis2 has the endpoint
http://localhost:8080/something. canonicPort.

 

I have looked at the code that does this (please see here
<http://grepcode.com/file/repo1.maven.org/maven2/org.apache.axis2/axis2-kern
el/1.5.5/org/apache/axis2/description/AxisEndpoint.java#AxisEndpoint.calcula
teEndpointURL%28java.lang.String%29> ), and I am not sure why this is being
done this way.

 

Any explanation on how to avoid this behavior would be great.

 

Note: For those having the same issue and reading this thread, one possible
workaround (that is not good enough for me) is to add the below to axis2.xml
to force Axis2 use User's WSDL:

<parameter name="modifyUserWSDLPortAddress">false</parameter>

 

 

Regards,

 

Ihab EL ALAMI

Intalio France
Intalio, The Open Source BPMS Company, EMEA
mobile: 0(033) 6 46 49 49 79
www.intalio.com <http://www.intalio.com/>