cancel
Showing results for 
Search instead for 
Did you mean: 

How to merge two XSDs

former_member192238
Participant
0 Kudos

Hello experts,

I have requirement of merging 2 xsd's business has given me a XSD which need to encorporated in SOAP Body structure.

I have XML as follow

<?xml version="1.0" encoding="UTF-8"?>

<ns0:Envelope xmlns:ns0="http://xyz.com/Xproc/ProcComm/XML/OTHERS/xi">
   <soapenv_Header>
      <sanco_xmlgate_Security>
         <UsernameToken>
            <Username/>
            <Password/>
            <Secret/>
         </UsernameToken>
      </sanco_xmlgate_Security>
      <sanco_xmlgate_xmlgate>
         <sanco_xmlgate_project id=""/>
         <sanco_xmlgate_service name="" method=""/>
      </sanco_xmlgate_xmlgate>
   </soapenv_Header>
   <soapenv_Body>
    

   </soapenv_Body>

for the above XML i have created XSD through Message type but now i have to add  XSD called report under the Body structure.

I have done of including schema of report in the XSD but luck didint work out i am not good in editing the XSD.

Kindly suggest me any help is appreciated.

Regards

Praveen

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Praveen,

In general we can use one xsd inside another by using either import or include tag.

As you are using this and you are facing some issues,I think there is some issue in your xsd file, please check the xsd file properly, there may be some syntax error or some tags are missing.

Best Regards,

Sagarika Mishra

former_member192238
Participant
0 Kudos

Thanks sagarika and Michal for your valuable inputs,

Due to syntax errors i am not able to import now i have corrected it.

Regards

Praveen

Answers (1)

Answers (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

according to this doc:

http://ec.europa.eu/consumers/tenders/information/grants/docs/service_technical_specifications_1.2.p...

you should have a doc- onsumer-complaints.xsd 

which should have the structures right ? have you tried it ?

Regards,

Michal Krawczyk