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 ]