chornbeck
02-28-2008, 12:05 AM
I'm having a little trouble understanding this from a theoretical perspective, wondering if anyone could provide some insight. I have little experience with web services, but have a set of them I need to make operational..
Here's the scenario (this is all theoretical for now):
1. Simple HTML form feeds form data to webservice.asmx via http POST for processing
2. webservice.asmx returns an XML data set
I'm questioning when I get the chance parse the XML, instead of having it directly displayed upon execution of the webservice. I'm assuming the webservice will return a simple XML page...
How can I get the webservice to return the xml to a page that can parse the xml (with php), as opposed to just displaying the xml (which is what it looks like happens currently)?
I figure I can get it done with AJAX, because the asynchronous nature of the requests makes more sense to me in this circumstance, but I suck at the syntax, so here I am looking for a PHP solution...
Help is appreciated!
Here's the scenario (this is all theoretical for now):
1. Simple HTML form feeds form data to webservice.asmx via http POST for processing
2. webservice.asmx returns an XML data set
I'm questioning when I get the chance parse the XML, instead of having it directly displayed upon execution of the webservice. I'm assuming the webservice will return a simple XML page...
How can I get the webservice to return the xml to a page that can parse the xml (with php), as opposed to just displaying the xml (which is what it looks like happens currently)?
I figure I can get it done with AJAX, because the asynchronous nature of the requests makes more sense to me in this circumstance, but I suck at the syntax, so here I am looking for a PHP solution...
Help is appreciated!