question about creating junit test for cxf

2008-12-16 Thread shrimpywu
Hi everyone, i am new with CXF, just recently jump into it. I do search from google, and there is a small sample for cxf with maven(i am big fans of maven), but unfortunately the test doesn`t run, i always get exception as what i paste below. i try to run it without junit tests, it work just fi

Re: Start a JMS Service "Java first" without Spring

2008-12-16 Thread Christian Schneider
By the way ... have you tried to download and run the example? Mickael Istria schrieb: Hello, I am trying to expose a Java service over JMS only using Java only, and no Spring (because this service is generated and exposed at runtime, and does not exist yet at dev time). This service must us

Re: Start a JMS Service "Java first" without Spring

2008-12-16 Thread Christian Schneider
Hi Mickael, can you explain a bit more what you want to achieve? You wrote the service does not exist at dev time. Does that mean that the endpoint only exists at runtime or does it mean that you do not know the service contract at dev time? Greetings Christian Mickael Istria schrieb: Hello

JMS Transport

2008-12-16 Thread ysahuly
Hi All, One of the java client was post the message into the JMS Queue..I don't know how to pick the message and send it to the corresponding service using CXF...Any ideas greatly appreciated -- View this message in context: http://www.nabble.com/JMS-Transport-tp21040471p21040471.html Sent

javax.naming.NameNotFoundException when service implementation class tries to implement javax.servlet.ServletContextListener

2008-12-16 Thread Jeff Walker
Hi, I have a web service using JAX-WS 2.1 with CXF 2.0.6. It's an elementary service with one operation, but it works fine. Now, I want to add Spring support. I want to get the Spring application's context, by calling this: *ApplicationContext appContext = WebApplicationContextUtils.getWebApplicati

Re: CXF Aegis Problem

2008-12-16 Thread Benson Margulies
Can you post a test case with a JIRA? On Tue, Dec 16, 2008 at 12:21 PM, Andrew.K wrote: > > Hi all, > > I trying migrate from xfire to cxf. But, I have some problems with migrating > application functionality. When I try to call any service method, which > return array of custom objects, I get a

Re: Exception while marshalling

2008-12-16 Thread Sergey Pulyaev
Ok, i have switched to 2.0.9. But now - when i use code in line 76 - i mean CachingXmlEventWriter - i get invalid response text: previously i get response from function with result List like that: http://schemas.xmlsoap.org/soap/envelope/";> http://ws.pc2.takecharge.com/";> But now i receive

CXF Aegis Problem

2008-12-16 Thread Andrew.K
Hi all, I trying migrate from xfire to cxf. But, I have some problems with migrating application functionality. When I try to call any service method, which return array of custom objects, I get an exception: org.apache.cxf.interceptor.Fault: $Proxy37 cannot be cast to java.lang.Comparable

Malformed URL

2008-12-16 Thread mzha
Hi, my cxf version is 2.1.2 and I use the spring configuration beans.xml to configure cxf. My web services run in Tomcat. When I start Tomcat. I get the message "Malformed URL on system identifier: classpath:/schemas/wsdl" But the web services can be invoked without any problem. Even so, I want t

Re: XML Response modification

2008-12-16 Thread Daniel Kulp
This would be a bit tricky. If you are using the WSS4JOutInterceptor, the non-encrypted stuff would NEVER be in "stream" form. Most likely, what you need to do is write an interceptor that goes in the: Phase.POST_PROTOCOL; phase, but is before the WSS4JOutInterceptorInternal.class.getName() i

Re: configuring the WSDL generator at serviceUrl?wsdl

2008-12-16 Thread Daniel Kulp
On Tuesday 16 December 2008 6:20:29 am raft wrote: > two weeks passed but the mystery remains unsolved.. As of yet, I haven't seen a test case for this. If you produce a test case, I'd be happy to look at it more in depth. Dan > > raft wrote: > > np ;-) so we agreeded on the problem.. > > >

Re: problem changing endpoint address from https to http

2008-12-16 Thread Daniel Kulp
You'll probably need to do: Client cl = ClientProxy.getClient(port); (HttpConduit)cl.getConduit()).setTlsClientParameters(null); to make sure the TLS stuff is all reset to nothing and force re-initializing the conduit as a non-tls conduit. Dan On Tuesday 16 December 2008 10:38:52 am Christop

Re: Exception while marshalling

2008-12-16 Thread Daniel Kulp
On Tuesday 16 December 2008 11:06:35 am Sergey Pulyaev wrote: > CXF cxf-api-2.0.6 > Server: Jetty 6.1.9 > > I use CXF 2.0.6 - where is no string > if (shouldValidate(message) && !isRequestor(message)) { > in AbstractOutDatabindingInterceptor. > > Is there any solution for CXF 2.0.6 ? Probably not

Re: Howto consume huge amount of data with a cxf client

2008-12-16 Thread Daniel Kulp
If you cannot use MTOM (which would do this automatically), then something similar to the LoggingInInterceptor is probably the correct approach.I'd suggest using our CachedOutputStream. It provides temp files for large messages, but uses byte[] for short messages to avoid file IO. It als

Re: Exception while marshalling

2008-12-16 Thread Sergey Pulyaev
CXF cxf-api-2.0.6 Server: Jetty 6.1.9 I use CXF 2.0.6 - where is no string if (shouldValidate(message) && !isRequestor(message)) { in AbstractOutDatabindingInterceptor. Is there any solution for CXF 2.0.6 ? dkulp wrote: > > > If schema validation is turned on, we now (starting with 2.1.3) "

Re: Exception while marshalling

2008-12-16 Thread Daniel Kulp
Answered previously: http://www.nabble.com/Re:-Exception-while-marshalling-p20843833.html Dan On Tuesday 16 December 2008 8:29:06 am Sergey Pulyaev wrote: > CXF cxf-api-2.0.6 > Server: Jetty 6.1.9 > > I have some hibernate objects what should be marshaled, and if i get error > during this proce

problem changing endpoint address from https to http

2008-12-16 Thread Christopher Cheng
I was trying to change the endpoint address from a https address to http address endpointAddress = http://webservices.mydomain.com/websrc; SessionCreateRQService service = new SessionCreateRQService(); SessionCreatePortType port = service.getSessionCreatePortType(); Map requestContext = ((BindingP

Re: Interfaces and Aegis

2008-12-16 Thread Andrew.K
It helps me, thanks. I created Aegis context and added this properties to it. Thanks again :-) Benson Margulies-4 wrote: > > Yes, you can set it up as a property in Spring. Create the Aegis > context as a bean, etc. > > On Mon, Dec 15, 2008 at 8:30 AM, Andrew.K wrote: >> >> Thanks for link.

Re: Howto consume huge amount of data with a cxf client

2008-12-16 Thread Andrew Clegg
2008/12/16 Thomas Engelschmidt : > I only have control over the client side. MTOM I would imagine requires > configurtion on the server side. I misread your mail as well -- so ignore what I said about Provider services -- but you could build a Dispatch client to stream large amounts of data from a

Re: Howto consume huge amount of data with a cxf client

2008-12-16 Thread Thomas Engelschmidt
I only have control over the client side. MTOM I would imagine requires configurtion on the server side. On Dec 16, 2008, at 15:17 , Idar Borlaug wrote: Have you considered using MTOM, then you get a stream object in java, which you can redirect to file. 2008/12/16 Thomas Engelschmidt : Hi

Re: Howto consume huge amount of data with a cxf client

2008-12-16 Thread Idar Borlaug
Have you considered using MTOM, then you get a stream object in java, which you can redirect to file. 2008/12/16 Thomas Engelschmidt : > Hi > > I'm implementing a cxf ws client, that's going to consume at huge amount of > data (500gb a month). Since its not possible to restrict the response size.

Re: Howto consume huge amount of data with a cxf client

2008-12-16 Thread Andrew Clegg
You could use a Provider service that just writes the stream directly to disk, and then invokes another service (or just calls a method in your back-end application directly). http://cwiki.apache.org/CXF20DOC/provider-services.html Andrew. 2008/12/16 Thomas Engelschmidt : > Hi > > I'm implementi

Howto consume huge amount of data with a cxf client

2008-12-16 Thread Thomas Engelschmidt
Hi I'm implementing a cxf ws client, that's going to consume at huge amount of data (500gb a month). Since its not possible to restrict the response size. I would like to implement an interceptor, that gets the inputstream and redirects it to a file, and if possible returns another xml object ins

Re: Interfaces and Aegis

2008-12-16 Thread Andrew.K
I tried, but got same error. There is my cxf.xml http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:simple="http://cxf.apache.org/simple"; xmlns:soap="http://cxf.apache.org/bindings/soap"; xsi:schemaLocation=" http://

Exception while marshalling

2008-12-16 Thread Sergey Pulyaev
CXF cxf-api-2.0.6 Server: Jetty 6.1.9 I have some hibernate objects what should be marshaled, and if i get error during this process - for example in lazy loading - i get very strange output: http://schemas.xmlsoap.org/soap/envelope/";> http://ws.pc2.takecharge.com/";> soap:Server Marshalling

Re: does apache CXF support spring 1.2.x?

2008-12-16 Thread Daniel Kulp
On Tuesday 16 December 2008 3:27:23 am Eric Njogu wrote: > Hi, > > * *I am a new user of apache CXF. > > Please let me know which version of apache CXF supports spring 1.2.x No, just the Spring 2.x versions. -- Daniel Kulp dk...@apache.org http://dankulp.com/blog

Start a JMS Service "Java first" without Spring

2008-12-16 Thread Mickael Istria
Hello, I am trying to expose a Java service over JMS only using Java only, and no Spring (because this service is generated and exposed at runtime, and does not exist yet at dev time). This service must use a remote provider (no need to embed an ActiveMQ or any other provider in my app). I'

Re: configuring the WSDL generator at serviceUrl?wsdl

2008-12-16 Thread raft
two weeks passed but the mystery remains unsolved.. raft wrote: > > np ;-) so we agreeded on the problem.. > > On Tue, Dec 2, 2008 at 11:44 PM, Benson Margulies > wrote: >> OK, now I've got the picture. I guess I've run you around in a circle >> to get right back to where Dan had you. We need

Re: XML Response modification

2008-12-16 Thread bschuette
Hi! I have a similar problem, I need to log all outgoing messages before they are encrypted and signed. I tried to modify the shipped LoggingOutInterceptor within its constructor: super( Phase.PRE_STREAM ); addBefore( StaxOutInterceptor.class.getName() ); addBefore( WSS4JOutInterceptor.class.get

does apache CXF support spring 1.2.x?

2008-12-16 Thread Eric Njogu
Hi, * *I am a new user of apache CXF. Please let me know which version of apache CXF supports spring 1.2.x