This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Expecting SOAP12HeaderImpl as parent, got class org.apache.axiom.om.impl.llom.OMElementImpl Java  RSS feed

 
Chinthaka Dinadasa
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've generated a Stub using Axis2 for given WSDL using WSO2-ESB. So I've to add following parameters to header when i call the WS

Simple Authentication (Username , Password)
WS-Addressing (true) - WS-A
WS-Reliable Messaging (true) - WS-RM

To add WS-RM to Header I've used ApacheSandesha2

My Code Snippet is,



When I call the web service method using the above code. I get following Error.



I've Printed the ServiceClient Options. All the options are binded like below.



Does anyone know how to prevent from this error ???
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!