Re: [JAX-RS] Fault handling

2009-02-16 Thread Gabo Manuel
Hi Sergey, > Can you also do System.out.println(response.getEntity().toString()) in your mapper, before returning ? 2009-02-17 06:25:53,024 | INFO [l0-0][ SolegyFaultMapper] entity: The server encountered some error. Involved personnel have been notified of this incident. Please

Re: @XmlSchema(location=...)

2009-02-16 Thread Benson Margulies
The validation code could in theory impose the schema as you ask, yes. Care to make a patch? On Mon, Feb 16, 2009 at 5:14 PM, Chris McClelland wrote: > Hi, > > Someone pointed out to me today that the JAXB xjc/schemaGen transformations > are lossy. Imagine a CXF JAXWS service written code-first,

@XmlSchema(location=...)

2009-02-16 Thread Chris McClelland
Hi, Someone pointed out to me today that the JAXB xjc/schemaGen transformations are lossy. Imagine a CXF JAXWS service written code-first, but using types generated from a schema that has an element M defined as a choice of two other elements A and B. That service will accept and without err

Getting WSDL or schema of service from inside a JAX-WS Provider

2009-02-16 Thread Andrew Clegg
Hi folks, >From inside a Provider implementation, how can I obtain the schema of the service's request/response messages, short of reading the WSDL myself and extracting the schema from it? Thanks, Andrew. -- :: http://biotext.org.uk/ ::

Re: Aegis Type Mapping

2009-02-16 Thread Benson Margulies
The problem here is that I more or less rewrote the relevant code here for 2.2. So now I will have to grab a 2.1.4 tree and see if I cannot concoct a fix for you. Just this instant, the entire ASF svn server is out celebrating presidents' day, so it won't happen for a few days. The lack of the @We

Re: Aegis Type Mapping

2009-02-16 Thread relphie
So I created a simple test case, and it passed ... I double checked, and I had not annotated the interface with @WebService After adding that, it failed with the namespace message in both 2.1.3 and 2.1.4 Then, I changed to cxf 2.2, and it passed (i.e. no null pointer message). Anyway, here it is

Re: Aegis Type Mapping

2009-02-16 Thread Benson Margulies
Dan fixed it on the trunk and merged it down, so that's not an issue. Well, I thought I'd propagated some of the examples of custom type mapping from the unit tests to the samples, but no such luck. Somehow, you've managed to get the code to call getMinOccurs without ever call getTypeInfo. I coul

Re: Aegis Type Mapping

2009-02-16 Thread relphie
FYI, i think you might need to copy this fix into trunk: http://www.nabble.com/After-updating-to-2.1.4:-No-DestinationFactory-was-found-for-the-namespace-http:--schemas.xmlsoap.org-soap-http-td21952242.html With 2.2-SNAPSHOT, I get a null pointer, something wrong with my BeanType config? Caused

Re: Aegis Type Mapping

2009-02-16 Thread Benson Margulies
The immediate exception is evidence of some pretty interesting confusion, insofar as the 'schema schema' is being added to the schema collection twice. Can I ask you to grab a 2.2 snapshot and see what you see? If not that, how about a JIRA with a self-contained test case? On Mon, Feb 16, 2009

Aegis Type Mapping

2009-02-16 Thread relphie
Hello, I am having problems registering custom type mappings in CXF 2.1 with an Aegis databinding. Previously in CXF 2.0, my type mappings were registered successfully. My basic need is that I have a service that returns a Map, keyed by a bean interface. I needed to tell cxf what implementation

Re: Eclipse STP installation process

2009-02-16 Thread Oisin Hurley
Hi Ann, I've already replied to you directly, when you emailed me personally, and indirectly, when you asked the same question in a comment on my blog. As Mickael directs, the STP newsgroup is really the best place for this kind of question, which is off-topic for the CXF users mailing list. --oh

Re: Eclipse STP installation process

2009-02-16 Thread Mickael Istria
Hello Ann, You'd rather ask the eclipse STP newsgroups for questions about STP. By the way, this seems to be a recent issue in STP. This thread will probably help you http://www.eclipse.org/newsportal/article.php?id=767&group=eclipse.stp#767 Regards, Mickael Ann Mathew a écrit : Hi,

RE: Java objects and JMS in Distributed OSGi

2009-02-16 Thread Philipp Konradi
Hi Eoghan, Thank you very much for the responses! It sounds promising so far. So I guess the first step for us would be to have a closer look at CXF and current D-OSGi implementation. Regards, Philipp > -Original Message- > From: Eoghan Glynn [mailto:eogl...@progress.com] > Sent: Thurs

Eclipse STP installation process

2009-02-16 Thread Ann Mathew
Hi, In the whole last week, I was trying to install STP in eclipse. I have tried with Europa and then I tried with Ganymede. As mentioned in the http://wiki.eclipse.org/STP_Service_Creation_getting_started, I have downloaded all the dependancies and tried to install the same. But unfor

