Re: CXF, trouble to find Classes to unmarshal to

2008-06-18 Thread MathisMohr
Ok I tried 2 things, both with no luck: 1.) I inlcuded the xsd-files into the wsdl, so that everything in generated in one move. It works, all the classes are being generated in one package (ie com.foo.generated.wsdl). Yet still, my test refuses to unmarshall the "inner" elements. 2.) Without th

Question about upgrading from CXF 2.0.1 to CXF 2.0.7

2008-06-18 Thread Ryan Moquin
Hello, I'm upgrading to a new version of servicemix and therefore upgrading to use CXF 2.0.7 since that's what servicemix was tested with. For some reason though, I'm getting the follow message during my build when CXF attempts to process one of my WSDLs: java.lang.RuntimeException: Header messa

Re: apache cxf 2.1 samples instructions gives com.sun.xml.bind.api.ErrorListener not found

2008-06-18 Thread Glen Mazza
http://www.jroller.com/gmazza/date/20080417 ? HTH, Glen 2008-06-14 Pam Holzner wrote: > Hi, > > I am trying to use cxf to generate a service from a wsdl. I started with my > own wsdl but ran into this message: > Exception in thread "main" java.lang.NoClassDefFoundError: > com/sun/xml/bind/ap

Re: how to use cxf 2.1 with maven ?

2008-06-18 Thread Glen Mazza
http://www.jroller.com/gmazza/date/20080417 ? HTH, Glen 2008-06-15 Mohammad Shamsi wrote: > Hi, > > I just found cxf 2.0.4-incubator in maven repositories, how can i access > 2.1 with maven 2 ? >

Has anyone used Aegis Databinding with JAXRS?

2008-06-18 Thread Britt Crawford
Hello, I am trying to get the Aegis databinding to work with the JAXRS front-end but haven't been successful yet. There is no documentation on this configuration, has anyone been able to get it working? If so, could you provide an example configuration? I can't seem to get JAXRS to use anythin

Re: Any initialization method in CXF?

2008-06-18 Thread Glen Mazza
http://www.jroller.com/gmazza/date/20080308? 2008-06-16 Autumn Wang wrote: > I am new to both web services and CXF and I don't know how to get the > following done with CXF. > > I am going to dispatch a thread to poll a database before my web service to > serve the client. So I would like to kno

Re: Can local:// and http:// addresses coexist on the same server

2008-06-18 Thread Dan Dubinsky
The stuff with the DestinationFactory and Conduits I took from from the docs at http://cwiki.apache.org/CXF20DOC/local-transport.html (the section on simple front end). It does seem to enable local:\\ access, but at the expense of http:\\ access. I'm using the simple front end. Maybe this is the

RES: Using soap:header element

