Consuming Axis 1.2 Service with .net vb client

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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
.



Relevant Pages

  • Re: Undefined complexType
    ... Your description of my problem is absolutely correct. ... all the complex types using the soapenc:Array. ... when try consuming a non-.NET webservice in your ... Based on the wsdl snippet you posted, ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Need php5 soap example dealing with complex types
    ... the web and am familair by now of how to setup / configure / implement ... The issue I'm having is how to pass and define complex types through ... If the answer does turn out to be, 'Learn wsdl' - can anyone point me ...
    (alt.php)
  • Re: Need php5 soap example dealing with complex types
    ... the web and am familair by now of how to setup / configure / implement ... The issue I'm having is how to pass and define complex types through ... If the answer does turn out to be, 'Learn wsdl' - can anyone point me ...
    (alt.php)
  • RFC: SOAP module with implicit WSDL generation
    ... WSDL file. ... with the first element containing all the parameters defined ... More complex types will follow, ...
    (comp.lang.perl.modules)
  • Re: Missing invoke button
    ... So if you're parameters are strings, integers, ... ... To quickly test web services I suggest you take a look at Web Service ... It's free and you can test web services with complex types. ... I am using VS 2003 to develop my webservice. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)