1
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

@提前致谢!

4

0 回答 0