【发布时间】:2014-04-08 15:01:24
【问题描述】:
我正在使用下面代码创建的 WSDL 文件 -
Class test_n0 As ArrayType_n1
Public test() As test_test2_n0
Sub NEW
End Sub
End Class
Class As test_test2_n0
Public t1 As StringType_n1
Public t2 As StringType_n1
Public t3 As StringType_n1
Sub NEW
End Sub
End Class
我无法在 lotus 脚本中处理 ArrayType。谁能帮帮我。
示例 WSDL - 我无法复制整个..但如下所示
<xs:complexType name="SDDBComputer2InstanceType">
<xs:sequence>
<xs:element name="test" type="cmn:StringType" nillable="true" minOccurs="0"/>
<xs:element name="test.hba" minOccurs="0">
<xs:complexType>
<xs:complexContent>
<xs:extension base="cmn:ArrayType">
<xs:sequence>
<xs:element name="test.hba" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:complexContent>
<xs:extension base="cmn:StructureType">
<xs:sequence>
<xs:element name="t1" type="cmn:StringType" nillable="true" minOccurs="0"/>
<xs:element name="t2" type="cmn:StringType" nillable="true" minOccurs="0"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
名称空间详细信息。
<definitions
xsi:schemaLocation="http://schemas.xmlsoap.org/wsdl/http://schemas.xmlsoap.org/wsdl/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:ns="http://schemas.hp.com/SM/7"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/">
我无法在 lotusscript 中处理数组。 Lotus 脚本代码如下 -
Dim testSome_Sub As New test_n0
Dim testsome2_Sub As New test_test2_n0
testsome2_Sub.t1.Value = "some value"
testsome2_Sub.t2.Value = "some value"
testsome2_Sub.t3.Value = "some value"
Set testSome_Sub.test(0) = testsome2_Sub
//这是我遇到问题的地方,因为我将一个结构元素分配给数组。
【问题讨论】:
-
您可以发布您的示例 WSDL 吗?
-
@Simon 添加了示例 WSDL。由于它是由第三方提供的,所以我不能放整个。
-
还有很多事情要做。您可以在
标记中发布命名空间吗?如果没有,我将发布一些步骤进行调查。 -
<definitions xsi:schemaLocation="http://schemas.xmlsoap.org/wsdl/http: //schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:ns="http://schemas.hp.com/SM/7" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/">这行得通吗?感谢您的快速帮助。 -
很遗憾,因为无法看到架构,所以我无法发表更多评论。
标签: web-services wsdl lotus-notes lotusscript