Re: WSD2JS Not Creating Schema Objects

2009-11-16 Thread noosy
Sorry Benson, I only just got a chance to look at this today. Thanks so much - will try the snapshot tomorrow and post back my results. bimargulies wrote: > > https://issues.apache.org/jira/browse/CXF-2513. Fixed. Try another > snapshot. > > On Wed, Oct 21, 2009 at 7:51 AM, Benson Margulies >

RE: CXF jaxrs REST exception stack trace propagated to REST client, can exception be wrapped up or filtered out or AOP intercepted?

2009-11-16 Thread vickatvuuch
Hi Mustafa! Yes, I need to be able to have a centrally controller backstop for all exceptions coming out of my mackages, mostly .*Impl classes and custom interceptors such as i.e. Auth interceptor. Soap already kind of does it for me by wrapping it into a generic Fault (I actually wanted MyExcepti

RE: CXF jaxrs REST exception stack trace propagated to REST client, can exception be wrapped up or filtered out or AOP intercepted?

2009-11-16 Thread Mustafa Sezgin
>From my understanding you basically want a centralised place to handle exceptions and a way to control what is returned to the client? We use an exception mapper which receives all possible exceptions and you can then return the desired response object based on the exception. We have a many to one

Re: Exception : getWriter() has already been called for this response

2009-11-16 Thread Parimal Dhinoja
Thank you Sergey, Yes it seems working. now I haven't got any exception. but I am not verifying it. Actually following is my code in impl. I am sending xml file in Httpresponse stream. and I do not know if anything will add to response or overwrite by further interceptor process. I am using this s

Unmarshalling problems with returned wrapped lists using xmlbeandatabinding

2009-11-16 Thread Matias Urbieta
Hi, i'm currently facing a problem when i try to unmarchal .Net service response using xmlbeandatabinding. The issue arised when we change our aegis databinding strategy to xmlbean one. The operation "getSucursalesResponse" returns a list of sucursales wrapped with an element called "getSucursale

CXF jaxrs REST exception stack trace propagated to REST client, can exception be wrapped up or filtered out or AOP intercepted?

2009-11-16 Thread vickatvuuch
Hi All, Is there a way to Not propagate unchecked exception stack traces back to the client? Use case: I have a port, that expects certain parameters, if one of them is null it may throw unchecked IllegalArgumentException, which could be rectified if it was all under my control. Imagine that o

Re: How to configure CXF client consume wsdl with overloaded methods?

2009-11-16 Thread Benson Margulies
It doesn't contradict WSI-BP. It's just stupid. If you change a type in the middle of an existing contract, and the original schema didn't use 'any' particles to leave room for expansion, you've made an incompatible change, and, yes, all those clients have to be reinvented. On Mon, Nov 16, 2009 at

Re: Exception : getWriter() has already been called for this response

2009-11-16 Thread Sergey Beryozkin
Hi Please try writing to response.getOutputStream() and it should work. I missed overriding response.getWriter() in the HttpResponse context implementation. let me know please if it works Sergey Parimal Dhinoja wrote: > > Hi, > > I have implemented RESTful CXF service with my spring projec

Re: injecting configuration info (JAX-RS)

2009-11-16 Thread Sergey Beryozkin
I should've mentioned that JAX-RS 1.1 allows for the injection of configuration into Application implementations but I'm presuming it is contexts like ServletConfig which can be injected so you'd have to manually create the (Spring) ApplicationContext (by getting the right parameter from ServletCo

Re: How to configure CXF client consume wsdl with overloaded methods?

2009-11-16 Thread Jason Clark
Hi Dan, I think something related (albeit peripherally) has recently come up at my workplace. The scenario is we have a web service that we've published a WSDL for. Recently, a new element has been added to a complex type (ignoring my objections), thus resulting in an updated WSDL. This has nece

Exception : getWriter() has already been called for this response

2009-11-16 Thread Parimal Dhinoja
Hi, I have implemented RESTful CXF service with my spring project. in impl class, I have used MessageContext to retrieve HttpResponse and I am using response.getWriter() to set HttpResponse with my content. when I call this service from browser, I get the response what I have set in impl, but on

WS-Security field level encryption pass through

2009-11-16 Thread Howard Points
We have a DataPower appliance sitting in front of our web service and encrypting a single field in the SOAP request. This is passed into our web service. We just want to pass through the encrypted field to a down line another web service call. We do not want to decrypt the value in the middle web

Re: WSDL2JAVA, store WSDLs and XSDs locally

2009-11-16 Thread Daniel Kulp
On Mon November 16 2009 12:31:32 pm Daniel Kulp wrote: > On Mon November 16 2009 12:15:51 pm Christian Schneider wrote: > > Hi Dan, > > > > that is very interesting. Will this feature also work for the > > wsdlLocation in the binding.xml ? > > This would partly solve my problem with the issue of re

Re: WSDL2JAVA, store WSDLs and XSDs locally

2009-11-16 Thread Daniel Kulp
On Mon November 16 2009 12:15:51 pm Christian Schneider wrote: > Hi Dan, > > that is very interesting. Will this feature also work for the > wsdlLocation in the binding.xml ? > This would partly solve my problem with the issue of reading wsdls from > maven repos. I don't think so. The locations

Re: WSDL2JAVA, store WSDLs and XSDs locally

2009-11-16 Thread Christian Schneider
Hi Dan, that is very interesting. Will this feature also work for the wsdlLocation in the binding.xml ? This would partly solve my problem with the issue of reading wsdls from maven repos. Greetings Christian Daniel Kulp schrieb: This is exactly what the XML catalogs are designed for (and

Consecutive messages are sent in the same POST request

2009-11-16 Thread sirdsoriano
i'm having a very extrange problem i'm working with cxf-2.0.12, but i think this problem is not related to such version i have created a ws consumer, basic, with wsdl2java, and when testing with created main class/method works perfect, but i two (or more) consecutive requests are executed (regardl

Re: Dynamic CXF WebService powered by OSGI

2009-11-16 Thread Raughan
I figured out a solution and didn't want to leave this thread completely unanswered. This actually can be done. At a high level the WAR needs to expose an OSGI service that implements an interface that is in yet a third bundle. This is because a WAR file cannot directly expose POJO (including i

Aegis with complex types

2009-11-16 Thread tog
Hi there, I am on my way to update GroovyWS with the latest version of CXF 2.2.4, I am facing problems with the use of complex types. Therefore I would like to find samples/tests using: - Aegis + complex types i.e. beans, arrays of complex types, ... - Aegis + custom serialization/deserializat

Re: CXF wsdl loosing wsdl:types after the first request goes through

2009-11-16 Thread Daniel Kulp
This is DEFINITELY a strange one. I have NO idea what would cause that. I'm not even sure if it's potentially something Mule is doing. I know they have their own transport layers which may have some affect here. I can only suggest to fire up a debugger and debug in. Dan On Fri November

Re: injecting configuration info (JAX-RS)

2009-11-16 Thread Sergey Beryozkin
Hi, AFAIK the idea behind introducing JAX-RS Application is to let users write portable 'deployment descriptors' in the form of Application implementations. Application instances can tell the runtime about the root resources and providers and clarify which lifecycle policy they depend upon. T

Re: WSDL to Java and SOAP 1.2

2009-11-16 Thread Daniel Kulp
What happens if you call factory.setWsdlLocation() with the location of the wsdl? Does that then make it send soap 1.2 properly?(Also, try with 2.2.4) Doing that may actually be important. I notice your binding has a policy reference in it. Without the wsdl location set, the poli

Re: Basic question regarding the client.

2009-11-16 Thread Daniel Kulp
On Sun November 15 2009 11:24:58 pm Andres Olarte wrote: > This is probably a very basic question, but here it goes: > > I developing both the server and a client for some web services. When I > run wsdl2java, all of the classes that the client can receive from the > client are generated, along

Re: No such operation on 'service list' page

2009-11-16 Thread Daniel Kulp
On Fri November 13 2009 5:47:32 pm Matthew Cordes wrote: > No thoughts on this one? > > What I'd like to be able to do is have cxf display a succinct summary of > the services available. I'm relatively sure xfire did this out of the box > (in html). Is there an option I need to enable in cxf or

injecting configuration info (JAX-RS)

2009-11-16 Thread John Klassa
I'm trying to understand where/how to inject configuration information... I'm developing a base-bones application using JSR-311 style annotations, with a simple javax.ws.rs.core.Application instance at its core. My web.xml has just the minimal: Sandbox org.apache.cxf.jaxrs.

Re: Problems in wsdl2java generation of no-argument method

2009-11-16 Thread Daniel Kulp
Nope. Not a bug. This is per spec. As soon as you remove the "wrapper" element from the request, it's no longer considers "wrapped doc/lit" and thus we no longer can unwrap it. That said, doing what you did ALSO results in a WSDL that is no longer WSI-BP compliant. The incoming

Re: WSDL2JAVA, store WSDLs and XSDs locally

2009-11-16 Thread Daniel Kulp
This is exactly what the XML catalogs are designed for (and the -catalog flag on wsdl2java). Basically, they allow URL patterns and such used for imports to be mapped into new URL's where the stuff really lives. Thus, you can have "http://..."; type URL's in the wsdl's/xsd's, but have tho