<ser-root: in soap body | is it possible to shorten content of this tag?

hello

Understand that webMethods adds a custom tag ‘<ser-root:’ in the soap body of soap response, is it possible to reduce the contents of this tag?

example - My w/s that is exposed by webmethods returns below response from SOAP UI -
ws : http://xxxxxxxxx:xxxx/ws/NpWebService.yyy.descriptor.getInterfaceStatus?WSDL

SOAP OP -
<soapenv:Envelope xmlns:soapenv=“http://schemas.xmlsoap.org/soap/envelope/”>
<SOAP-ENV:Header xmlns:SOAP-ENV=“http://schemas.xmlsoap.org/soap/envelope/”/>
soapenv:Body
<ser-root:getInterfaceStatusResponse xmlns:ser-root=“http://www.xyz.com/getInterfaceStatus/v1” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>

content…

</ser-root:getInterfaceStatusResponse>

My question is if i can control whats inside the tag ser-root:getInterfaceStatusResponse, may be remove xmlns:ser-root=" “, xmlns:xsi=” " and just have the response as below -

<soapenv:Envelope xmlns:soapenv=“http://schemas.xmlsoap.org/soap/envelope/”>
<SOAP-ENV:Header xmlns:SOAP-ENV=“http://schemas.xmlsoap.org/soap/envelope/”/>
soapenv:Body
ser-root:getInterfaceStatusResponse

content…

</ser-root:getInterfaceStatusResponse>

Is there a way to have this control? I am using wM 98 IS_9.8_SPM_Fix1 & IS_9.8_Core_Fix5.

Thank you for the answers.

Regards
Shreyus

Hi Shreyus ,

You can create a custom response handler service to remove the <ser-root tag.

  1. Create a service for handler service with handlerSpec.
  2. In the handler service, I retrieve the soap response and do some replace to delete the “ser-root” prefix.
  3. Once the handler service is done, you have to register the service as handler service by using pub.soap.handler:registerWmProvider.
  4. In you web service provider handler tab, add the handler service you have just registered and save the WSP.
1 Like