You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by VINCENT Fabrice <fa...@thalesgroup.com> on 2013/06/21 11:03:14 UTC
axis2.xml : servicePath empty
Hello,
I have read the chinthaka's post "How Apache Axis2 Finds the Operation and Service a Message is Destined To" .
But I still have any questions.
I must develop a web service that can be able to receive requests from a given client. (I can't change the client side)
Here is the beginning of the request sent by the soap client:
POST / HTTP/1.1 /* Note : there is no servicePath here */
Host: localhost:9030
User-Agent: gSOAP/2.7
Content-Type: text/xml; charset=utf-8
Content-Length: 2038
Connection: keep-alive
SOAPAction: ""
X-Forwarded-For: 127.0.0.1
For the soap server, I set the following lines in my "axis2.xml" in order to have a server on "http://localhost:9030/"
<parameter name="contextRoot">/</parameter>
<parameter name="servicePath"></parameter>
I have the error:
java.lang.IllegalArgumentException: service path cannot be null or empty
at org.apache.axis2.context.ConfigurationContext.internalGetServiceContextPath(ConfigurationContext.java:856)
Can you help me please ?
Thanks a lot.
Fabrice.