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

AW: [soaplite] Problem with request [2 Attachments]

Expand Messages
  • Martin Busik
    Hi Paolo, ... my $proxy = SOAP::Lite- proxy( http:/192.168.1.1/:20000 ); # Endpoint, defined in your wsdl my $TNS_NS = http://www.gruppounieuro.com/wsdl ; my
    Message 1 of 5 , Nov 15, 2009
    • 0 Attachment
      Hi Paolo,

      > Is there someone that could provide me some sample code for
      > this request ?

      my $proxy = SOAP::Lite->proxy('http:/192.168.1.1/:20000'); # Endpoint,
      defined in your wsdl

      my $TNS_NS = "http://www.gruppounieuro.com/wsdl";
      my $TEMPURI_NS = "http://tempuri.org";

      $proxy->serializer->register_ns($TNS_NS);
      $proxy->serializer->register_ns($TEMPURI_NS);

      my $tnsprefix = $proxy->serializer->find_prefix($TNS_NS);
      my $tempuriprefix = $proxy->serializer->find_prefix($TEMPURI_NS);

      my $response = $proxy->call(
      "$tnsprefix:S_IntCli",

      SOAP::Data->name('Cogn')->value('ANITA')->type("$tempuriprefix:scastring.wit
      hnull"),

      SOAP::Data->name('Nome')->value('CALLIKU')->type("$tempuriprefix:scastring.w
      ithnull"),

      SOAP::Data->name('Cap')->value('17055')->type("$tempuriprefix:scastring.with
      null"),

      SOAP::Data->name('P_iva')->value('')->type("$tempuriprefix:scastring.withnul
      l"),
      );

      Cheers,
      Martin
    • Paolo Asioli
      Hi, Martin. Sorry to bother still, but looks like the perl module isn t geting the hostname correctly. I get this error Client-Warning: Internal response 500
      Message 2 of 5 , Nov 16, 2009
      • 0 Attachment
        Hi, Martin.

        Sorry to bother still, but looks like the perl module isn't geting the hostname correctly.

        I get this error
        Client-Warning: Internal response

        500 Can't connect to :80 (Bad hostname '')

        But the code you gave me seems perfect... do you have any suggestions ? I'm running SOAP::Lite 0.69

        Thanks again.

        Paolo


        Martin Busik ha scritto:
         

        Hi Paolo,

        > Is there someone that could provide me some sample code for
        > this request ?

        my $proxy = SOAP::Lite-> proxy('http: /192.168. 1.1/:20000' ); # Endpoint,
        defined in your wsdl

        my $TNS_NS = "http://www.gruppoun ieuro.com/ wsdl";
        my $TEMPURI_NS = "http://tempuri. org";

        $proxy->serializer- >register_ ns($TNS_NS) ;
        $proxy->serializer- >register_ ns($TEMPURI_ NS);

        my $tnsprefix = $proxy->serializer- >find_prefix( $TNS_NS);
        my $tempuriprefix = $proxy->serializer- >find_prefix( $TEMPURI_ NS);

        my $response = $proxy->call(
        "$tnsprefix: S_IntCli" ,

        SOAP::Data-> name('Cogn' )->value( 'ANITA')- >type("$tempurip refix:scastring. wit
        hnull"),

        SOAP::Data-> name('Nome' )->value( 'CALLIKU' )->type(" $tempuriprefix: scastring. w
        ithnull"),

        SOAP::Data-> name('Cap' )->value( '17055')- >type("$tempurip refix:scastring. with
        null"),

        SOAP::Data-> name('P_iva' )->value( '')->type( "$tempuriprefix: scastring. withnul
        l"),
        );

        Cheers,
        Martin


      • Martin Busik
        Hi Paolo, ... my $proxy = SOAP::Lite- proxy( http:/192.168.1.1/:20000 ); Invalid url is the problem. It should be propably http://192.168.1.1:20000/ I ve
        Message 3 of 5 , Nov 16, 2009
        • 0 Attachment
          Hi Paolo,

          > Sorry to bother still, but looks like the perl module isn't
          > geting the hostname correctly.
          >
          > I get this error
          > Client-Warning: Internal response
          >
          > 500 Can't connect to :80 (Bad hostname '')

          my $proxy = SOAP::Lite->proxy('http:/192.168.1.1/:20000');

          Invalid url is the problem.
          It should be propably 'http://192.168.1.1:20000/'

          I've copied the above string from the wsdl you've uploaded to the list.
          There comes
          the error from.

          Cheers,
          Martin
        • Paolo Asioli
          Now it s working. Also, I had a single slash between http: and the IP. Thank you very much for your help !!!!!! Cheers, Paolo ... -- *Ing. Paolo Asioli*
          Message 4 of 5 , Nov 16, 2009
          • 0 Attachment
            Now it's working. Also, I had a single slash between http: and the IP.

            Thank you very much for your help !!!!!!

            Cheers,
                Paolo




            Martin Busik ha scritto:
            Hi Paolo,
             
              
            Sorry to bother still, but looks like the perl module isn't 
            geting the hostname correctly.
            
            I get this error
            Client-Warning: Internal response
            
            500 Can't connect to :80 (Bad hostname '')
                
            my $proxy = SOAP::Lite->proxy('http:/192.168.1.1/:20000');
            
            Invalid url is the problem.
            It should be propably  'http://192.168.1.1:20000/'
            
            I've copied the above string from the wsdl you've uploaded to the list.
            There comes
            the error from.
            
            Cheers,
            Martin
            
            
              

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