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

What's wrong with my WSDL files?

P: n/a
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/CollectionW...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!

Nov 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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

hellrazor wrote:
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/CollectionW...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!

Nov 19 '05 #2

P: n/a
erymuzuan <er*******@yahoo.com> wrote in
news:up**************@TK2MSFTNGP15.phx.gbl:
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

hellrazor wrote:
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/CollectionW...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!
Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.