This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes customizing soap messages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "customizing soap messages" Watch "customizing soap messages" New topic
Author

customizing soap messages

elie haddad
Greenhorn

Joined: Sep 27, 2008
Posts: 3
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

Joined: Apr 16, 2008
Posts: 2187
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

Joined: Sep 27, 2008
Posts: 3
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
Marshal

Joined: Mar 22, 2005
Posts: 41052
    
  43
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?


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: customizing soap messages
 
Similar Threads
These two examples comparing RPC/Lit vs Document/Lit have me a bit confused
Soap Envelope not version 1.1
error while usingJaxRpc.. of spring and document/literal wsdl style
Conversion of Raw Soap Response Into HTML
Parsing SOAP Envelope