Announcement Announcement Module
Collapse
No announcement yet.
New into Spring WS. help please. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
Working...
X