By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,732 Members | 1,435 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,732 IT Pros & Developers. It's quick & easy.

.NET cannot handle WSDL with exception?

P: n/a
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 &gt;0</message>
<id xmlns="http://CreditCardwizard.wws">1</id>
</fault>
</detail>

</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>

Please advise. thanks!!

Mar 6 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Steve wrote:
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 &gt;0</message>
<id xmlns="http://CreditCardwizard.wws">1</id>
</fault>
</detail>

</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>

Please advise. thanks!!

Right click in the solution, "Add Web Reference." and paste the URL to
the web service with the WSDL. You can also do this from a command line
by running the WSDL.exe command.

Hmm, after reading your post, are you doing this with VS or something else?
Mar 8 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.