Brijesh,

You should be able to remove the soapEnvelope by adding
useJBIWrapper="false" and useSOAPEnvelope="false" on your CXF BC
endpoint.  This way, only the plain XML message payload will be sent
to your Saxon SU.

Regards,

Gert Vanthienen
------------------------
Open Source SOA: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/



2009/3/23 Guillaume Nodet <[email protected]>:
> The soap envelope should not really be sent inside the NMR.
> This may happen depending on your configuration of your BC though.
>
> On Mon, Mar 23, 2009 at 10:32, brijesh <[email protected]> wrote:
>>
>> JB,
>>
>> thanks  for the input, I tried that also but no luck,
>> but what i observed is , the xml file which is going into xslt tranformation
>> has soap envelope tags. as given below
>>
>> <soap:Envelope
>> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";><soap:Body><not:notifyEvent
>> xmlns:not="http://www.ekaplus.com/NotifyEvent/";>
>>         <in><catalog>
>>        <cd>
>>                <title>Empire Burlesque</title>
>>                <artist>Bob Dylan</artist>
>>                <country>USA</country>
>>                <company>Columbia</company>
>>                <price>10.90</price>
>>                <year>1985</year>
>>        </cd>
>>        <cd>
>>                <title>Hide your heart</title>
>>                <artist>Bonnie Tyler</artist>
>>                <country>UK</country>
>>                <company>CBS Records</company>
>>                <price>9.90</price>
>>                <year>1988</year>
>>        </cd>
>> </catalog>
>> </in>
>>      </not:notifyEvent></soap:Body></soap:Envelope>
>>
>> is it required to take care of soap tags also , while creating xslt or is
>> there a way to remove the soap tag and pass only the payload to
>> transformation ??
>>
>> thanks for the valuable input
>>
>> regards
>>
>> Brijesh N K
>>
>>
>>
>>
>> Jean-Baptiste Onofré wrote:
>>>
>>> Hi,
>>>
>>> have you tried :
>>>
>>> <xsl:template match="catalog">
>>>    <test>
>>>       <xsl:apply-template/>
>>>    </test>
>>> </xsl:template>
>>> <xsl:template match="catalog/cd">
>>>    <cd>
>>>       <xsl:value-of select="title"/>
>>>       <xsl:value-of select="artist"/>
>>>    </cd>
>>> </xsl:template>
>>>
>>> ?
>>>
>>> Regards
>>> JB
>>>
>>> On Friday 20 March 2009 - 08:00, brijesh wrote:
>>>>
>>>> hello ,
>>>>
>>>> I have  servicemix-saxon  su with following xslt
>>>>
>>>> <?xml version="1.0" encoding="ISO-8859-1"?>
>>>> <xsl:stylesheet version="1.0"
>>>> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";><xsl:template match="/">
>>>>    <test>
>>>>       <xsl:for-each select="catalog/cd">
>>>>       <cd>
>>>>         <xsl:value-of select="title"/>
>>>>         <xsl:value-of select="artist"/>
>>>>       </cd>
>>>>       </xsl:for-each>
>>>>    </test>
>>>>
>>>> </xsl:template></xsl:stylesheet>
>>>>
>>>> following is xbean configuration
>>>>
>>>> <beans xmlns:saxon="http://servicemix.apache.org/saxon/1.0";
>>>>        xmlns:nte="http://www.ekaplus.com/NotifyEvent/";
>>>>        xmlns="http://www.springframework.org/schema/beans";
>>>>        xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance";
>>>>        xsi:schemaLocation="http://servicemix.apache.org/saxon/1.0
>>>> http://servicemix.apache.org/schema/servicemix-saxon-3.2.3.xsd
>>>>        http://www.springframework.org/schema/beans
>>>> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd";>
>>>>
>>>>   <!-- START SNIPPET: xslt -->
>>>>   <saxon:xslt service="nte:transformToDoc"
>>>> endpoint="nte:transformToDocEP"
>>>>               resource="classpath:transform.xsl" />
>>>>   <!-- END SNIPPET: xslt -->
>>>>
>>>>  </beans>
>>>>
>>>> xml file as follows
>>>>
>>>>  <catalog>
>>>>  <cd>
>>>>   <title>Empire Burlesque</title>
>>>>   <artist>Bob Dylan</artist>
>>>>   <country>USA</country>
>>>>   <company>Columbia</company>
>>>>   <price>10.90</price>
>>>>   <year>1985</year>
>>>>   </cd>
>>>>  <cd>
>>>>   <title>Hide your heart</title>
>>>>   <artist>Bonnie Tyler</artist>
>>>>   <country>UK</country>
>>>>   <company>CBS Records</company>
>>>>   <price>9.90</price>
>>>>   <year>1988</year>
>>>>   </cd>
>>>> <cd>
>>>>   <title>Greatest Hits</title>
>>>>   <artist>Dolly Parton</artist>
>>>>   <country>USA</country>
>>>>   <company>RCA</company>
>>>>   <price>9.90</price>
>>>>   <year>1982</year>
>>>>   </cd>
>>>>  </catalog>
>>>>
>>>> I am getting the result as follows
>>>>
>>>>
>>>> <test/>
>>>>
>>>> but my expected result was
>>>>
>>>> <test><cd>Empire BurlesqueBob Dylan</cd><cd>Hide your heartBonnie
>>>> Tyler</cd><cd>Greatest HitsDolly Parton</cd></test>
>>>>
>>>>
>>>> can anybody point out the mistake here , it seems that for-each xslt
>>>> iterator is not working with saxon-xslt
>>>>
>>>>
>>>> regards
>>>>
>>>> Brijesh N K
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/saxon-xslt---for-each-iterator-tp22621757p22621757.html
>>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>>
>>>
>>>
>>
>> --
>> View this message in context: 
>> http://www.nabble.com/saxon-xslt---for-each-iterator-tp22621757p22656753.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
>

Reply via email to