help with getting info from a wsdl file

Discussion in 'ASP .Net Web Services' started by amy f via .NET 247, Mar 18, 2005.

  1. (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>
    amy f via .NET 247, Mar 18, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dark
    Replies:
    1
    Views:
    4,608
    milfar
    Nov 14, 2008
  2. Chris Bedford
    Replies:
    0
    Views:
    564
    Chris Bedford
    Aug 21, 2003
  3. Stephen Edgecombe

    WSDL.EXE: WSDL Import Directive

    Stephen Edgecombe, Aug 13, 2003, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    227
    Stephen Edgecombe
    Aug 13, 2003
  4. RH
    Replies:
    1
    Views:
    252
    Dino Chiesa [Microsoft]
    May 27, 2004
  5. mrnu

    wsdl.exe fails with WebMethods generated wsdl file

    mrnu, Jun 7, 2004, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    199
Loading...

Share This Page