473,387 Members | 1,621 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

.NET cannot handle WSDL with exception?

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
1 2230
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: billa1972 | last post by:
Hi, I am trying to hook into Yellow Freight's rating webservice. Below is the wsdl. When i try and create a proxy file with wsdl.exe i get the following errors, see below. Also, when i...
1
by: Marc | last post by:
Hi! I'm working with a C# client that calls a php web service. I've created a wrapper to call the service using .NET wsdl tool (adding a web reference). The call to the server works fine, it...
1
by: Hennesey | last post by:
Hello all, I am developing a Visual Studio .Net 2005 application that consumes an Axis 1.3 web service. Importing the WSDL file generates an error "cannot resolve apachesoap:Map type" ...
7
by: George Jordanov Ivanov | last post by:
Folks, I have to design the WSDL files of a bunch of XML Web Services. But, unfortunately, I am not very keen on writing the WSDL file line by line, and moreover be aware of the whole standard...
2
by: mudge | last post by:
Hi, I'm getting some very strange problems with some C# code. We're running an ASP.NET application on a local server in a DMZ. If I access it using the internal address, the application works...
13
by: ScottM | last post by:
I have run into a problem generating the class file via the WSDL utility. I have a WSDL file that was generated by XMLSpy and is able to be read by the Java code utility, but I get the following...
0
by: robert | last post by:
Hi all, I'm having a hard time resolving a namespace issue in my wsdl. Here's an element that explains my question, with the full wsdl below: <definitions name="MaragatoService"...
9
by: Cesar | last post by:
Hello there, A java programmer sent me a wsdl file, which I have to use to consume his web methods. When I run the wsld.exe tool to generate the class' code, I get the following message: ...
0
by: shaily | last post by:
hi I have a java web service called "Registration service" and C# client which is a consumer of that service java web service running under Tomcat has following interface API exposed ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.