Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SOAP request error  RSS feed

 
Lavanya Halliwell
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So I recently built a java application that builds a soap request.

my webservice requires:

soapenv:envelope.....in order to work

but my java method puts:

SOAP-ENV:envelope.....but this doesn't work, I get a soap fault.



this is how I build the sopa request....
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
For some examples (tested code) on how to create SOAP messages with SAAJ, please see section 5.7 etc. in the following document:
http://www.slideshare.net/krizsan/scdjws-5-study-notes-3085287
Best wishes!
 
Lavanya Halliwell
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so I solved this by doing a replaceAll (soapenv for SOAP-ENV replacement)

I think the better way would be to somehow overwrite the default soap namespace/URI and put the one need there.

thanks Ivan for the reply!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!