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.

Reply via email to