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

Re: HTTP Basic Auth problem with SOAP::Lite

Expand Messages
  • madhukar_sinha
    Hello Paul Thanks a lot, i will check on it. Also thanks for telling me about soaplite s usergroup Regards Madhukar ... below. ... problems. ... maillist ...
    Message 1 of 3 , Jun 19, 2002
    View Source
    • 0 Attachment
      Hello Paul

      Thanks a lot, i will check on it. Also thanks for telling me about
      soaplite's usergroup

      Regards
      Madhukar

      --- In soapbuilders@y..., Paul Kulchenko <paulclinger@y...> wrote:
      > Hi, Madhukar!
      >
      > > I am getting an error in authentication as the TRACE shows
      below.
      > Most likely that means you don't have LWP::Authen::Basic module
      > installed. As soon as you install it you shouldn't have any
      problems.
      > Please send your SOAP::Lite-specific questions to SOAP::Lite
      maillist
      > (http://groups.yahoo.com/group/soaplite/).
      >
      > Best wishes, Paul.
      >
      > --- "Sinha, Madhukar [IT]" <madhukar.sinha@c...> wrote:
      > >
      > > Please help me solve this --
      > >
      > > Hi,
      > >
      > > I am getting an error in authentication as the TRACE shows
      below.
      > >
      > >
      > > I am using a Soap::Lite based Perl client accessing Apache Soap
      > > based java
      > > service.
      > >
      > > i pass the username password in get_basic_credentials method as
      > > specified in
      > > Guide of SoapLite
      > >
      > > The perl client works from one machine but if i use same perl
      > > client from
      > > another machine it gives this error.
      > >
      > > I even tried passing credentials within proxy as specified in
      > > Guide, and
      > > still it failed.
      > >
      > > here is the extract of code from my perl client
      > >
      > > _____________________________________________________
      > >
      > > $dateObj = SOAP::Data->type(string => $date);
      > >
      > > my $s = SOAP::Lite
      > > -> uri('urn:MuniRiskLimits')
      > > #->
      > >
      > proxy
      ('http://webgmsn1d.ny.ssmb.com:10003/riskmaster/servlet/rpcrouter',
      > > credentials=>['webgmsn1d.ny.ssmb.com:10003', 'Riskmaster',
      > > 'username' =>
      > > 'password'])
      > > ->
      > >
      > proxy
      ('http://webgmsn1d.ny.ssmb.com:10003/riskmaster/servlet/rpcrouter')
      > > -> on_fault(sub { my($soap, $res) = @_; die ref
      > > $res ?
      > > $res->faultstring : $soap->transport->status, "\n"; })
      > > -> getMuniRiskLimits($dateObj);
      > >
      > > sub SOAP::Transport::HTTP::Client::get_basic_credentials {
      > > return 'username' => 'password';
      > > }
      > >
      > >
      > --------------------------------------------------------------------
      --------
      > > ----------------------------------------------------------
      > >
      > > here is Trace for the call from perl client
      > >
      > > ########################################################
      > >
      > > SOAP::Data::new: ()
      > > SOAP::Transport::new: ()
      > > SOAP::Serializer::new: ()
      > > SOAP::Deserializer::new: ()
      > > SOAP::Parser::new: ()
      > > SOAP::Lite::new: ()
      > > SOAP::Transport::HTTP::Client::new: ()
      > > SOAP::Lite::call: ()
      > > SOAP::Serializer::envelope: ()
      > > SOAP::Serializer::envelope: getMuniRiskLimits
      > > SOAP::Data=HASH(0x2010b4)
      > > SOAP::Data::new: ()
      > > SOAP::Data::new: ()
      > > SOAP::Data::new: ()
      > > SOAP::Data::new: ()
      > > SOAP::Data::new: ()
      > > SOAP::Transport::HTTP::Client::send_receive:
      > > HTTP::Request=HASH(0x486280)
      > > SOAP::Transport::HTTP::Client::send_receive: POST
      > > http://webgmsn1d.ny.ssmb.com:10003/riskmaster/servlet/rpcrouter
      > > Accept: text/xml
      > > Accept: multipart/*
      > > Content-Length: 535
      > > Content-Type: text/xml; charset=utf-8
      > > SOAPAction: "urn:MuniRiskLimits#getMuniRiskLimits"
      > >
      > > <?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:xsd="http://www.w3.org/1999/XMLSchema"
      > > SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      > >
      > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-
      ENV:Body><n
      > > amesp1:getMuniRiskLimits
      > > xmlns:namesp1="urn:MuniRiskLimits"><c-gensym3
      > >
      > xsi:type="xsd:string">20020617</c-
      gensym3></namesp1:getMuniRiskLimits></SOAP
      > > -ENV:Body></SOAP-ENV:Envelope>
      > > SOAP::Transport::HTTP::Client::send_receive:
      > > HTTP::Response=HASH(0x528be4)
      > > SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 401
      > > Unauthorized
      > > Connection: close
      > > Date: Wed, 19 Jun 2002 21:49:47 GMT
      > > Server: Netscape-Enterprise/4.1
      > > WWW-Authenticate: Basic realm="Riskmaster"
      > > Content-Length: 223
      > > Content-Type: text/html
      > > Client-Date: Wed, 19 Jun 2002 21:49:50 GMT
      > > Client-Peer: 162.124.158.29:10003
      > > Client-Warning: Unsupport authentication scheme 'basic'
      > > Title: Unauthorized
      > >
      > > <HTML><HEAD><TITLE>Unauthorized</TITLE></HEAD>
      > > <BODY><H1>Unauthorized</H1>
      > > Proper authorization is required for this area. Either your
      browser
      > > does not
      > > perform authorization, or your authorization has failed.
      > > </BODY></HTML>
      > > SOAP::Deserializer::deserialize: ()
      > > SOAP::Parser::decode: ()
      > > SOAP::SOM::new: ()
      > >
      > > SOAP::Lite::DESTROY: ()
      > > SOAP::Deserializer::DESTROY: ()
      > > SOAP::Parser::DESTROY: ()
      > > SOAP::SOM::DESTROY: ()
      > > SOAP::Transport::DESTROY: ()
      > > SOAP::Transport::HTTP::Client::DESTROY: ()
      > > SOAP::Serializer::DESTROY: ()
      > > SOAP::Data::DESTROY: ()
      > > SOAP::Data::DESTROY: ()
      > > SOAP::Data::DESTROY: ()
      > > SOAP::Data::DESTROY: ()
      > > SOAP::Data::DESTROY: ()
      > > SOAP::Data::DESTROY: ()
      > >
      > >
      >
      ######################################################################
      ######
      > > ################
      > >
      > >
      > > i checked my perl Libs/Modules .. they seem fine ( also the error
      > > seems to
      > > be coming from LWP:UserAgent Module ) . could you help me out? as
      > > to why
      > > this "client warning is coming"?
      > >
      > >
      > > Please help
      > >
      > > Reagrds
      > > MS
      > >
      > >
      > > ------------------------ Yahoo! Groups Sponsor
      > >
      > > -----------------------------------------------------------------
      > > This group is a forum for builders of SOAP implementations to
      > > discuss implementation and interoperability issues. Please stay
      > > on-topic.
      > >
      > > To unsubscribe from this group, send an email to:
      > > soapbuilders-unsubscribe@y...
      > >
      > >
      > >
      > > Your use of Yahoo! Groups is subject to
      > > http://docs.yahoo.com/info/terms/
      > >
      > >
      >
      >
      > __________________________________________________
      > Do You Yahoo!?
      > Yahoo! - Official partner of 2002 FIFA World Cup
      > http://fifaworldcup.yahoo.com
    Your message has been successfully submitted and would be delivered to recipients shortly.