Hi,
I am trying to generate an xml format like below:
--------------------------------------------------------------------
<?xml version='1.0' encoding='UTF-8'?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <SOAP-ENV:Body> <ns1:endSession xmlns:ns1="urn:CampaignService" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <requestVo xmlns:ns2="http://request.vo.campaign.os.sears.com/" xsi:type="ns2:EndSessionRequestVO"> <clientId xsi:type="xsd:string">TEST</clientId> <leads xmlns:ns3="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:Array" xmlns:ns4="http://vo.campaign.os.sears.com/" ns3:arrayType="ns4:EndSessionLeadVO[3]"> <item xsi:type="ns4:EndSessionLeadVO"> <leadStatus xsi:type="xsd:string">3</leadStatus> <orderType xsi:type="xsd:string">5</orderType> <orderReference xsi:type="xsd:string">A</orderReference> <propositions xsi:type="ns3:Array" ns3:arrayType="ns4:EndSessionLeadPropositionVO[2]"> <item xsi:type="ns4:EndSessionLeadPropositionVO"> <statusCode xsi:type="xsd:string">4</statusCode> <reasonCode xsi:type="xsd:string">9</reasonCode> <interactionId xsi:type="xsd:string">49</interactionId> </item> <item xsi:type="ns4:EndSessionLeadPropositionVO"> <statusCode xsi:type="xsd:string">5</statusCode> <reasonCode xsi:type="xsd:string">0</reasonCode> <interactionId xsi:type="xsd:string">50</interactionId> </item> </propositions> <interactionId xsi:type="xsd:string">68</interactionId> </item></leads> <sessionId xsi:type="xsd:string">31</sessionId> </requestVo> </ns1:endSession> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
--------------------------------------------------------------------
Can anyone help please. I am attaching the files for reference. Details:
Trying to generate the xml format like “service.xml” (attached)? The way it is generated with my XSLT (endsession_req.xsl) is also attached (endsession_req.xml).
Thanks in advance.
Service.XML Required Format (Service.xml)
endsession_req.xml Result from the used XSLT
endsession_req(2).xsl XSLT I am using
|