Re: interface and implemantation files under different package
Hi Dan, I copied 2 samples, one is OK other one has problem. if you compare the WSDL files you will see the problem. could you please also email me your sample? ps: please copy CXF libraries under build_root\lib directory. Thanks for your quick response, Mehmet - Original Message From: Daniel Kulp [EMAIL PROTECTED] To: cxf-user@incubator.apache.org Cc: Mehmet Imga [EMAIL PROTECTED] Sent: Friday, March 7, 2008 2:47:44 PM Subject: Re: interface and implemantation files under different package That would be very strange. I just attempted a quick test here and it worked fine. Is there any way you can send a testcase? Dan On Friday 07 March 2008, Mehmet Imga wrote: Hi, If I put interface and implementation classes in different package, CXF doesn't expose all my methods in wsdl file. did any body has same problem before? do I need to add extra annotations in interface or implementation files? Thanks, Mehmet Connect with friends from any web browser - no download required. Try the new Yahoo! Canada Messenger for the Web BETA at http://ca.messenger.yahoo.com/webmessengerpromo.php -- J. Daniel Kulp Principal Engineer, IONA [EMAIL PROTECTED] http://www.dankulp.com/blog Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail Ask a question on any topic and get answers from real people. Go to Yahoo! Answers and share what you know at http://ca.answers.yahoo.com
Re: interface and implemantation files under different package
Mehmet, I just checked your sample with the latest 2.0.5 snapshot stuff and the wsdl contains three operations: keepAlive, login, logout Those correspond to the three methods on the interface. The only difference I'm seeing is in the different package case, the portType and messages have to be in a different namespace so the top level wsdl has to import the wsdl with those defs. The same namespace/package case allows everything to be in one wsdl. If you want everything in a single wsdl, specify namespace attributes on the @WebService annotations for both the interface and impl and make them match. Dan On Monday 10 March 2008, Mehmet Imga wrote: Hi Dan, I copied 2 samples, one is OK other one has problem. if you compare the WSDL files you will see the problem. could you please also email me your sample? ps: please copy CXF libraries under build_root\lib directory. Thanks for your quick response, Mehmet - Original Message From: Daniel Kulp [EMAIL PROTECTED] To: cxf-user@incubator.apache.org Cc: Mehmet Imga [EMAIL PROTECTED] Sent: Friday, March 7, 2008 2:47:44 PM Subject: Re: interface and implemantation files under different package That would be very strange. I just attempted a quick test here and it worked fine. Is there any way you can send a testcase? Dan On Friday 07 March 2008, Mehmet Imga wrote: Hi, If I put interface and implementation classes in different package, CXF doesn't expose all my methods in wsdl file. did any body has same problem before? do I need to add extra annotations in interface or implementation files? Thanks, Mehmet Connect with friends from any web browser - no download required. Try the new Yahoo! Canada Messenger for the Web BETA at http://ca.messenger.yahoo.com/webmessengerpromo.php -- J. Daniel Kulp Principal Engineer, IONA [EMAIL PROTECTED] http://www.dankulp.com/blog
Re: interface and implemantation files under different package
Hi Dan, I specified targetNamespace on @WebService annotations for interface and impl and it worked fine. impl: Session.java package com.mycompany.cxf.webservice; @WebService(endpointInterface = com.mycompany.cxf.common.webservice.ISession,targetNamespace= http://cxf.mycompany.com/;) public class Session implements ISession{ ... } interface file: ISession.java package com.mycompany.cxf.common.webservice; @WebService( targetNamespace= http://cxf.mycompany.com/;) public interface ISession { ... } Thanks a lot for your help, Mehmet - Original Message From: Daniel Kulp [EMAIL PROTECTED] To: cxf-user@incubator.apache.org Cc: Mehmet Imga [EMAIL PROTECTED] Sent: Monday, March 10, 2008 1:44:49 PM Subject: Re: interface and implemantation files under different package Mehmet, I just checked your sample with the latest 2.0.5 snapshot stuff and the wsdl contains three operations: keepAlive, login, logout Those correspond to the three methods on the interface. The only difference I'm seeing is in the different package case, the portType and messages have to be in a different namespace so the top level wsdl has to import the wsdl with those defs. The same namespace/package case allows everything to be in one wsdl. If you want everything in a single wsdl, specify namespace attributes on the @WebService annotations for both the interface and impl and make them match. Dan On Monday 10 March 2008, Mehmet Imga wrote: Hi Dan, I copied 2 samples, one is OK other one has problem. if you compare the WSDL files you will see the problem. could you please also email me your sample? ps: please copy CXF libraries under build_root\lib directory. Thanks for your quick response, Mehmet - Original Message From: Daniel Kulp [EMAIL PROTECTED] To: cxf-user@incubator.apache.org Cc: Mehmet Imga [EMAIL PROTECTED] Sent: Friday, March 7, 2008 2:47:44 PM Subject: Re: interface and implemantation files under different package That would be very strange. I just attempted a quick test here and it worked fine. Is there any way you can send a testcase? Dan On Friday 07 March 2008, Mehmet Imga wrote: Hi, If I put interface and implementation classes in different package, CXF doesn't expose all my methods in wsdl file. did any body has same problem before? do I need to add extra annotations in interface or implementation files? Thanks, Mehmet Connect with friends from any web browser - no download required. Try the new Yahoo! Canada Messenger for the Web BETA at http://ca.messenger.yahoo.com/webmessengerpromo.php -- J. Daniel Kulp Principal Engineer, IONA [EMAIL PROTECTED] http://www.dankulp.com/blog Looking for the perfect gift? Give the gift of Flickr! http://www.flickr.com/gift/
interface and implemantation files under different package
Hi, If I put interface and implementation classes in different package, CXF doesn't expose all my methods in wsdl file. did any body has same problem before? do I need to add extra annotations in interface or implementation files? Thanks, Mehmet Connect with friends from any web browser - no download required. Try the new Yahoo! Canada Messenger for the Web BETA at http://ca.messenger.yahoo.com/webmessengerpromo.php
Re: interface and implemantation files under different package
That would be very strange. I just attempted a quick test here and it worked fine. Is there any way you can send a testcase? Dan On Friday 07 March 2008, Mehmet Imga wrote: Hi, If I put interface and implementation classes in different package, CXF doesn't expose all my methods in wsdl file. did any body has same problem before? do I need to add extra annotations in interface or implementation files? Thanks, Mehmet Connect with friends from any web browser - no download required. Try the new Yahoo! Canada Messenger for the Web BETA at http://ca.messenger.yahoo.com/webmessengerpromo.php -- J. Daniel Kulp Principal Engineer, IONA [EMAIL PROTECTED] http://www.dankulp.com/blog