2008-06-18 Thread Fernando Dourado
Great! Tks Dan. I will use @WebParam for that... -- Fernando Dourado Arquitetura de Sistemas BV-Sistemas :: Votorantim Finanças -Mensagem original- De: Daniel Kulp [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 18 de junho de 2008 16:19 Para: users@cxf.apache.org Assunto: Re: Using

Re: Using soap:header element

2008-06-18 Thread Daniel Kulp
On Jun 13, 2008, at 3:13 PM, Fernando Dourado wrote: Hi all. My application must receive a sessionId information in soap header. Looking in mailist archive, I found this solution: @WebMethod public IdentifierPK add(@WebParam Customer c) { ... } Change to this: @WebMethod public Identifier

Re: How to fill SOAP-Header ??

2008-06-18 Thread Daniel Kulp
Hmm. not really sure. In a way, it's related to https://issues.apache.org/jira/browse/ CXF-1654 because if the contexts were available, you could add the header to the context. You could write an interceptor that adds the header, but that's a bit more complex. If the wsdl's soap bi

Re: WSDL Documentation

2008-06-18 Thread Daniel Kulp
On Jun 16, 2008, at 7:39 AM, javian wrote: Hi, are there any news on this issue? In Jira the issue is still open. Is somebody working on it? Not yet.I mentioned it in my note about ideas for 2.2: http://www.nabble.com/Ideas-for-2.2-to17985028.html Dan Thanks, Juergen marcelo

Re: Noob exception: Caused by: org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered.

2008-06-18 Thread Daniel Kulp
Any chance either of you could zip up a small project that shows the problem with a small readme or something that explains how to run it and send it to me to look at? Dan On Jun 17, 2008, at 7:29 AM, Bilel wrote: Hey I have the same issue, my code works fine in Eclipse, but I got this

Re: Antwort: Re: Unmarshalling Error: UndeclaredPrefix: Cannot resolve 'ns0:Xxx' as a QName: the prefix 'ns0' is not declared [Virus checked]

2008-06-18 Thread Daniel Kulp
Did some snooping... The RI seems to have the same problem: http://forums.java.net/jive//message.jspa?messageID=268876 And they mention its a bug in the JDK: https://jaxp.dev.java.net/issues/show_bug.cgi?id=46 The workaround seems to be to use the latest 1.6 JDK or get the latest sun jaxp p

Re: MTOM with large file on client side

2008-06-18 Thread Boxiong Ding
Thanks for your suggestion. AttachmentOutInterceptor does show mtom-enabled is false. I made it work by adding message.put("mtom-enabled", true) in the handleMessage() method in my interceptor. It is odd that I have to do it this way, but it does work. Thanks, Boxiong - Original Message -

Antwort: Re: Unmarshalling Error: UndeclaredPrefix: Cannot resolve 'ns0:Xxx' as a QName: the prefix 'ns0' is not declared [Virus checked]

2008-06-18 Thread jan . minaroviech
Hi, looks like the same problem i have. But my response is invalid also according to soapUI validation. I'm not using any additional interceptors, only default cxfServlet, default bus config etc, without security, attachments etc. and I'm using jaxWS+jaxB This is response, which is problem in

Re: Unmarshalling Error: UndeclaredPrefix: Cannot resolve 'ns0:Xxx' as a QName: the prefix 'ns0' is not declared

2008-06-18 Thread Daniel Kulp
Very strange. The message is definitely valid. Could questions: 1) Do you have any SAAJ type handlers/interceptors on the chain (jaxws SOAPHandler, ws-security things, etc...)? 2) I noticed you have a xerces jar... can you try removing that and seeing if the JDK built-in parser will wor

Re: MTOM with large file on client side

2008-06-18 Thread Daniel Kulp
On Jun 17, 2008, at 9:15 PM, Boxiong Ding wrote: I have a service that imports large data. On server side, I followed the MTOM doc (http://cwiki.apache.org/CXF20DOC/mtom.html) to enable mtom and use DataHandler. And I can transfer file with no problem. Now I want to test my service on clie

Re: CXF, trouble to find Classes to unmarshal to

2008-06-18 Thread Daniel Kulp
This is much easier with 2.1, so stick with that... As you surmised, by default, the runtime only knows about the types that are references in the generated code from the wsdl. One solution is to add imports in the wsdl to import the other schemas and regenerate. The other option i

Re: No operation matching request path...

2008-06-18 Thread Sergey Beryozkin
Hi Hi, I have a service with a GET method that accepts 2 parameters. (/setPageLayout/{navItemUid}/{layoutUid}/). When I try to access the service specifying only one parameter, the operation is getting identified. However, when I call the service with no parameters specified, I get an error mes

Re: REST + JSON + Namespaces

2008-06-18 Thread Sergey Beryozkin
Ok, sure, that can be fixed. In meantime, the simplest workaround is to copy and paste the existing JSONProvider, update it to pass the correct properties to the constructor, or possibly have the factory bean injected through spring, and then register the custom provider through jaxrs:providers

Re: REST + JSON + Namespaces

2008-06-18 Thread Joe Sunday
On Jun 18, 2008, at 11:35 AM, Sergey Beryozkin wrote: Just would like to clarify : Do you expect that the bean with id 'jsonOutputFactory' is to be used as a org.codehaus.jettison.mapped.MappedXMLOutputFactory instance ? At the moment, no jaxrs:properties are checked. But that can be fi

Re: REST + JSON + Namespaces

2008-06-18 Thread Sergey Beryozkin
Hi Sorry if this is obvious, but I can't find an answer. Spring 2.5, CXF 2.1, Jettison 1.0.1. It's ok, not obvious to me at all :-) I've got a SOAP and a REST service both being configured in Spring.. REST works for XML, but I get an "Invalid JSON namespace" error if I try to use JSON. I've

