cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: Some basic question on wsdl generated services
Date Mon, 14 Jan 2008 19:41:09 GMT
On Thursday 10 January 2008, Mayank Thakore wrote:
> 1. If we generate service implementation objects using wsdl2java, is
> it possible to avoid it referring back to the wsdl file in the
> annotations?

Per spec, no.   However, there is a "-wslLocation" flag on the wsdl2java 
to make it output something different.   One usage is to generate based 
on locations in your build system, but make the annotation 
say "WEB-INF/wsdl" or something which is it's packaged location in the 
war.

> 2. The generated implementation mentions the port name in the
> annotations. So how can we use the same implementation for two ports
> (say one http, other jms)? Will we have to delegate the calls to some
> common class?

Again, per spec (as sucky as that sounds).   You can get around that via 
spring configuration though.   The jaxws:server/endpoint stuff does have 
flags to override the serviceName and such.

Dan


>
> Thanks!
>
> Regards
> Mayank
>  
> **********************************************************************
>****** ****************************
>  This e-mail and attachments contain confidential information from
> HUAWEI, which is intended only for the person or entity whose address
> is listed above. Any use of the information contained herein in any
> way (including, but not limited to, total or partial disclosure,
> reproduction, or dissemination) by persons other than the intended
> recipient's) is prohibited. If you receive this e-mail in error,
> please notify the sender by phone or email immediately and delete it!



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

Mime
View raw message