The need a component between the mail poller and the saaj component to
build the soap request.  Attachments on the email will be forwarded by
the saaj component.

Cheers,
Guillaume Nodet

On 5/2/06, Pierre NOTEL <[EMAIL PROTECTED]> wrote:
Sorry, there is a little mistake in the servicemix.xml I sent to you :

<bean class="javax.xml.messaging.URLEndpoint">
       <constructor-arg
value="http://localhost:8080/axis/services/myWS?method=myFunction"/>
</bean>

Pierre NOTEL

//*******************************************
Pierre NOTEL wrote:
> Hi all,
>
> I'm trying to invoke a webservice and to send it a mail message (with
> attachments). I would like to store the mail and the attachments on
> the webservice.
> I developped a webservice with a function (one MimeMultiPart
> parameter) but I don't know how create a binding component which can
> invoke the function on the webservice with the mail message as parameter.
>
> I tried to use the saaj component but when I execute, I have the
> following error :
>
> "May 2, 2006 10:31:08 AM
> com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection post
> SEVERE: SAAJ0009: Message send failed"
>
> I think this component needs a soap message in order to tell the good
> method with good parameters. I don't want to specify something in my
> message (and I can't because it's a mail !).
>
> Someone can help me ?
>
> Regards,
>
> Pierre NOTEL
>
> 
//**************************************************************************************************************************
>
> My servicemix.xml :
>
> <sm:activationSpec componentName="emailerreceiver"
> service="foo:emailerreceiver" destinationService="foo:WS">
>    <sm:component>
>        <bean xmlns="http://xbean.org/schemas/spring/1.0";
> class="org.apache.servicemix.components.email.MimeMailPoller">
>            <property name="hostName" value="localhost" />
>            <property name="password" value="pass"/>
>            <property name="userName" value="id"/>
>        </bean>
>    </sm:component>
> </sm:activationSpec>
>
> <sm:activationSpec componentName="WS" service="foo:WS" endpoint="monWS">
>    <sm:component>
>        <bean class="org.apache.servicemix.components.saaj.SaajBinding">
>            <property name="soapAction" value="urn:mySoapAction"/>
>            <property name="soapEndpoint">
>                <bean class="javax.xml.messaging.URLEndpoint">
>                    <constructor-arg
> value="http://localhost:8080/axis/services/myWS?method=myFunction
> <http://localhost:8080/axis/services/monWS?method=monWS>"/>
>                </bean>
>            </property>
>        </bean>
>    </sm:component>
> </sm:activationSpec>
> 
//**************************************************************************************************************************
>
>


Reply via email to