A
ASPfool
Hello everyone,
Please help me before I throw my computer out of the window:
I'm working on a web application in classic ASP (vbscript), which is making
calls to some webservices. The calls are made using SOAP - i installed the
SOAP3 toolkit on my windows 2k server to enable this. The webservice calls
are returning String Arrays which I can't seem to do anything useful with.
The call shown below returns a string array with two elements (stored in
returnedData):
....
dim returnedData
returnedData=SoapClient3.createCase(param1, param2, param3)
set SoapClient3=nothing
response.write "<br>"&vartype(returnedData) '8200
response.write "<br>"&typename(returnedData) 'String()
response.write "<br>"&ubound(returnedData) '1
....
The call to the webservice works just fine, and my data is successfully sent
to the other system, however I don't seem to be able to do anything with the
returned string array stored in 'returnedData', bar identify the vartype
(8200) and typename (String()), and number of elements (2 as expected).
As soon as I try something like;
response.write returnedData(1) '(line 58)
I get the error:
Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch
/bwc/ordercomplete.asp, line 58
All other attempts to do something useful with the array fail too, e.g.
myString=Join(returnedData)
results in:
Error Type:
Microsoft VBScript runtime (0x800A01CA)
Variable uses an Automation type not supported in VBScript
/bwc/ordercomplete.asp, line 59
I really need to be able to access these array values - and cannot see any
means of doing it. I'd be very grateful for any help,
Regards,
Jon.
Please help me before I throw my computer out of the window:
I'm working on a web application in classic ASP (vbscript), which is making
calls to some webservices. The calls are made using SOAP - i installed the
SOAP3 toolkit on my windows 2k server to enable this. The webservice calls
are returning String Arrays which I can't seem to do anything useful with.
The call shown below returns a string array with two elements (stored in
returnedData):
....
dim returnedData
returnedData=SoapClient3.createCase(param1, param2, param3)
set SoapClient3=nothing
response.write "<br>"&vartype(returnedData) '8200
response.write "<br>"&typename(returnedData) 'String()
response.write "<br>"&ubound(returnedData) '1
....
The call to the webservice works just fine, and my data is successfully sent
to the other system, however I don't seem to be able to do anything with the
returned string array stored in 'returnedData', bar identify the vartype
(8200) and typename (String()), and number of elements (2 as expected).
As soon as I try something like;
response.write returnedData(1) '(line 58)
I get the error:
Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch
/bwc/ordercomplete.asp, line 58
All other attempts to do something useful with the array fail too, e.g.
myString=Join(returnedData)
results in:
Error Type:
Microsoft VBScript runtime (0x800A01CA)
Variable uses an Automation type not supported in VBScript
/bwc/ordercomplete.asp, line 59
I really need to be able to access these array values - and cannot see any
means of doing it. I'd be very grateful for any help,
Regards,
Jon.