<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://xxxxxxxxxxxx/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=“.xyz Domain Names | Join Generation XYZ” xmlnssi=“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=" “, xmlnssi=” " 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. The reason why i want to shorten the tag content of <ser-root: is because the ETL tool importing it cannot deal with such long root tag and ETL team is not able to build a model from XML file.

Thank you for the answers.

Regards
Shreyus

Hi Shreyus ,

I have replied to the other thread created by you in “Tips, Tricks and Troubleshooting”

Posting the same reply here for reference

Thanks Rakesh, i will try implementing this and revert.

Regards
Shreyus

Hi Rakesh

I have created a service that uses the handlerSpec speification. I am a bit stuck in the 2nd point, in the handler service how do I retrieve the soap response and then modify it ? , considering the IP of the newly created response handler service has messageContext as input (object datatype).

Thanks in advance.

Regards
Shreyus

Hi Shreyus ,

I have attached screenshot of a sample service for reference

Hi Rakesh,

thank you for te snapshot. Have done all step and registered handler in provider. In last step of handler service ‘setSOAPmessage’ i have mapped modified soapData to setSOAPMessage IP : SOAPMessage, what do i send to setSOAPMessage IP : messageContext ? As its blank currently i get below error -
soapenv:Fault
soapenv:Client
[ISS.0088.9430] Handler processing failed on the provider
http://xxx:xx00/ws

<webM:detailEntry xmlns:webM=“API Integration Platform | Software AG”>
<webM:message xml:lang=“”>[ISS.0088.9420] Required parameter messageContext is missing</webM:message>
</webM:detailEntry>

</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>

Used the same messageContext passed in first step to setSOAPmessage/messageContext and it works but there is a problem.

The values after the tag <ser-root: are getting replaced but not the contents of the tag <ser-root are not getting replaced.
<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://oddd01/shreyus.webservice.customResponse:testCustomeResponse_WSD” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>

<PROC_ID>2295</PROC_ID>

Again i want to replace the tag ‘<ser-root:getInterfaceStatusResponse xmlns:ser-root=“http://oddd01/shreyus.webservice.customResponse:testCustomeResponse_WSD” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>’ with ser-root:getInterfaceStatusResponse. What can i change to get this done?

Thanks in advance.

Hi Shreyus ,

Can you please attach your package here for better understanding of your code.

Hi Rakesh

Attached the service .zip.

Regards
Shreyus
ResponseHandler_ExportedBuild_myBuild.zip (5.46 KB)

Hi Shreyus ,

Thanks for the build , but unfortunately it’s a partial/patch build which I cannot install on my server.

Anyways , I have created a sample service for you.
I am attaching the package here(I am able to remove the ser:root element). Please let me know if you have further questions.
webServiceTest.zip (17.3 KB)

Hi,

deriving from the filename from Shreyus´ attachment this is not a regular package build, but instead more likely a Deployer build which need to be imported to Deployer and then deployed to target server.

Regards,
Holger