A
amy f via .NET 247
(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????
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????