I am trying to validate
SOAP input against the following schema. But it does not seem to like the schema even if I pass valid input. Is there anything wrong with the schema. I am very new to XML schemas.
<?xml version="1.0" encoding="UTF-8" ?>
- <xsd:schema targetNamespace="http://10.208.139.50/Retailer/" xmlns:impl="http://10.208.139.50/Retailer/" xmlns:intf="http://10.208.139.50/Retailer/" xmlns:tns2="http://Catalog.www.ws_i.org" xmlns:tns3="http://Order.www.ws_i.org" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsi="http://ws-i.org/profiles/basic/1.1/xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
-
- <schema targetNamespace="http://10.208.139.50/Retailer/" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:impl="http://10.208.139.50/Retailer/" xmlns:intf="http://10.208.139.50/Retailer/" xmlns:tns2="http://Catalog.www.ws_i.org" xmlns:tns3="http://Order.www.ws_i.org" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<import namespace="http://Order.www.ws_i.org" />
<import namespace="http://Catalog.www.ws_i.org" />
-
- <element name="getCatalogResponse">
-
- <complexType>
-
- <sequence>
<element name="getCatalogReturn" nillable="true" type="impl:ArrayOf_tns2_CatalogItem" />
</sequence>
</complexType>
</element>
-
- <element name="submitOrder">
-
- <complexType>
-
- <sequence>
<element name="orderItems" nillable="true" type="impl:ArrayOf_tns3_PartsOrderItem" />
<element name="customerDetails" nillable="true" type="tns3:CustomerDetailsType" />
</sequence>
</complexType>
</element>
-
- <element name="submitOrderResponse">
-
- <complexType>
-
- <sequence>
<element name="submitOrderReturn" nillable="true" type="impl:ArrayOf_tns3_PartsOrderResponseItem" />
</sequence>
</complexType>
</element>
-
- <element name="getCatalog">
-
- <complexType>
<sequence />
</complexType>
</element>
-
- <complexType name="ArrayOf_tns2_CatalogItem">
-
- <sequence>
<element maxOccurs="unbounded" minOccurs="0" name="CatalogItem" nillable="true" type="tns2:CatalogItem" />
</sequence>
</complexType>
-
- <complexType name="ArrayOf_tns3_PartsOrderItem">
-
- <sequence>
<element maxOccurs="unbounded" minOccurs="0" name="PartsOrderItem" nillable="true" type="tns3:PartsOrderItem" />
</sequence>
</complexType>
-
- <complexType name="ArrayOf_tns3_PartsOrderResponseItem">
-
- <sequence>
<element maxOccurs="unbounded" minOccurs="0" name="PartsOrderResponseItem" nillable="true" type="tns3:PartsOrderResponseItem" />
</sequence>
</complexType>
</schema>
-
- <schema targetNamespace="http://Catalog.www.ws_i.org" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:impl="http://10.208.139.50/Retailer/" xmlns:intf="http://10.208.139.50/Retailer/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
-
- <complexType name="CatalogItem">
-
- <sequence>
<element name="name" nillable="true" type="xsd:string" />
<element name="description" nillable="true" type="xsd:string" />
<element name="productNumber" nillable="true" type="xsd:integer" />
<element name="category" nillable="true" type="xsd:string" />
<element name="brand" nillable="true" type="xsd:string" />
<element name="price" nillable="true" type="xsd:decimal" />
</sequence>
</complexType>
</schema>
-
- <schema targetNamespace="http://Order.www.ws_i.org" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:impl="http://10.208.139.50/Retailer/" xmlns:intf="http://10.208.139.50/Retailer/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
-
- <complexType name="PartsOrderItem">
-
- <sequence>
<element name="productNumber" nillable="true" type="xsd:integer" />
<element name="quantity" nillable="true" type="xsd:integer" />
<element name="price" nillable="true" type="xsd:decimal" />
</sequence>
</complexType>
-
- <complexType name="CustomerDetailsType">
-
- <sequence>
<element name="custnbr" nillable="true" type="xsd:string" />
<element name="name" nillable="true" type="xsd:string" />
<element name="street1" nillable="true" type="xsd:string" />
<element name="street2" nillable="true" type="xsd:string" />
<element name="city" nillable="true" type="xsd:string" />
<element name="state" nillable="true" type="xsd:string" />
<element name="zip" nillable="true" type="xsd:string" />
<element name="country" nillable="true" type="xsd:string" />
</sequence>
</complexType>
-
- <complexType name="PartsOrderResponseItem">
-
- <sequence>
<element name="productNumber" nillable="true" type="xsd:integer" />
<element name="quantity" nillable="true" type="xsd:integer" />
<element name="price" nillable="true" type="xsd:decimal" />
<element name="comment" nillable="true" type="xsd:string" />
</sequence>
</complexType>
</schema>
</xsd:schema>