Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SOAP request error

 
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!
 
mooooooo ..... tiny ad ....
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!