void QueryUPRNBtnClick(object sender, EventArgs e)
        {
            //Create the query service


            CAS.QueryUPRN.QueryUPRNService myQueryUPRNService = new CAS.QueryUPRN.QueryUPRNServiceClient();

            //Create a queryResponse1
            CAS.QueryUPRN.queryUPRNResponse1 myQueryUPRNresponse = new CASRefreshWebserviceSampleApplication.CAS.QueryUPRN.queryUPRNResponse1();
            // Create a queryUPRN
            CAS.QueryUPRN.queryUPRN myQueryUPRN = new CASRefreshWebserviceSampleApplication.CAS.QueryUPRN.queryUPRN();

            CAS.QueryUPRN.QueryUPRNRequest myQueryUPRNRequest = new CASRefreshWebserviceSampleApplication.CAS.QueryUPRN.QueryUPRNRequest();
            CAS.QueryUPRN.RequestBody      myRequestBody      = new CASRefreshWebserviceSampleApplication.CAS.QueryUPRN.RequestBody();
            //myRequestBody.Item myItem = new CAS.QueryUPRN.RequestBody.Item();

            CAS.QueryUPRN.UPRNType myUPRNType = new CASRefreshWebserviceSampleApplication.CAS.QueryUPRN.UPRNType();
            myUPRNType.UPRNType1           = "P";
            myUPRNType.Value               = UPRNtxt.Text;
            myQueryUPRNRequest.RequestBody = myRequestBody;
            myRequestBody.Item             = myUPRNType;

            //myUPRNType.UPRNType1.Insert(0,UPRNtxt.ToString());
            //myQueryUPRN.queryUPRNRequest.RequestBody = myRequestBody;

            //Create a queryUPRNRequest1 usign the QueryUPRN define earlier

            CAS.QueryUPRN.queryUPRNRequest1 myQueryUPRNRequest1 = new CASRefreshWebserviceSampleApplication.CAS.QueryUPRN.queryUPRNRequest1("101", myQueryUPRN);

            //Send  query message to webservice and save results in a queryUPRNResposne1
            myQueryUPRNresponse = myQueryUPRNService.queryUPRN(myQueryUPRNRequest1);
        }
Example #2
0
 public CASRefreshWebserviceSampleApplication.CAS.QueryUPRN.queryUPRNResponse queryUPRN(string CallerToken, CASRefreshWebserviceSampleApplication.CAS.QueryUPRN.queryUPRN queryUPRN1)
 {
     CASRefreshWebserviceSampleApplication.CAS.QueryUPRN.queryUPRNRequest1 inValue = new CASRefreshWebserviceSampleApplication.CAS.QueryUPRN.queryUPRNRequest1();
     inValue.CallerToken = CallerToken;
     inValue.queryUPRN   = queryUPRN1;
     CASRefreshWebserviceSampleApplication.CAS.QueryUPRN.queryUPRNResponse1 retVal = ((CASRefreshWebserviceSampleApplication.CAS.QueryUPRN.QueryUPRNService)(this)).queryUPRN(inValue);
     return(retVal.queryUPRNResponse);
 }