Loading ...
Sorry, an error occurred while loading the content.

AW: [soaplite] SOAP:Lite Client .NET Server problem

Expand Messages
  • Manessinger Andreas
    You say the XML returned comes with an empty tag. Is this from the debug output of the SOAP::Lite client or what? If it is from the debug output, then I
    Message 1 of 3 , Apr 28, 2004
    • 0 Attachment
      You say the XML returned comes with an empty tag. Is this from the debug output of the SOAP::Lite client or what? If it is from the debug output, then I suppose the problem is rather the .NET server not answering properly. If it is not from the debug output, then what does that look like?
       
      SOAP::Lite's debug output is written fairly early, definitely before deserialization. The whole job of XML parsing, building Perl data structures, etc, happens afterwards, thus I suppose I you get that in the debug trace, then that is, what the server sends.
       
      In case you haven't enabled the trace yet, try to
       
          use SOAP::Lite +trace => 'debug';
       
      and post the relevant part of the trace.

      ----
       Dipl.Ing. Andreas Manessinger
       Referat EG2 - Informations- und Kommunikationsdienste
       Magistrat der Stadt Wien, Magistratsabteilung 14 - ADV,
       Rathausstr. 1, A-1082 Wien
       E-Mail: man@...   
       Tel: (+43 1) 4000-91176      
       Fax: (+43 1) 4000-99-91176 
       WWW: http://www.wien.gv.at/egov/

      -----Ursprüngliche Nachricht-----
      Von: Matt Gladding *EXTERN* [mailto:mgladding@...]
      Gesendet: Dienstag, 27. April 2004 20:15
      An: soaplite@yahoogroups.com
      Betreff: [soaplite] SOAP:Lite Client .NET Server problem

      I'm trying to connect a soap::lite client to a .net server using Perl and I'm having some issues with not receiving data back.

      I connected to one method on the server and it returned the information perfectly but that method just returns one string so it had no problem displaying the data.

      When I attempt to connect to a service that returns a dataset I tried everything I found here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsoap/html/soapliteperl.asp to no avail.

      The XML sent is:

      <?xml version="1.0" encoding="UTF-8"?>

      <SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"

      xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"

      xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"

      xmlns:xsd="http://www.w3.org/1999/XMLSchema"

      SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

        <SOAP-ENV:Body>

            <GetEscrowOfficers xmlns="http://.../">

                   <SqlServer xsi:type="xsd:string">...</SqlServer>

                   <Database xsi:type="xsd:string">...</Database>

            </GetEscrowOfficers>

        </SOAP-ENV:Body>

      </SOAP-ENV:Envelope>

       

      The XML Returned is:

      <?xml version="1.0" encoding="utf-8"?>

      <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>

            <GetEscrowOfficersResponse xmlns="http://.../" />  ß Here!!

        </soap:Body>

      </soap:Envelope>

       

      And I have no idea why the tag marked with a red arrow is coming back empty, when it should come back with the XML Dataset. Like:

      <GetEscrowOfficersResponse xmlns=http://.../> XML Stuff Here </GetEscrowOfficersResponse>

       

      Note: I removed the SqlServer and Database info as well as the URIs, in the actual response and sent messages they are there.

       

      Any help would be greatly appreciated

       

      Matt Gladding

      IT Specialist/Lead Programmer

      Western Title Company

      (775) 324-6930

      mgladding@...

       

    • m_gladding
      Yes this was from output of the Debug trace. Here is the exact output:SOAP::Transport::HTTP::Client::send_receive: POST http://.../Impact_ED_
      Message 2 of 3 , Apr 28, 2004
      • 0 Attachment
        Yes this was from output of the Debug trace. Here is the exact output:

        SOAP::Transport::HTTP::Client::send_receive: POST http://.../Impact_ED_
        Int/WSinterface.asmx
        Accept: text/xml
        Accept: multipart/*
        Content-Length: 491
        Content-Type: text/xml; charset=utf-8
        SOAPAction: http://.../GetPropertyTypes

        <?xml version="1.0" encoding="UTF-8"?><soap:Envelope
        xmlns:xsi="http://www.w3.or
        g/1999/XMLSchema-instance"
        xmlns:xsd="http://www.w3.org/1999/XMLSchema" soap:enc
        odingStyle="http://schemas.xmlsoap.org/soap/encoding/"
        xmlns:soap="http://schema
        s.xmlsoap.org/soap/envelope/"><soap:Body><GetPropertyTypes
        xmlns="..."><SqlServer xsi:type="xsd:string">...</SqlServer><Database xs
        i:type="xsd:string">...</Database></GetPropertyTypes></soap:Body></soa
        p:Envelope>
        SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 200 OK
        Cache-Control: private, max-age=0
        Connection: close
        Date: Wed, 28 Apr 2004 16:25:30 GMT
        Server: Microsoft-IIS/5.0
        Content-Length: 304
        Content-Type: text/xml; charset=utf-8
        Client-Date: Wed, 28 Apr 2004 16:29:59 GMT
        Client-Peer: ...:80
        Client-Response-Num: 1
        X-AspNet-Version: 1.1.4322
        X-Powered-By: ASP.NET

        <?xml version="1.0" encoding="utf-8"?><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><GetPropertyTypesRe=
        spo
        nse xmlns="http://.../" /></soap:Body></soap:Envelope>



        this is the Empty tag:
        <GetPropertyTypesRespo
        nse xmlns="http://.../" />

        it should be this:
        <GetPropertyTypesRespo
        nse xmlns="http://.../"> XML Dataset here! </GetPropertyTypesResponse>

        Any idea now? The only differences between how SOAP::Lite sends the
        SOAP Statement and how the .Net application expects to receive it are
        as follows:
        SOAP::Lite has <soap:Envelope xmlns:xsi="http://www.w3.or
        g/1999/XMLSchema-instance"
        xmlns:xsd="http://www.w3.org/1999/XMLSchema" soap:enc
        odingStyle="http://schemas.xmlsoap.org/soap/encoding/"
        xmlns:soap="http://schema
        s.xmlsoap.org/soap/envelope/">
        for it's envelope tag... take note of the years (1999) and also the
        encodingStyle Tag.

        This is how the .Net server expects the envelope tag to be:
        <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
        Note the year is now 2001 for the schema stuff, and there is no
        encodingStyle...
        Does anyone know if any of this would make a difference?


        --- In soaplite@yahoogroups.com, Manessinger Andreas <man@a...> wrote:
        > You say the XML returned comes with an empty tag. Is this from the
        debug output of the SOAP::Lite client or what? If it is from the debug
        output, then I suppose the problem is rather the .NET server not
        answering properly. If it is not from the debug output, then what does
        that look like?
        >
        > SOAP::Lite's debug output is written fairly early, definitely before
        deserialization. The whole job of XML parsing, building Perl data
        structures, etc, happens afterwards, thus I suppose I you get that in
        the debug trace, then that is, what the server sends.
        >
        > In case you haven't enabled the trace yet, try to
        >
        > use SOAP::Lite +trace => 'debug';
        >
        > and post the relevant part of the trace.
        > ----
        > Dipl.Ing. Andreas Manessinger
        > Referat EG2 - Informations- und Kommunikationsdienste
        > Magistrat der Stadt Wien, Magistratsabteilung 14 - ADV,
        > Rathausstr. 1, A-1082 Wien
        > E-Mail: man@a...
        > Tel: (+43 1) 4000-91176
        > Fax: (+43 1) 4000-99-91176
        > WWW: http://www.wien.gv.at/egov/ <http://www.wien.gv.at/egov/>
        >
        > -----Ursprüngliche Nachricht-----
        > Von: Matt Gladding *EXTERN* [mailto:mgladding@w...]
        > Gesendet: Dienstag, 27. April 2004 20:15
        > An: soaplite@yahoogroups.com
        > Betreff: [soaplite] SOAP:Lite Client .NET Server problem
        >
        >
        > I'm trying to connect a soap::lite client to a .net server using
        Perl and I'm having some issues with not receiving data back.
        > I connected to one method on the server and it returned the
        information perfectly but that method just returns one string so it
        had no problem displaying the data.
        > When I attempt to connect to a service that returns a dataset I
        tried everything I found here:
        http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsoap/htm=
        l/soapliteperl.asp
        <http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsoap/ht=
        ml/soapliteperl.asp>
        to no avail.
        > The XML sent is:
        > <?xml version="1.0" encoding="UTF-8"?>
        > <SOAP-ENV:Envelope
        xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
        > xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
        > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
        > xmlns:xsd="http://www.w3.org/1999/XMLSchema"
        > SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
        > <SOAP-ENV:Body>
        > <GetEscrowOfficers xmlns="http://.../">
        > <SqlServer xsi:type="xsd:string">...</SqlServer>
        > <Database xsi:type="xsd:string">...</Database>
        > </GetEscrowOfficers>
        > </SOAP-ENV:Body>
        > </SOAP-ENV:Envelope>
        >
        > The XML Returned is:
        > <?xml version="1.0" encoding="utf-8"?>
        > <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>
        > <GetEscrowOfficersResponse xmlns="http://.../" /> <-- Here!!
        > </soap:Body>
        > </soap:Envelope>
        >
        > And I have no idea why the tag marked with a red arrow is coming
        back empty, when it should come back with the XML Dataset. Like:
        > <GetEscrowOfficersResponse xmlns= http://.../
        <http://66.237.92.166/> > XML Stuff Here </GetEscrowOfficersResponse>
        >
        > Note: I removed the SqlServer and Database info as well as the URIs,
        in the actual response and sent messages they are there.
        >
        > Any help would be greatly appreciated
        >
        > Matt Gladding
        > IT Specialist/Lead Programmer
        > Western Title Company
        > (775) 324-6930
        > mgladding@w... <mailto:mgladding@w...>
        >
        >
        >
        > _____
        >
        > Yahoo! Groups Links
        >
        > * To visit your group on the web, go to:
        > http://groups.yahoo.com/group/soaplite/
        <http://groups.yahoo.com/group/soaplite/>
        >
        >
        > * To unsubscribe from this group, send an email to:
        > soaplite-unsubscribe@yahoogroups.com
        <mailto:soaplite-unsubscribe@yahoogroups.com?subject=Unsubscribe>
        >
        >
        > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
        Service <http://docs.yahoo.com/info/terms/> .
      • Christopher Parker
        ... are ... Since the namespaces *DO* differ, I m sure that s bound to make a difference somewhere. http://www.w3.org/1999/XMLSchema and
        Message 3 of 3 , Apr 30, 2004
        • 0 Attachment
          --- In soaplite@yahoogroups.com, "m_gladding" <mgladding@w...> wrote:
          > Any idea now? The only differences between how SOAP::Lite sends the
          > SOAP Statement and how the .Net application expects to receive it
          are
          > as follows:
          > SOAP::Lite has <soap:Envelope xmlns:xsi="http://www.w3.or
          > g/1999/XMLSchema-instance"
          > xmlns:xsd="http://www.w3.org/1999/XMLSchema" soap:enc
          > odingStyle="http://schemas.xmlsoap.org/soap/encoding/"
          > xmlns:soap="http://schema
          > s.xmlsoap.org/soap/envelope/">
          > for it's envelope tag... take note of the years (1999) and also the
          > encodingStyle Tag.
          >
          > This is how the .Net server expects the envelope tag to be:
          > <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
          > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
          > Note the year is now 2001 for the schema stuff, and there is no
          > encodingStyle...
          > Does anyone know if any of this would make a difference?

          Since the namespaces *DO* differ, I'm sure that's bound to make a
          difference somewhere. http://www.w3.org/1999/XMLSchema and
          http://www.w3.org/2001/XMLSchema (as well as the other difference)
          are two different strings. Therefore, they are two different XML
          namespaces.

          There's a chance that the two URLs do point to something, but that's
          merely a coincidence.

          If you can get the namespaces to match exactly, then I think you
          *MAY* have better results. Don't quote me, though, as I am still
          learning, myself. (Anyone care to correct me? Does the problem here
          lie elsewhere?)

          More information on XML namespaces:
          http://xml.oreilly.com/news/xmlnut2_0201.html

          HTH,

          --
          Parker
        Your message has been successfully submitted and would be delivered to recipients shortly.