Hi korges ; Can you please create a JIRA issue attaching your client source code.
Thanks Deepal > 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]"; > > 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 > -- Thanks, Deepal ................................................................ "The highest tower is built one brick at a time" --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
