3
Reply

array response in web service

my

my

Mar 23 2008 4:37 AM
3.2k

array response in webservice

i'm new in .net & i've been searching in the internet for the solution for this problems since a month ago.

i have a wsdl file (which is created in java), which i need to do the coding in .net according to the wsdl file.
i need to do the web service that responses with arrays which contain 2 different types:

<xs:schema targetNamespace="com/ericsson/mi3g/sub/schema/contentitems" xmlns:tns="com/ericsson/mi3g/sub/schema/contentitems" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="contentitems">
<xs:complexType>
<xs:sequence>
<xs:element name="system">
<xs:complexType>
<xs:sequence>
<xs:element name="svc_id" type="xs:string"/>
<xs:element name="svc_trx_id" type="xs:string"/>
<xs:element name="error_code" type="xs:string"/>
<xs:element name="error_desc" type="xs:string"/>
<xs:element name="time_stamp" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element maxOccurs="unbounded" minOccurs="0" name="content">
<xs:complexType>
<xs:sequence>
<xs:element name="type" type="xs:string"/>
<xs:element name="title" type="xs:string"/>
<xs:element name="description" type="xs:string"/>
<xs:element name="url" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>


pls help how am i going to solve it. i try to use the wsdl.exe but seems cannot help me..
thank you in advance.


Answers (3)