in reply to How to change Accept-Language header with soap::lite

*LOL*

I have copy/paste for you :)

My soap tips (I hate soap), SOAP::Lite is too much work, SOAP::Simple is less work (but its simple, when stuck go to XML::Compile::SOAP, more verbose, but you want verbose with SOAP ) ... its built on XML::Compile::SOAP/http://perl.overmeer.net/xml-compile/#doc , see my treasure trove of soap examples and lost knowledge,$soap->transport->add_handler("request_send", \&pp_dump );, http://cookbook.soaplite.com/, SOAP endpoint , Re^3: SOAP::Lite login setup, Re: I do not understand how to write a SOAP server., An XML Overview Towards Understanding SOAP, Re^3: SOAP::Lite and custom envelopes, The XML FIles: Understanding XML Namespaces, How to Call a .NET-based Web Service Using the SOAP::Lite Perl Library (2002 )

  • Comment on Re: How to change Accept-Language header with soap::lite

Replies are listed 'Best First'.
Re^2: How to change Accept-Language header with soap::lite ($soap->transport)
by Anonymous Monk on Dec 19, 2013 at 18:07 UTC
Re^2: How to change Accept-Language header with soap::lite
by burgerc (Novice) on Dec 19, 2013 at 18:10 UTC
    I found this all ready, and have perused quite thoroughly, however have not found anything that lets me know how to change the accept header to remove the multipart/* as I believe that is causing the problem.

    But I wall have a look again.

      Sorry this was in responce to your first reply. How would I use LWP:UserAgent in my code listed below.
      #!/usr/local/bin/perl -w use SOAP::Lite 'trace', 'debug', on_action => sub {sprintf '%s/%s', @_ +}; use SOAP::Transport::HTTP; my $client = SOAP::Lite ->readable(1) ->uri('https://www.venturetest.com') ->proxy('https://www.venturetest.com/getpdfservice/testgetpdf.asmx +') ; $client->TestGetPDF();
        I have tried something like this
        $client->transport->default_header('Accept-Encoding' => '');
        but doesn't seem to do anything.

        the error from .net is

        HTTP Error 406 - Client browser does not accept the MIME type of the requested page.
        Internet Information Services (IIS)