Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Mobile Phone
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-Oct-12 2:26am

1 solution

Rate this: bad
good
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()
{
            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
  Permalink  

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



Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 5 Oct 2012
Copyright © CodeProject, 1999-2014
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