Re: Problem with illegal characters I guess...

2009-11-04 Thread Benson Margulies
Roughly, it looks to me as if the server is rejecting your input and then CXF is having trouble with the fault message. In particular, the 'illegal char' error is trying to process the fault. I had a quick look at the WSDL, and I was perplexed by the presence of "http://schemas.xmlsoap.org/soap/en

Re: JMS message type clarification

2009-11-04 Thread Daniel Kulp
There's actually a gap in the documentation in this area. CXF also supports "byte" as the message type in the configuration to use a BytesMessage. Dan On Tue November 3 2009 5:50:20 pm Bryan99 wrote: > The W3C SOAP over JMS spec for the JMS body states the following > (http://www.w3.org/TR/

Re: Problem with illegal characters I guess...

2009-11-04 Thread vlaladim
"Are you just using a CXF client to talk to someone else's service?" Yes, I am using CXF to talk to the betfair service, the wsdl url is in my previous message. "It would be interesting to intercept the request and response using TCPMon or Wireshark." I will try to do that tomorrow, but I am pret

Re: CXF and XmlJavaTypeAdapter annotation at the method level

2009-11-04 Thread Daniel Kulp
On Wed November 4 2009 5:44:25 pm Eric Ma wrote: > Am using CXF 2.2.4, JAX-WS frontend, JAXB databinding. > > I know with JAXB, I need to create XmlJavaTypeAdapters to handle Map types. > This works great when the annotation is at the field level. However, when > I annotated my SEI and implement

Re: Using cxf java2wsdl causes anonymous type exception when deploying (crosspost)

2009-11-04 Thread Daniel Kulp
On Tue November 3 2009 3:30:42 pm Randd12 wrote: > hi > > Issue 1: > I am generating all code from wsdl with multiple schemas and discovered > when deploying a cxf-se if there are any anonymous types, an > illegalargumentexception is thrown from > com.sun.xml.txw2.Document.writeValue:125. That is

CXF and XmlJavaTypeAdapter annotation at the method level

2009-11-04 Thread Eric Ma
Am using CXF 2.2.4, JAX-WS frontend, JAXB databinding. I know with JAXB, I need to create XmlJavaTypeAdapters to handle Map types. This works great when the annotation is at the field level. However, when I annotated my SEI and implementation class at the method level, I am getting CXF exceptio

Re: CXF, don't want it to init lazy Spring beans at startup

2009-11-04 Thread Daniel Kulp
What version of CXF? I know some fixes in this area were added to CXF 2.2.4. Can you provide a small test case? Dan On Tue November 3 2009 12:27:04 pm Kessel, Christopher wrote: > As a noob to CXF, I'll apologize first if this has been asked. I looked > in the CXF manual, particular the FAQ

Re: Need an introduction to Apache CXF

2009-11-04 Thread Daniel Kulp
On Tue November 3 2009 3:19:21 am Kanthan wrote: > Hi All :working: , > > I am a newbie to Apache CXF. > please help me to understand it with an example. > > Also provide me some link to get useful info reg CXF. > Anyhelp is appreciated. > > Thanks in advance, > Kanthan > In addition to the re

RE: Return an Image from a REST webservice api

2009-11-04 Thread Ron Grimes
Hi, With regards to my suggestion, I typically write these images to a directory that can be accessed through a standard http request or simple servlet. You can name these images something dynamic and not easily guessed. Maybe customer number + time stamp + .png, or user Id + timestamp + .png.

Re: Trouble wireing up Spring-DM Server & CXF in Eclipse (with Maven support)

2009-11-04 Thread Raughan
This has been a long and complicated research project, but I finally have such a web service up and running. Below, in no particular order, are links that I found useful: http://cxf.apache.org/dosgi-spring-dm-demo-page.html http://minddiary.com/2009/06/10/creating-web-services-using-apache-cxf-pa

Re: Problem with illegal characters I guess...

2009-11-04 Thread Andreas Veithen
That doesn't look like a character encoding problem, but more like a problem with chunked encoding at the HTTP level. It would be interesting to intercept the request and response using TCPMon or Wireshark. Andreas On Wed, Nov 4, 2009 at 19:13, Benson Margulies wrote: > Um, now I'm more confused

RE: Need an introduction to Apache CXF

2009-11-04 Thread Pydipati, Karuna
I don't know whether you are using Spring or not, here is good tutorial for CXF (using Spring) http://wheelersoftware.com/articles/spring-cxf-web-services.html http://www.benmccann.com/dev-blog/web-services-tutorial-with-apache-cxf/ Regards Karuna Pydipati StubHub/eBay - Platform & Services P

Re: Problem with illegal characters I guess...

2009-11-04 Thread Benson Margulies
Um, now I'm more confused than before. Are you just using a CXF client to talk to someone else's service? The indications here are someone or something is confused about using UTF-8 (or not) as the character encoding, or else you have a very picky schema. On Wed, Nov 4, 2009 at 9:14 AM, vlaladi

RE: Return an Image from a REST webservice api

2009-11-04 Thread cgswtsu78
Thank both of you for your replies, but I'm afraid I'm confused. If I create a BufferedImage, how can I return it to the client without streaming it? Since the rest web service isn't storing it anywhere but in memory, I don't understand how to get it back to the client who called the rest web

RE: Spring Bean Injection for Endpoint

