[JAX-RS] Fault handling

2009-02-12 Thread Gabo Manuel
Hi All, I was just wondering if there is a possibility to acquire the actual Exception object, and maybe even replace it with another Exception through interceptors. I was already able to change the response code (400 or 500) depending on whether the exception was a checked exception or

Help on writing simple JMS Client

2009-02-12 Thread Basavaraj M
Hi, Is there any simple example explaining, how to write a JMS client. I don't want the client program depending (loading configuration from) on any xml file, like cxf.xml. Basavaraj M HUAWEI TECHNOLOGIES CO.,LTD. Address: 139//26 , Ward Number 72, Huawei technologies Private Ltd.

RE: Help on writing simple JMS Client

2009-02-12 Thread Sean O'Callaghan
Hi, There are some very straightforward samples jms_pubsub and jms_queue foung in the CXF installation under the samples directory. Regards, Seán. -Original Message- From: Basavaraj M [mailto:basavar...@huawei.com] Sent: 12 February 2009 10:19 To: users@cxf.apache.org Subject: Help

Client debuggign

2009-02-12 Thread John.Baker
Hello, After generating a set of stub from a WSDL, is it possible to switch on some HTTP level debug in order to trace why a WS call failed? When I attempt to invoke a service I see the following, however changing the location in the WSDL to localhost:1234, and running netcat, reveals it is

Suddenly, a problem with my cxf-servlet.xml

2009-02-12 Thread Andrew Clegg
Morning all, Between last night and today, my cxf-servlet.xml has developed a problem, without me changing anything. Bear with me, I know it sounds weird :-) It looks like this: ?xml version=1.0 encoding=UTF-8? beans xmlns=http://www.springframework.org/schema/beans;

Re: Suddenly, a problem with my cxf-servlet.xml

2009-02-12 Thread Andrew Clegg
2009/2/12 Andrew Clegg and...@nervechannel.com: Now, I can go to http://cxf.apache.org/schemas/jaxws.xsd in my browser and it's fine. But when I highlight this URL in the xsi:schemaLocation in Eclipse, and hit F3 for go-to-definition, I see: Not Found The requested URL

Re: Suddenly, a problem with my cxf-servlet.xml

2009-02-12 Thread Ian Roberts
Andrew Clegg wrote: I have even tried reverting my cxf-servlet.xml from SVN as it was error free right through yesterday, but no change. Has any change been made to the web server or the schema at cxf.apache.org which would cause this? My browser can't access http://cxf.apache.org at the

Re: Suddenly, a problem with my cxf-servlet.xml

2009-02-12 Thread Andrew Clegg
2009/2/12 Ian Roberts i.robe...@dcs.shef.ac.uk: Andrew Clegg wrote: I have even tried reverting my cxf-servlet.xml from SVN as it was error free right through yesterday, but no change. Has any change been made to the web server or the schema at cxf.apache.org which would cause this? My

Re: How to increase the max size of a REST response

2009-02-12 Thread Gabriel Guardincerri
Oh, sorry, didn't know the the log was talking about truncating the log. Well, I have a test case that reproduces the problem. It is a simple server that only has on method that returns a list of WSImage. Each WSImage has some info of the image, and an byte array that represents the bytes of the

Re: [JAX-RS] Fault handling

2009-02-12 Thread Sergey Beryozkin
Hi Gabo Can you explain a bit more what exactly you're trying to do ? I think if you have a JAXRS ExceptionMapper for say CustomException which does extend RuntimeException then you'll know in this mapper's implementation what sort of exception it is... But may be I'm missing something...

Re: Suddenly, a problem with my cxf-servlet.xml

2009-02-12 Thread Daniel Kulp
Honestly, I have no idea what to suggest. The schema DID change on monday when 2.1.4 was released as the new version was put in place. The only change was adding xsd:annotationxsd:documentation things all over it to document it better. However, the new version seems to work fine for

Re: Client debuggign

2009-02-12 Thread Daniel Kulp
Well, from your stack trace, you aren't using CXF. You are using the jaxws client built into Java 6. Thus, anything I tell you won't help at all. :-) First step would be to make sure the cxf jars are on the classpath and being picked up properly.:-) Dan On Thu February 12

