Menu

#8 No SoapFault handling

open
None
6
2006-11-06
2006-09-12
Jisung, Ahn
No

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
&lt;/SOAP-ENV:Bdy&gt;&#64;8:16 in
java.io.InputStreamReader&#64;6e806e80)
</faultstring><detail /></n0:Fault></Body></Envelope>

Discussion

  • James Seigel

    James Seigel - 2006-09-14

    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.

     
  • James Seigel

    James Seigel - 2006-11-06
    • priority: 5 --> 6
    • assigned_to: nobody --> cgul
     

Log in to post a comment.