Skip Menu |
 

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

Report information
The Basics
Id: 75216
Status: open
Priority: 0/
Queue: SOAP-Lite

People
Owner: Nobody in particular
Requestors: Pat.O'Toole [...] bcnepa.com
Cc:
AdminCc:

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



Subject: SOAP1.2 envelope error
Date: Wed, 22 Feb 2012 10:05:09 -0500
To: <bug-SOAP-Lite [...] rt.cpan.org>
From: "O'Toole, Pat" <Pat.O'Toole [...] bcnepa.com>
Greetings, Thank you so much for supporting this.... I'm having an issue getting a valid soap1.2 Envelope created... It keeps giving us the encodingStyle for soap 1.1 Perl 5.12.3 Build: MSWin32-x86-multi-thread OS: WinXP SP3 Module: SOAP::LITE .714 Severity: Important Contact info: Pat O'Toole (pat.o'toole@bcnepa.com) 570-200-1527 (USA) Examples: =============example 1-- Soap1.1 (works fine) ================================ SOAP::Transport::HTTP::Client::send_receive: POST http://199.190.160.12:3213/Core HTTP/1.1 Accept: text/xml Accept: multipart/* Accept: application/soap Authorization: Basic YXBwMXN0YTpqYW4yMDEy Content-Length: 949 Content-Type: text/xml; charset=utf-8 SOAPAction: "http://199.190.160.12:3213/Core#COREEnvelopeBatchSubmissionAckRetrieval Request" <?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/"> =============example 2-- Soap1.2 (fails at webserver with "EncodingStyle not supported") ================================ SOAP::Transport::HTTP::Client::send_receive: POST http://199.190.160.12:3213/Core HTTP/1.1 Accept: text/xml Accept: multipart/* Accept: application/soap Authorization: Basic YXBwMXN0YTpqYW4yMDEy Content-Length: 1017 Content-Type: application/soap+xml; charset=utf-8 SOAPAction: "http://199.190.160.12:3213/Core#COREEnvelopeBatchSubmissionAckRetrieval Request" <?xml version="1.0" encoding="UTF-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://www.w3.org/2001/XMLSchema" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> ================Sample code==================: #!/usr/bin/perl -w use SOAP::Lite 'trace', 'debug'; my $server = SOAP::Lite # CICSDP1A ->readable('true') ->uri ('http://199.190.160.12:3213/Core') ->proxy('http://199.190.160.12:3213/Core'); my $authoriz = 'Basic YXBwMXN0YTpqYW4yMDEy'; $server->transport->http_request->headers->push_header('Authorization' => $authoriz); $server->soapversion('1.2'); $server->envprefix('soap12'); my $som = $server ->COREEnvelopeBatchSubmissionAckRetrievalRequest( SOAP::Data->name('ProcessingMode')->value('RealTime')->type(''), SOAP::Data->name('PayloadID')->value('payload id')->type(''), SOAP::Data->name('PayloadLength')->value(22)->type(''), SOAP::Data->name('TimeStamp')->value('2012-01-17T10:51:00-300')->type('' ), SOAP::Data->name('SenderID')->value('Sender ID')->type(''), SOAP::Data->name('ReceiverID')->value('Receiver ID')->type(''), SOAP::Data->name('CORERuleVersion')->value('2.2.0')->type(''), SOAP::Data->name('CheckSum')->value('2.2.0')->type(''), SOAP::Data->name('Payload')->value('<![CDATA[MTIzNDU=]]>')->type('') ); We currently don't have the webservice exposed [outside our firewall]... but I can run code if you need me to run anything for testing/debugging. CONFIDENTIALITY NOTICE: This message and any attachments originate by electronic mail from Blue Cross of Northeastern Pennsylvania, First Priority Health, AllOne Health Management Solutions, Inc. and their subsidiaries/affiliates ("BCNEPA"). Both this document and any attachments are intended for the sole use of the addressee indicated above and may contain proprietary, privileged and/or confidential information. If you are not the intended recipient of this message, you are hereby notified that any use or disclosure of this information is strictly prohibited. If you have received this transmission in error, please notify the sender by reply email and delete the original message immediately. Thank you for your cooperation.
Download (untitled) / with headers
text/plain 200b
Hi Pat, can you give an example of what encodingStyle would be expected in the envelope (or a hint at where to dig in the SOAP specs - haven't looked into 'em for some time). Best regards, 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.