burgerc has asked for the wisdom of the Perl Monks concerning the following question:

I'm having trouble accessing a soap web service on a .net server. I'm gettting a 406 error, here is a link to the error.

http://support.microsoft.com/kb/251215

I'm thinking I need to change the accept language header but not sure how to do that with soap lite.

Appreciate any ideas

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

Replies are listed 'Best First'.
Re: How to change Accept-Language header with soap::lite
by Anonymous Monk on Dec 19, 2013 at 18:04 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();