S
Steve Kuhn
Hello everyone,
I have a web service written in C# which returns a array of strings. Now I
have a classic Asp site that needs to get that array (right now trying to
use SOAP). The webservice returns xml containing the array of strings, and
the classic asp understands how many elements are in the array (by using
UBound), but when I try to access an element of the array (by going
response.write( myArray(1) ) ), I get an "Type mismatch" error. What could I
possibly be doing wrong? Here is a sample of what I am doing:
WEBSERVICE:
[WebMethod(EnableSession=true)]
public string[] myWebMethod()
{
return myStringArray;
}
CLASSIC ASP:
Dim objSOAP
set objSOAP = CreateObject("MSSOAP.SoapClient30")
objSOAP.MSSoapInit("http://myIP.net/myWebService.asmx?wsdl")
myArray = objSOAP.myWebMethod()
response.write( myArray(1) ) 'ERROR
Please let me know if you need any more info or clarification. Thanks for
your time and help!
Steve
I have a web service written in C# which returns a array of strings. Now I
have a classic Asp site that needs to get that array (right now trying to
use SOAP). The webservice returns xml containing the array of strings, and
the classic asp understands how many elements are in the array (by using
UBound), but when I try to access an element of the array (by going
response.write( myArray(1) ) ), I get an "Type mismatch" error. What could I
possibly be doing wrong? Here is a sample of what I am doing:
WEBSERVICE:
[WebMethod(EnableSession=true)]
public string[] myWebMethod()
{
return myStringArray;
}
CLASSIC ASP:
Dim objSOAP
set objSOAP = CreateObject("MSSOAP.SoapClient30")
objSOAP.MSSoapInit("http://myIP.net/myWebService.asmx?wsdl")
myArray = objSOAP.myWebMethod()
response.write( myArray(1) ) 'ERROR
Please let me know if you need any more info or clarification. Thanks for
your time and help!
Steve