2009-11-04 Thread Eamonn Dwyer
Should your ref value not be mailSender rather than mailSenderFacade to match up with your bean's id? > Date: Wed, 4 Nov 2009 10:54:42 +0200 > Subject: Spring Bean Injection for Endpoint > From: sceller...@gmail.com > To: users@cxf.apache.org > > Hi All, > I'm using CXF with JBoss app. server a

Spring Bean Injection for Endpoint

2009-11-04 Thread Григорий Лобач
Hi All, I'm using CXF with JBoss app. server and it's necessary to inject a few spring beans into endpoint object. I tried the following solution, but it wasn't working for me: http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:beans="http:/

Re: Problem with illegal characters I guess...

2009-11-04 Thread vlaladim
Thanks for the questions. The answers are: 1) First I tried with 2.2.2 then I tried with 2.2.4 also tried with 2.1.X I think it was 2.1.6 and finally before an hour I tested it with 2.3.0-SNAPSHOT. It has the same behavior for all versions. 2) I have binding file: https://api-au.betfair.com/exc

Re: Problem with illegal characters I guess...

2009-11-04 Thread Benson Margulies
1) What version of CXF? 2) How did you configure your service? 3) Are both server and client CXF? On Wed, Nov 4, 2009 at 7:50 AM, vlaladim wrote: > > Hi to all, > I am new in the forum and registered here because I am having a problem > that > I cannot resolve in the last dew days. > I tried di

Problem with illegal characters I guess...

2009-11-04 Thread vlaladim
Hi to all, I am new in the forum and registered here because I am having a problem that I cannot resolve in the last dew days. I tried different versions of CXF and all of them are giving me the same exception. I am using wsdl2java with maven 2. The wsdl that i am using is provided by betfair an

Re: Using WS-Addressing 2004/08

2009-11-04 Thread Eoghan Glynn
> Unless I'm mistaken, I should > try to modify the message at the WRITE phase? No, that would be too late as the WS-A codec interceptor would have already run in the PRE_PROTOCOL phase, i.e. the message addressing properties would already have been marshalled up using the default WS-A version by

Re: JBoss 5.1

2009-11-04 Thread Alexandros Karypidis
I'm using the full-bundle (cxf.jar) from the binary distribution (2.2.3 specifically). I can see org.apache.cxf.jaxrs.XXX packages inside so I suppose it's there. It means nothing though as any conflict would arise at runtime and I never access this stuff in my test app (I don't do JAX-RS). I g

Re: JBoss 5.1

2009-11-04 Thread Sergey Beryozkin
Is cxf-frontend-jaxrs included in WEB-INF/lib ? If so then I believe it should work cxf-frontend-jaxrs ships with a META-INF/services/javax.ws.rs.ext.RuntimeDelegate extension which should be discovered and the control should be given to the CXF JAXRS implementation cheers, Sergey - O

RE: SSL Woes. Can't get past handshake_failure message

2009-11-04 Thread Nate Woody
FWIW, the only way I've successfully debugged SSL problems is by turning on SSL debugging (something like: System.setProperty("javax.net.debug","ssl")). Hopefully, you can at least verify where/why the handshake is failing, what truststore is being used, etc. You will definitely see if the server

Re: JBoss 5.1

2009-11-04 Thread Benson Margulies
Could I check one more point about the 'just use yours' option? I thought that I'd read that you are sticking with some other JAX-RS platform. Is the CXF JAX-RS stuff in there? I use at least one CXF-specific bit of REST. On Wed, Nov 4, 2009 at 4:05 AM, Alessio Soldano wrote: > Alexandros Karypi

Re: JBoss 5.1

2009-11-04 Thread Benson Margulies
A few quick 'provided's, I hope, will accomplish this. On Wed, Nov 4, 2009 at 4:05 AM, Alessio Soldano wrote: > Alexandros Karypidis wrote: > >> So I did a quick test with JBoss 5.1 using the Native core and JDK1.6.0_16 >> and CXF 2.2.3. I bundled all CXF jars in WEB-INF/lib and configured the >

wsdl2java :Java Parameter Name Customization

2009-11-04 Thread phplover
hi My problem is very simple, I want to rename the java paramenter through an external jaxb file (to be used by wsdl2java to create appropriate stubs).I can easily rename the java method name by the following binding but when i am unable to rename the parameter. I am using the fo

Re: Would like to send custom XML back whenever a 400 or 500 category error happens

2009-11-04 Thread Sergey Beryozkin
Hi Henrik Hi Sergey. Thanks again for the response. I stepped through the JAXRSOutInterceptor in the debugger and found out that the content type for the Response I had created was "octet/stream" instead of "application/xml". Once I created the appropriate content type entry in the MultivaluedMa

Re: JBoss 5.1

2009-11-04 Thread Alessio Soldano
Alexandros Karypidis wrote: So I did a quick test with JBoss 5.1 using the Native core and JDK1.6.0_16 and CXF 2.2.3. I bundled all CXF jars in WEB-INF/lib and configured the class-loader isolation of my previous e-mail. The following jars caused linkage errors: geronimo-activation_1.1_spec-1

Re: JBoss 5.1

2009-11-04 Thread Alexandros Karypidis
So I did a quick test with JBoss 5.1 using the Native core and JDK1.6.0_16 and CXF 2.2.3. I bundled all CXF jars in WEB-INF/lib and configured the class-loader isolation of my previous e-mail. The following jars caused linkage errors: geronimo-activation_1.1_spec-1.0.2.jar geronimo-servlet_2.5