/    Sign up×
Community /Pin to ProfileBookmark

How to create/programme/code web services?

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[/url]

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[/url]

Output:
<Retailer>
<DownloadLink>http://www.Xcompany.com/webservices/download/download.asp?Token=xxxxxxx</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

to post a comment
Full-stack Developer

2 Comments(s)

Copy linkTweet thisAlerts:
@ray326Mar 08.2007 — You really need to hire someone with experience to do this for you. You may be months away from being able to do it yourself and some of the above is very unsafe.
Copy linkTweet thisAlerts:
@asiandivergalauthorMar 09.2007 — Hi Ray326,

Thank you for your response, would you be able to recommend someone who is able to do a good job and help us to code these 2 elements into our website? If you could kindly PM me your recommendation/s together with a price quote, we would really appreciate it.


You really need to hire someone with experience to do this for you. You may be months away from being able to do it yourself and some of the above is very unsafe.[/QUOTE]


For that matter, if anyone here is able to programme these 2 codes into our website, please PM me with your contact details and price quotes so that we can contact you personally and quickly.

Thank you in advance!
×

Success!

Help @asiandivergal spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...