Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[SOAP-ENV:Envelope: null]

 
divya kundapur
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I m trying to create a soap xml,, and SOAPEnvelope soapEnvelope = soapPart.getEnvelope(); is giving me null. Any help.
 
Kumar Raja
Ranch Hand
Posts: 547
2
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
divya kundapur
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thats exactly what i m doing, i have saaj-api-1.3.jar in classpath and mail.jar

 
Kumar Raja
Ranch Hand
Posts: 547
2
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic