Search the web
Sign In
New User? Sign Up
soaplite · SOAP::Lite for Perl (soaplite.com)
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.

Messages

  Messages Help
Advanced
dashes (hyphens) in WSDL comments   Message List  
Reply Message #6281 of 6437 |
Hi All,

Looks like SOAP::Lite on RHEL5 doesn't like dashes in comments. This
manifests itself as 'junk before XML element'. Unfortunately latest
JAX-WS puts tons of dashes in wsdl comments.

WSDL looks like this

<?xml version="1.0" encoding="UTF-8"?><!-- Published by JAX-WS RI at
http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.3-b02-. --><
!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version
is JAX-WS RI 2.1.3-b02-. --><definitions xmlns:soap=... etc.

as soon as I remove all the dashes from the comments it works.

To me it looks more like a perl issue or some dependant module issue
since the rpm from Fedora Core 8 installed on rhel5 produces the same
errors but works on fc8, but this is where I got stuck, rather
bedazzled by the regexps I've found in the code ;)

Any ideas?

I have patched it like this, but obviously this is too ugly to go
official ;)

--- /usr/lib/perl5/vendor_perl/5.8.8/SOAP/Lite.pm.orig 2009-01-29
11:31:25.000000000 +0100
+++ /usr/lib/perl5/vendor_perl/5.8.8/SOAP/Lite.pm 2009-01-29
11:32:06.000000000 +0100
@@ -1670,7 +1670,9 @@
#
my $ret = undef;
eval {
- $ret = $self->parser->parse($_[0]);
+ my $a=$_[0];
+ $a =~ s/<!--.*?-->//g;
+ $ret = $self->parser->parse($a);
};
if ($@) {
$self->final; # Clean up in the event of an error
----cut here ---





Thu Jan 29, 2009 11:09 am

tvoj_patak
Offline Offline
Send Email Send Email

Message #6281 of 6437 |
Expand Messages Author Sort by Date

Hi All, Looks like SOAP::Lite on RHEL5 doesn't like dashes in comments. This manifests itself as 'junk before XML element'. Unfortunately latest JAX-WS puts...
tvoj_patak
Offline Send Email
Jan 29, 2009
3:11 pm
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help