<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Use a XML to construct SOAP Request
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/Guireg">Guireg CAPITAINE</a> in <i>JBoss ESB Development</i> - <a href="http://community.jboss.org/message/551934#551934">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi everybody,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I'm currently testing JBoss ESB in my company but I encountered some problems with SOAP Client. I've seen all the samples attached with JBoss ESB but no one answered my question.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I want to take a XML File in a FTP Server => Use this XML File to construct a SOAP Request to a webService => Send the SOAP Answer to my E-mail adress</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I successfully take and read the XML and send the e-mail but I don't know how to construct a SOAP Request with my XML File, I only saw Java Classes to construct it.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Here is my jboss-esb.xml</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><pre class="jive-pre"><code class="jive-code jive-xml"><span class="jive-xml-tag"><?xml version = "1.0" encoding = "UTF-8"?></span>
<span class="jive-xml-tag"><span><jbossesb
    xmlns="</span><a class="jive-link-external-small" href="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd" target="_blank">http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd</a><span>"
    parameterReloadSecs="5"></span></span>
    <span class="jive-xml-tag"><providers></span>     
         <span class="jive-xml-tag"><ftp-provider name="FTPprovider" hostname="127.0.0.1" ></span>
              <span class="jive-xml-tag"><ftp-bus busid="helloFTPChannel" ></span>
                  <span class="jive-xml-tag"><ftp-message-filter
                      username="guireg"
                      password="guireg"
                      passive="false"
                      directory="/"
                      input-suffix=".xml"
                      work-suffix=".esbWorking"
                      post-delete="false"
                      post-rename="true"
                      post-suffix=".COMPLETE"
                      error-delete="false"
                      error-suffix=".HAS_ERROR"
                  /></span>
              <span class="jive-xml-tag"></ftp-bus></span>
          <span class="jive-xml-tag"></ftp-provider></span>
          <span class="jive-xml-tag"><schedule-provider name="cronExample"></span>
              <span class="jive-xml-tag"><cron-schedule scheduleid="cron-schedule" cronExpression="* * * * * ?"/></span>
          <span class="jive-xml-tag"></schedule-provider></span>
    <span class="jive-xml-tag"></providers></span>
    <span class="jive-xml-tag"><services></span>
        <span class="jive-xml-tag"><service category="MyServiceCategory" name="WebserviceConsumer2"
            description="Order Processor Webservice Consumer" invmScope="GLOBAL"></span>
            <span class="jive-xml-tag"><listeners></span>
                <span class="jive-xml-tag"><ftp-listener name="FtpGateway"
                    busidref="helloFTPChannel"
                    is-gateway="true"
                    scheduleidref="cron-schedule"/></span>
               
            <span class="jive-xml-tag"></listeners></span>
           
            <span class="jive-xml-tag"><actions mep="OneWay"></span>
                <!-- <span class="jive-xml-tag"><action name="println1"></span>
                    <span class="jive-xml-tag"><property name="message" value="Message before action XXX" /></span>
                <span class="jive-xml-tag"></action--></span>
               
                <span class="jive-xml-tag"><action name="soapui-client-action"></span>
                    <span class="jive-xml-tag"><span><property name="wsdl" value="</span><a class="jive-link-external-small" href="http://JbossServer:8080/webservice?wsdl" target="_blank">http://JbossServer:8080/webservice?wsdl</a><span>"/></span></span>
                    <span class="jive-xml-tag"><property name="SOAPAction" value="crud"/></span>
                    <span class="jive-xml-tag"><property name="responseAsOgnlMap" value="true" /></span>
                <span class="jive-xml-tag"></action></span>
               
                <span class="jive-xml-tag"><action name="response-mapper"></span>
                    <span class="jive-xml-tag"><property name="unwrap" value="true" /></span>
                    <span class="jive-xml-tag"><property name="host" value="mailServer" /></span>
                    <span class="jive-xml-tag"><property name="port" value="25" /></span>
                    <span class="jive-xml-tag"><property name="username" value="guireg" /></span>
                    <span class="jive-xml-tag"><property name="password" value="guireg" /></span>
                    <span class="jive-xml-tag"><span><property name="from" value="</span><a class="jive-link-email-small" href="mailto:sv3@blabla.fr" target="_blank">sv3@blabla.fr</a><span>" /></span></span>
                    <span class="jive-xml-tag"><span><property name="sendTo" value="</span><a class="jive-link-email-small" href="mailto:sv3@blabla.fr" target="_blank">sv3@blabla.fr</a><span>" /></span></span>
                    <span class="jive-xml-tag"><property name="subject" value="XML" /></span>
                <span class="jive-xml-tag"></action></span>
               
            <span class="jive-xml-tag"></actions></span>
        <span class="jive-xml-tag"></service></span>       
    <span class="jive-xml-tag"></services></span>
<span class="jive-xml-tag"></jbossesb></span>
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>My Eclipse Console say that :</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><blockquote class="jive-quote"><p>15:04:03,093 WARN  [ActionProcessingPipeline] No fault address defined for fault message! To: InVMEpr [ PortReference < <wsa:Address invm://4d795365727669636543617465676f727924242424242424242424242457656273657276696365436f6e73756d657232/false?false#10000/>, <wsa:ReferenceProperties jbossesb:passByValue : false/>, <wsa:ReferenceProperties jbossesb:type : urn:jboss/esb/epr/type/invm/> > ] MessageID: 6d0a6609-e21b-434d-ad4f-3b9a8053da88</p></blockquote><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>But I can SystemoutPrintLn my XML without problem. It gives me this error when it read the SOAP Client part of my JBossEsb.xml file</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Do you have any idea ?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Thanks a lot !</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Guireg</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/551934#551934">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss ESB Development at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2032">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>