use C# to attach to a URL and get an "XML feed"

Hi,

I want to create and upload records on our service provider's (jobs) database.

They told me to write an "XML Feed". Is this the same as SOAP? I read a bit and I don't see any "soap" keywords in the XML tags (see below). If it's not SOAP, what *is* the protocol and where can I get a tutorial?

The most common XML message I'll be sending apparently looks like this (they gave me the format):

Input XML Format

<XML ID="Transaction">
<Transaction>
<LoginDetails>
<Email/>
<Password/>
</LoginDetails>
<JobDetails>
<JobRefNo/>
<ApplyLink/>
<JobTitle/>
<JobExpiry/>
<JobContactName/>*
<JobContactEmail/>*
<JobSiteID/>
<JobRoom/>
<JobShortDesc/>
<JobDetDesc/>**
<JobCategories/>
<JobLocations/>
<JobSalaryRange/>
<JobAddnlBens/>
<JobType/>
<JobRoles/>#
<JobTag1/>##
<JobTag2/>##
<JobTag3/>##
<JobMinQual/>
<JobQues1/>
<JobQues2/>
<JobQues3/>
</JobDetails>
</Transaction>
</XML>
* : The JobContactName & JobContactEmail must be registered Contacts to be able to manipulate the Job using RMS , if the same are not registered Contacts the RMS will show the Job only for “Group Admin” User, though the Job may still be Updated/Deleted/Previewed using XML-Feed.
** : The JobDetDesc Tag must embed a CDATA Tag to enable <HTML> Tags within the JobDetDesc Tag.
Please refer the example below to note the usage of CDATA Tag.

Open in new window


Sorry, I copied it from a PDF and lost the tabs/indents in the process
zorba111Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mark BullockQA EngineerCommented:
Maybe they have a URL to which you can post the XML.
zorba111Author Commented:
Yes, here's the URL:

http://www.NIJobs.com/VacManager/AddV2_XML.aspx

As you can see it doesn't have a typical "Web Service" extension (like .asmx for example). Also when I put it into the VS2008 "Add Service Reference..." dialog, it doesn't get recognised as a web service:

The HTML document does not contain Web service discovery information.
Metadata contains a reference that cannot be resolved: 'http://www.nijobs.com/VacManager/AddV2_XML.aspx'.
The content type text/xml; charset=utf-8 of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 99 bytes of the response were: '<JobDetails Error="Error encountered reading POST-DATA" Description="An XML error has occurred." />'.
If the service is defined in the current solution, try building the solution and adding the service reference again.

However: I just posted my XML message to it using C#'s HTTP classes, and am getting valid responses back...

So its just a case of using HTTP/POST, with no other layers on top.

Is there a name for this kind of basic "Web service", or is it not called a web service?
Is "XML Feed" a valid name?

I know, all this is rather academic, now that I seem to have come to grips with getting the thing to work. But I just want to know what the name of this is so I can look up tips for making it better etc., and so I can relate it to the rest of my knowledge.

Since posting this, I've had to use a real Webservice (*.asmx), so I want to be able to file/classify *this* technique relative to it :)
Mark BullockQA EngineerCommented:
You could call it a REST API.
An example is here: https://en.wikipedia.org/wiki/Representational_state_transfer#Example

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Services

From novice to tech pro — start learning today.