Developers, Developers, Developers! Maksim Sorokin IT Blog

1Jun/11Off

Axis2: Removing Namespace from SOAP Response

By default Axis2 will return a response with namespace, for example:

<ns1:return xmlns:ns1="http://ws.portal._3dfacto.com/">
  <response>
    <status>Situation normal: all fucked up</status>
  </response>
</ns1:return>

In order to remove it in services.xml add elementFormDefaultQualified to the schema tag:

<schema schemaNamespace="http://maksim.sorokin.dk/" elementFormDefaultQualified="false" />

So you will have the following SOAP response:

<return>
  <response>
    <status>Situation normal: all fucked up</status>
  </response>
</return>

Taken from here

Comments (0) Trackbacks (0)

Sorry, the comment form is closed at this time.

Trackbacks are disabled.