<!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 am switching from the eclipse plugin to maven to package my JBI components. The maven plugin works great and saves me a lot of time when I want to redeploy a new version of a JBI component.<br />
<br />
My question is that I'd like to add a wsdl file to a service unit (SU), just like I did with the eclipse plugin, but I don't know how to do that. <br />
<br />
Here's my jbi.xml 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"><br />
<?xml version="1.0" encoding="UTF-8"?><br />
<jbi&#58;jbi version="1.0" <br />
&nbsp; &nbsp;xmlns&#58;xsi="http&#58;//www.w3.org/2001/XMLSchema-instance"<br />
&nbsp; &nbsp;xmlns&#58;jbi="http&#58;//java.sun.com/xml/ns/jbi"<br />
&nbsp; &nbsp;xmlns&#58;pojo="http&#58;//petals.ow2.org/components/pojo/version-2.0"<br />
&nbsp; &nbsp;xmlns&#58;petalsCDK="http&#58;//petals.ow2.org/components/extensions/version-4.0"<br />
&nbsp; &nbsp; &nbsp; &nbsp; xmlns&#58;generatedNamespace="http&#58;//acme.com"><br />
<jbi&#58;services binding-component="false"><br />
&nbsp; &nbsp; <jbi&#58;provides interface-name="generatedNamespace&#58;MyServicePortType"<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;service-name="generatedNamespace&#58;MyService"<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;endpoint-name="MyServiceEndpoint"><br />
<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<!-- CDK specific elements --><br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<petalsCDK&#58;wsdl>MyService.wsdl</petalsCDK&#58;wsdl><br />
<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<!-- Component specific elements -->&nbsp; &nbsp;<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<pojo&#58;class-name>com.acme.petals.MyServiceImpl</pojo&#58;class-name>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<br />
&nbsp; &nbsp;&nbsp; &nbsp;</jbi&#58;provides><br />
&nbsp; &nbsp;</jbi&#58;services><br />
</jbi&#58;jbi><br />
</td>        </tr></table><span class="postbody"><br />
<br />
And here is the SU packaged 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"><br />
su-MyService.zip<br />
&nbsp; |--META-INF<br />
&nbsp; &nbsp; &nbsp; +-- jbi.xml<br />
&nbsp; |-- myService-1.0-SNAPSHOP.jar<br />
</td>        </tr></table><span class="postbody"><br />
<br />
When I deploy this SU in PEtALS, I get an error about the missing wsdl file...<br />
</span><table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr>           <td><span class="genmed"><b>Quote:</b></span></td>        </tr>        <tr>          <td class="quote"><br />
PEtALSCDKException : Cannot retreive WSDL document from location : \MyService.wsdl<br />
</td>        </tr></table><span class="postbody"><br />
<br />
So, how can I maven to add my wsdl file in the SU zip file to have something 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 />
su-MyService.zip<br />
&nbsp; |--META-INF<br />
&nbsp; &nbsp; &nbsp; +-- jbi.xml<br />
&nbsp; |-- myService-1.0-SNAPSHOP.jar<br />
&nbsp; |--myService.wsdl<br />
</td>        </tr></table><span class="postbody"><br />
<br />
Thanks in advance for your help,<br />
<br />
Vincent</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=399#399" target="_blank">http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=399#399</a><br />
<br />
-------------------- m2f --------------------</div>
        </body>
</html>