Click here to Skip to main content
12,065,720 members (38,093 online)
Rate this:
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 2: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)

Advertise | Privacy | Mobile
Web02 | 2.8.160207.1 | Last Updated 5 Oct 2012
Copyright © CodeProject, 1999-2016
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