472,139 Members | 1,688 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,139 software developers and data experts.

connecting to web service through asp classic

I can connect to a web service via asp.net, but my client is using asp
classic. In asp.net I do something very simple along the lines of:
CmsApi cmsService = new CmsApi();
Authenticate auth = new Authenticate();
auth.userName = userName.Text;
auth.passWord = passWord.Text;
AuthenticateResponse authrep = new AuthenticateResponse();
authrep = cmsService.Authenticate(auth);
String response = authrep.@return;
result.Text = response;

And I get a valid response. in asp classic I try to do this:
oSOAP.ClientProperty("ServerHTTPRequest") = True
Set auth = Server.CreateObject("oSOAP.Authenticate")
auth.userName = ""
auth.passWord = ""
results = oSOAP.Authenticate(auth)
response.write results

But I get an error saying that server.createobject failed. How do I
create complex objects like Authenticate and AuthenticateResponse that
are created automatically for me in .net in asp classic?

Mar 19 '07 #1
1 3434
lambelly wrote:
I can connect to a web service via asp.net, but my client is using asp
I've posted some links to relevant articles in the past.
I seem to recall 4GuysFromRolla had some good articles about it, so you
want to concentrate your google search on their site. IIRC, searching
"consume web service from classic asp" (no quotes) will give you some
relevant links.

Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Mar 19 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

18 posts views Thread by Barry Wright | last post: by
reply views Thread by lazyTrucker | last post: by
1 post views Thread by lambelly | last post: by
10 posts views Thread by mairhtin o'feannag | last post: by
3 posts views Thread by Mr. Arnold | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.