Hi!
I'm trying to invoke a document manager service method from my axis2-based web-service and while passing auth token to headers this line:
((WSBindingProvider) docManClient).setOutboundHeaders(Headers.create(otAuthElement));
returns a ClassCastException:
com.sun.proxy.$Proxy283 cannot be cast to com.sun.xml.internal.ws.developer.WSBindingProvider
My code is pretty standart, I got it from CWS example and it works perfectly from simple java application but from my webservice it does not. Is there something I should know when invoking webservice from another webservice?
Please help.