Hi Harm
This is the xsd file
...
This is the synapse.xml (snippets)
...
This passes correctly for me without any errors. I've tried the attached
synapse.xml (taken from the samples) with the message soap.xml posted to
the main sequence.. Can you try this at your end? I also tried this on
the trunk as well as Synapse 1.2 (which also went into WSO2 ESB 1.7.x)
cheers
asankha
--
Asankha C. Perera
http://adroitlogic.org
http://esbmagic.blogspot.com
<definitions xmlns="http://ws.apache.org/ns/synapse">
<localEntry key="validate_schema">
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
xmlns:tns="http://hostname/rfid_1_0/"
targetNamespace="http://hostname/rfid_1_0/" >
<!-- ISSUE -->
<xs:element name="issue" type="tns:issue"/>
<xs:complexType name="issue">
<xs:sequence>
<xs:element name="token" type="xs:string"/>
<xs:element name="rfid" type="xs:string"/>
<xs:element name="eventId" type="xs:string"/>
<xs:element name="locationId" type="xs:long"/>
<xs:element name="accessStart" type="xs:string" />
<xs:element minOccurs="0" name="accessEnd" type="xs:string"/>
<xs:element minOccurs="0" name="reentry" type="xs:boolean"/>
<xs:element minOccurs="0" name="count" type="xs:int"/>
<xs:element minOccurs="0" name="customerId" type="xs:string"/>
<xs:element minOccurs="0" name="customerName" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<!-- ISSUE RESPONSE -->
<xs:element name="issueResponse" type="tns:issueResponse" />
<xs:complexType name="issueResponse">
<xs:sequence>
<xs:element minOccurs="1" maxOccurs="1" name="resultCode" type="xs:int"/>
<xs:element minOccurs="1" maxOccurs="1" name="resultDescription" type="xs:string"/>
<xs:element minOccurs="0" maxOccurs="1" name="transactionId" type="xs:long"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
</localEntry>
<in>
<validate xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/" xmlns:s12="http://www.w3.org/2003/05/soap-envelope" source="s11:Body/child::*[position()=1] | s12:Body/child::*[position()=1]">
<schema key="validate_schema"/>
<on-fail>
<log level="custom">
<property name="MSG" value="FAIL"/>
</log>
<drop/>
</on-fail>
</validate>
<log level="custom">
<property name="MSG" value="PASS"/>
</log>
</in>
<send/>
</definitions>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns6216:issue xmlns:ns6216="http://hostname/rfid_1_0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<nu4900:token xmlns:nu4900="http://hostname/rfid_1_0/" xsi:type="xsd:string">00000000-00</nu4900:token>
<nu4712:rfid xmlns:nu4712="http://hostname/rfid_1_0/" xsi:type="xsd:string">4C46688D</nu4712:rfid>
<nu9698:eventId xmlns:nu9698="http://hostname/rfid_1_0/" xsi:type="xsd:string">0</nu9698:eventId>
<nu5118:locationId xmlns:nu5118="http://hostname/rfid_1_0/" xsi:type="xsd:long">534</nu5118:locationId>
<nu4242:accessStart xmlns:nu4242="http://hostname/rfid_1_0/" xsi:type="xsd:string">test0.8</nu4242:accessStart>
</ns6216:issue>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
_______________________________________________
Esb-java-user mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/esb-java-user