XML Development

Moderators: None (Apply to moderate this forum)
Number of threads: 257
Number of posts: 456

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Problem in transforming SOAP message to XML using XSLT Posted by srivinayak on 14 Feb 2013 at 3:09 PM
Hi

Here is my XSLT for the SOAP Response given after the below. I am not getting any output. Please help where is the issue?
----------------------------------------------------
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">

<xsl:template match="/">
<SyncSolarInvoiceToBp>
<ApplicationArea>
<Sender>
<LogicalID>infor.database.cmd_db</LogicalID>
<ConfirmationCode>OnError</ConfirmationCode>
<ComponentID>External</ComponentID>
</Sender>
<CreationDateTime></CreationDateTime>
<BODID></BODID>
</ApplicationArea>
<DataArea>
<Sync>
<TenantID>SOLAR</TenantID>
<AccountingEntityID/>
<LocationID/>
<ActionCriteria/>
</Sync>
<xsl:for-each select="//s:Body/ExecuteMultipleOperationsResponse/Operations/Operation">
<SolarInvoiceToBp>
<AddressType><xsl:value-of select="Object/ObjectReference/AddressType"/></AddressType>
<CMDID><xsl:value-of select="Object/ObjectReference/CMDID"/></CMDID>
<WFMKey><xsl:value-of select="Object/ObjectReference/@Key"/></WFMKey>
<Region/>
<District/>
<Action/>
<InvoiceToBp/>
<ParentBp/>
<Country>
<CountryCode/>
<Customer>
<PostalCode/>
<Street/>
<CityDescr/>
<StateCode/>
<RPStatusID/>
<Latitude/>
<Longitude/>
<LocationName/>
</Customer>
</Country>
</SolarInvoiceToBp>
</xsl:for-each>
</DataArea>
</SyncSolarInvoiceToBp>
</xsl:template>
</xsl:stylesheet>

----------------------------------------------
My SOAP response is as shown below

-----------------------------------------------
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header/>
<s:Body>
<ExecuteMultipleOperationsResponse xmlns="http://www.clicksoftware.com">
<Operations>
<Operation xmlns:d3p1="http://www.w3.org/2001/XMLSchema-instance" d3p1:type="SucceededOperation">
<Action>Create</Action>
<Object>
<ObjectReference DisplayString="" Key="257849395" d3p1:type="SolarAddressReference">
<AddressType DisplayString="Invoice To" Key="127543298">Invoice To</AddressType>
<CMDID>59549</CMDID>
</ObjectReference>
</Object>
</Operation>
</Operations>
<Warnings xmlns="">
<Warning>
<Number>1003</Number>
<Description>No revision specified , default is used</Description>
</Warning>
</Warnings>
</ExecuteMultipleOperationsResponse>
</s:Body>
</s:Envelope>
-----------------------------------------------



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.