S
Steve
I want to ask if .NET cannot handle WSDL with exception <wsdl:fault>
element?
<wsdl:fault name="CreditCardWizardException">
<soap:fault name="CreditCardWizardException" use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://CreditCardwizard.wws" />
</wsdl:fault>
I am using VS.NET and generate the client-side proxies, but it seems
doesn't generate a
class called CreditCardWizardException. Also given a WSDL file, how to
generate .NET client in VS.NET?
Here's the SOAP exception message, but looks like .NET client couldn't
handle that.
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode
xmlns:ns201420873="http://CreditCardwizard.wws"
xmlns="">ns201420873:CreditCardWizardException</faultcode>
<faultstring xmlns="">
<![CDATA[wws.CreditCardwizard.CreditCardWizardException: sequence
number need to be >0]]>
</faultstring>
<detail xmlns="">
<fault>
<info
xmlns="http://CreditCardwizard.wws">info001</info>
<message xmlns="http://CreditCardwizard.wws">sequence
number need to be >0</message>
<id xmlns="http://CreditCardwizard.wws">1</id>
</fault>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
Please advise. thanks!!
element?
<wsdl:fault name="CreditCardWizardException">
<soap:fault name="CreditCardWizardException" use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://CreditCardwizard.wws" />
</wsdl:fault>
I am using VS.NET and generate the client-side proxies, but it seems
doesn't generate a
class called CreditCardWizardException. Also given a WSDL file, how to
generate .NET client in VS.NET?
Here's the SOAP exception message, but looks like .NET client couldn't
handle that.
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode
xmlns:ns201420873="http://CreditCardwizard.wws"
xmlns="">ns201420873:CreditCardWizardException</faultcode>
<faultstring xmlns="">
<![CDATA[wws.CreditCardwizard.CreditCardWizardException: sequence
number need to be >0]]>
</faultstring>
<detail xmlns="">
<fault>
<info
xmlns="http://CreditCardwizard.wws">info001</info>
<message xmlns="http://CreditCardwizard.wws">sequence
number need to be >0</message>
<id xmlns="http://CreditCardwizard.wws">1</id>
</fault>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
Please advise. thanks!!