The http:get-path() function returns the request path as a string, such as /ws/myservice.
Function Signature | http:get-path() as xs:string |
Function Summary | The http:get-path() function returns the request path as a string, such as /ws/myservice. |
Parameters | none |
Examples |
Consider an echo service. You would use http://server:1234/ws/echo to execute the service. Consider a "GET" request to http://server:1234/ws/echo/some/path/here. In this case, within the XQuery for the echo service, a call to http:get-path() would return the string "/ws/echo/some/path/here". In addition, here is an example using query parameters:
http://server:1234/ws/service?param1=val1¶m2=val2¶m3=val3In this case, http:get-path() would return "/ws/service". |