Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI,

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: 'http://mydomain.com/webservices/getLogin.php'.
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 solution

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

public Sample()
{
            InitializeComponent();
            WebClient wc = new WebClient();
            wc.DownloadStringCompleted += new     DownloadStringCompletedEventHandler(doProcess); 
            wc.DownloadStringAsync(new     Uri("http://mydomain.com/webservices/getLogin.php") );
            return;
}   

void doProcess(object sender, DownloadStringCompletedEventArgs e)
{
            string res = (String)e.Result;
            //do your stuff
}


This should work.

cheers
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900