Hello All,
I was trying to call a Web service through XSL code, which returns an
XML document, which I need to process further. The problem I am facing
is that it is not returning me the XML document for the data I am
passing as request parameters. However, when I tried to execute the
same service in browser I got the expected results.
Below is the snippet of XSL code for calling a Web service :-
<xsl:variable name="params" select="concat('param1=',$value1,
'¶m2=',value2, '¶m3=',value3, '¶m4=',value4)" />
<xsl:variable name="copyTransactionSrc"
select="'http://servername:serverport/invoke/pathToService'" />
<xsl:variable name="docName"
select="concat($copyTransactionSrc,'?',$params)" />
<xsl:variable name="returnXML" select="document($docName)" />
I am checking the return value by calling string-length function on it. So
if it returns XML doc as expected then string-length($returnXML) should be
0 but here I am getting string-length($returnXML) = 0.
I am also taking care of encoding parameter values before passing it to
the service and removing special characters like '#' if present in any
parameter value.
One more problem with this I am facing is when total length of url string
exceeds certain value, I am getting 'Error while retrieving resource :-
http://...' in XMLSpy 2008 at the time of transformation.
XSLT Processor : - FOP 0.93 version
Please correct me if I have done anything wrong in the code as I am doing
this for the first time.
Thanks.
Save all your chat conversations. Find them online at
http://in.messenger.yahoo.com/webmessengerpromo.php
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--