Re: JAXWS client with XPath

2012-02-15 Thread Guy Pardon
clude the XPath filter operation. If your requirement is too complex, Apache Camel[1] is more suitable to do it. [1]http://camel.apache.org/ Freeman On 2012-2-15, at 下午4:19, Guy Pardon wrote: > Hi, > > Any pointers on how I can write a JAXWS client that uses XPath to filter the >

Logging WebServiceException

2012-02-15 Thread Guy Pardon
Hi cxf, If my service throws a generic WebServiceException: what is the best approach for logging / monitoring this on the server-side? With a handler? Are there any samples? Thanks Guy

JAXWS client with XPath

2012-02-15 Thread Guy Pardon
Hi, Any pointers on how I can write a JAXWS client that uses XPath to filter the response from a service? For instance, to extract only the known content, like in consumer-driven contracts. Thanks Guy

Re: REST and MVC for webapps

2012-02-06 Thread Guy Pardon
Sergey, Perfect solutions! Thanks again. Guy Sent from my iPad On 05 Feb 2012, at 20:35, Sergey Beryozkin wrote: > Hi Guy > On 04/02/12 09:46, Guy Pardon wrote: >> Sergey, >> >> Looks very cool, thanks! I suppose validation errors can be handled via the >>

Re: REST and MVC for webapps

2012-02-04 Thread Guy Pardon
Sergey, Looks very cool, thanks! I suppose validation errors can be handled via the Response.sendOther redirection, with error beans as request attributes? Guy On 3-feb-2012, at 23:11, Sergey Beryozkin wrote: Hi Guy On 03/02/12 18:27, Guy Pardon wrote: > Hi, > > Thanks for

Re: REST and MVC for webapps

2012-02-03 Thread Guy Pardon
-2012, at 19:13, KARR, DAVID wrote: > -Original Message- > From: Guy Pardon [mailto:g...@atomikos.com] > Sent: Friday, February 03, 2012 9:54 AM > To: users@cxf.apache.org > Subject: REST and MVC for webapps > > Hi, > > I am looking for examples and/or inform

REST and MVC for webapps

2012-02-03 Thread Guy Pardon
Hi, I am looking for examples and/or information on using CXF/REST/JAXRS as the controller for html webapps - instead of Struts or JSF. Any pointers available? Thanks Guy

JAX-RS resource classes and thread-safety

2012-01-30 Thread Guy Pardon
Hi, The JAXRS spec says that a new Resource object should be created for each request - is this the case in CXF? From what I understood, this is not what happens? Guy

MIME Types for empty body

2012-01-21 Thread Guy Pardon
Hi cxf, - can/should empty requests have a @Consumes annotation? - can/should empty responses have a @Produces annotation? Thanks! Guy Sent from my iPhone

Re: REST WebClient: how to inspect and set eTag headers?

2012-01-16 Thread Guy Pardon
Brilliant, thanks! Sent from my iPhone On 16 Jan 2012, at 13:34, Sergey Beryozkin wrote: > Hi Guy > > On 15/01/12 16:01, Guy Pardon wrote: >> Hi, >> >> I want to inspect eTag headers in responses from a REST service, to set them >> on later PUT requests.

REST WebClient: how to inspect and set eTag headers?

2012-01-15 Thread Guy Pardon
Hi, I want to inspect eTag headers in responses from a REST service, to set them on later PUT requests. Any guidelines on how to do this with the CXF WebClient API? Thanks Guy

JMS transport: acknowledge mode?

2012-01-12 Thread Guy Pardon
Hi, When using the JMS transport to receive messages: when are the messages acknowledged by CXF? I mean: when is the message removed from the JMS queue? Also, what happens if a web service listening on JMS has errors? Is the message put back on the queue and redelivered later? Is this configur

Re: setting custom fault code on exceptions

2012-01-05 Thread Guy Pardon
Indeed, it works. Cool! Guy On 4-jan-2012, at 16:25, Daniel Kulp wrote: On Thursday, December 29, 2011 3:29:29 PM Guy Pardon wrote: > Hi, > > What is the easiest way to set the "Code" element of an exception thrown by > my @WebMethod? I THINK if the "cause" of

Re: setting custom fault code on exceptions

