Re: Nested exceptions
Hello, it doesnt explain java to wsdl way. could anyone please give me a sample using annotations( @WebFault, @Xml) or any sample? I need to define everything in java and expose wsdl file on runtime using CXF. I found some samples but I could not make it run in CXF @WebFault(name = AddNumbersException, targetNamespace = http://server.fromjava/jaxws;) public class AddNumbersException_Exception extends Exception { private AddNumbersException faultInfo; public AddNumbersException_Exception(String message, AddNumbersException faultInfo) { super(message); this.faultInfo = faultInfo; } public AddNumbersException_Exception(String message, AddNumbersException faultInfo, Throwable cause) { super(message, cause); this.faultInfo = faultInfo; } public AddNumbersException getFaultInfo() { return faultInfo; } } thanks, Mehmet - Original Message From: Glen Mazza [EMAIL PROTECTED] To: cxf-user@incubator.apache.org Sent: Monday, March 24, 2008 7:47:07 PM Subject: Re: Nested exceptions Yes, look at catch (CorrelationIdNotFoundFault e) {...} in Step #10 of [1] below. HTH, Glen [1] http://www.jroller.com/gmazza/date/20080308 Am Montag, den 24.03.2008, 08:34 -0700 schrieb Mehmet Imga: Hello, is there a way to throw nested exceptions in webservices? for example I would like to throw following exception in server site and get more info about nested exception in client site. throw new WSException(outer exception message, new SecurityException(inner exception message, null)); Thanks, Mehmet __ Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail. Click on Options in Mail and switch to New Mail today or register for free at http://mail.yahoo.ca __ Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail. Click on Options in Mail and switch to New Mail today or register for free at http://mail.yahoo.ca
Nested exceptions
Hello, is there a way to throw nested exceptions in webservices? for example I would like to throw following exception in server site and get more info about nested exception in client site. throw new WSException(outer exception message, new SecurityException(inner exception message, null)); Thanks, Mehmet __ Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail. Click on Options in Mail and switch to New Mail today or register for free at http://mail.yahoo.ca
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
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: Webservice client sending null parameters to host
I am having same kind of problem. Client sends request successfully and response is OK in XML format but CXF cannot bind SOAP result to Java object so it returns null. Any answers are appreciated. Thanks - Original Message From: mrsv [EMAIL PROTECTED] To: cxf-user@incubator.apache.org Sent: Friday, February 8, 2008 10:09:35 PM Subject: Webservice client sending null parameters to host I have a cxf webservice and a client generated using wsdl2java. When the client tries to contact the service the parameters are being null. I am unable to figure out the reason.Tried including all the jars from cxf. Any answers are appreciated. Thanks -- View this message in context: http://www.nabble.com/Webservice-client-sending-null-parameters-to-host-tp15368060p15368060.html Sent from the cxf-user mailing list archive at Nabble.com. Get a sneak peak at messages with a handy reading pane with All new Yahoo! Mail: http://ca.promos.yahoo.com/newmail/overview2/