I have this piece of code in my project
Client c = ClientProxy.getClient(((org.apache.cxf.jaxws.DispatchImpl)dispSOAPMsg).getBinding());
and on org.apache.cxf.jaxws.DispatchImpl
i get "Cannot resolve symbol". However, I should have imported needed libraries, in my pom I have
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>3.1.4</version>
</dependency>
which should be needed dependency, but looks like I still miss it. Do I need to use different dependency?
EDIT: Why do I need to cast is said here. I need to cast it to client to be able to apply ws security on it.
In the end it was problem of IntelliJ. Invalidate caches and restart did the job.