0 Replies Latest reply on Oct 1, 2012 3:54 AM by Robert Dołęga

    Web Services - endpoint

      Hi,

       

      I'm trying to use Bladelogic's WS from Perl (soap:lite module) .

      My AppServer instalce (conf type) got ports from 9500.

       

      Using soapUI i can send such soap to endpoint https://app1:9543/services/LoginService

       

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://bladelogic.com/webservices/framework/xsd" xmlns:log="http://bladelogic.com/webservices/skeleton/login">

         <soapenv:Header>

            <xsd:transactionId>?</xsd:transactionId>

         </soapenv:Header>

         <soapenv:Body>

            <log:loginUsingUserCredential>

               <!--Optional:-->

               <log:userName>user</log:userName>

               <!--Optional:-->

               <log:password>pass</log:password>

               <!--Optional:-->

               <log:authenticationType>SRP</log:authenticationType>

            </log:loginUsingUserCredential>

         </soapenv:Body>

      </soapenv:Envelope>

       

      And it works.

       

      But in case of using such perl code:

       

      use SOAP::Lite +trace;

      $ENV{PERL_LWP_SSL_VERIFY_HOSTNAME}=0;

      my $soap_response = SOAP::Lite

          ->service('https://app1:9543/services/BSALoginService.wsdl')

                ->uri('https://app1:9543/services/LoginService');

       

      I receive error

       

      SOAP::Transport::HTTP::Client::send_receive: HTTP::Response=HASH(0x141298c)

      SOAP::Transport::HTTP::Client::send_receive: 500 Can't connect to localhost:9843 (No connection could be made because the target machine actively refused it.)

      Content-Type: text/plain

      Client-Date: Mon, 01 Oct 2012 08:32:04 GMT

      Client-Warning: Internal response

       

      Can't connect to localhost:9843 (No connection could be made because the targetmachine actively refused it.)

       

      LWP::Protocol::https::Socket: connect: No connection could be made because the target machine actively refused it. at C:/Perl/lib/LWP/Protocol/http.pm line 51.

      SOAP::Deserializer::deserialize: ()

      SOAP::Parser::decode: ()

      500 Can't connect to localhost:9843 (No connection could be made because the target machine actively refused it.) at test.pl line 21

       

      Why script attmpt to connect to localhost on 9843 port ?

       

      1 hint - I see in source view-source:https://app1:9543/services/BSALoginService.wsdl such node

       

      <wsdl:service name="LoginService">

                <wsdl:documentation>

                        The Soap 1.1 endpoint for the LoginService

                </wsdl:documentation>

                <wsdl:port name="LoginServiceHttpSoap11Endpoint" binding="bladelogicNamespace:LoginServiceSoap11Binding">

                          <soap:address location="https://localhost:9843/services/LoginService"/>

                </wsdl:port>

      </wsdl:service>

       

       

      Maybe this is answer/problem, how to change it?