RE: Cannot request WSDL with CXF-2.1 deployed to Tomcat

2008-06-18 Thread Wolf, Chris (IT)
> 2) Figure out how to get woodstox properly configured as the parser. > I really don't know how to do that other than to find suns jar and remove it. For JDK-1.6.0_04 the stream parser impl is in the JRE rt.jar, so you can't get rid of it, however, this impl can be overidden simply by includin

Re: Use Aegis out of CXF?

2008-06-18 Thread Benson Margulies
I checked. BeanTypeInfo.java requires at least a 'bean' get method. If you wanted to be like jaxb and look at 'naked' fields, someone would need to write more code in this area. On Wed, Jun 18, 2008 at 8:55 AM, Benson Margulies <[EMAIL PROTECTED]> wrote: > You only need .aegis.xml files if you wa

CXF, trouble to find Classes to unmarshal to

2008-06-18 Thread MathisMohr
My Problem is: I am to create a webservice. I'm currently using CXF 2.1, but that doesnt seem to be the point, I also tried 2.0.6 and 2.0.7. with no different outcome. I have the WSDL and some XSD files defining the main request and response messages. Thing is, the WSDL only defines 2 elements,

Re: Can a web service runing locally run in the same thread as the caller

2008-06-18 Thread Dan Dubinsky
Yes that worked. Thanks. For anybody else that comes across this same problem, here is a code snippet that solved the problem: ClientProxyFactoryBean factory = new ClientProxyFactoryBean(); factory.setServiceClass(serviceClass); factory.setAddress("local://" + serviceName); factory.setDataBindin

Re: Roles and permissions

2008-06-18 Thread Daniel Kulp
On Jun 18, 2008, at 9:38 AM, Sergey Beryozkin wrote: Hi, If so then I'd assuem it's something which needs to be fixed in a jaxws asm processor, as this method Response getApplicationConfiguration(@PathParam("id") String id, @Context SecurityContext sc); is unlikely to be part of what

Re: Roles and permissions

2008-06-18 Thread Sergey Beryozkin
Hi, If so then I'd assuem it's something which needs to be fixed in a jaxws asm processor, as this method Response getApplicationConfiguration(@PathParam("id") String id, @Context SecurityContext sc); is unlikely to be part of whatever interface the JAX-WS endpoint supports ? Dan, what d

Re: Use Aegis out of CXF?

2008-06-18 Thread Benson Margulies
You only need .aegis.xml files if you want to customize the behavior of the standard mapping objects. If you like what the standard mappings do by default, you don't need .aegis.xml. The only alternative customization mechanism is to write your own Java mapping classes. On Wed, Jun 18, 2008 at 8

Re: Use Aegis out of CXF?

2008-06-18 Thread Mickael Istria
Sorry for the spam, but I have another question: Is the .aegis.xml file necessary to process the (un)marshalling? Or is it only a way to customize the mapping when one wants to? More concretely, would I have to generate a .aegis.xml file for each class I want to (un)marshal? Regards, Mickael

download firefox today

2008-06-18 Thread Mohammad Shamsi
Download Day is here! Set a Guinness World Record Enjoy a Better Web http://www.spreadfirefox.com/en-US/worldrecord/ -- sincerely yours M. H. Shamsi

Re: Use Aegis out of CXF?

