I tried to use the following sinature for massage style, I found that
it is not working.
public void method(SOAPEnvelope req, SOAPEnvelope resp);
I just tried to return what I sent But I always get an empty body at the
client.
deployed code
----------------
public void method(SOAPEnvelope req, SOAPEnvelope resp){
resp = req;
}
request Sent
--------------
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><SOAP-ENV:Body>
<in:Report
xmlns:in="urn:OXS_Report"><Operation>dl</Operation><Format>o</Format><CharSe
t>Shift_JIS</CharSet><Templates><Template
name="sample"><Path>c:\templates\</Path><RequestParams><RequestParam><Name>{
prasad}</Name><Value>abcd</Value></RequestParam></RequestParams><DatasetPara
ms><DatasetParam></DatasetParam></DatasetParams><LayoutHideParams><LayoutHid
eParam></LayoutHideParam></LayoutHideParams></Template></Templates></in:Repo
rt></SOAP-ENV:Body></SOAP-ENV:Envelope>
the empty response
----------------------
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body/>
</soapenv:Envelope>
It works fine with the signature :
public Element[] method(Element[] request){
....
}
What could be the reason? I hope any woring exaple will help me with
signature,
public void method(SOAPEnvelope req, SOAPEnvelope resp){}