Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

web reference object

Status
Not open for further replies.

warnockm

IS-IT--Management
Oct 19, 2006
9
US
I'm trying to build a web service client and server in c#. my server has a method that inputs an string, and returns the results of a mysql query (several columns, several rows). My WSDL file has the return as an array, which works when I make a manual client to make the call.

I'm now trying to create a client in c#. I imported the web interface with success and am able to make calls with other functions that return a string. How do i work with an array? When the call is made as-is, i get an exception error:

exception {"'Element' is an invalid XmlNodeType. Line 2, position 523."} System.Exception {System.Xml.XmlException}

The pseudo-code that c# creates shows the function returns a string, so i'm not sure if my WSDL file should be updated w/ something other than array, or my c# code needs update w/ a better function or different data type. Any ideas? I'd be happy to post the WSDL file or c# code.

thanks,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top