Im actually having a problem when trying to set a wsclient endpoint URI from an OEP app. What im tryiing to do...
String endpoint = properties.getProperty("my_endpoint");
MyService service = new MyService();
MyPort port = service.getMyPort();
BindingProvider bp = (BindingProvider) port;
But the cast between port and BindingProvider is causing this exception:
Caused By: java.lang.ClassCastException: com.sun.proxy.$Proxy1021 cannot be cast to javax.xml.ws.BindingProvider
The same code works well from an isolated java app, dont know what is missing
What im doing wrong in here?
Thanks in advance