• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to write XML Requests

 
Bashar Abdullah
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I need to integrate to a system using XML API. I basically need to send XML request and receive the response. I can't seem to find useful resources on this, although I am sure I came across some before.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13055
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The web is loaded with examples for various XML based protocols, but before we send you to one we need to know one thing:

What protocol is the system you need to integrate with expecting?

Bill
 
Bashar Abdullah
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for the late reply. It's a normal HTTP XML Post request and returns XML response.
 
Bashar Abdullah
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I came across this url:
http://e-docs.bea.com/wls/docs81/xml/xml_tech.html

It is giving me FileNotFound errors though upon reading response. If you have any good references that would be helpful.

Thanks
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13055
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok - you have the simplest possible situation, just sending an XML formatted string in the body of a request and getting one back. Here is some code I used one time to do this where reqStr is the XML string already in memory and "response" is a String variable:



Bill
 
Bashar Abdullah
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. Thats almost what I had, but now I am sure I am on the right track.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic