Sunday, 3 April 2016

How to use multiple XSD files in a single WSDL file ?


To use multiple XSD files in a single WSDL file, we can use multiple import tags inside schema tag.

Example
<wsdl:definitions ...>
  <wsdl:types>
    <xsd:schema attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://service.shaan.com/V1">
      <xsd:import namespace="http://user.shaan.com/V1" schemaLocation="UserInfo.xsd"/>
      <xsd:import namespace="http://co.shaan.com/V1" schemaLocation="CompanyInfo.xsd"/>
       .....

No comments:

Post a Comment

Note: only a member of this blog may post a comment.