2012-01-04 Thread Guy Pardon
I guess it is a known 'issue' in the spec? Thanks anyway, And: happy 2012! Guy On 4-jan-2012, at 16:25, Daniel Kulp wrote: On Thursday, December 29, 2011 3:29:29 PM Guy Pardon wrote: > Hi, > > What is the easiest way to set the "Code" element of an exception throw

setting custom fault code on exceptions

2011-12-29 Thread Guy Pardon
Hi, What is the easiest way to set the "Code" element of an exception thrown by my @WebMethod? Thanks Guy

Re: Repeated JAXWS annotations on SEI and impl class

2011-12-28 Thread Guy Pardon
e_tutorial#WFstep6 On 12/27/2011 12:41 PM, Guy Pardon wrote: > Dan, > > One more thing: is wsdlLocation allowed on an SEI? > > Guy > > On 27-dec-2011, at 05:13, Daniel Kulp wrote: > > On Monday, December 26, 2011 11:09:40 PM Daniel Kulp wrote: >> On Monday, December 2

Re: Repeated JAXWS annotations on SEI and impl class

2011-12-27 Thread Guy Pardon
Dan, One more thing: is wsdlLocation allowed on an SEI? Guy On 27-dec-2011, at 05:13, Daniel Kulp wrote: On Monday, December 26, 2011 11:09:40 PM Daniel Kulp wrote: > On Monday, December 26, 2011 9:55:06 PM Guy Pardon wrote: >> Hi all, >> >> Last time I tried to do bot

Repeated JAXWS annotations on SEI and impl class

2011-12-26 Thread Guy Pardon
Hi all, Last time I tried to do both an SEI class and an impl class, I was turned off by the combination of @WebService attributes on both/either of them. Is there a clear summary of what should/can be present on both? What if a same value is present on both (like: wsdlLocation)? Thanks Guy

Customizing with @RequestWrapper

2011-12-26 Thread Guy Pardon
Hi, The JAXWS annotations include the @RequestWrapper annotation. I think I understand what it does, but I am not clear on how to use it. For instance: can I specify the className of some custom class I implemented? Or is this purely generated stuff by CXF/JAXWS? Thanks Guy

Re: Supporting custom JSON formats

2011-12-14 Thread Guy Pardon
You're welcome. CXF rocks:-) Guy On 14-dec-2011, at 22:48, Sergey Beryozkin wrote: On 14/12/11 18:44, Guy Pardon wrote: > My mistake, > > Tried again and somehow it worked where it didn't before. Not sure what I did > wrong, sorry. no problems, thanks for trying it, Se

Re: Supporting custom JSON formats

2011-12-14 Thread Guy Pardon
My mistake, Tried again and somehow it worked where it didn't before. Not sure what I did wrong, sorry. Guy On 12-dec-2011, at 11:20, Sergey Beryozkin wrote: Hi Guy On 11/12/11 08:57, Guy Pardon wrote: > Hi, > > I am trying to define a custom hypermedia model (cf REST in Pr

Supporting custom JSON formats

2011-12-11 Thread Guy Pardon
Hi, I am trying to define a custom hypermedia model (cf REST in Practice) as the return type of my REST service. With MIME type "application/json" this works, but with type "application/vnd.example-com.foo+json" (which is what I want) this fails, however. Calling the service URL gives: "org.

Re: dropRootElement (JSON) for JAXRS client

2011-12-10 Thread Guy Pardon
Update: we are using Jackson on the server (the only thing that worked for us in OSGi). Using Jackson at the client as well solved this issue. There is no apparent need to indicate any client settings in that case, and the json is unmarshalled ok. Guy On 8-dec-2011, at 10:06, Guy Pardon

Re: dropRootElement (JSON) for JAXRS client

2011-12-08 Thread Guy Pardon
Thanks, will try! Sent from my iPhone On 07 Dec 2011, at 18:33, Sergey Beryozkin wrote: > Hi Guy > On 07/12/11 14:49, Guy Pardon wrote: >> Hi, >> >> I want to test a JAXRS client calling a REST service with json encoding. The >> service is configured with "

dropRootElement (JSON) for JAXRS client

2011-12-07 Thread Guy Pardon
Hi, I want to test a JAXRS client calling a REST service with json encoding. The service is configured with "dropRootElement" and now the client fails because it expects the root element there. How can I tell the client proxy to stop looking for the root element? Thanks Guy

Running CXF REST services in OSGi

