J
John Harvey
I have been struggling with the following: I want to create a class
that contains an array of some user-defined type. so I have the
following vb code:
Public Class Communications
Public PhoneInfo() As ACORD.PhoneInfo
End Class
Public Class PhoneInfo
Public PhoneNumber As String
Public PhoneTypeCd As String
End Class
The problem is when I generate the WSDL I get:
<s:complexType name="Communications">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="PhoneInfo"
type="tns:ArrayOfPhoneInfo" />
</s:sequence>
</s:complexType>
<s:complexType name="ArrayOfPhoneInfo">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="PhoneInfo"
nillable="true" type="tnshoneInfo" />
</s:sequence>
</s:complexType>
<s:complexType name="PhoneInfo">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="PhoneNumber"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="PhoneTypeCd"
type="s:string" />
</s:sequence>
</s:complexType>
But I was hoping for:
<s:complexType name="Communications">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="PhoneInfo"
type="tnshoneInfo" />
</s:sequence>
</s:complexType>
<s:complexType name="PhoneInfo">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="PhoneNumber"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="PhoneTypeCd"
type="s:string" />
</s:sequence>
</s:complexType>
Any help would be greatly appreciated!
that contains an array of some user-defined type. so I have the
following vb code:
Public Class Communications
Public PhoneInfo() As ACORD.PhoneInfo
End Class
Public Class PhoneInfo
Public PhoneNumber As String
Public PhoneTypeCd As String
End Class
The problem is when I generate the WSDL I get:
<s:complexType name="Communications">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="PhoneInfo"
type="tns:ArrayOfPhoneInfo" />
</s:sequence>
</s:complexType>
<s:complexType name="ArrayOfPhoneInfo">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="PhoneInfo"
nillable="true" type="tnshoneInfo" />
</s:sequence>
</s:complexType>
<s:complexType name="PhoneInfo">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="PhoneNumber"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="PhoneTypeCd"
type="s:string" />
</s:sequence>
</s:complexType>
But I was hoping for:
<s:complexType name="Communications">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="PhoneInfo"
type="tnshoneInfo" />
</s:sequence>
</s:complexType>
<s:complexType name="PhoneInfo">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="PhoneNumber"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="PhoneTypeCd"
type="s:string" />
</s:sequence>
</s:complexType>
Any help would be greatly appreciated!