Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Question about SOAP implementation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about SOAP implementation



Here's Mathieu Longtin's patch for SOAP::Lite 0.55 that gets around the Unicode issue:

--- SOAP/Lite.pm.orig Fri Dec 27 22:54:42 2002
+++ SOAP/Lite.pm Sun Jan 5 13:12:06 2003
@@ -1284,7 +1284,14 @@
sub end {
my $self = shift;
my $done = pop @{$self->{_values}};
- $done->[2] = defined $done->[3] ? join('',@{$done->[3]}) : '' unless ref $done->[2];
+ unless ( ref $done->[2] ) {
+ if ( defined $done->[3] ) {
+ $done->[2] = shift @{$done->[3]};
+ foreach ( @{$done->[3]} ) { $done->[2] .= $_; }
+ } else {
+ $done->[2] = '';
+ }
+ }
undef $done->[3];
@{$self->{_values}} ? (push @{$self->{_values}->[-1]->[2]}, $done)
: ($self->{_done} = $done);


On Tuesday, April 22, 2003, at 06:05 AM, Frangois Schiettecatte wrote:

Jussi-Pekka

Yes, that seems to work in Sherlock, the XPath Finder and XQuery channels
still did not like it though but I am less worried about that.


This would seem to point to the problem where SOAP::Lite 0.55 munges Unicode
characters.


I will check into how SOAP::Lite encodes its stuff.

Cheers

Francois

On 4/21/03 10:46 PM, "Jussi-Pekka Mantere" <email@hidden>
wrote:


If you now try to process the xmllint'ed file in Sherlock (fetched via
just a normal HTTP GET and not via a cgi), can you now access any of
the nodes via XQuery?

On Monday, April 21, 2003, at 07:16 PM, Frangois Schiettecatte wrote:

Jussi-Pekka

I know that there is some junk in the file, well junk, Japanese
characters,
definitely not UTF-8.

I downloaded xmllint and it says nothing, so I assume that the XML is
ok. I
asked xmllint to reformat the code and it did it quite happily.

Cheers

Francois


On 4/21/03 9:34 PM, "Jussi-Pekka Mantere" <email@hidden>
wrote:


Frangois,

Depending on what your server-side XML content is, SOAP::Lite 0.55 has
a bug where Unicode characters are munged. Validating the on-the-wire
XML out-of-band (xmllint?) could yield some clues here.


Jussi-Pekka

On Monday, April 21, 2003, at 06:04 PM, Frangois Schiettecatte wrote:

I am running into an interesting problem with the SOAP implementation
in
Sherlock. It is croaking on some XML that is being returned from my
server.
Before people jump all over this and tell me this is my problem, bear
with
me :) The XML in question is actually coming from a variety of
RSS/RDF
files. The thing that is interesting is that the SOAP client I have
developed for testing the SOAP server also croaks. The SOAP client
and
server are both developed using SOAPLite, a Perl module. What is
interesting
is that my SOAP client does not croak if I tell it _not_ to use the
expat
XML parser to process the XML returned from the SOAP server, but to
use
another (simpler) parser included for testing purposes.
_______________________________________________
sherlock-channel-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/sherlock-channel-development
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Question about SOAP implementation (From: François Schiettecatte <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.