Developers, Developers, Developers! Maksim Sorokin IT Blog

1Jun/112

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 (2) Trackbacks (0)
  1. Excellent stuff from you, man. I’ve read your things before and you are just too awesome. I adore what you have got right here. You make it entertaining and you still manage to keep it smart.This is truly a great blog thanks for sharing

  2. Usefulness and significance of your ides is awesome.


Leave a comment


Trackbacks are disabled.