Share this page

# Example: silverlight_soap_request

In this example, the silverlight_soap_request function sends a SOAP packet to http://lab1server3/SL/NorthWindService.svc/bin.

    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/SL/ClientBin/Release/SilverlightDemo.xap",
        "Resource=1",
        "Referer=",
        LAST);

    web_add_header("Content-Type", "application/soap+msbin1");
    silverlight_soap_request("StepName=GetProducts",
    	"URL=http://lab1server3/SL/NorthWindService.svc/bin",
    	"SOAPEnvelope=<s:Envelope xmlns:s=\"http://www.w3.org/2003/05/"
    	"soap-envelope\" xmlns:a=\"http://www.w3.org/2005/08/addressing\"><s"
    	":Header><a:Action s:mustUnderstand=\"1\">http://tempuri.org/"
    	"INorthWindService/GetProducts</a:Action><a:MessageID>urn:uuid"
    	":9f76a6f6-a1aa-4654-b9bc-a975067c917c</a:MessageID><a"
    	":SequenceAcknowledgement><a:ReplyTo>http://www.w3.org/2005/08/"
    	"addressing/anonymous</a:ReplyTo></a:SequenceAcknowledgement><a:To s"
    	":mustUnderstand=\"1\">http://lab1server3/SL/"
    	"NorthWindService.svc/bin</a:To></s:Header><s:Body><GetProducts xmlns="
    	"\"http://tempuri.org/\"><productNamePrefix></productNamePrefix></"
    	"GetProducts></s:Body></s:Envelope>",
    	"Snapshot=t2.inf",
    	"ResponseParam=response",
    	"UserHandlerName=LrBinaryEncodingHandler",
    	LAST);

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: