Invoke Webservice and use IXMLNodelist

R

Rosi

Has anybody used the type IXMLNodelist to handle complex types with VBA?
In the Webservice I have to consume, there is a return parameter, that is a
structure of a a copmplex type wich contains the VBA keyword "TYPE".
VBA cannot build a class with a field with the name TYPE.

Part of the WSDL_File

<s:complexType name="RETURN01">
<s:complexContent mixed="false">
<s:extension base="s0:xxxStructure">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="TYPE" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ID" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="MESSAGE" type="s:string" />
</s:sequence>
</s:extension>
</s:complexContent>
</s:complexType>

I dont know how to use IXMLNodelist. I tried both versions:

Dim ar_Return01() As IXMLDOMNodeList
' -> Null value Error

Dim ar_Return01 As IXMLDOMNodeList
' -> Typeconversion Error
retString = WS.wsm_TestService( inputVar,ar_Confirm_Return)

I used WebServices Toolkit 2003 (Version 2.1) with Access 2003
If anyone experienced IXMLNodelist, please answer.

Thanks
Rosi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top