How can i read data from a web service?
i want use so开发者_如何转开发me data from a website with web service. i have a username & password and i dont know how can i use webservice
The best place to start is with their API documentation. This will determine the following:
- the url to request information
- the variables to be passed
- how the information is returned
Once you have that information you will need to set up a script to request the information. This is typically accomplished using CURL or through a socket request. Once you get the data data back, you will be able to parse through it (SOAP, JSON, XML, CSV, etc).
If you post the webservice you are using, we can be of more help. But not knowing what you are using, this will be as much information as anyone can provide.
精彩评论