java - SOAPFactory creating 'null' value for 'soap' namespace in addressing header tag -


from within j2ee application running in jboss4.2.3 creating soapconnection invoke 3rd party's web service. inside soap header have set addressing , action tags, 'mustunderstand' set '1'. 'mustunderstand' attribute in http://www.w3.org/2003/05/soap-envelope namespace. create calling:

soapfactory#createname("mustunderstand", "soap", "http://www.w3.org/2003/05/soap-envelope");

this comes out correctly when include saaj.jar , saaj-impl.jar in our web-inf/lib folder. if take these out, namespace comes out null as: xmlns:soap='null' instead of xmlns:soap="http://www.w3.org/2003/05/soap-envelope". here's entire bad tag:

<wsa:to xmlns:wsa='http://schemas.xmlsoap.org/ws/2004/08/addressing' xmlns:soap='null' soap:mustunderstand='1'>http://domain/web-service.url</wsa:to>.

but if have 2 jar files deployed app, our own hosted web-services fail when creating faults (due class-cast exception:

javax.xml.soap.soapexception: java.lang.classcastexception: com.sun.xml.messaging.saaj.soap.ver1_1.soapmessagefactory1_1impl)

our j2ee app jbossws web-service invokes 3rd-party web-services itself. there apparent conflict jar files.

any ideas on how http://www.w3.org/2003/05/soap-envelope namespace written out in generated soap tag?

i ended using api directly call soapheaderelement#mustunderstand(true). looks have solved issue since namespace declaration isn't needed (it uses soap-env namespace declaration teh envelope itself.

i still have issue (jboss wants send chunked http request, 3rd party web-service isn't liking, haven't looked far enough 1 yet)


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -