-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

korges wrote:
> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal,
> div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt;
>  font-family:"Times New Roman";} a:link, span.MsoHyperlink
> {color:blue; text-decoration:underline;} a:visited,
> span.MsoHyperlinkFollowed {color:purple;
> text-decoration:underline;} span.EmailStyle17
> {mso-style-type:personal-compose; font-family:Arial;
> color:windowtext;} @page Section1 {size:595.3pt 841.9pt;
> margin:70.85pt 70.85pt 2.0cm 70.85pt;} div.Section1
> {page:Section1;} -->
>
> hi
>
>
>
> I'm working on school project. I tried to send SoapRequests with
> SMTP.
>
> The goal is to setup a webservice using smtp.
>
>
>
>
>
> I followed your manual: Mail Transport Configuration, but i
> couldn't get it work.
>
>
>
> What i'm trying to do, is to send a request on [EMAIL PROTECTED]
> (one-way only, for the beginning)
>
>
>
>
>
> Thats my code on the client side:
>
>
>
> URL = "mail:[EMAIL PROTECTED]";
>

Change the URL to "mailto:[EMAIL PROTECTED]";

Sanka

> targetEPR = new EndpointReference(URL);
>
>
>
>
>
> ConfigurationContext configurationContext =
> ConfigurationContextFactory.createConfigurationContextFromFileSystem(repo,
>  axis2XML);
>
>
>
> ServiceClient sender = new ServiceClient(configurationContext,
> null);
>
>
>
> Options options = new Options();
>
> options.setTo(targetEPR);
>
>
>
> options.setTransportInProtocol(Constants.TRANSPORT_MAIL);
>
>
>
>
>
> TransportOutDescription tod = new TransportOutDescription(new
> QName(Constants.TRANSPORT_MAIL));
>
>
>
> options.setTransportOut(tod); //not shure
>
>
>
> sender.setOptions(options);
>
> sender.fireAndForget(getResult); //OMElement getResult is ok.
>
>
>
> all i get is:
>
>
>
> 27.11.2006 17:06:31
> org.apache.axis2.engine.AxisEngine$TransportNonBlockingInvocationWorker
>  run
>
> INFO: null
>
>
>
>
>
> but no mail has been sent.
>
>
>
> after trying to use sendRobust() i got:
>
>
>
> ava.lang.NullPointerException
>
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:670)
>
> at
> org.apache.axis2.description.RobustOutOnlyAxisOperation$RobustOperationClient.send(RobustOutOnlyAxisOperation.java:72)
>
>
>
>
> at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:295)
>
>
>
>
> at
> org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:453)
>
>
>
>
> at
> org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:380)
>
>
>
>
> at soapclient.RequestSender.sendRequest(RequestSender.java:115)
>
> at soapclient.SoapClient.sendRequest(SoapClient.java:44)
>
>
>
>
>
>
>
>
>
> I also tried with runtime settings... HTTPTransportProperties...
> didn't work.
>
>
>
> Using HTTP works perfect. The Axis2.xml Transport OUt is correct.
>
>
>
> I'm not sure if have to set options.setTransportOut(tod). It's not
> in your manual.
>
> without it i get:
>
>
>
> org.apache.axis2.AxisFault: Illegal address; nested exception is:
>
> javax.mail.internet.AddressException: Illegal address in string
> ``''; nested exception is:
>
> org.apache.axis2.AxisFault: Illegal address; nested exception is:
>
> javax.mail.internet.AddressException: Illegal address in string
> ``''
>
> at
> org.apache.axis2.transport.mail.MailTransportSender.finalizeSendWithToAddress(MailTransportSender.java:161)
>
>
>
>
> at
> org.apache.axis2.transport.AbstractTransportSender.invoke(AbstractTransportSender.java:99)
>
>
>
>
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:670)
>
> at
> org.apache.axis2.description.RobustOutOnlyAxisOperation$RobustOperationClient.send(RobustOutOnlyAxisOperation.java:72)
>
>
>
>
> at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:295)
>
>
>
>
> at
> org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:453)
>
>
>
>
> at
> org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:380)
>
>
>
>
> at soapclient.RequestSender.sendRequest(RequestSender.java:115)
>
>
>
>
>
>
>
> Whats wrong??
>
>
>
>
>
> korges
>
>
>
>
> -- No virus found in this outgoing message. Checked by AVG Free
> Edition. Version: 7.5.430 / Virus Database: 268.14.17/553 - Release
>  Date: 27.11.2006 04:00
>


- --
Sanka Samaranayake
WSO2 Inc.

http://sankas.blogspot.com/
http://www.wso2.net/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (GNU/Linux)

iD8DBQFFa8bv/Hd0ETKdgNIRArcTAJ4q6h83L0zh6/zILphrDqOoTbuRtQCfTYV8
Q3x0pSMDDwEauDbihgo/3Xw=
=eyzO
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to