<!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">good morning,<br />
Thank you first of all for your help.<br />
I am using petals-standalone-1.5.0 et petals-se-eip-1.4-SNAPSHOT.zip because I think the equivalent of <get-calls-by-service> isn't supported in the new eip version.<br />
I exposed into PEtALS a sample example using eip which, then I exposed it outside PEtALS using bc-soap. I tried to invoke this service using web service client from eclipse but I got this exception in eclipse</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">org.w3c.dom.DOMException&#58; WRONG_DOCUMENT_ERR&#58; A node is used in a different document than the one that created it.</td>        </tr></table><span class="postbody"> and this in petals terminal</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">&#91;Petals.Container.Components.petals-engine-eip&#93;-SEVERE 2009-06-26 10&#58;24&#58;08,323 Error during message exchange processing<br />
org.objectweb.petals.component.common.HandlingException&#58; Unknown operation&#58; "getCalls".<br />
&nbsp; &nbsp;at org.objectweb.petals.engine.eip.EipEngine.onExchange&#40;EipEngine.java&#58;337&#41;<br />
&nbsp; &nbsp;at org.objectweb.petals.component.common.AbstractComponent.processInOut&#40;AbstractComponent.java&#58;520&#41;<br />
&nbsp; &nbsp;at org.objectweb.petals.component.common.AbstractComponent.process&#40;AbstractComponent.java&#58;457&#41;<br />
&nbsp; &nbsp;at org.objectweb.petals.component.common.listener.MessageExchangeWorker.run&#40;MessageExchangeWorker.java&#58;59&#41;<br />
&nbsp; &nbsp;at java.util.concurrent.ThreadPoolExecutor$Worker.runTask&#40;ThreadPoolExecutor.java&#58;886&#41;<br />
&nbsp; &nbsp;at java.util.concurrent.ThreadPoolExecutor$Worker.run&#40;ThreadPoolExecutor.java&#58;908&#41;<br />
&nbsp; &nbsp;at java.lang.Thread.run&#40;Thread.java&#58;619&#41;<br />
&#91;Petals.Container.Components.petals-bc-soap&#93;-WARNING 2009-06-26 10&#58;24&#58;08,624 Got a fault on JBI response<br />
</td>        </tr></table><span class="postbody"><br />
For exposing my sample SA(service assembly) into petals I used this jbi.xml:</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 />
<jbi version="1.0" xmlns="http&#58;//java.sun.com/xml/ns/jbi"<br />
&nbsp; &nbsp;&nbsp; &nbsp;xmlns&#58;xsi="http&#58;//www.w3.org/2001/XMLSchema-instance"<br />
&nbsp; &nbsp;&nbsp; &nbsp;xmlns&#58;petals="http&#58;//petals.objectweb.org/"<br />
&nbsp; &nbsp;&nbsp; &nbsp;xmlns&#58;extensions="http&#58;//petals.objectweb.org/extensions/"<br />
&nbsp; &nbsp;&nbsp; &nbsp;xmlns&#58;eip="http&#58;//petals.objectweb.org/extensions/eip/"<br />
&nbsp; &nbsp;&nbsp; &nbsp;xmlns&#58;plan="http&#58;//plan.myorg"<br />
&nbsp; &nbsp;&nbsp; &nbsp;xmlns&#58;keyvalue="http&#58;//petals.objectweb.org/extensions/key-value/"><br />
&nbsp; &nbsp;<services binding-component="true"><br />
&nbsp; &nbsp;&nbsp; &nbsp;<provides interface-name="plan&#58;Planificateur"<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;service-name="plan&#58;PlanificateurService"<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;endpoint-name="SampleEipChainEndpoint"><br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<extensions&#58;extensions><br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<extension xmlns="http&#58;//petals.objectweb.org/extensions/eip/"><br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<chain><br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<get-calls-by-service service="&#123;http&#58;//petals.objectweb.org/&#125;PlanificateurService" operation="getCalls"/><br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;</chain><br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;</extension><br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<keyvalue&#58;extension><br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<wsdl>Planificateur.wsdl</wsdl><br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;</keyvalue&#58;extension><br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;</extensions&#58;extensions><br />
&nbsp; &nbsp;&nbsp; &nbsp;</provides><br />
&nbsp; &nbsp;</services><br />
</jbi></td>        </tr></table><span class="postbody"><br />
and for exposing my service out side petals I used this jbi.xml:</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 />
<br />
<br />
<jbi version="1.0" xmlns="http&#58;//java.sun.com/xml/ns/jbi"<br />
<br />
&nbsp; &nbsp;xmlns&#58;xsi="http&#58;//www.w3.org/2001/XMLSchema-instance"<br />
&nbsp; &nbsp;xmlns&#58;petalsCDK="http&#58;//petals.ow2.org/components/extensions/version-4.0"<br />
<br />
&nbsp; &nbsp;xmlns&#58;example="http&#58;//service.example.com/1.0"<br />
&nbsp; &nbsp;xmlns&#58;petals="http&#58;//petals.objectweb.org/"<br />
&nbsp; &nbsp;xmlns&#58;soap="http&#58;//petals.ow2.org/components/soap/version-3.1"<br />
&nbsp; &nbsp;xmlns&#58;extensions="http&#58;//petals.objectweb.org/extensions/"<br />
&nbsp; &nbsp;xmlns&#58;plan="http&#58;//plan.myorg"<br />
&nbsp; &nbsp;xmlns&#58;keyvalue="http&#58;//petals.objectweb.org/extensions/key-value/"><br />
&nbsp; &nbsp;<services binding-component="true"><br />
<br />
&nbsp; &nbsp;&nbsp; &nbsp;<consumes interface-name="plan&#58;Planificateur"<br />
<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;service-name="plan&#58;PlanificateurService"<br />
<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;endpoint-name="SampleEipChainEndpoint"><br />
<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<!--<petalsCDK&#58;mep> WC&#91;""&#93;</petalsCDK&#58;mep>--><br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<petalsCDK&#58;mep>InOut</petalsCDK&#58;mep><br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<!-- SOAP specific fields --><br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<soap&#58;address>SampleEipChainEndpoint</soap&#58;address><br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<soap&#58;synchronous-timeout>0</soap&#58;synchronous-timeout><br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<soap&#58;mode>SOAP</soap&#58;mode><br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<keyvalue&#58;extension><br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<wsdl>Planificateur.wsdl</wsdl><br />
&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</keyvalue&#58;extension><br />
&nbsp; &nbsp;&nbsp; &nbsp;</consumes><br />
&nbsp; &nbsp;</services><br />
<br />
</jbi></td>        </tr></table><span class="postbody"><br />
The getCalls operation is like that:</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">Element calls=new Element&#40;"calls"&#41;;<br />
&nbsp; &nbsp;&nbsp; &nbsp;Document doc2 = new Document&#40;calls&#41;;<br />
&nbsp; &nbsp;&nbsp; &nbsp;<br />
&nbsp; &nbsp;&nbsp; &nbsp;Element call=new Element&#40;"call"&#41;;<br />
&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<br />
&nbsp; &nbsp;&nbsp; &nbsp;Attribute service =new Attribute&#40;"service","&#123;http&#58;//transmode.myorg&#125;TransmodeService"&#41;;<br />
&nbsp; &nbsp;&nbsp; &nbsp;Attribute operation=new Attribute&#40;"operation","doTransmode"&#41;;<br />
<br />
&nbsp; &nbsp;&nbsp; &nbsp;call.setAttribute&#40;service&#41;;<br />
&nbsp; &nbsp;&nbsp; &nbsp;call.setAttribute&#40;operation&#41;;<br />
&nbsp; &nbsp;&nbsp; &nbsp;calls.addContent&#40;call&#41;;<br />
<br />
&nbsp; &nbsp;&nbsp; &nbsp;call=new Element&#40;"call"&#41;;<br />
&nbsp; &nbsp;&nbsp; &nbsp;<br />
&nbsp; &nbsp;&nbsp; &nbsp;<br />
&nbsp; &nbsp;&nbsp; &nbsp;service =new Attribute&#40;"service","&#123;http&#58;//transcode.myorg&#125;TranscodeService"&#41;;<br />
&nbsp; &nbsp;&nbsp; &nbsp;operation=new Attribute&#40;"operation","doTranscode"&#41;;<br />
<br />
&nbsp; &nbsp;&nbsp; &nbsp;call.setAttribute&#40;service&#41;;<br />
&nbsp; &nbsp;&nbsp; &nbsp;call.setAttribute&#40;operation&#41;;<br />
&nbsp; &nbsp;&nbsp; &nbsp;calls.addContent&#40;call&#41;;<br />
<br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp;&nbsp; &nbsp;<br />
&nbsp; &nbsp;&nbsp; &nbsp;try<br />
&nbsp; &nbsp;&nbsp; &nbsp;&#123;<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; //On utilise ici un affichage classique avec getPrettyFormat&#40;&#41;<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; XMLOutputter sortie = new XMLOutputter&#40;Format.getPrettyFormat&#40;&#41;&#41;;<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; <br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; <br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; FileOutputStream file=new FileOutputStream&#40;"calls.xml"&#41;;<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; sortie.output&#40;doc2, file&#41;;<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; <br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; <br />
&nbsp; &nbsp;&nbsp; &nbsp;&#125;<br />
&nbsp; &nbsp;&nbsp; &nbsp;catch &#40;java.io.IOException e&#41;&#123;&#125;<br />
&nbsp; &nbsp;&nbsp; &nbsp;int l;<br />
&nbsp; &nbsp;&nbsp; &nbsp;String contenu=new String&#40;""&#41;;<br />
&nbsp; &nbsp;&nbsp; &nbsp;try&#123;<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;InputStreamReader ipsr=new InputStreamReader&#40;new FileInputStream&#40;"calls.xml"&#41;&#41;;<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;BufferedReader br=new BufferedReader&#40;ipsr&#41;;<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;String ligne=br.readLine&#40;&#41;;<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;while &#40;&#40;ligne=br.readLine&#40;&#41;&#41;!=null&#41;&#123;<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;//System.out.println&#40;ligne&#41;;<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;contenu+=ligne;<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#125;<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;br.close&#40;&#41;; <br />
&nbsp; &nbsp;&nbsp; &nbsp;&#125;&nbsp; &nbsp;&nbsp; &nbsp;<br />
&nbsp; &nbsp;&nbsp; &nbsp;catch &#40;Exception e&#41;&#123;<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;System.out.println&#40;e.toString&#40;&#41;&#41;;<br />
&nbsp; &nbsp;&nbsp; &nbsp;&#125;<br />
&nbsp; &nbsp;&nbsp; &nbsp;<br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp;seqCalls=contenu;<br />
&nbsp; &nbsp;&nbsp; &nbsp;return seqCalls;</td>        </tr></table><span class="postbody"><br />
Is there someone who can help me!!!<br />
Tahnks...</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=785#785" target="_blank">http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=785#785</a><br />
<br />
-------------------- m2f --------------------</div>
        </body>
</html>