Do you have to provide a WSDL? I'm wondering about using it for creating å
dynamic SOAP proxy.
Den 26. sep. 2011 19:15 skrev "Daniel Kulp" <[email protected]> følgende:
> On Friday, September 23, 2011 3:50:58 AM Simon Klempert wrote:
>> Hi,
>>
>> I saw the DynamicClientFactory in Apache CXF. How can sth similar be
>> achieved for a service? It means that at runtime I recive a WSDL
definition
>> and based on it I implement the service described in the WSDL as a stub.
>> When the service is called I want to be able to parse the message with
>> reflection or similar to log it or write its content to some database
table.
>>
>> It would be great to point me to the classes to use and / or sketch the
way
>> how to code this.
>
> The JAX-WS Provider interface is generally used for something like this.
You
> would do something like:
>
> class MyService implements Provider<Source> {
>
> public Source invoke(Source request) {
> ... do something with the request, generate a Source response...
> .... and return it ...
> }
> }
>
> That can be completely generic and just provide a wsdl for it at deploy
time.
>
>
> --
> Daniel Kulp
> [email protected]
> http://dankulp.com/blog
> Talend - http://www.talend.com