Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
ASP .Net Web Services
Creating araays as unbounded elements instead of "ArrayOf" elements
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="John Harvey, post: 4321603"] 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="tns:PhoneInfo" /> </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="tns:PhoneInfo" /> </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! [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
ASP .Net Web Services
Creating araays as unbounded elements instead of "ArrayOf" elements
Top