Win a copy of Murach's Python Programming this week in the Jython/Python 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!