469,910 Members | 1,490 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,910 developers. It's quick & easy.

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
oSOAP.mssoapinit("http://www.urltothewebservice.com/webservice?wsdl")
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 1019
"lambelly" <la******@gmail.comwrote in message
news:11*********************@b75g2000hsg.googlegro ups.com...
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?
Please post your ASP classic questions to:
microsoft.public.inetserver.asp.general
Mar 19 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.