Re: Suddenly, a problem with my cxf-servlet.xml

2009-02-12 Thread Andrew Clegg
2009/2/12 Daniel Kulp dk...@apache.org: Honestly, I have no idea what to suggest. The schema DID change on monday when 2.1.4 was released as the new version was put in place. The only change was adding xsd:annotationxsd:documentation things all over it to document it better. However, the

Re: Is CXF (2.1.4) compatible with Spring 3.0.0 (M1)?

2009-02-12 Thread Daniel Kulp
On Wed February 11 2009 6:17:08 pm guofoo wrote: I'm trying to use Spring 3.0.0 M1 with CXF by replacing the spring-xxx-2.0.8.jar files with the Spring jars, but I'm seeing the following exception when trying to start Tomcat 6.0.18. Is CXF compatible with Spring 3.0.0? Hmmm apparently

Java objects and JMS in Distributed OSGi

2009-02-12 Thread Philipp Konradi
Hi all, I'm new to CXF and have here some beginner questions: - Looking to CXF website, I saw some XML-based data-bindings… What about sending service arguments directly as Java objects using JMS without converting it to XML? Is that supported by CXF? Our app has high-throughput requirements to

Re: Retry on java.net.SocketTimeoutException: Read timed out

2009-02-12 Thread Daniel Kulp
On Wed February 11 2009 1:56:04 pm Dennis Kieselhorst wrote: Hi Dan, thanks for the quick response. Would increasing the read timeout on the client solve your problem? By default, I think we set it to 60 seconds but there is configuration to increase it (or set to -1 for no timeout).

Re: Suddenly, a problem with my cxf-servlet.xml

2009-02-12 Thread Andrew Clegg
No luck, I've updated all of my plugins and restarted, same two errors: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'jaxws:endpoint'. on every jax:ws endpoint, and - schema_reference.4: Failed to read schema document

Re: @Oneway and @OneWay difference or fault in documentation

2009-02-12 Thread Daniel Kulp
On Wed February 11 2009 7:27:47 am hairman wrote: I'm trying to use the @Oneway-Annotation in a CXF Serviceinterface using Spring. @OneWay (camelCase) doesn't exist, so I think, it's a fault in the CXF docu? ( http://cwiki.apache.org/CXF20DOC/developing-a-service.html#DevelopingaServi

Re: Suddenly, a problem with my cxf-servlet.xml

2009-02-12 Thread Andrew Clegg
I take it back! Sorry :-) Eclipse didn't automatically revalidate on startup, so one of either clearing the org.eclipse.wst.internet.cache or updating all my plugins fixed it, as Dan suggested. Many thanks. No more from me on this subject, back to work time. Andrew. 2009/2/12 Andrew Clegg

Re: SAXParseException - who's to blame?

2009-02-12 Thread buzzterrier
I have the wireshark dump, and a sample of the soap request that fails. In the soap request the following line is the culprit: ns9:descriptionPM361001-DJ01/ns9:description if I remove the dash, it does not fail. I also have another request that fails consistently if you are intersested.

Re: problems with ws-a

2009-02-12 Thread crmuchin
Tom, Would you mind sharing the details of how you did, or plan to, work around this issue using handlers? I'm running into the same issue and I'm not sure how to proceed. To give some background, I need to write a webservice that proxies various forms of XML data to a legacy process. It seems

Re: problems with ws-a

2009-02-12 Thread Tom Howe
Well, at this stage I had the flexibility to change SOAP toolkits and I moved to Spring-WS. However, I made my handling abstract enough that if/when cxf supports addressing for Providers, I will be able to port it over. -Tom On Thu, Feb 12, 2009 at 12:03 PM, crmuchin

WS-SECURITY Interceptor configuration

2009-02-12 Thread O. Baujard
Hi, I have the following requirements in a projet : - Create a Web Service (lets name it WS1) and in the service implementation, call an other Web Service (lets name it WS2). So we have the call chain : Client -- WS1 -- WS2 - WS1 and WS2 are secured with WS-SECURITY. - WS-SECURITY must be

