Hi there,
I have really very little programming knowledge, but am trying to do my own programming – I have some programming questions which I hope someone can help with, or at least point me in the right direction. I am setting up an ecommerce site which basically maintains a catalog of the products for sale, and the virtual items are actually hosted on the main company’s website.
1) I am trying to create a user logon validation web service, with the following instructions provided:
Syntax of the logon validation URL:
[url]http://myvalidationURL?Username=MyUser&Password=MyPassword
The ValidationURL must accept two parameters in GET mode: Username and Password
Output of web service:
Important: the response of the web service must have the text/xml MIME Type. Example in ASP: Response.ContentType = “text/xml”
Successful logon:
<User><Id>My UserID</Id></User>
Error cases:
<Error><Code>my error code</Code><Description>my error desc</Description></Error>
2) Next, I need to call the Purchase Transaction web service at the main company’s website everything a purchase is made on our site and payment is made, in order to get the download link. Here again, is what we were provided with:
Syntax:
[url]http://www.Xcompany.com/webservices/retailers/NewTransaction.asp?CommerceID=ABC&RetailerUserID=1256&ItemID=12345&RetailerTrans=12345&HashCode=xxxx
Output:
<Retailer>
<DownloadLink>
</Retailer>
Parameters: Name Description
CommerceID (mandatory) Identifies our company name.
RetailerUserID (mandatory) A string which uniquely identifies a user in our retailer system.
ItemID (mandatory) Identifies the item purchased by the user.
RetailerTrans (mandatory) Identifies the purchase transaction in the our system. The RetailerTrans identifies the purchase of a customer’s shopping cart, i.e it can include one or more items.
HashCode (mandatory) a Hash Code, used to validate the integrity of the client calling the web service. Generated using a component which we have installed in our server.
Will anyone have any ideas how do I write the code for these 2 elements? I am using OsCommerce shopping cart, and Windows server. Any ideas/help will be much appreciated! (Kindly provide any explanations in simple basic terms as I am a newbie to computer programming language).
Thank you very much in advance!
Regards,
Agnes