none
Class and XSD generation

    Question

  • Hi, 

    could anyone help me to generate sample XSD and Class for the below XML. 

    I have converted XML to XSD and while converting XSD to class, i am  receiving error namespace not found or element undefined.

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
    xmlns:aud="http://www.test.com//response/audit" 
    xmlns:head="https://www.test1.com/oneservice/response/header" 
    xmlns:res="https://www.test1.com/oneservice/response">
       <soapenv:Header>
          <aud:GHeader>
             <ProviderTxnID>12345</ProviderTxnID>
             <ProviderTxnStatus>S</ProviderTxnStatus>
          </aud:GHeader>
          <head:IResponse>
             <MsgDateTime>20140514T105539.123 GMT</MsgDateTime>
             <!--Optional:-->
             <ProviderTxnErrorCode/>
             <!--Optional:-->
             <ProviderTxnErrorDescription/>
          </head:IResponse>
       </soapenv:Header>
       <soapenv:Body>
          <res:CreateNewCaseResponse>
             <CaseDetails>
                <CentralCaseID>000001-02</CentralCaseID>
                <AgencyCaseID>0001</AgencyCaseID>
                <CentralCaseStatus>Assigned</CentralCaseStatus>
                <AgencyCaseStatus>Accepted</AgencyCaseStatus>
             </CaseDetails>
          </res:CreateNewCaseResponse>
       </soapenv:Body>
    </soapenv:Envelope>


    Friday, June 13, 2014 8:36 AM