Adding SOAP:Fault elements within my WSDL.
I am having a Webservice within which i am throwing SOAP Exceptions and
therefore whenever something wrong happens a SOAP fault comes up in the
response - see below:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>Fault
occurred</faultstring><faultactor>http://203.111.104.215/webservices/selcomm/selcomm.asmx</faultactor><detail><faultcode
xmlns="http://tempuri.org/">-102</faultcode><faultstring
xmlns="http://tempuri.org/">Database not
found</faultstring></detail></soap:Fault></soap:Body></soap:Envelope>
Now my Problem is that my WSDL does not define any SOAP Fault elements as it
is the one that is auto generated via the .NET Framework when we do ?WSDL.
How can i add the fault elements within my WSDL? where will the fault
elements come and how will they look like?
Date:Wed, 22 Aug 2007 20:26:01 -0700
Author:
|