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

Re: [soaplite] Re: Removing SOAPAction header

Expand Messages
  • Eric Bridger
    O.K. Try: on_action( sub {return undef;}) This worked for me. Eric
    Message 1 of 5 , Apr 4 8:21 AM
    • 0 Attachment
      O.K. Try: on_action( sub {return undef;})

      This worked for me.

      Eric


      On Tue, 2006-04-04 at 11:06, fdpgp wrote:
      > Thanks for your response. It was the first thing I tried, but the
      > result is an empty value for
      > the SOAPAction header which still appears in the request.
      >
      > ---
      > SOAP::Transport::HTTP::Client::send_receive: HTTP::
      > Request=HASH(0x1037f9f0)
      > SOAP::Transport::HTTP::Client::send_receive: POST http://... HTTP/1.1
      > Accept: text/xml
      > Accept: multipart/*
      > Accept: application/soap
      > Content-Length: 706
      > Content-Type: text/xml; charset=utf-8
      > SOAPAction:
      >
      > <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:xsi="http:/
      > /www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.
      > xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/
      > XMLSchema" soap:encodingStyle="http://schemas.xmlsoap.org/soap/
      > encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/
      > "><soap:Header><hr:Control xmlns:hr="http://...
      > ---
      >
      > Does anyone know a way to keep SOAPAction header from appearing on the
      > request?
      >
      > Thanks.
      >
      >
      > --- In soaplite@yahoogroups.com, Eric Bridger <eric@...> wrote:
      > >
      > > See the on_action() method.
      > > http://www.majordojo.com/soaplite/docs/SOAP/Lite.
      > html#OVERVIEW_OF_CLASSES_AND_PACKAGES
      > >
      > > E.g.
      > > $client = SOAP::Lite
      > > ->default_ns('urn:somenamespace')
      > > # To remove the HTTP SOAPAction header or define a new one.
      > > ->on_action( sub { return ''; })
      > > ->proxy('http://www.server.com/soap');
      > >
      > >
      > >
      > >
      > > On Tue, 2006-04-04 at 09:44, fdpgp wrote:
      > > > I am using SOAP::Lite 0.67 for the first time (as well as Perl).
      > > >
      > > > I am trying to call a web service which doesn't like SOAPAction
      > > > header, but works ok without it (tried it with wget).
      > > >
      > > > Is there any way to completely remove SOAPAction header from SOAP
      > > > request using SOAP::Lite?
      > > >
      > > > Thank you.
      > > >
      > > >
      > > >
      > > >
      > > >
      > > >
      > > > Yahoo! Groups Links
      > > >
      > > >
      > > >
      > > >
      > > >
      > >
      >
      >
      >
      >
      >
      >
      >
      > Yahoo! Groups Links
      >
      >
      >
      >
      >
    • fdpgp
      Bingo! That worked here too. Thank you. ... 1.1 ... xsi= http:/ ... schemas. ... the
      Message 2 of 5 , Apr 4 9:30 AM
      • 0 Attachment
        Bingo! That worked here too.

        Thank you.

        --- In soaplite@yahoogroups.com, Eric Bridger <eric@...> wrote:
        >
        > O.K. Try: on_action( sub {return undef;})
        >
        > This worked for me.
        >
        > Eric
        >
        >
        > On Tue, 2006-04-04 at 11:06, fdpgp wrote:
        > > Thanks for your response. It was the first thing I tried, but the
        > > result is an empty value for
        > > the SOAPAction header which still appears in the request.
        > >
        > > ---
        > > SOAP::Transport::HTTP::Client::send_receive: HTTP::
        > > Request=HASH(0x1037f9f0)
        > > SOAP::Transport::HTTP::Client::send_receive: POST http://... HTTP/
        1.1
        > > Accept: text/xml
        > > Accept: multipart/*
        > > Accept: application/soap
        > > Content-Length: 706
        > > Content-Type: text/xml; charset=utf-8
        > > SOAPAction:
        > >
        > > <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:
        xsi="http:/
        > > /www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://
        schemas.
        > > xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/
        > > XMLSchema" soap:encodingStyle="http://schemas.xmlsoap.org/soap/
        > > encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/
        > > "><soap:Header><hr:Control xmlns:hr="http://...
        > > ---
        > >
        > > Does anyone know a way to keep SOAPAction header from appearing on
        the
        > > request?
        > >
        > > Thanks.
      Your message has been successfully submitted and would be delivered to recipients shortly.