2011-11-28 Thread Guy Pardon
Hi, I am trying to get a REST service deployed in OSGi (Felix). To do so, I tried embedding all depedencies as jars into my bundle, including CXF. However, this fails upon start, saying: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to

unit testing REST services

2011-10-20 Thread Guy Pardon
Hi, With JAXWS/SOAP, we can unit test services as explained in http://www.jroller.com/gmazza/entry/junit_web_service_testing Does something similar exist for JAXRS/REST? Thanks Guy

Re: Best J2EE container with Apache CXF

2011-10-11 Thread Guy Pardon
How about none: use Endpoint.publish with embedded Jetty) and a reverse (http) proxy for load balancing/clustering? Guy On 11-okt-2011, at 21:55, eaudet wrote: All, We have been enjoying Apache CXF to implement fairly complex message handling (HL7v3). We recently started to use WSS4J intercepto

Re: Java-first exception hierarchy mapping in JAXWS

2011-10-11 Thread Guy Pardon
Thanks again, Dan! Besides this part I really like JAXWS (and CXF). Simple, it works, and it is very fast to implement something. On top of that, the generated WSDL looks pretty clean too. Guy On 11-okt-2011, at 19:50, Daniel Kulp wrote: On Friday, October 07, 2011 12:40:23 PM Guy Pardon

Java-first exception hierarchy mapping in JAXWS

2011-10-07 Thread Guy Pardon
Hi, I found a lot of references to this but no clear explanation or solution: A simple application exception seems mapped to WSDL faults without problems. But if I want my jaxws service to throw exceptions of some subclass hierarchy, then the WSDL does not reflect that hierarchy in the fault ty

Re: Best practice to pass service URL and parameter

2011-10-06 Thread Guy Pardon
Dan, Thanks, but it seems like the EndpointReference instances can't be marshalled via JAXB. Am I missing something? Guy On 6-okt-2011, at 04:15, Daniel Kulp wrote: On Thursday, October 06, 2011 4:09:13 AM Guy Pardon wrote: > Dan, > > Thanks! So how would a consumer

Re: Best practice to pass service URL and parameter

2011-10-05 Thread Guy Pardon
-- Daniel Kulp dk...@apache.org http://dankulp.com/blog Talend - http://www.talend.com Dr. Guy Pardon | Atomikos BVBA | a 'Cool Vendor' by Gartner in 2011 CTO Phone: +32 15 61 30 55 | Email: g...@atomikos.com | Twitter: http://twitter.com/guypardon | Skype: guypardon | YahooIM: guypardon Eur

Best practice to pass service URL and parameter

2011-10-04 Thread Guy Pardon
very important, too. Thanks, Guy Dr. Guy Pardon | Atomikos BVBA | a 'Cool Vendor' by Gartner in 2011 CTO Phone: +32 15 61 30 55 | Email: g...@atomikos.com | Twitter: http://twitter.com/guypardon | Skype: guypardon | YahooIM: guypardon Europe: CET (local time: http://www.timea

Re: global xa/jta transaction with spring

2011-08-29 Thread Guy Pardon
Sure, http://www.atomikos.com/Main/ExtremeTransactions - check the web service samples in the eval download... Guy Sent from my iPad On 28-aug.-2011, at 10:57, mymacin wrote: > Hi, > > Thank you, > > Is there any way to pass the spring JTA transaction through CXF service to > another appli

Re: global xa/jta transaction with spring

2011-08-26 Thread Guy Pardon
Hi, If you post this to the Atomikos forums then I am sure somebody will help there... Basically, you need to: -use Atomikos as the Spring transaction manager - see the Atomikos samples in the download -use Atomikos JDBC datasources HTH Guy On 26-aug-2011, at 18:41, mymacin wrote: Hi ever

WS-I Basic Profile compliance

2011-06-26 Thread Guy Pardon
Hi, What is the version of the WS-I BP spec that CXF supports? Thanks Guy

One-way requests with callbacks

2011-06-19 Thread Guy Pardon
Hi, I am looking for the best way to handle (client-side coding of) one-way requests with callbacks for the responses. Preferably an all-round solution, but if need be a CXF specific thing. Any suggestions? Thanks Guy

Re: AW: SOAP over JMS Transactions

2011-05-27 Thread Guy Pardon
Should be easy if you configure www.atomikos.com as the spring transaction manager and use the atomikos jdbc/jms connector beans... Sent from my iPad On 27-mei-2011, at 15:43, mymacin wrote: > @Willem.Jiang > > I want to make it work with spring Transaction with JMS . I have one doubt > on th

