Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

customizing soap messages

 
elie haddad
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello
i have a java web service that is generating the below xml responce.
i would like to remove all prefixes and attributs encluding namespaces.
any help is appreciated.


<env:Envelope
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ns0="http://common/">
<env:Body>
<ns0:GetClientGlobalPositionServicesResponseElement
xsi:type="ns0:ServiceResponseError">
<ns0 ata
xsi:type="xsd:anyType"
xsi:nil="1"/>
<ns0:header
xsi:type="ns0:RequestHeader">
<ns0 roduct/>
<ns0:sessionId/>
</ns0:header>
<ns0:error>
<ns0:errormessage>Error: NOT VALID TOKEN</ns0:errormessage>
<ns0:severity>1</ns0:severity>
<ns0:errorcode>err-050</ns0:errorcode>
</ns0:error>
</ns0:GetClientGlobalPositionServicesResponseElement>
</env:Body>
</env:Envelope>

thanks in advance.

Elie Haddad
 
Jimmy Clark
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i would like to remove all prefixes and attributs encluding namespaces. any help is appreciated


Write a Perl or Shell script that removes all prefixes and attributs.
 
elie haddad
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is a response generated by the webservice and sent to the client, i do not have any control on it. I am searching for something that customizes the generation of the soap message.

thanks
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you don't have control over the generation of the message, then you can't customize it there. You'll have to do it on the client side. What is the purpose of wanting to do this?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic