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 Sukma Agung Verdianto <sa...@gmail.com> on 2008/02/05 12:11:38 UTC

ServiceName in envelope and not URL, is it possible?

Hi All,
I have to develop a web service using Axis2 that have a single endpoint
address, but provide multiple services.
Is it possible to use ServiceName in soap WS-addressing header instead of
URL?

current supported by Axis2:
HTTP: http://example.com/axis2/services/ServiceA
Mail : mailto:ws@example.com?x-service-path=/axis2/services/ServiceA

I want it to be:
HTTP: http://example.com/ep
Mail : mailto:ws@example.com

But the SOAP header inside messages sent by client must have a
wsa:ServiceName element which will distinguish which service will be used.
I see that there is AddressingConstant.EPR_SERVICE_NAME constant. When
should I use that constant?

Any Idea?

Regards,
Sukma