Re: Insert data into 2 different databases & make it as a transaction (WS-Atomic transaction)

2010-12-08 Thread Guy Pardon
http://www.atomikos.com/Documentation Best Guy On 8-dec-2010, at 08:34, Edumudi Viswanath wrote: Hi Guy, Thanks for ur reply. will u please provide the link/doc which you are talking abt?. Regards vishy -Original Message- From: Guy Pardon [mailto:guypar...@mac.com] Sent: Tuesday

Re: Insert data into 2 different databases & make it as a transaction (WS-Atomic transaction)

2010-12-07 Thread Guy Pardon
of boilerplate is what the original user is asking for. Glen [1] http://www.jroller.com/gmazza/entry/updating_database_tables_using_jaxws On 12/06/2010 10:02 AM, Guy Pardon wrote: > Hi, > > Check out http://www.atomikos.com/Main/ExtremeTransactions > > It supports JTA/XA tra

Re: Insert data into 2 different databases & make it as a transaction (WS-Atomic transaction)

2010-12-06 Thread Guy Pardon
Hi, Check out http://www.atomikos.com/Main/ExtremeTransactions It supports JTA/XA transactions and also WS transactions across services. HTH Guy On 6-dec-2010, at 15:55, Edumudi Viswanath wrote: Hi CXF users, We have a requirement like below, which will be part of a project with CXF as so

Re: How to get/pass a service reference?

2010-12-02 Thread Guy Pardon
Thanks to all. I will experiment with these ideas... Sent from my iPad On 2-dec.-2010, at 10:35, Andrew Dinn wrote: > On 12/01/2010 09:32 PM, Daniel Kulp wrote: >> If you have the WebServiceContext injected, just call: >> >> context.getEndpointReference() >> >> and that should be it. > > Tha

How to get/pass a service reference?

2010-12-01 Thread Guy Pardon
Hi, Just wondering: is there an easy and universally supported way of passing a reference to a service? I know WS-A EPRs exist, but is that it or am I missing something? If EPR: how can a service in JAX-WS (or CXF if not standardized) get an EPR reference to itself? Thanks Guy

Question on caching support for SOAP

2010-11-28 Thread Guy Pardon
Hi all,We are facing a particular project with some very specific characteristics:1. we have to build a data repository that holds documents and their metadata for government forms2. this metadata has to come from about 15 independent web services of other government departments (s.c. "authentic so

Re: WS-Coordination, WS-AtomicTransactions, WS-MetadataExchange

2010-10-18 Thread Guy Pardon
Hi, You might want to look at http://www.atomikos.com - it offers WS-AT support and can integrate with CXF applications. Best Guy DISCLAIMER: I work for Atomikos On 18-okt-2010, at 05:27, Robert Liguori wrote: Any plans for CXF to support the following? Enabling atomic transactions (WS-Coo

Re: WS-* specification for transaction

2010-07-21 Thread Guy Pardon
Hi, > Just curious, why no paying customers are not demanding it? We (Atomikos) had support for it in JAX-RPC days and now in JAX-WS precisely because we experience demand. > Is it that there > are other ways to implement transactions other than WS-* specs? Or is it not > a practical solution

Re: WS-* specification for transaction

2010-07-20 Thread Guy Pardon
Hi Anto, You can try this: http://www.atomikos.com/Main/ExtremeTransactions It includes an independent WS-AT implementation (in beta) that should work in any JAXWS stack. Best Guy On 20-jul-2010, at 14:04, Anto wrote: Hi, Is there any way to use WS-* specifications related to transactio

Re: ws-securitypolicy not working?

2010-03-19 Thread Guy Pardon
Thanks - any way to avoid spnego by a client-side config? Guy On 19-mrt-2010, at 04:06, Daniel Kulp wrote: On Thursday 18 March 2010 10:37:57 am Guy Pardon wrote: > Hi, > > My case is the following: I would like to get ws-securitypolicy to work for > signing messages with NTLM cr

ws-securitypolicy not working?

2010-03-18 Thread Guy Pardon
Hi, My case is the following: I would like to get ws-securitypolicy to work for signing messages with NTLM credentials on Java6. Both of these would be supported by default (according to the cxf docs). However, when I try our WSDL with the wsdl-first sample setup of cxf, then I get the follo