Send XML request and get response back -


i have been struggling easy question quite time.

i trying post xml request website don't know start. software should used in first place?

the xml frame described in doc (http://profiles.catalyst.harvard.edu/docs/profilesrns_disambiguationengine.pdf)

my question more around type it?

thanks

romain

this known rpc-xml request. making web requests formatted in way specified documentation. how proceed depends on language you'll using. in c#, you'd this:

// create web request that'll post xml content web service string url = "http://profiles.catalyst.harvard.edu/services/getpmids/default.asp"; var request = (httpwebrequest)webrequest.create(url); request.method = "post"; request.contenttype = "text/xml";  // set content length based on data passing through // web call var data = encoding.utf8.getbytes("<generated xml here string>"); request.contentlength = data.length;  // write data request stream before make  // request. using (var stream = request.getrequeststream())     stream.write(data, 0, data.length);  // make web request , response. // hold response request when completes var response = request.getresponse().getresponsestream(); 

Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -