Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning array from Asp.Net webservice via SOAP to classic
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Returning array from Asp.Net webservice via SOAP to classic
Miscellaneous
Thread ID:
00814559
Message ID:
00814559
Views:
36
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!
Next
Reply
Map
View

Click here to load this message in the networking platform