[Users] testing BC-Mail component with Static exposition
mcarrolle
mathieu.carrolle at petalslink.com
Wed Mar 16 11:05:06 CET 2011
Le 03/11/2010 11:44, Youn a écrit :
>
> > Hello
> > I’m trying to send mails to an email account. Using the Petals-BC-Mail 3.1.3
> >
> > So I create the su-Mail-SenMail-provide -> jbi.xml
> >
> >
> >
> > Code:
> > .....
> > <jbi:services binding-component="true">
> >
> > <!-- Import a Service into Petals => provides a Service. -->
> > <jbi:provides
> > interface-name="generatedNs:Mail"
> > service-name="generatedNs:SenMail"
> > endpoint-name="SenMailEndpoint">
> >
> > <!-- CDK specific elements -->
> > <petalsCDK:timeout>30000</petalsCDK:timeout>
> > <petalsCDK:validate-wsdl>true</petalsCDK:validate-wsdl>
> > <petalsCDK:forward-security-subject>false</petalsCDK:forward-security-subject>
> > <petalsCDK:forward-message-properties>false</petalsCDK:forward-message-properties>
> > <petalsCDK:forward-attachments>false</petalsCDK:forward-attachments>
> > <petalsCDK:wsdl>MailService.wsdl</petalsCDK:wsdl>
> >
> > <!-- Component specific elements -->
> > <mail:scheme>smtp</mail:scheme>
> > <mail:host>smtp.xx.fr</mail:host>
> > <mail:port>25</mail:port>
> > <mail:user>xx at xx.fr (xx at xx.fr)</mail:user>
> > <mail:password>xxxx</mail:password>
> > <mail:from>xx at xx.fr (xx at xx.fr)</mail:from>
> > <mail:reply>xxx at xx.fr (xxx at xx.fr)</mail:reply>
> > <mail:to>xx at xx.fr (xx at xx.fr)</mail:to>
> > <mail:subject>test</mail:subject>
> > <mail:send-mode>content-only</mail:send-mode>
> > </jbi:provides>
> > </jbi:services>.....
> >
> >
> >
> >
> >
> > Here are the endpoints within Petals
> >
> >
> > Code:
> >
> > Global Endpoints list
> > =====================
> >
> > + Endpoint #1
> > - Name : SenMailEndpoint
> > - Service : {http://petals.ow2.org/components/mail/version-3 (http://petals.ow2.org/components/mail/version-3)}SenMail
> > - Interfaces : {http://petals.ow2.org/components/mail/version-3 (http://petals.ow2.org/components/mail/version-3)}Mail,
> > - Location : Location [componentName=petals-bc-mail, containerName=0, subdomainName=subdomain1]
> > + Endpoint #2
> > - Name : edpt-141EEE445EA2D588FE935794829600341
> > - Service : {http://petals.ow2.org/components/mail/generic/version-3 (http://petals.ow2.org/components/mail/generic/version-3)}SendMailGenericService
> > - Interfaces : {http://petals.ow2.org/components/mail/generic/version-3 (http://petals.ow2.org/components/mail/generic/version-3)}SendMailGeneric,
> > - Location : Location [componentName=petals-bc-mail, containerName=0, subdomainName=subdomain1]
> >
> >
> >
> >
> >
> >
> > And I use SoapUI to send the email :
> >
> >
> > Code:
> > <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" (http://schemas.xmlsoap.org/soap/envelope/) xmlns:ver="http://petals.ow2.org/components/mail/version-3" (http://petals.ow2.org/components/mail/version-3)>
> > <soapenv:Header/>
> > <soapenv:Body>
> > <ver:SendMail>
> > <!--You may enter ANY elements at this point-->
> > </ver:SendMail>
> > </soapenv:Body>
> > </soapenv:Envelope>
> >
> >
> >
> >
> > But I have this exception in the SoapUI
> >
> >
> >
> > Code:
> >
> > Wed Nov 03 11:10:57 CET 2010:ERROR:com.eviware.soapui.model.iface.Request$SubmitException: com.eviware.soapui.impl.wsdl.submit.RequestTransportRegistry$MissingTransportException: Missing transport for protocol [jbi]
> >
> >
> >
> >
> >
> >
> > in the documentation http://doc.petalslink.com/display/petalscomponents/Petals-BC-Mail+3.1.x (http://doc.petalslink.com/display/petalscomponents/Petals-BC-Mail+3.1.x) (http://doc.petalslink.com/display/petalscomponents/Petals-BC-Mail+3.1.x (http://doc.petalslink.com/display/petalscomponents/Petals-BC-Mail+3.1.x)) it says that we have to send an email with this format
> >
> >
> > Code:
> > <?xml version="1.0" encoding="UTF-8"?>
> > <mail>[#5]mail by using service unit</mail>
> >
> >
> >
> >
> >
> > Any help please [Rolling Eyes]
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
Hello
You can not send a soap request to a jbi service.
If you want to use soapui, you have to use the component "petals-bc-soap" to expose your jbi service (mail service) as a Web Service.
--
Signature Mathieu CARROLLE
Office : +33 (0)5 62 73 43 85
Petals Link – www.petalslink.com (http://www.petalslink.com)
4, Rue Amélie - 31000 Toulouse – France
petals.ow2.org (http://petals.ow2.org/) - Open source SOA experience
--Posted via petals mailing-list (http://forum.petalslink.com/m2f_usercp.php)--
-------------------- m2f --------------------
Subscribe/Unsubscribe emails notifications :
http://forum.petalslink.com/m2f_usercp.php
Response to this email will be posted on the Petals forum.
Please delete the existing text before responding :)
Read the topic online:
http://forum.petalslink.com/viewtopic.php?p=31589#31589
-------------------- m2f --------------------
More information about the Users
mailing list