Associate
- Joined
- 27 Jan 2005
- Posts
- 1,371
- Location
- S. Yorks
We have a webservice that I can call from a webpage via an ajax call
It returns an address from a postcode or partial postcode given to it.
We want to reuse this service in a windows forms app - how can I call this service and parse the results via the winapp?
Matt
Code:
$.ajax({
type: "GET",
url: "http://server/GetPostcodes.svc/xml/" + ID,
contentType: "text/xml; charset=utf-8",
async: true,
success: function (data) {
var parser = new DOMParser();
var xmlDoc = parser.parseFromString(data.childNodes[0].textContent,"text/xml");
var xmlResultCount = xmlDoc.childNodes[0].childElementCount;
var columnHeadArray = ["Street 1", "Street 2", "Street 3", "City", "Country", "Postcode"];
bindData(tableID, columnHeadArray);
....
It returns an address from a postcode or partial postcode given to it.
We want to reuse this service in a windows forms app - how can I call this service and parse the results via the winapp?
Matt