*
The moose likes Web Services and the fly likes [SOAP-ENV:Envelope: null] Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "[SOAP-ENV:Envelope: null]" Watch "[SOAP-ENV:Envelope: null]" New topic
Author

[SOAP-ENV:Envelope: null]

divya kundapur
Ranch Hand

Joined: Aug 21, 2007
Posts: 110
Hi,

I m trying to create a soap xml,, and SOAPEnvelope soapEnvelope = soapPart.getEnvelope(); is giving me null. Any help.


SCJP - 5.0
Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 518
    
    2

divya kundapur wrote:Hi,

I m trying to create a soap xml,, and SOAPEnvelope soapEnvelope = soapPart.getEnvelope(); is giving me null. Any help.



Hi Divya,

Can you post the code snippet around, the creation of SOAPMessage etc.

The usual way of creating a SOAPEnvelope is as follows



It this what you are doing ?


Regards
KumarRaja

divya kundapur
Ranch Hand

Joined: Aug 21, 2007
Posts: 110
thats exactly what i m doing, i have saaj-api-1.3.jar in classpath and mail.jar

Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 518
    
    2

Are you getting any NullPointerException, when you are invoking any method on SOAPMessage object. How did you determine, that it is null ? Did you check for null ?

Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
I don't think you need the SAAJ JAR file if you are using version 1.6 of the JRE/JDK.
Try removing the SAAJ JAR.
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: [SOAP-ENV:Envelope: null]
 
Similar Threads
SOAP Request object is null
Invoke .NET Web Service using Java/Axis passing SoapHeader
Will someone help me rewite this
Problem in building SOAP with XML
Sign soap header with handler in WebSphere 6.1