Example: silverlight_service_call
In this example, the silverlight_service_call function calls a Web Service GetUKLocationByTown to locate a location on a map.
web_add_auto_header("Accept-Encoding", "gzip, deflate"); web_add_auto_header("User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Hewlett-Packard; GTB6.4; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)"); web_add_header("Accept-Language", "he"); web_url("SL", "URL=http://lab1server3/SL", "Resource=0", "RecContentType=text/html", "Referer=", "Snapshot=t1.inf", "Mode=HTML", LAST); web_url("SilverlightDemo.xap", "URL=http://lab1server3/ClientBin/SilverlightDemo.xap", "Resource=1", "Referer=", LAST); web_add_header("Content-Type", "application/soap+msbin1"); silverlight_service_call("StepName=GetProducts", "SOAPMethod=NorthWindService|binary|GetProducts", "SOAPHeader=<CustomSoapHeaders>" "<a:Action s:mustUnderstand=\"1\" xmlns:s" "=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:a" "=\"http://www.w3.org/2005/08/addressing\">" "http://tempuri.org/INorthWindService/" "GetProducts</a:Action><a:MessageID " "xmlns:a=\"http://www.w3.org/2005/08" "/addressing\">" "urn:uuid:63030efe-ef2e-4000-832e-ba74b1bd0ad9" "</a:MessageID><a:SequenceAcknowledgement " "xmlns:a=\"http://www.w3.org/2005/08/addressing\">" "<a:ReplyTo>http://www.w3.org/2005/08/addressing/" "anonymous</a:ReplyTo></a:SequenceAcknowledgement>" "<a:To s:mustUnderstand=\"1\" xmlns:s=\"http://www.w3.org/2003/05/" "soap-envelope\" xmlns:a=\"http://www.w3.org/2005/08/addressing\">" "http://lab1server3/SL/NorthWindService.svc/bin" "</a:To></CustomSoapHeaders>", "Service=NorthWindService", "Snapshot=t2.inf", "ResponseParam=response", BEGIN_ARGUMENTS, "productNamePrefix=p", END_ARGUMENTS, BEGIN_RESULT, END_RESULT, LAST);