You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by Ramnivas Laddad <ra...@yahoo.com> on 2001/03/06 07:27:41 UTC

SMTP transport does not work with 2.1 (works with 2.0 fine)

Hello,

I am trying to run 'stockquote' example over SMTP transport.
It works fine with 2.0 version but when I try with 2.1,
I get a NullPointerException. 

(Note, same example works fine with HTTP transport.)

Status update: Contacting Host: smtp.prodigy.net...
Status update: Identifying recipients...
Status update: Transfering Mail...
DONE: Transfer complete.
Exception in thread "main" java.lang.NullPointerException
        at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:163)
        at org.apache.soap.rpc.Call.invoke(Call.java:210)
        at samples.stockquote.GetQuoteSMTP.main(GetQuoteSMTP.java:131)

Looking at the code, it seems that SMTP transport in 2.1 cannot 
work. The problem is SOAPSMTPConnection's getResponseSOAPContext() 
always returns null (responseSOAPContext member is never initialized).
Has anyone tried running SMTP samples with 2.1? Javadoc for this 
method mentions that it is not yet implemented. How should one 
create SOAPContext object to be returned by this method?

Can somebody please help.

Thanks.

-Ramnivas


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/