[esb-java-dev] ESB XSLT

Kattubadi Basher Ahamed Kattubadi.BasherAhamed at imail.org
Thu Mar 5 09:26:38 PST 2009


Paul,
 can you please explain me how to start running samples .

-basher
 

-----Original Message-----
From: esb-java-dev-bounces at wso2.org [mailto:esb-java-dev-bounces at wso2.org] On Behalf Of Paul Fremantle
Sent: Thursday, March 05, 2009 9:13 AM
To: esb-java-dev at wso2.org
Subject: Re: [esb-java-dev] ESB XSLT

Basher

Can I suggest you start by taking a look at Sample 8.
http://wso2.org/project/esb/java/2.0.1/docs/wso2esb-2.0.1-docs/samples/message_mediation_samples.html#Sample8

The key configuration is to store your XSLT in the Registry, and then use the transform mediator to point at it.

Let us know if that gets you going otherwise I can give a more detailed instructions.

Regards
Paul

Kattubadi Basher Ahamed wrote:
>  
> HI,
>  I am evaluating WS02 ESB , I have good exp in IBM ESB and ALSB/OSB.
> I am trying XSLT transformation in WS02 ESB , I need to apply xslt 
> before sending to the end point. Can you send me details, where i need 
> to put xslt and how need to configure in proxy in xslt just i am 
> changing <UnitNumberXXX> to <UnitNumbe>
>  
>  
> Request to ESB :
>  
> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
> xmlns:med="MedService">
>    <soapenv:Header/>
>    <soapenv:Body>
>       <med:getMedData>
>          <med:UnitNumberXXX>118138</med:UnitNumberXXX>
>          </med:getMedData>
>    </soapenv:Body>
> </soapenv:Envelope>
>  
> XSLT
>  
> Transform.xsl
>  
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
> version="1.0" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
> xmlns:med="MedService" >
>  <xsl:output method="xml" indent="yes"/>  <xsl:template match="/">
>   <med:getMedData>
>    <med:UnitNumber>
>     <xsl:value-of select="//med:UnitNumberXXX"/>
>    </med:UnitNumber>
>   </med:getMedData>
>  </xsl:template>
> </xsl:stylesheet>
>  
> Thanks and Regards
> ...................................
> Basher Kattubadi
> Desk:801-442-5515
>  
> 
> 
> ----------------------------------------------------------------------
> --
> 
> _______________________________________________
> Esb-java-dev mailing list
> Esb-java-dev at wso2.org
> https://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev

--
Paul Fremantle
CTO and Co-Founder, WSO2
OASIS WS-RX TC Co-chair
VP, Apache Synapse

Office: +44 844 484 8143
Cell: +44 798 447 4618

blog: http://pzf.fremantle.org
paul at wso2.com

"Oxygenating the Web Service Platform", www.wso2.com

_______________________________________________
Esb-java-dev mailing list
Esb-java-dev at wso2.org
https://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev



More information about the Esb-java-dev mailing list