Accessing .NET web service from Perl (SOAP::Lite) client

Discussion in 'ASP .Net Web Services' started by pfconrey@hotmail.com, Nov 17, 2005.

  1. Guest

    I am trying to access a .NET web service using both a Perl (SOAP::Lite)
    client and .NET Web Service Studio. The call from Web Service Studio
    works as expected, but the call from Perl fails.

    Here is the soap envelope sent by Web Service Studio:

    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
    <SessionGetValue xmlns="http://MyCompany.com/Security">
    <SessionID>abcdef123</SessionID>
    <ValueName>userid</ValueName>
    </SessionGetValue>
    </soap:Body>
    </soap:Envelope>

    And here is the envelope sent by SOAP::Lite:

    <SOAP-ENV:Envelope
    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
    SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/1999/XMLSchema">
    <SOAP-ENV:Body>
    <ns1:SessionGetValue xmlns:ns1="http://MyCompany.com/Security">
    <SessionID xsi:type="xsd:string">abcdef123</SessionID>
    <ValueName xsi:type="xsd:string">USERID</ValueName>
    </ns1:SessionGetValue>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

    Other than trivial differnces, the look functionally the same to me.
    The error returned by the web service is:

    <soap:Fault>
    <faultcode>soap:Server</faultcode>
    <faultstring>
    Server was unable to process request.
    --&gt; SessionGet
    --&gt; Object reference not set to an instance of an object.
    </faultstring>
    <detail />
    </soap:Fault>

    Because of the error text (looks like a logic error on the ASP.NET
    side), I'm inclined to think this is not a problem on my (the Perl)
    side, but the fact that it works for a .NET client concerns me.

    Does anyone have any insight into this?
    , Nov 17, 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. Eric
    Replies:
    0
    Views:
    506
  2. Aaron Brady

    SQL, lite lite lite

    Aaron Brady, Dec 29, 2008, in forum: Python
    Replies:
    15
    Views:
    746
    Aaron Brady
    Jan 1, 2009
  3. Gary W. Smith

    Web Service randomly hangs when being called from SOAP::Lite

    Gary W. Smith, Aug 4, 2009, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    891
    Gary W. Smith
    Aug 4, 2009
  4. JGH
    Replies:
    1
    Views:
    392
  5. jean-françois labbe
    Replies:
    0
    Views:
    140
    jean-françois labbe
    May 13, 2006
Loading...

Share This Page