You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Daniel Kulp <dk...@apache.org> on 2008/04/29 21:24:41 UTC

Re: [jira] cxf client code - without need of WSDL File

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