WSDL解析错误无法解析WSDL Xml

时间:2012-07-05 01:11:42

标签: javascript ios xml parsing titanium

var soapRequest = "<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:glob="http://sap.com/xi/SAPGlobal20/Global">
 <soapenv:Header/>
   <soapenv:Body>
      <glob:EmployeeLeaveRequestByParticipantQuery>
         <EmployeeLeaveRequestSelectionByParticipant>
            <EmployeeLeaveRequestParticipantRoleCode listVersionID="?">2</EmployeeLeaveRequestParticipantRoleCode>

            <!--Zero or more repetitions:-->
            <EmployeeLeaveRequestParticipantWorkAgreementIDInterval>
               <IntervalBoundaryTypeCode>1</IntervalBoundaryTypeCode>
               <!--Optional:-->
               <LowerBoundaryWorkAgreementID schemeID="?" schemeAgencyID="?">1009</LowerBoundaryWorkAgreementID>
        </EmployeeLeaveRequestParticipantWorkAgreementIDInterval>
            <!--Zero or more repetitions:-->
         </EmployeeLeaveRequestSelectionByParticipant>
      </glob:EmployeeLeaveRequestByParticipantQuery>
   </soapenv:Body>
</soapenv:Envelope>";

我是否需要为我的wsdl文件添加任何xml:scheema前缀,否则它将直接解析!

如何在JavaScript中解析WSDL

@thanks提前!

0 个答案:

没有答案