Announcement Announcement Module
Collapse
No announcement yet.
Working with Modular XSDs Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Working with Modular XSDs

    Hi guys,

    I wanted to break down my XSDs and to have one common XSD which would be included in child XSDs.

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
               xmlns:ci="http://mycompany/customerSearchService/schemas/1/00"
               targetNamespace="http://mycompany/customerSearchService/schemas/1/00"
               elementFormDefault="qualified">
               
    	<xs:include schemaLocation="common-params.xsd" />
        
        <xs:element name="findByCustomerIdRequest">
            <xs:complexType>
                <xs:all>
                    <xs:element minOccurs="0" name="customerId" nillable="false" type="xs:string"/>
                </xs:all>
            </xs:complexType>
        </xs:element>

    However, when I try to setup the project on SOAP UI it fails as the XSD which was included could not be resolved.
    Code:
    Error loading [http://server:port/WEB-INF/common-params.xsd]: org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: error: Unexpected element: CDAT

    Should my configuration be any different when doing modular XSDs?
    Code:
    <sws:dynamic-wsdl id="customerAccountSearchServiceInterface"  
        	portTypeName="CustomerSearchServicePort"                                                         
        	locationUri="http://server:port/ci-webservice-poc/customerSearchService/"                                                       
       		 targetNamespace="http://mycompany/definitions">      
       		                          
      		<sws:xsd location="/WEB-INF/customerAccountSearchService-request.xsd"/>                                             
    	</sws:dynamic-wsdl>


    Cheers
    Kris
    Last edited by ravkrr; Jan 23rd, 2013, 04:37 AM.
Working...
X