cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: cxf encryption
Date Wed, 22 Aug 2007 15:28:05 GMT
On Wednesday 22 August 2007, Davide Gesino wrote:
> ReportService service = new ReportService(wsdlURL, SERVICE_NAME);
> CreditReportPortType port =
> service.getCreditReportPortType();org.apache.cxf.endpoint.Client
> client = org.apache.cxf.frontend.ClientProxy.getClient(service);
>
> When I call the last line of code now I get the following exception:
>
> Exception in thread "main" java.lang.IllegalArgumentException: not a
> proxy instance

That should be:
org.apache.cxf.endpoint.Client
   client = org.apache.cxf.frontend.ClientProxy.getClient(port);

The client comes off the port, not  the service.



-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
daniel.kulp@iona.com
http://www.dankulp.com/blog

Mime
View raw message