Skip Menu |
 

This queue is for tickets about the SOAP-Lite CPAN distribution.

Report information
The Basics
Id: 37906
Status: rejected
Priority: 0/
Queue: SOAP-Lite

People
Owner: Nobody in particular
Requestors: raherh [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.710.08
Fixed in: (no value)



Subject: do_not_check_content_type
Download (untitled) / with headers
text/plain 446b
In the client I set $SOAP::Constants::DO_NOT_CHECK_CONTENT_TYPE = 1; $soap->soapversion('1.2'); and am receiving the faultstring <soap:Fault><faultcode>soap:Client</faultcode><faultstring>Content-Type must be 'text/xml,' 'multipart/*,' or 'application/dime' instead of 'application/soap'</faultstring><faultactor>http://myhost/</ Show quoted text
faultactor></soap:Fault>
I looked into the source but couldn't find anything to work with this constant. Radek
Download (untitled) / with headers
text/plain 329b
Hi, this looks like the server doesn't like the content-type sent by SOAP::Lite. You can set it by manipulating the HTTP::Header object with something like $client->proxy('http://localhost/cgi-bin/service.cgi')->uri('urn:someservice'); $client->transport->http_request ->header('Content-type' => 'foo/xml'); Regards, Martin
From: raherh [...] gmail.com
Download (untitled) / with headers
text/plain 651b
On Thu Aug 14 11:21:18 2008, MKUTTER wrote: Show quoted text
> Hi, > > this looks like the server doesn't like the content-type sent by > SOAP::Lite. > > You can set it by manipulating the HTTP::Header object with something > like > > > $client->proxy('http://localhost/cgi-bin/service.cgi')-
> >uri('urn:someservice');
> $client->transport->http_request ->header('Content-type' => > 'foo/xml'); >
Yes I can manipulate the HTTP::Headers object. I wanted to demonstrate that the $DO_NOT_CHECK_CONTENT_TYPE doesn't work. Shouldn't it be excluded from the SOAP::Constants docs? Also, is it possible to set the SOAP::Lite server for soapversion 1.2? Many thanks.
Download (untitled) / with headers
text/plain 500b
Am Fr 15. Aug 2008, 15:00:19, rahe schrieb: Show quoted text
> On Thu Aug 14 11:21:18 2008, MKUTTER wrote:
> > this looks like the server doesn't like the content-type sent by > > SOAP::Lite.
> Yes I can manipulate the HTTP::Headers object. I wanted to demonstrate > that the $DO_NOT_CHECK_CONTENT_TYPE doesn't work. Shouldn't it be > excluded from the SOAP::Constants docs?
Setting $DO_NOT_CHECK_CONTENT_TYPE in the client means that the response is checked. It does not have any influence on the server. Martin


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.