Re: JSON client?

2009-02-16 Thread Sergey Beryozkin
Hi, If you're willing to play with the trunk then you can do either a proxy-based or http-centric client which will test your service class. Another alternative which does require a bit more work is to use Jettison api directly on the client... Cheers, Sergey - Original Message - Fr

Re: JSON client?

2009-02-16 Thread Christine Karman
On Mon, 2009-02-16 at 03:39 -0800, Davide Mora wrote: > > hi Christine, > i tried to use the client lib for call my rest service, following this > http://cwiki.apache.org/CXF20DOC/simple-frontend.html but without success. > do you think it should work? The code on the wiki should work, that's for

RE: Client side read timeout

2009-02-16 Thread John.Baker
Interestingly, this only happens when I use a proxy. I've looked at a few other posts and they suggest switching off chunking, but it makes no difference. Here's the code: ChangeManagement_Service service = new ChangeManagement_Service(); ChangeManagement port = service.getChangeMan

RE: Client side read timeout

2009-02-16 Thread John.Baker
It would appear CXF is attempting to make a post, setting a content length and not posting any XML. Hence, the read timeout, because the server is waiting for the post. I'm watching this through Fiddler (the http proxy). The standard JDK implementation does post the XML. Any ideas? Headers fol

RE: Re: D-OSGi question

2009-02-16 Thread Eoghan Glynn
-Original Message- From: david.bosscha...@gmail.com on behalf of dav...@apache.org Sent: Mon 16/02/2009 12:42 To: thomas.2.m...@continental-corporation.com; users@cxf.apache.org Subject: Re: Re: D-OSGi question Hi Thomas, I think this may be a bundle ordering issue. I have seen except

RE: Re: D-OSGi question

2009-02-16 Thread Eoghan Glynn
> I think this may be a bundle ordering issue. I think you may be right on that. Earlier on today I needed to update the DSW bundle in a running OSGi container. So I uninstalled it and reinstalled the new version manually, with the effect that bundle 13 was replaced by bundle 41 or 42. On the

RE: Client side read timeout

2009-02-16 Thread John.Baker
So here's the answer: http://cwiki.apache.org/CXF20DOC/client-http-transport.html Note, the setReadTimeout method has changed to setReceiveTimeout, I think? > -Original Message- > From: Baker, John: IT (LDN) > Sent: 16 February 2009 12:43 > To: users@cxf.apache.org > Subject: Client s

Client side read timeout

2009-02-16 Thread John.Baker
Hi, I'm making a WS call to a very slow server (HP Service Center) and it's timing out, so how do I increase the read timeout on the client? Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputS

Re: Re: D-OSGi question

2009-02-16 Thread davidb
Hi Thomas, I think this may be a bundle ordering issue. I have seen exceptions like this before when a spring file was being parsed while the actual bundle that contains the schema was not yet installed. I'm not sure whether there is a clean, order-independent way of solving this with Spring-DM ye

Re: JSON client?

2009-02-16 Thread Davide Mora
hi Christine, i tried to use the client lib for call my rest service, following this http://cwiki.apache.org/CXF20DOC/simple-frontend.html but without success. do you think it should work? i will take a look to XStream. thanks, Davide Christine-27 wrote: > > On Mon, 2009-02-16 at 02:21 -0800,

Re: JSON client?

2009-02-16 Thread Christine Karman
On Mon, 2009-02-16 at 02:21 -0800, Davide Mora wrote: > Bill Crook wrote: > > I've got my JSON endpoints up with CXF which is great. I now want to > > write a java client that can hit the JSON endpoint and turn the JSON > > response into the corresponding java objects. What is the best > > approach

JAXRS: Client API - feedback is needed

2009-02-16 Thread Sergey Beryozkin
Hi, Some initial work has been done for CXF JAXRS have its own Client API. The code is at [1]. Some of the design goals were to come up with at least something different compared to what other JAXRS implementations have (Jersey and RestEasy), reuse the existing JAXRS classes and approaches (u

Re: D-OSGi question

2009-02-16 Thread davidb
Hi Thomas, What are the actual bundles you have deployed. Could you do an 'ss' in the equinox console and put the result in a mail? Thanks, David 2009/2/16 : > > Hi > > I try to write my own small D-OSGi sample application. I followed the > instructions of your "Developing a Distributed OSGi

Re: JSON client?

2009-02-16 Thread Davide Mora
Hi all, anybody found a solution for this? i need to do the same... Thanks, Davide Bill Crook wrote: > > Hi all, > I've got my JSON endpoints up with CXF which is great. I now want to > write a java client that can hit the JSON endpoint and turn the JSON > response into the corresponding java