aspose file tools*
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
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: 39549
    
  27
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 - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: customizing soap messages
 
Similar Threads
Conversion of Raw Soap Response Into HTML
error while usingJaxRpc.. of spring and document/literal wsdl style
Soap Envelope not version 1.1
These two examples comparing RPC/Lit vs Document/Lit have me a bit confused
Parsing SOAP Envelope