axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ramesh Gopal <fatuzorin2...@yahoo.com>
Subject Implement axis soap fault in server/ client side from C
Date Wed, 06 Jul 2011 11:48:17 GMT

Hello everybody,

I want to implement a logic of how to create soap fault from Axis2C in C.
It must follow the below format.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" >      

  <soapenv:Body>                                                          

    <soapenv:Fault>                                                      

      <faultcode>System</faultcode>                                      

      <faultstring>There was an error in the web service</faultstring>    

      <detail>                                                            

        <iss:issues_exceptionfault>                                      

          <iss:errorno>-206</iss:errorno>                                

          <iss:errormsg>The specified table (mengano) is not in the database.</iss:errormsg>                                                  

        </iss:issues_exceptionfault>                                      

      </detail>                                                          

    </soapenv:Fault>                                                      

  </soapenv:Body>                                                        

</soapenv:Envelope>

How do I get about coding this on the server side.

Another question I had was, how do I write my client code to understand this soap fault and
handle it.

Though this is a standard format, some services send a custom fault, Will they also be in
this format only.

Pls help me with some samples around these. Links will be an added advantage. I googled for
some samples, but havent been successful.

Ramesh.

Mime
View raw message