What's wrong with my WSDL files?

  • Thread starter Thread starter hellrazor
  • Start date Start date
H

hellrazor

Hi there,

I'm trying to import the following files as web reference:

http://216.18.68.93:9999/CollectionWsInterface.wsdl


The hosted web service was not created with Visual Studio.net.



Could any of you import it into a project and tell me why I cannot invoke
the "getSimpleCollection" function?

It is supposed to return a simple array of 3 string items.


When you import the above wsdl file, the following two files are also
imported:


http://216.18.68.93:9999/CollectionWsInterface-interface.wsdl

http://216.18.68.93:9999/CollectionWsInterface.xsd


Whenever I try execute the getSimpleCollection function, I get the
following error in the debugger:

Cannot assign object of type System.String to an object of type
System.String[].


Could anybody take a look at the xml files above and point me to what I
have to do to properly return the correct string[] type?

Thanks!
 
I had replied to this problem a while ago, can you google for this
thread "Web-Services with a Collection of a custom object"

regards
erymuzuan
 
I had replied to this problem a while ago, can you google for this
thread "Web-Services with a Collection of a custom object"

regards
erymuzuan
Hi there,

I'm trying to import the following files as web reference:

http://216.18.68.93:9999/CollectionWsInterface.wsdl


The hosted web service was not created with Visual Studio.net.



Could any of you import it into a project and tell me why I cannot
invoke the "getSimpleCollection" function?

It is supposed to return a simple array of 3 string items.


When you import the above wsdl file, the following two files are also
imported:


http://216.18.68.93:9999/CollectionWsInterface-interface.wsdl

http://216.18.68.93:9999/CollectionWsInterface.xsd


Whenever I try execute the getSimpleCollection function, I get the
following error in the debugger:

Cannot assign object of type System.String to an object of type
System.String[].


Could anybody take a look at the xml files above and point me to what
I have to do to properly return the correct string[] type?

Thanks!


The problem is not that the message is RPC/Encoded. I have tried other
functions that return other complexTypes. The only problem is when I try
to obtain unbounded objects!
 
Back
Top