Creates a web service proxy object, a reference to a remote webservice. This function is a replacement for createObject("webservice",...).

webserviceNew(url) → returns webserviceProxy

Member Function Syntax

This function requires Lucee. Not supported on Adobe ColdFusion.

webserviceNew Argument Reference

url string

URL of the Webservice

arguments struct

Additional arguments
(URL params are not allowed in url itself and must be set here)

Examples sample code invoking the webserviceNew function

Get country by country code and output country name

ws = webserviceNew('http://www.webservicex.net/country.asmx?wsdl');
country = ws.GetCountryByCountryCode('us');

Expected Result: United States

Fork me on GitHub