Click here to Skip to main content
11,806,026 members (61,715 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: Mobile Phone

i am beginner in windows phone 7. today i create one application in windows phone 7. and develop hello world app. now i want to start with my main app. and i start to add PHP web service reference. but it show me below error to me.

The HTML document does not contain Web service discovery information.
Metadata contains a reference that cannot be resolved: ''.
The content type text/html of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 80 bytes of the response were: '{"userLogin":{"status":"NO","error":"Please enter valid user name \/ password"}}'.
If the service is defined in the current solution, try building the solution and adding the service reference again.

i search a lot but i didnt get proper solution. please help me to resolve this issue. how to add php service.

Thanks in advance.
Posted 1-Oct-12 1:26am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

I guess, you have tried adding the "Service Referemce". Instead call the php directly from webclient.

public Sample()
            WebClient wc = new WebClient();
            wc.DownloadStringCompleted += new     DownloadStringCompletedEventHandler(doProcess); 
            wc.DownloadStringAsync(new     Uri("") );
void doProcess(object sender, DownloadStringCompletedEventArgs e)
            string res = (String)e.Result;
            //do your stuff

This should work.


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Richard Deeming 225
1 OriginalGriff 215
2 Sergey Alexandrovich Kryukov 170
3 Abhinav S 120
4 ppolymorphe 115
0 OriginalGriff 3,330
1 Maciej Los 1,990
2 KrunalRohit 1,907
3 CPallini 1,905
4 Richard MacCutchan 1,227

Advertise | Privacy | Mobile
Web02 | 2.8.151002.1 | Last Updated 5 Oct 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100