Quantcast
Channel: Programmers Heaven Forums RSS Feed
Viewing all articles
Browse latest Browse all 2703

Problem in transforming SOAP message to XML using XSLT

$
0
0
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"/></Add ressType>
<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>
-----------------------------------------------

Viewing all articles
Browse latest Browse all 2703

Trending Articles