This week's book giveaway is in the JDBC and Relational Databases forum.
We're giving away four copies of Murach's MySQL and have Joel Murach on-line!
See this thread for details.
Win a copy of Murach's MySQL this week in the JDBC and Relational Databases forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

XML Schema Problem

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>
 
Marshal
Posts: 28127
94
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"nv nv", welcome to the JavaRanch.

We're pleased you are here, but we do require members to have valid display names.

Display names must be two words: your first name, a space, then your last name. Fictitious names are not allowed.

Please edit your profile and correct your display name since accounts with invalid display names will be deleted.
 
Natasha Vernon
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just updated my profile.
Thanks,
Natasha
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What's with all those little hyphen (-) characters?

Can you post the error message you're getting? Sure would be nice to have a hint.
 
What is that? Is that a mongol hoarde? Can we fend them off with this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic