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

unale to call from perl client

Expand Messages
  • Arun.Vennapusa@fmr.com
    I built normal hello world service. I am able to invoke from a client written in java. I am unable to call from perl. I am getting 400 bad resuest at line 7
    Message 1 of 5 , Sep 28, 2001
    • 0 Attachment
      I built normal hello world service.
      I am able to invoke from a client written in java.
      I am unable to call from perl.
      I am getting 400 bad resuest at line 7

      print SOAP::Lite
      ->uri('urn:Hello')
      ->proxy('http://155.1.163.210:8202/soap/servlet/rpcrouter')
      ->sayHelloTo("Arun")
      ->result();

      I am written a java client which works.
      Could some body help me .
      Thanks.
      Arun
    • Paul Kulchenko
      Hi, Arun! Don t see anything wrong with this code. I can t access your endpoint ... - on_debug(sub{print@_}) ... and send generated output to me. You can
      Message 2 of 5 , Sep 28, 2001
      • 0 Attachment
        Hi, Arun!

        Don't see anything wrong with this code. I can't access your endpoint
        to test it myself. Could you switch on debug with this:

        > print SOAP::Lite
        > ->uri('urn:Hello')
        > ->proxy('http://155.1.163.210:8202/soap/servlet/rpcrouter')
        ->on_debug(sub{print@_})
        > ->sayHelloTo("Arun")
        > ->result();

        and send generated output to me.

        You can always get fault info with code like this:

        my $res = SOAP::Lite
        ->uri('urn:Hello')
        ->proxy('http://155.1.163.210:8202/soap/servlet/rpcrouter')
        ->sayHelloTo("Arun");

        die $res->faultcode if $res->fault;
        print $res->result;

        Best wishes, Paul.

        --- Arun.Vennapusa@... wrote:
        > I built normal hello world service.
        > I am able to invoke from a client written in java.
        > I am unable to call from perl.
        > I am getting 400 bad resuest at line 7
        >
        > print SOAP::Lite
        > ->uri('urn:Hello')
        > ->proxy('http://155.1.163.210:8202/soap/servlet/rpcrouter')
        > ->sayHelloTo("Arun")
        > ->result();
        >
        > I am written a java client which works.
        > Could some body help me .
        > Thanks.
        > Arun
        >
        >
        >
        > To unsubscribe from this group, send an email to:
        > soaplite-unsubscribe@yahoogroups.com
        >
        >
        >
        > Your use of Yahoo! Groups is subject to
        > http://docs.yahoo.com/info/terms/
        >
        >


        __________________________________________________
        Do You Yahoo!?
        Listen to your Yahoo! Mail messages from any phone.
        http://phone.yahoo.com
      • Arun.Vennapusa@fmr.com
        Hi Paul, I followed your advice. This is the output //////// POST http://155.1.163.210:8202/soap/servlet/rpcrouter Accept: text/xml Accept: multipart/*
        Message 3 of 5 , Sep 28, 2001
        • 0 Attachment
          Hi Paul,
          I followed your advice.
          This is the output

          ////////
          POST http://155.1.163.210:8202/soap/servlet/rpcrouter
          Accept: text/xml
          Accept: multipart/*
          Content-Length: 508
          Content-Type: text/xml; charset=utf-8
          SOAPAction: "urn:Hello#sayHelloTo"

          <?xml version="1.0" encoding="UTF-8"?><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><namesp1:s
          ayHelloTo xmlns:namesp1="urn:Hello"><c-gensym3
          xsi:type="xsd:string">Arun</c-gensym3></namesp1:sayHelloTo></SOAP-ENV:
          Body></SOAP-ENV:Envelope>
          HTTP/1.0 400 Bad Request
          Cache-Control: no-cache="set-cookie,set-cookie2"
          Connection: close
          Date: Fri, 28 Sep 2001 15:13:19 GMT
          Server: JRun Web Server/3.0
          Content-Length: 120
          Content-Type: text/html
          Expires: Thu, 01 Dec 1994 16:00:00 GMT
          Client-Date: Fri, 28 Sep 2001 15:13:06 GMT
          Client-Peer: 155.200.45.12:8000
          Set-Cookie: jsessionid=3244301001689999542;path=/
          Title: JRun Servlet Error

          <head><title>JRun Servlet Error</title></head><h1>400 Bad
          Request</h1><body>
          Content type must be: 'text/xml'.</body>

          //////

          Thanks.
          Arun




          -



          -- In soaplite@y..., Paul Kulchenko <paulclinger@y...> wrote:
          > Hi, Arun!
          >
          > Don't see anything wrong with this code. I can't access your
          endpoint
          > to test it myself. Could you switch on debug with this:
          >
          > > print SOAP::Lite
          > > ->uri('urn:Hello')
          > > ->proxy('http://155.1.163.210:8202/soap/servlet/rpcrouter')
          > ->on_debug(sub{print@_})
          > > ->sayHelloTo("Arun")
          > > ->result();
          >
          > and send generated output to me.
          >
          > You can always get fault info with code like this:
          >
          > my $res = SOAP::Lite
          > ->uri('urn:Hello')
          > ->proxy('http://155.1.163.210:8202/soap/servlet/rpcrouter')
          > ->sayHelloTo("Arun");
          >
          > die $res->faultcode if $res->fault;
          > print $res->result;
          >
          > Best wishes, Paul.
          >
          > --- Arun.Vennapusa@f... wrote:
          > > I built normal hello world service.
          > > I am able to invoke from a client written in java.
          > > I am unable to call from perl.
          > > I am getting 400 bad resuest at line 7
          > >
          > > print SOAP::Lite
          > > ->uri('urn:Hello')
          > > ->proxy('http://155.1.163.210:8202/soap/servlet/rpcrouter')
          > > ->sayHelloTo("Arun")
          > > ->result();
          > >
          > > I am written a java client which works.
          > > Could some body help me .
          > > Thanks.
          > > Arun
          > >
          > >
          > >
          > > To unsubscribe from this group, send an email to:
          > > soaplite-unsubscribe@y...
          > >
          > >
          > >
          > > Your use of Yahoo! Groups is subject to
          > > http://docs.yahoo.com/info/terms/
          > >
          > >
          >
          >
          > __________________________________________________
          > Do You Yahoo!?
          > Listen to your Yahoo! Mail messages from any phone.
          > http://phone.yahoo.com
        • Paul Kulchenko
          Hi, Arun! ... Apache SOAP sends ... Looks like you re using old version of ApacheSOAP that doesn t understand charset in content-type. You can switch it off in
          Message 4 of 5 , Sep 28, 2001
          • 0 Attachment
            Hi, Arun!

            SOAP::Lite sends:
            > Content-Type: text/xml; charset=utf-8

            Apache SOAP sends
            > Content type must be: 'text/xml'.</body>

            Looks like you're using old version of ApacheSOAP that doesn't
            understand charset in content-type. You can switch it off in client
            code with:

            use SOAP::Lite;
            $SOAP::Constants::DO_NOT_USE_CHARSET = 1;

            or upgrade your ApacheSOAP server. Hope it helps.

            Best wishes, Paul.

            --- Arun.Vennapusa@... wrote:
            > Hi Paul,
            > I followed your advice.
            > This is the output
            >
            > ////////
            > POST http://155.1.163.210:8202/soap/servlet/rpcrouter
            > Accept: text/xml
            > Accept: multipart/*
            > Content-Length: 508
            > Content-Type: text/xml; charset=utf-8
            > SOAPAction: "urn:Hello#sayHelloTo"
            >
            > <?xml version="1.0" encoding="UTF-8"?><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><namesp1:s
            > ayHelloTo xmlns:namesp1="urn:Hello"><c-gensym3
            >
            xsi:type="xsd:string">Arun</c-gensym3></namesp1:sayHelloTo></SOAP-ENV:
            > Body></SOAP-ENV:Envelope>
            > HTTP/1.0 400 Bad Request
            > Cache-Control: no-cache="set-cookie,set-cookie2"
            > Connection: close
            > Date: Fri, 28 Sep 2001 15:13:19 GMT
            > Server: JRun Web Server/3.0
            > Content-Length: 120
            > Content-Type: text/html
            > Expires: Thu, 01 Dec 1994 16:00:00 GMT
            > Client-Date: Fri, 28 Sep 2001 15:13:06 GMT
            > Client-Peer: 155.200.45.12:8000
            > Set-Cookie: jsessionid=3244301001689999542;path=/
            > Title: JRun Servlet Error
            >
            > <head><title>JRun Servlet Error</title></head><h1>400 Bad
            > Request</h1><body>
            > Content type must be: 'text/xml'.</body>
            >
            > //////
            >
            > Thanks.
            > Arun
            >
            >
            >
            >
            > -
            >
            >
            >
            > -- In soaplite@y..., Paul Kulchenko <paulclinger@y...> wrote:
            > > Hi, Arun!
            > >
            > > Don't see anything wrong with this code. I can't access your
            > endpoint
            > > to test it myself. Could you switch on debug with this:
            > >
            > > > print SOAP::Lite
            > > > ->uri('urn:Hello')
            > > > ->proxy('http://155.1.163.210:8202/soap/servlet/rpcrouter')
            > > ->on_debug(sub{print@_})
            > > > ->sayHelloTo("Arun")
            > > > ->result();
            > >
            > > and send generated output to me.
            > >
            > > You can always get fault info with code like this:
            > >
            > > my $res = SOAP::Lite
            > > ->uri('urn:Hello')
            > > ->proxy('http://155.1.163.210:8202/soap/servlet/rpcrouter')
            > > ->sayHelloTo("Arun");
            > >
            > > die $res->faultcode if $res->fault;
            > > print $res->result;
            > >
            > > Best wishes, Paul.
            > >
            > > --- Arun.Vennapusa@f... wrote:
            > > > I built normal hello world service.
            > > > I am able to invoke from a client written in
            > java.
            > > > I am unable to call from perl.
            > > > I am getting 400 bad resuest at line 7
            > > >
            > > > print SOAP::Lite
            > > > ->uri('urn:Hello')
            > > > ->proxy('http://155.1.163.210:8202/soap/servlet/rpcrouter')
            > > > ->sayHelloTo("Arun")
            > > > ->result();
            > > >
            > > > I am written a java client which works.
            > > > Could some body help me .
            > > > Thanks.
            > > > Arun
            > > >
            > > >
            > > >
            > > > To unsubscribe from this group, send an email to:
            > > > soaplite-unsubscribe@y...
            > > >
            > > >
            > > >
            > > > Your use of Yahoo! Groups is subject to
            > > > http://docs.yahoo.com/info/terms/
            > > >
            > > >
            > >
            > >
            > > __________________________________________________
            > > Do You Yahoo!?
            > > Listen to your Yahoo! Mail messages from any phone.
            > > http://phone.yahoo.com
            >
            >
            > To unsubscribe from this group, send an email to:
            > soaplite-unsubscribe@yahoogroups.com
            >
            >
            >
            > Your use of Yahoo! Groups is subject to
            > http://docs.yahoo.com/info/terms/
            >
            >


            __________________________________________________
            Do You Yahoo!?
            Listen to your Yahoo! Mail messages from any phone.
            http://phone.yahoo.com
          • Arun.Vennapusa@fmr.com
            Thanks. Hi Paul, It works after upgradation. Thanks. Arun- ... xmlns:xsd= http://www.w3.org/1999/XMLSchema
            Message 5 of 5 , Sep 28, 2001
            • 0 Attachment
              Thanks.
              Hi Paul,
              It works after upgradation.
              Thanks.
              Arun-


              -- In soaplite@y..., Paul Kulchenko <paulclinger@y...> wrote:
              > Hi, Arun!
              >
              > SOAP::Lite sends:
              > > Content-Type: text/xml; charset=utf-8
              >
              > Apache SOAP sends
              > > Content type must be: 'text/xml'.</body>
              >
              > Looks like you're using old version of ApacheSOAP that doesn't
              > understand charset in content-type. You can switch it off in client
              > code with:
              >
              > use SOAP::Lite;
              > $SOAP::Constants::DO_NOT_USE_CHARSET = 1;
              >
              > or upgrade your ApacheSOAP server. Hope it helps.
              >
              > Best wishes, Paul.
              >
              > --- Arun.Vennapusa@f... wrote:
              > > Hi Paul,
              > > I followed your advice.
              > > This is the output
              > >
              > > ////////
              > > POST http://155.1.163.210:8202/soap/servlet/rpcrouter
              > > Accept: text/xml
              > > Accept: multipart/*
              > > Content-Length: 508
              > > Content-Type: text/xml; charset=utf-8
              > > SOAPAction: "urn:Hello#sayHelloTo"
              > >
              > > <?xml version="1.0" encoding="UTF-8"?><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><namesp1:s
              > > ayHelloTo xmlns:namesp1="urn:Hello"><c-gensym3
              > >
              >
              xsi:type="xsd:string">Arun</c-gensym3></namesp1:sayHelloTo></SOAP-ENV:
              > > Body></SOAP-ENV:Envelope>
              > > HTTP/1.0 400 Bad Request
              > > Cache-Control: no-cache="set-cookie,set-cookie2"
              > > Connection: close
              > > Date: Fri, 28 Sep 2001 15:13:19 GMT
              > > Server: JRun Web Server/3.0
              > > Content-Length: 120
              > > Content-Type: text/html
              > > Expires: Thu, 01 Dec 1994 16:00:00 GMT
              > > Client-Date: Fri, 28 Sep 2001 15:13:06 GMT
              > > Client-Peer: 155.200.45.12:8000
              > > Set-Cookie: jsessionid=3244301001689999542;path=/
              > > Title: JRun Servlet Error
              > >
              > > <head><title>JRun Servlet Error</title></head><h1>400 Bad
              > > Request</h1><body>
              > > Content type must be: 'text/xml'.</body>
              > >
              > > //////
              > >
              > > Thanks.
              > > Arun
              > >
              > >
              > >
              > >
              > > -
              > >
              > >
              > >
              > > -- In soaplite@y..., Paul Kulchenko <paulclinger@y...> wrote:
              > > > Hi, Arun!
              > > >
              > > > Don't see anything wrong with this code. I can't access your
              > > endpoint
              > > > to test it myself. Could you switch on debug with this:
              > > >
              > > > > print SOAP::Lite
              > > > > ->uri('urn:Hello')
              > > > >
              ->proxy('http://155.1.163.210:8202/soap/servlet/rpcrouter')
              > > > ->on_debug(sub{print@_})
              > > > > ->sayHelloTo("Arun")
              > > > > ->result();
              > > >
              > > > and send generated output to me.
              > > >
              > > > You can always get fault info with code like this:
              > > >
              > > > my $res = SOAP::Lite
              > > > ->uri('urn:Hello')
              > > > ->proxy('http://155.1.163.210:8202/soap/servlet/rpcrouter')
              > > > ->sayHelloTo("Arun");
              > > >
              > > > die $res->faultcode if $res->fault;
              > > > print $res->result;
              > > >
              > > > Best wishes, Paul.
              > > >
              > > > --- Arun.Vennapusa@f... wrote:
              > > > > I built normal hello world service.
              > > > > I am able to invoke from a client written in
              > > java.
              > > > > I am unable to call from perl.
              > > > > I am getting 400 bad resuest at line 7
              > > > >
              > > > > print SOAP::Lite
              > > > > ->uri('urn:Hello')
              > > > >
              ->proxy('http://155.1.163.210:8202/soap/servlet/rpcrouter')
              > > > > ->sayHelloTo("Arun")
              > > > > ->result();
              > > > >
              > > > > I am written a java client which works.
              > > > > Could some body help me .
              > > > > Thanks.
              > > > > Arun
              > > > >
              > > > >
              > > > >
              > > > > To unsubscribe from this group, send an email to:
              > > > > soaplite-unsubscribe@y...
              > > > >
              > > > >
              > > > >
              > > > > Your use of Yahoo! Groups is subject to
              > > > > http://docs.yahoo.com/info/terms/
              > > > >
              > > > >
              > > >
              > > >
              > > > __________________________________________________
              > > > Do You Yahoo!?
              > > > Listen to your Yahoo! Mail messages from any phone.
              > > > http://phone.yahoo.com
              > >
              > >
              > > To unsubscribe from this group, send an email to:
              > > soaplite-unsubscribe@y...
              > >
              > >
              > >
              > > Your use of Yahoo! Groups is subject to
              > > http://docs.yahoo.com/info/terms/
              > >
              > >
              >
              >
              > __________________________________________________
              > Do You Yahoo!?
              > Listen to your Yahoo! Mail messages from any phone.
              > http://phone.yahoo.com
            Your message has been successfully submitted and would be delivered to recipients shortly.