For Programmers: Free Programming Magazines  


Home > Archive > ASP .NET Webservices > March 2005 > help with getting info from a wsdl file









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author help with getting info from a wsdl file
amy f via .NET 247

2005-03-18, 4:00 am

(Type your message here)
Help. I am trying to send and receive to an outside web service. The method in the wsdl file is Get_something
Im doing this in dotnet c#

The method takes a string but returns an object. I pass in the string it takes but it blows up on me and throws me an error

here is the code inside the webservice object
[return: System.Xml.Serialization.SoapElementAttribute("session")]
Line 37: public string get_session(string ssn) {
Line 38: object[] results = this.Invoke("get_session", new object[] {
Line 39: ssn});
Line 40: return ((string)(results[0]));

when i try to get this method it only wants string how do i get something passing it a string and return it as an object or an array????

--------------------------------
From: amy f

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>MW43eZI5jU6NOvT52FlvEg==</Id>
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com