<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<style type="text/css">
<!--

/*
  The original subSilver Theme for phpBB version 2+
  Created by subBlue design
  http://www.subBlue.com

  NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2
  theme administration centre. When you have finalised your style you could cut the final CSS code
  and place it in an external file, deleting this section to save bandwidth.
*/


 /* General page style. The scroll bar colours only visible in IE5.5+ */
body {
        background-color: #E5E5E5;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 11;
        color: #000000;
}

/* General font families for common tags */
font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif }
p, td                { font-size : 11; color : #000000; }
a:link,a:active,a:visited { color : #006699; }
a:hover                { text-decoration: underline; color : #DD6900; }
hr        { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;}
h1,h2                { font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; font-size : 22px; font-weight : bold; text-decoration : none; line-height : 120%; color : #000000;}


/* This is the border line & background colour round the entire page */
.bodyline        { background-color: #FFFFFF; border: 1px #98AAB1 solid; }


/* General text */
.gen { font-size : 12px; }
.genmed { font-size : 11px; }
.gensmall { font-size : 10px; line-height: 12px}
.gen,.genmed,.gensmall { color : #000000; }
a.gen,a.genmed,a.gensmall { color: #006699; text-decoration: none; }
a.gen:hover,a.genmed:hover,a.gensmall:hover        { color: #DD6900; text-decoration: underline; }


/* Forum title: Text and link to the forums used in: index.php */
.forumlink                { font-weight: bold; font-size: 12px; color : #006699; }
a.forumlink         { text-decoration: none; color : #006699; }
a.forumlink:hover{ text-decoration: underline; color : #DD6900; }


/* The content of the posts (body of text) */
.postbody { font-size : 12px; line-height: 18px}
a.postlink:link        { text-decoration: none; color : #006699 }
a.postlink:visited { text-decoration: none; color : #5493B4; }
a.postlink:hover { text-decoration: underline; color : #DD6900}


/* Quote & Code blocks */
.code {
        font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600;
        background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
        border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}

.quote {
        font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%;
        background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
        border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}

-->
</style>
</head>
        <body>

        <div class="postbody">Hi,<br />
<br />
I have deployed a XSLT example on PEtALS:<br />
    - I send my name "vlinhp2" to HelloXSLTWSDL.wsdl<br />
    - HelloXSLTWSDL.wsdl send my name to the HelloXSLTService.xsl.<br />
    - The XSLT service concate "Hello: " + "vlinhp2" and return the concatened string.<br />
I put sa-XSLT-HelloXSLTWSDLService-provide.zip in PEtALS install folder. You can download my eclipse source code:<a href="http://www.mediafire.com/download.php?hfzgyyyyygv" target="_blank" class="postlink">http://www.mediafire.com/download.php?hfzgyyyyygv</a><br />
The HelloXSLTWSDL.wsdl<br />
</span><table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr>           <td><span class="genmed"><b>Code:</b></span></td>        </tr>        <tr>          <td class="code"><?xml version="1.0" encoding="UTF-8"?><br />
<definitions name="HelloXSLTWSDL" targetNamespace="http&#58;//j2ee.netbeans.org/wsdl/HelloXSLTWSDL" xmlns="http&#58;//schemas.xmlsoap.org/wsdl/" xmlns&#58;plnk="http&#58;//docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns&#58;ns="http&#58;//xml.netbeans.org/schema/HelloXSLTIncoming" xmlns&#58;wsdl="http&#58;//schemas.xmlsoap.org/wsdl/" xmlns&#58;tns="http&#58;//j2ee.netbeans.org/wsdl/HelloXSLTWSDL" xmlns&#58;ns0="http&#58;//xml.netbeans.org/schema/HelloXSLTOutgoing" xmlns&#58;xsd="http&#58;//www.w3.org/2001/XMLSchema" xmlns&#58;soap="http&#58;//schemas.xmlsoap.org/wsdl/soap/"><br />
&nbsp; <types><br />
&nbsp; &nbsp; <xsd&#58;schema targetNamespace="http&#58;//j2ee.netbeans.org/wsdl/HelloXSLTWSDL"><br />
&nbsp; &nbsp; &nbsp; <xsd&#58;import namespace="http&#58;//xml.netbeans.org/schema/HelloXSLTOutgoing" schemaLocation="HelloXSLTOutgoing.xsd"/><br />
&nbsp; &nbsp; &nbsp; <xsd&#58;import namespace="http&#58;//xml.netbeans.org/schema/HelloXSLTIncoming" schemaLocation="HelloXSLTIncoming.xsd"/><br />
&nbsp; &nbsp; </xsd&#58;schema><br />
&nbsp; </types><br />
&nbsp; <message name="HelloXSLTWSDLOperationRequest"><br />
&nbsp; &nbsp; <part name="part1" element="ns&#58;name"><br />
&nbsp; &nbsp; </part><br />
&nbsp; </message><br />
&nbsp; <message name="HelloXSLTWSDLOperationResponse"><br />
&nbsp; &nbsp; <part name="part1" element="ns0&#58;greeting"><br />
&nbsp; &nbsp; </part><br />
&nbsp; </message><br />
&nbsp; <portType name="HelloXSLTWSDLPortType"><br />
&nbsp; &nbsp; <operation name="HelloXSLTWSDLOperation"><br />
&nbsp; &nbsp; &nbsp; <input name="input1" message="tns&#58;HelloXSLTWSDLOperationRequest"><br />
&nbsp; &nbsp; </input><br />
&nbsp; &nbsp; &nbsp; <output name="output1" message="tns&#58;HelloXSLTWSDLOperationResponse"><br />
&nbsp; &nbsp; </output><br />
&nbsp; &nbsp; </operation><br />
&nbsp; </portType><br />
&nbsp; <binding name="HelloXSLTWSDLBinding" type="tns&#58;HelloXSLTWSDLPortType"><br />
&nbsp; &nbsp; <soap&#58;binding style="document" transport="http&#58;//schemas.xmlsoap.org/soap/http"/><br />
&nbsp; &nbsp; <operation name="HelloXSLTWSDLOperation"><br />
&nbsp; &nbsp; &nbsp; <soap&#58;operation/><br />
&nbsp; &nbsp; &nbsp; <input name="input1"><br />
&nbsp; &nbsp; &nbsp; &nbsp; <soap&#58;body use="literal"/><br />
&nbsp; &nbsp; &nbsp; </input><br />
&nbsp; &nbsp; &nbsp; <output name="output1"><br />
&nbsp; &nbsp; &nbsp; &nbsp; <soap&#58;body use="literal"/><br />
&nbsp; &nbsp; &nbsp; </output><br />
&nbsp; &nbsp; </operation><br />
&nbsp; </binding><br />
&nbsp; <service name="HelloXSLTWSDLService"><br />
&nbsp; &nbsp; <port name="HelloXSLTWSDLPort" binding="tns&#58;HelloXSLTWSDLBinding"><br />
&nbsp; &nbsp; &nbsp; <soap&#58;address location="http&#58;//localhost&#58;$&#123;HttpDefaultPort&#125;/HelloXSLTWSDLService/HelloXSLTWSDLPort"/><br />
&nbsp; &nbsp; </port><br />
&nbsp; </service><br />
&nbsp; &nbsp; <plnk&#58;partnerLinkType name="HelloXSLTWSDL"><br />
&nbsp; &nbsp; <!-- A partner link type is automatically generated when a new port type is added. Partner link types are used by BPEL processes. <br />
In a BPEL process, a partner link represents the interaction between the BPEL process and a partner service. Each partner link is associated with a partner link type.<br />
A partner link type characterizes the conversational relationship between two services. The partner link type can have one or two roles.--><br />
&nbsp; &nbsp; <plnk&#58;role name="HelloXSLTWSDLPortTypeRole" portType="tns&#58;HelloXSLTWSDLPortType"/><br />
&nbsp; </plnk&#58;partnerLinkType><br />
</definitions><br />
</td>        </tr></table><span class="postbody"><br />
HelloXSLTIncoming.xsd for WSDL file:<br />
</span><table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr>           <td><span class="genmed"><b>Code:</b></span></td>        </tr>        <tr>          <td class="code"><?xml version="1.0" encoding="UTF-8"?><br />
<xsd&#58;schema xmlns&#58;xsd="http&#58;//www.w3.org/2001/XMLSchema" xmlns&#58;tns="http&#58;//xml.netbeans.org/schema/HelloXSLTIncoming" targetNamespace="http&#58;//xml.netbeans.org/schema/HelloXSLTIncoming" elementFormDefault="qualified"><br />
&nbsp; <xsd&#58;element name="name" type="xsd&#58;string" /><br />
</xsd&#58;schema><br />
</td>        </tr></table><span class="postbody"><br />
The HelloXSLTOutgoing.xsd for WSDL file:<br />
</span><table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr>           <td><span class="genmed"><b>Code:</b></span></td>        </tr>        <tr>          <td class="code"><?xml version="1.0" encoding="UTF-8"?><br />
<xsd&#58;schema xmlns&#58;xsd="http&#58;//www.w3.org/2001/XMLSchema" xmlns&#58;tns="http&#58;//xml.netbeans.org/schema/HelloXSLTOutgoing" targetNamespace="http&#58;//xml.netbeans.org/schema/HelloXSLTOutgoing" elementFormDefault="qualified"><br />
&nbsp; <xsd&#58;element name="greeting" type="xsd&#58;string" /><br />
</xsd&#58;schema><br />
</td>        </tr></table><span class="postbody"><br />
The HelloXSLTService.xsl<br />
</span><table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr>           <td><span class="genmed"><b>Code:</b></span></td>        </tr>        <tr>          <td class="code"><?xml version="1.0" encoding="UTF-8"?><br />
<xsl&#58;stylesheet xmlns&#58;xsl="http&#58;//www.w3.org/1999/XSL/Transform" version="1.0" xmlns&#58;ns1="http&#58;//xml.netbeans.org/schema/HelloXSLTIncoming" xmlns&#58;ns="http&#58;//xml.netbeans.org/schema/HelloXSLTOutgoing"><br />
&nbsp; &nbsp; <xsl&#58;template match="/"><br />
&nbsp; &nbsp; &nbsp; &nbsp; <xsl&#58;element name="ns&#58;greeting"><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <xsl&#58;value-of select="concat&#40;&apos;Hello&#58; &apos;, /ns1&#58;name&#41;"/><br />
&nbsp; &nbsp; &nbsp; &nbsp; </xsl&#58;element><br />
&nbsp; &nbsp; </xsl&#58;template><br />
</xsl&#58;stylesheet></td>        </tr></table><span class="postbody"><br />
The jbi.xml<br />
</span><table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr>           <td><span class="genmed"><b>Code:</b></span></td>        </tr>        <tr>          <td class="code"><?xml version="1.0" encoding="UTF-8"?><br />
<!-- <br />
&nbsp; &nbsp;JBI descriptor for the PEtALS' "petals-se-xslt" component &#40;XSLT&#41;.<br />
&nbsp; &nbsp;Originally created for the version 2.2 of the component.<br />
&nbsp;--><br />
<jbi&#58;jbi version="1.0" <br />
&nbsp; &nbsp;xmlns&#58;generatedNs="http&#58;//j2ee.netbeans.org/wsdl/HelloXSLTWSDL"<br />
&nbsp; &nbsp;xmlns&#58;jbi="http&#58;//java.sun.com/xml/ns/jbi"<br />
&nbsp; &nbsp;xmlns&#58;petalsCDK="http&#58;//petals.ow2.org/components/extensions/version-4.0"<br />
&nbsp; &nbsp;xmlns&#58;xsi="http&#58;//www.w3.org/2001/XMLSchema-instance"<br />
&nbsp; &nbsp;xmlns&#58;xslt="http&#58;//petals.ow2.org/components/xslt/version-2.2"><br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp;<!-- Import a Service into PEtALS or Expose a PEtALS Service => use a BC. --><br />
&nbsp; &nbsp;<jbi&#58;services binding-component="false"><br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp;&nbsp; &nbsp;<!-- Import a Service into PEtALS => provides a Service. --><br />
&nbsp; &nbsp;&nbsp; &nbsp;<jbi&#58;provides &nbsp; &nbsp;&nbsp; &nbsp;<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;interface-name="generatedNs&#58;HelloXSLTWSDLPortType"<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;service-name="generatedNs&#58;HelloXSLTWSDLService"<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;endpoint-name="HelloXSLTWSDLPort"><br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<!-- CDK specific elements --><br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<petalsCDK&#58;wsdl>HelloXSLTWSDL.wsdl</petalsCDK&#58;wsdl><br />
&nbsp; &nbsp;&nbsp; &nbsp;<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<!-- Component specific elements -->&nbsp; &nbsp;<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<xslt&#58;stylesheet>HelloXSLTService.xsl</xslt&#58;stylesheet>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<br />
&nbsp; &nbsp;&nbsp; &nbsp;</jbi&#58;provides><br />
&nbsp; &nbsp;</jbi&#58;services><br />
</jbi&#58;jbi></td>        </tr></table><span class="postbody"><br />
I used petals-sample-client to test this example, the input message like that:<br />
</span><table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr>           <td><span class="genmed"><b>Code:</b></span></td>        </tr>        <tr>          <td class="code"><br />
<soapenv&#58;Envelope xsi&#58;schemaLocation="http&#58;//schemas.xmlsoap.org/soap/envelope/ http&#58;//schemas.xmlsoap.org/soap/envelope/" xmlns&#58;xsi="http&#58;//www.w3.org/2001/XMLSchema-instance" xmlns&#58;xsd="http&#58;//www.w3.org/2001/XMLSchema" xmlns&#58;soapenv="http&#58;//schemas.xmlsoap.org/soap/envelope/" xmlns&#58;hel="http&#58;//xml.netbeans.org/schema/HelloXSLTIncoming"><br />
&nbsp; <soapenv&#58;Body><br />
&nbsp; &nbsp; <hel&#58;name>vlinhp2</hel&#58;name><br />
&nbsp; </soapenv&#58;Body><br />
</soapenv&#58;Envelope></td>        </tr></table><span class="postbody"><br />
It works, but the response not cantains my name:<br />
</span><table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr>           <td><span class="genmed"><b>Code:</b></span></td>        </tr>        <tr>          <td class="code"><?xml version="1.0" encoding="UTF-8"?><ns&#58;greeting xmlns&#58;ns="http&#58;//xml.netbeans.org/schema/HelloXSLTOutgoing">Hello&#58; </ns&#58;greeting></td>        </tr></table><span class="postbody"><br />
<br />
Do you know this problem ? can you help me ? I think that may be my WSDL or my XSLT service not working.<br />
Thanks !</div>
        <br /><div class="gensmall"><br />
<br />
<br />
-------------------- m2f --------------------<br />
<br />
Read this forum topic online here:<br />
<a href="http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=766#766" target="_blank">http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=766#766</a><br />
<br />
-------------------- m2f --------------------</div>
        </body>
</html>