Copied to clipboard

Flag this post as spam?

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


  • Paul Sørensen 302 posts 648 karma points
    Jan 21, 2009 @ 08:11
    Paul Sørensen
    0

    Calling webservice

    Hi

    I want to call a Webservice from my v4 Umbraco. Do I wrap it up in a usercontrol or is there a more obvious way?

    Thank Paul S

  • Dirk De Grave 4537 posts 6006 karma points MVP 3x admin c-trib
    Jan 21, 2009 @ 08:22
    Dirk De Grave
    0

    Hi Paul,

    Sounds like a good plan. In v4, you could to this inline but I'd prefer to keep the code in user controls and the like. So yes, IMHO, a user control would do fine.

    Regards,
    /Dirk

  • Douglas Robar 3570 posts 4671 karma points MVP ∞ admin c-trib
    Jan 21, 2009 @ 14:21
    Douglas Robar
    0

    If your webservice returns xml you want to display, you could write a simple xslt macro and use the umbraco.library:GetDocumentByUrl() function, and then display the portion of the result you want.

    Or you could create a general-purpose xslt extension if you will be doing a lot of work with a variety of webservices. Or, as Dirk says, you could use a .net control if that's your strength.

    I just love how flexible umbraco is!

    cheers,
    doug.

  • Connie DeCinko 931 posts 1159 karma points
    Jun 14, 2011 @ 18:52
    Connie DeCinko
    0

    What if you need to pass the webservice a value?

     

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies