Hi everyone, 

Does anyone know if the cxf runtime, verify at runtime when you receive a
message from a client, if the soap message content follow properly the
defintion in the type. 


More specificaly, I have a type with the following defintion :

<xsd:complexType name="acl-payload">
                <xsd:sequence minOccurs="1" maxOccurs="1">
                        <xsd:element name="sender" type="tns:agent-identifer" 
minOccurs="1"
maxOccurs="1"/>
......................
....................
>

<xsd:complexType name="agent-identifer">
                <xsd:sequence minOccurs="1" maxOccurs="1">
                        <xsd:element name="name" type="tns:name" minOccurs="1" 
maxOccurs="1" />
                        <xsd:element name="addresses" type="tns:addresses" 
minOccurs="1"
maxOccurs="1" />
                        <xsd:element name="resolvers" type="tns:resolvers" 
minOccurs="0"
maxOccurs="1" />
                        <xsd:any minOccurs="0" maxOccurs="unbounded" 
processContents="strict"
namespace="##other"/>
                </xsd:sequence>
        </xsd:complexType>


followed by the following defintion for the adresses: 

<xsd:complexType name="addresses">
                <xsd:sequence minOccurs="1" maxOccurs="1">
                        <xsd:element  name="url" type="tns:url" minOccurs="1"
maxOccurs="unbounded"/>
                </xsd:sequence>
</xsd:complexType>



Unfortunately, after generating the client and server code. 

It seams like there is no way to specify, that a list of item, should at
least have one item in it. 

Therefore, without modifying the code generated on both the client and the
server side, the following message is acceptable: 

<acl-payload act="query-ref">
<sender>
   <name id="Id430410766"/>
   <addresses/>
   <resolvers/>
</sender>

................

................
>

How can the generated class be false on the structure of the message, in the
sense that a message with only adresses empty is sent and accepted on the
server side ?

does anyone have an idea ?
-- 
View this message in context: 
http://cxf.547215.n5.nabble.com/soap-well-formdness-tp3356721p3356721.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to