2008-06-18 Thread Benson Margulies
I don't know the answer, but I'll look into it and get back to you. On Wed, Jun 18, 2008 at 7:47 AM, Mickael Istria <[EMAIL PROTECTED]> wrote: > I took a look at this example, and I think Aegis is ok for my needs. > Thanks a lot! > > However, I have some questions (that are in fact the same quest

Re: Use Aegis out of CXF?

2008-06-18 Thread Mickael Istria
I took a look at this example, and I think Aegis is ok for my needs. Thanks a lot! However, I have some questions (that are in fact the same question from several points of view): - Are getters and setters necessary? Or does it use reflection to set the fields properties? Can we use it on objec

Re: Use Aegis out of CXF?

2008-06-18 Thread Benson Margulies
Please look at org.apache.cxf.aegis.standalone.StandaloneReadTest. It only reads. Then read the javadoc for org.apache.cxf.aegis.AegisWriter. Note that Aegis has no concept of a root element, so your code has to choose the QName for the element. Passing null to the Type parameter will cause Aegis

Re: Use Aegis out of CXF?

2008-06-18 Thread Sergey Beryozkin
I'd also appreciate though if you could please post a simple example. For ex, the task is to serialize a class x.y.Foo into the output stream, how one can do ? Same for the deserialization Thanks, Sergey The recent refactor of Aegis was intended to allow this sort of thing. Keep in mind, ho

Re: Roles and permissions

2008-06-18 Thread John-M Baker
Yes, I do. John Baker -- Web SSO IT Infrastructure Deutsche Bank London URL: http://websso.cto.gt.intranet.db.com "Sergey Beryozkin" <[EMAIL PROTECTED]> 18/06/2008 12:04 Please respond to users@cxf.apache.org To cc Subject Re: Roles and permissions

Re: Roles and permissions

2008-06-18 Thread Sergey Beryozkin
Hi I'm confused by this stacktrace Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions javax.ws.rs.core.SecurityContext is an interface, and JAXB can't handle interfaces. this problem is related to the following location:

Re: Roles and permissions

2008-06-18 Thread Sergey Beryozkin
Hi I'm confused by this stack trace > Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 > counts of IllegalAnnotationExceptions > javax.ws.rs.core.SecurityContext is an interface, and JAXB can't handle > interfaces. >this problem is related to the following locati

Re: Use Aegis out of CXF?

2008-06-18 Thread Benson Margulies
The recent refactor of Aegis was intended to allow this sort of thing. Keep in mind, however, that there's no code generator. For now, all I can recommend is that you read the source. Start with three classes: org.apache.cxf.aegis.AegisContext, and then the stream reader and writer in the same p

Re: Getting java.net.SocketTimeoutException for a working webservice

2008-06-18 Thread Milan Satala
It helped. Thank you very much for quick answer. dkulp wrote: > > > This looks like an older version of microsofts stuff. Thus, the > chunking might be causing an issue.I would try turning off the > chunking. > > Instructions for various ways to do that are at: > http://cwiki.apache

Re: Roles and permissions

2008-06-18 Thread John-M Baker
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions javax.ws.rs.core.SecurityContext is an interface, and JAXB can't handle interfaces. this problem is related to the following location: at javax.ws.rs.core.SecurityCo

Re: Roles and permissions

2008-06-18 Thread Sergey Beryozkin
I'm sorry, it's a lack of the docs... Please use the SecurityContext from a jaxrs package javax.ws.rs.core Hope it will work Cheers, Sergey - Original Message - From: "John-M Baker" <[EMAIL PROTECTED]> To: Cc: Sent: Wednesday, June 18, 2008 10:13 AM Subject: Re: Roles and permission

Use Aegis out of CXF?

2008-06-18 Thread Mickael Istria
Hello, I would like to use Aegis to generate XML from objects, and vice-versa. In fact, I would like to use CXF instead of JaxB to do marshalling and unmarshalling. I want the same kind of results as explained at http://cwiki.apache.org/CXF20DOC/aegis-databinding.html#AegisDatabinding-Class%3C

Re: Roles and permissions

2008-06-18 Thread John-M Baker
Sergey, Using @Context SecurityContext sc didn't work: Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions org.apache.cxf.security.SecurityContext is an interface, and JAXB can't handle interfaces. this problem is related to the followin

Re: REST, error handling, HTTP status codes

2008-06-18 Thread CFX Novice
Thanks, That worked. Sergey Beryozkin wrote: > > Hi > > You can do > > new > WebApplicationException(Response.status(...).entity(formatErrorMessageAsNeeded()).build()) > > > Once ExceptionMapper providers are supported, one'll be able to > > throw custom exceptions from the application c

Re: Roles and permissions

2008-06-18 Thread John-M Baker
Hi, Is there any more documentation on this? Or some examples? Or is it as simple as: public void myMethod(String param1, String param2, @Context SecurityContext sc) { .. } John Baker -- Web SSO IT Infrastructure Deutsche Bank London URL: http://websso.cto.gt.intranet.db.com "Ser

No operation matching request path...

2008-06-18 Thread Sandhya2008
Hi, I have a service with a GET method that accepts 2 parameters. (/setPageLayout/{navItemUid}/{layoutUid}/). When I try to access the service specifying only one parameter, the operation is getting identified. However, when I call the service with no parameters specified, I get an error message