wcf - Interacting with a service exposed through HTTP Request -


I have the service myService.svc. This service came out using the WebHTP binding binding. The reason for this is that I need to call service to the iPhone and there is also a Jacquet interface. From my understanding, WP7 only supports BasicHttpBinding directly, which depends on SOAP messages. Unfortunately, SOAP is not directly supported on iPhone.

My question is, I can not use webclient or HTTP web browser to interact with any service that uses WebHT binding. Conceptually I believe this will work, but the implementation is telling me I have the definition of service:

From my WP7 app, I am using the following code:

  string opUrl = "http: // localhost: 80 / services / MyService SVC "; Uri MisesUruRURI = New Uri (up URL, Uricund. Absolute); Webclient myServiceClient = new webclient (); MyServiceClient.DownloadStringCompleted + = New DownloadStringCompletedEventHandler (myServiceClient_DownloadStringCompleted); MyServiceClient.DownloadStringAsync (myServiceUri); Private Zero myServiceClient_DownloadStringCompleted (Object Sender, DownloadStringCompletedEventArgs E) {If (Results Results == blank) MessageBox.Show ("null"); Other messageboxes Showing (e. Results); }  

When I execute it, e. The result is not faucet. Rather, a bunch of HTML is telling me to use myself. My questions are: 1) How do I call this "mymouth" using the webHtml binding? 2) How do I pass parameters?

You use not a service binding You can only SOAP Formats are not tied to messages

You can use.

Note that only asynchronous requests are supported though on the phone.


Comments