Re: Some basic question on wsdl generated services

2008-01-16 Thread Sergey Beryozkin
> 1. If we generate service implementation objects using wsdl2java, is
> it possible to avoid it referring back to the wsdl file in the
> annotations?

One note which may be offtopic for this thread. 
CXF has a ServiceContractResolver interface. Given a service QName a specific
implementation can return a URI to a (wsdl) contract which contains a 
definition for this service.

The runtime will consult the ServiceContractResolverRegistry when searching for 
a WSDL document.
Thus, if no Spring configuration (jaxws:client or jaxws:endpoint) is used where 
wsdlLocations can be setUp,
the possible alternative is to provide a custom ServiceContractResolver 
implementation which will fetch a WSDL URI from whatever location/repository is 
necessary...

Cheers, Sergey


IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland


Re: Some basic question on wsdl generated services

2008-01-14 Thread Daniel Kulp
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
[EMAIL PROTECTED]
http://www.dankulp.com/blog


Re: Some basic question on wsdl generated services

2008-01-10 Thread Willem Jiang

Hi Mayank

My comments are in the mail.

Mayank Thakore wrote:

Hi,

Few basic questions:

1. If we generate service implementation objects using wsdl2java, is it
possible to avoid it referring back to the wsdl file in the annotations?
  
You just need to remove the wsdlLocation attribute from the WebService 
annotation.



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?
  
The implementation part is a kind of physical part of the wsdl. I don't 
think you can use the same implementation for the two ports without 
changing the annotation.
But if you use the JaxWsServerFactoryBean API [1] not the JAXWS API , 
may be you can override it.

[1]http://cwiki.apache.org/CXF20DOC/server-service-and-client-factorybeans.html


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!




  

Willem.


Some basic question on wsdl generated services

2008-01-10 Thread Mayank Thakore
Hi,

Few basic questions:

1. If we generate service implementation objects using wsdl2java, is it
possible to avoid it referring back to the wsdl file in the annotations?

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?

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!