-
Apr 7th, 2009, 03:58 PM
#1
New into Spring WS. help please.
i am begining using Spring, Springws.
i have one troble:
i want to build one Ws that has one method for the request and this returnsone xml.
for this pourpose i have made one xsd like this:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="myRequest">
<xs:annotation>
<xs:documentation>the request</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="linea" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="codigoSubvencion"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="myReponse">
<xs:annotation>
<xs:documentation>the response</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="lineas" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="linea" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="codigo"/>
<xs:element name="nombre">
<xs:complexType/>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
is correct to write into the xsd the erquest method and one method for the response?
Please help me
thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules