mdo:service-url ( service-name )

mdo:service-url builds a url of a service, declared using mdo:service section. It returns a string like the following:

/DesktopModules/XsltDb/ws.aspx?service=<service name>&mod=<module id>

Example

<mdo:service name="some-service" type="text/html">
  <h1>Hello, World</h1>
</mdo:service>
Service URL: <a href="{mdo:service-url('some-service')}">
  {{mdo:service-url('some-service')}}
</a>
<br/><br/>
Service result:<br/>
<iframe src="{mdo:service-url('some-service')}" />



You can manually append the URL with additional parameters that can be queried inside service with mdo:request function.

Last edited Aug 4, 2010 at 6:53 PM by findy, version 2

Comments

No comments yet.