Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > connecting to web service through asp classic

Reply
Thread Tools

connecting to web service through asp classic

 
 
lambelly
Guest
Posts: n/a
 
      03-19-2007
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?

 
Reply With Quote
 
 
 
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      03-19-2007
lambelly wrote:
> I can connect to a web service via asp.net, but my client is using asp
> classic.


I've posted some links to relevant articles in the past.
I seem to recall 4GuysFromRolla had some good articles about it, so you
may
want to concentrate your google search on their site. IIRC, searching
for
"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.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
asp.net web service connecting to another web service jazzydance ASP .Net Web Services 3 02-08-2010 11:59 PM
connecting to web service through asp classic lambelly ASP .Net 1 03-19-2007 10:01 PM
Using an ASP.NET Web Service from classic ASP? Wade ASP .Net Web Services 1 08-03-2005 03:39 AM
HELP!! Classic ASP and .net web service - service restarted often! Celia Leung via .NET 247 ASP .Net Web Services 0 04-26-2004 04:23 AM
LOOP through an ASP form's pages (not ASP.NET - ASP classic) David A. Beck ASP General 10 04-13-2004 05:38 PM



Advertisments