r/DatabaseHelp • • Jul 19 '17

Connect to Database using XML sockets

So I don't know if this qualifies for this site, but I am trying to figure out how to use sockets and XML to send information to a ClearQuest database. I have never dealt with sockets before, and although I'm reading up on this, I'm still not quite getting it. How exactly is my program utilizing sockets going to communicate with the database's sockets? Thanks in advance. I have never done anything like this before.

1 Upvotes

5 comments sorted by

View all comments

Show parent comment

3

u/BinaryRockStar Jul 20 '17

"Sockets" is likely to be referring to a TCP/IP socket connection, which is similar in concept to a phone call between computers. Computer A "calls" computer B by connecting to computer B's IP address (think phone number) on a certain port number (think extension), then sending and receiving data.

XML in this case is the format of the data that will be sent. XML looks like this:

<message subject="This is XML">
    <body>This is the body</body>
</message>

I have chosen to use the tags "message", "body", etc but the ClearQuest API should dictate exactly how to structure messages you send to it.