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

MessageFactory hickup

 
Felix Uzoukwu
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could anybody tell me why this code is generating a SOAPException

public class SOAPStub {
private String reqAction;
SOAPMessage sMsg = null;
MessageFactory mFact = null;

public SOAPStub(){
req = new TxnReq();
props = new Properties();
props.setProperty("water", "Mars");
props.setProperty("Mars.com","fromdomain");
props.setProperty("Pluto","fromname");
try{
mFact = MessageFactory.newInstance();//after this
SOAPMessage msg = getSOAPMessage();//line it goes
}catch (Throwable th){ //into the catch block
th.getCause();
}
....
}
....
}

I will appreciate any insight
Thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic