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;
AuthenticateRes ponse authrep = new AuthenticateRes ponse();
authrep = cmsService.Auth enticate(auth);
String response = authrep.@return ;
result.Text = response;
And I get a valid response. in asp classic I try to do this:
oSOAP.ClientPro perty("ServerHT TPRequest") = True
oSOAP.mssoapini t("http://www.urltotheweb service.com/webservice?wsdl ")
Set auth = Server.CreateOb ject("oSOAP.Aut henticate")
auth.userName = ""
auth.passWord = ""
results = oSOAP.Authentic ate(auth)
response.write results
But I get an error saying that server.createob ject failed. How do I
create complex objects like Authenticate and AuthenticateRes ponse that
are created automatically for me in .net in asp classic?
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;
AuthenticateRes ponse authrep = new AuthenticateRes ponse();
authrep = cmsService.Auth enticate(auth);
String response = authrep.@return ;
result.Text = response;
And I get a valid response. in asp classic I try to do this:
oSOAP.ClientPro perty("ServerHT TPRequest") = True
oSOAP.mssoapini t("http://www.urltotheweb service.com/webservice?wsdl ")
Set auth = Server.CreateOb ject("oSOAP.Aut henticate")
auth.userName = ""
auth.passWord = ""
results = oSOAP.Authentic ate(auth)
response.write results
But I get an error saying that server.createob ject failed. How do I
create complex objects like Authenticate and AuthenticateRes ponse that
are created automatically for me in .net in asp classic?
Comment