There is no SoapFault handling.. so it raise class cast
exception..
so i add some code
public class SoapSerializationEnvelope extends
SoapEnvelope {
...
public void writeBody(XmlSerializer writer) throws
IOException {
if (bodyOut instanceof SoapFault){
((SoapFault) bodyOut).write(writer);
return;
}
...
and it works..
captured message ...
<Envelope
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
xmlns:d="http://www.w3.org/2001/XMLSchema"
xmlns:c="http://www.w3.org/2001/12/soap-encoding"
xmlns:v=""><Header /><Body><n0:Fault
xmlns:n0="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>Server</faultcode><faultstring>expected:
/SOAP-ENV:Body read: SOAP-ENV:Bdy (position:END_TAG
</SOAP-ENV:Bdy>@8:16 in
java.io.InputStreamReader@6e806e80)
</faultstring><detail /></n0:Fault></Body></Envelope>
Logged In: YES
user_id=1282699
Thanks for the feedback.. I will evaluate the problem and take a look at your
suggestion.
Thanks again!
Cheers
James.