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.
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.
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
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
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.
What if you need to pass the webservice a value?
is working on a reply...