cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: [jira] cxf client code - without need of WSDL File
Date Tue, 29 Apr 2008 19:24:41 GMT
On Monday 28 April 2008, heyhero wrote:
> Hi,
>
> Is there any possibility that i can write the client code using CXF
> Generated artifacts.
>
> Without providing the WSDL file to the client at runtime, only by
> using the generated artifcats, can i send a request?

Yes.  In general, if you supply "null" for the wsdl location for the 
constructor of the Service object, we won't have a wsdl to use and we'll 
just use the annotations.

That said, you WILL need to set an address to send the request to:

((BindingProvider)proxy).getRequestContext().put(
   BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
   url);

Normally, that is pulled from the WSDL, but without a wsdl, you'll need 
to specify it.

Dan


> Please let me know.
>
> Thanks,
> NARENDRA



-- 
J. Daniel Kulp
Principal Engineer, IONA
dkulp@apache.org
http://www.dankulp.com/blog

Mime
View raw message