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.

Reply via email to