users@glassfish.java.net

having problems with nested XML in ejb web services

From: V. Karthik Kumar <karthikkumar_at_gmail.com>
Date: Tue, 11 Mar 2008 02:41:32 +0530

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

basically we have a web service method of the form:

String search(String q);

the returned String is a parsable XML string: <?xml version="1.0"
encoding="UTF-8"?><SEARCH><RESULT>1</RESULT></SEARCH>

etc.

Now we face these problems: because the marshalling mechanism won't
quote it, it gets parsed and eventually at the web service client,
results in null being returned: String result=port.search("blah"); //
result is null after the invocation

We tried doing: return "<![CDATA["+retstring+"]]>"; //No nested CDATAs

it was able to parse well in other frameworks; but still, the WS
mechanism returned a null

Any help would be appreciated in this getting fixed.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFH1aQDRzTnZfDdIE8RApPxAJ9mxkcNi9//g6QLmq+TaSkvEzp2QQCbBVk0
Oih4zlCvyR4fwB/WRUDpB3M=
=WIyy
-----END PGP SIGNATURE-----