HttpClient parameters

GeordieJenner

Member
Licensed User
Longtime User
i am not quite sure i am even going in the correct direction, but i am getting a response from my server. i am doing a JSON GET to a WCF service, and not sure where or how to specify the OperationContract. I have specified the service in the strURL, but there are many contracts in that service. So if the contract was myContract, how would i specify it? The code looks something like this:

Sub Process_Globals
Dim hc As HttpClient
End Sub

Sub Globals
Dim strURL As String
strURL = "http://www.mysite.com/SilverlightWCFService.svc?wsdl"
End Sub

Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
hc.Initialize("hc")
End If
End Sub

Sub CallJSON
ProgressDialogShow("Retrieving")
Dim req As HttpRequest
req.InitializeGet(strURL)
req.Timeout=10000
hc.Execute(req,1)
End Sub

Sub hc_responsesuccess(Response As HttpResponse, TaskId As Int)
ProgressDialogHide
Dim res As String
res = Response.GetString("UTF8")
Msgbox(res,"Results")
End Sub
 
Top