2 Replies Latest reply on Jan 4, 2008 1:16 PM by Martin Murphy

    Converting EPR to Proxy when Address differs from that in WSDL

    Martin Murphy Novice

      I'm invoking on a CORBA endpoint that will always return a different IOR in the resulting EPR. I would like to convert this to a proxy, but my WSDL contains IOR:x as the address location for the endpoint. After much searching I eventually found org.apache.cxf.jaxws.ServiceImpl.getPort()

       

      I convert now using :

                   Service service = Service.create(wsdlURL, serviceName);

                   ServiceImpl serviceImpl = ServiceDelegateAccessor.get(service);

                   //sei is the service endpoint interface Class<?>, the callManager is the proxy I want to convert to

                   this.callManager =  (CallManager)serviceImpl.getPort(callManagerEPR, sei);

       

      Is this the best way to do this?