Consuming Axis 1.2 Service with .net vb client
- From: Eric Hencker <EricHencker@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 29 Feb 2008 07:01:06 -0800
Hi,
I have a problem consuming a webservice using a .net client written in vb.
I used a wsdl to generate the proxy class and it worked like a charm.
Sending requests to the service is not a problem. Even complex custom types
are received and processed by the service.
When it comes to receive the response from the service, complex types
produce an error like:
Error in xml document (1,130), which occurs in
System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader,
String encodingStyle, XmlDeserializationEvents events)
bei System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
xmlReader, String encodingStyle)...
The inner exception tells me that the type is not recognized!
InnerException = {"Der angegebene Typ wurde nicht erkannt:
Name='SwapMsisdnResponse',
Namespace='http://vistream.de/pmw/pmwpublicws.xsd/', bei <SwapMsisdnResponse
xmlns='http://vistream.de/pmw/pmwpublicws.xsd/'>."}
InnerException = {": Name='SwapMsisdnResponse',
Namespace='http://vistream.de/pmw/pmwpublicws.xsd/', bei <SwapMsisdnResponse
xmlns='http://vistream.de/pmw/pmwpublicws.xsd/'>."}
In my project I added a webreference and I directly could call the webservice.
As I said, everything but the complex types in the reply worked nicely.
What is causing the problem?
If somebody needs the wsdl to look at... say so
By the way, here is the response (catched on the server side) which can no
be processed:
<< "l version='1.0' encoding='UTF-8'?><soapenv:Envelope
xmlns:soapenv="http://schema
s.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:SwapMsisdnResponse
xmlns:ns1="http://vistream.de/pmw/pmwpub
licws.xsd/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ns1:SwapMsisdnResponse"><statusC
ode>0</statusCode><statusText>Request successfully
processed.</statusText><transactionId>1122334455</transac
tionId></ns1:SwapMsisdnResponse></soapenv:Body></soapenv:Envelope>"
Thanks in advance
Eric
.
- Prev by Date: Re: XslCompiledTransform? possible problem with html decoding
- Next by Date: XpathNavigtor or XmlNode which one is better?
- Previous by thread: .NET Mass Downloader Version 1.2 Released
- Next by thread: XpathNavigtor or XmlNode which one is better?
- Index(es):
Relevant Pages
|