GeeCON Prague 2014*
The moose likes Websphere and the fly likes WebSphere V5.1 Application Server SOAP Response Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Websphere
Bookmark "WebSphere V5.1 Application Server SOAP Response" Watch "WebSphere V5.1 Application Server SOAP Response" New topic
Author

WebSphere V5.1 Application Server SOAP Response

Chris Bright
Greenhorn

Joined: Sep 26, 2006
Posts: 1
Is there a way to tell WebSphere to not add a SOAP Header to the response? See my example below:

This is how the response is returned from WSAD:

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<alertResponse xmlns="http://intouch.main.pkg">
<alertReturn>A00002209</alertReturn>
</alertResponse>
</soapenv:Body>
</soapenv:Envelope>

This is how it is returned by WAS 5.1:

<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header/>
<soapenv:Body>
<alertResponse xmlns="http://intouch.main.pkg">
<alertReturn>A00002207</alertReturn>
</alertResponse>
</soapenv:Body>
</soapenv:Envelope>


WAS adds the <soapenv:Header/> to the response.

No change in the actual code just does this after installing the EAR file from WSAD.

[ September 26, 2006: Message edited by: Chris Bright ]

Sorry I forgot to mention WAS is 5.1.1.9 and WSAD is 5.1.2
[ September 27, 2006: Message edited by: Chris Bright ]
 
GeeCON Prague 2014
 
subject: WebSphere V5.1 Application Server SOAP Response