Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Grit Wessel 2 posts 22 karma points
    Oct 11, 2010 @ 12:57
    Grit Wessel
    0

    Call external webservice with a parameter

    I have two webservices - one with a parameter and one without.

    The latter I can call with

    <xsl:variable name="xmlnodes" select="umbraco.library:GetXmlDocumentByUrl('http://www.mydomain.com/Service.asmx/ShowWebNews')"/>

    The other one takes a paramter (an ID on a specific web news). How do I call it from XSLT? Is I even possible?

    Thank you :-)

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Oct 11, 2010 @ 14:02
    Lee Kelleher
    0

    Hi Grit,

    The "GetXmlDocumentByUrl" function tries to get XML from an URL, using HTTP GET.  This approach wouldn't work with a SOAP-based web-service, which is what I believe you are trying to use.

    As far as I'm aware, the only way you would be able to retrieve the data from a SOAP web-service in XSLT is to write a custom XSLT extension.

    There should be some articles on it on the wiki (and/or Google), but I can't find those at the moment.

    Cheers, Lee.

     

  • Grit Wessel 2 posts 22 karma points
    Oct 12, 2010 @ 12:31
    Grit Wessel
    0

    Thank you for your answer.

    I will try to make an user control, that presents the data instead. I'm not ready to try custom XSLT extensions.

Please Sign in or register to post replies

Write your reply to:

Draft