Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I have a Web service that returns values separated by ';' (Example: 120;100;90)
I want to list the nodes which id attribute is equal to each of the numbers the service returns.
Example:
Service returns: 120;100;90
I want to show: the document with id 120, 100 and 90 respectively.
Thanks beforehand.
Sincere regards,Eduardo
<xsl:variable name="splitNodes" select="umbraco.library:Split($serviceValue,';')" /><xsl:for-each select="$splitNodes//value"> <xsl:value-of select="umbraco.library:GetXmlNodeById(.)/nodeName" /></xsl:for-each>
Something like that?
Hi Harm-Jan,
Thanks for your reply.
My problem is I don't know how to call the asmx web service to retrieve the values. Maybe using c# within the xslt?
Any idea?
Regards,Eduardo Macho
You could try:
<xsl:variable name="serviceValue" select="umbraco.library:GetXmlDocumentByUrl('http://www.mydomain.com/service.asmx/dosomething')"/>
Harm-Jan,
Thank you for your answer.
Your solution fitted my needs.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Calling a WebService
Hi,
I have a Web service that returns values separated by ';' (Example: 120;100;90)
I want to list the nodes which id attribute is equal to each of the numbers the service returns.
Example:
Service returns: 120;100;90
I want to show: the document with id 120, 100 and 90 respectively.
Thanks beforehand.
Sincere regards,
Eduardo
Something like that?
Hi Harm-Jan,
Thanks for your reply.
My problem is I don't know how to call the asmx web service to retrieve the values. Maybe using c# within the xslt?
Any idea?
Regards,
Eduardo Macho
You could try:
<xsl:variable name="serviceValue" select="umbraco.library:GetXmlDocumentByUrl('http://www.mydomain.com/service.asmx/dosomething')"/>
Harm-Jan,
Thank you for your answer.
Your solution fitted my needs.
Regards,
Eduardo Macho
is working on a reply...