Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Class cast exception while looking up proxy

Hi all,

1) created a deployable proxy dc out of wsdl. created public parts to the proxy package and deployed the proxy

2) I'm looking up proxy in this way

TestWSViDocument vi;

InitialContext ic = new InitialContext();

Object obj = ic.lookup("/wsclients/proxies/");

TestWS testws = (TestWS) obj;

vi = testws.getLogicalPort();

I am able to get the object but when I'm casting it with TestWS like above, I'm getting class cast exception at runtime

please let me know incase you faced this issue before.


Former Member
Not what you were looking for? View more on this topic or Ask a question