You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by heyhero <b_...@yahoo.co.in> on 2008/04/29 05:55:55 UTC
[jira] cxf client code - without need of WSDL File
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?
Please let me know.
Thanks,
NARENDRA
--
View this message in context: http://www.nabble.com/cxf-client-code---without-need-of-WSDL-File-tp16952852p16952852.html
Sent from the cxf-issues mailing list archive at Nabble.com.
Re: [jira] cxf client code - without need of WSDL File
Posted by Daniel Kulp <dk...@apache.org>.
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