cxf - Spring autowire Problem

2009-02-12 Thread paolocollector
Hi all i am having trouble using Spring 2.5 annotation with cxf I reduced all tha application to a mini manager and a webservice the manager code is @Service public class MiniManagerImpl implements MiniManager { [...] and the webservice @WebService(endpointInterface =

Re: @Oneway and @OneWay difference or fault in documentation

2009-02-12 Thread Daniel Kulp
This is actually a server side issue, not a client side issue. The client is doing the correct thing. Per spec, it has to wait for the 200/202 response codes to make sure the message was successfully sent. However, the server wasn't sending the code back until after the invoke.I'm

Re: cxf - Spring autowire Problem

2009-02-12 Thread Daniel Kulp
What does your jaxws:endpoint config look like? If you aren't using a ref to a spring defined bean for MiniServiceImpl, then spring wouldn't have created it and nothing would have gotten injected. Dan On Thu February 12 2009 1:23:54 pm paolocollector wrote: Hi all i am having trouble

Re: SAXParseException - who's to blame?

2009-02-12 Thread buzzterrier
btw, turning off chunking worked. Thx for the advice. buzzterrier wrote: I have the wireshark dump, and a sample of the soap request that fails. In the soap request the following line is the culprit: ns9:descriptionPM361001-DJ01/ns9:description if I remove the dash, it does not

RE: Java objects and JMS in Distributed OSGi

2009-02-12 Thread Eoghan Glynn
Hi Philipp, What about sending service arguments directly as Java objects using JMS without converting it to XML? Is that supported by CXF? Well, CXF has an object binding that was originally intended to allow optimization of the collocated case (i.e. where both the proxy and the target

Using wsdl2java behind a proxy server

2009-02-12 Thread dale77
Hello, how do I use wsdl2java behind a proxy server? I get java.net.ConnectException: Connection refused: connect trying to access an external wsdl on our LAN. Normally, I would configure our proxy server details with the software (e.g. curl -x proxy:3128 etc). How do I do this with wsdl2java?

ClassNotFoundException com.sun.xml.bind.v2.ContextFactory in OSGi

2009-02-12 Thread Leo Bayer
I'm trying to load an endpoint using the simple:server spring configuration but I'm getting a ClassNotFoundException when it's trying to load the JAXBContext. Because the CXF bundle does not have visibility to com.sun.xml.bind.v2 through an import it fails when trying to class load. What am I

TLS/SSL Authentication Using CXF

2009-02-12 Thread Scott Archer
We're trying to access a web service secured by a certificate. The security is setup on IIS and the web service is behind it. I don't think WS-SECURITY will do this type of authentication. Is there any way to pass the client certificate when you call the web service? We're just getting an IIS

Re: SAXParseException - who's to blame?

2009-02-12 Thread buzzterrier
Well, I spoke too soon. Turning off chunking solved problem with the previous soap request, but it raised it's ugly head in another call. buzzterrier wrote: btw, turning off chunking worked. Thx for the advice. buzzterrier wrote: I have the wireshark dump, and a sample of the

Re: Problems with CXF 2.1.x

2009-02-12 Thread fzhang
I got the exact same problem here. I am using 2.1.4. Did you have any luck since? I am trying to find a way to debug cxf web service, if that is all possible... -- View this message in context: http://www.nabble.com/Problems-with-CXF-2.1.x-tp20213983p21988389.html Sent from the cxf-user

Re: cxf - Spring autowire Problem

2009-02-12 Thread Daniel Kulp
Change to something like: bean id=MyImpl class=minitest.service.impl.MiniServiceImpl/ jaxws:endpoint id=miniservice implementor=#MyImpl address=/MiniService jaxws:properties I think there are a couple examples similar to that in the

Re: [JAX-RS] Fault handling

2009-02-12 Thread Gabo Manuel
Hi Sergey, Thanks for pointing me in the right direction. I got most of what I need from this site: http://cwiki.apache.org/confluence/display/CXF20DOC/JAX-RS One last thing though, is it possible to remove the Result tags? Can you explain a bit more what exactly you're trying to do ? To