Re: JAX-RS : initial WADL support

2009-08-24 Thread Gabo Manuel
Hi Sergey, Thanks too! 2.2.4 then? Also, to answer your question, this is the annotation used in the package-info class: @javax.xml.bind.annotation.XmlSchema(namespace = "http://domain.some/";, elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALI

Re: Problem generating schema when using MTOM with Websphere 7

2009-08-24 Thread Benson Margulies
What data binding are you using? What version of CXF? On Mon, Aug 24, 2009 at 6:17 PM, Glen Mazza wrote: > > The heart of your problem seems to be the "The namespace URI > "http://www.w3.org/2005/05/xmlmime"; has not been bound to a prefix." > message.  Googling that message without the URI appear

Re: Problem generating schema when using MTOM with Websphere 7

2009-08-24 Thread Glen Mazza
The heart of your problem seems to be the "The namespace URI "http://www.w3.org/2005/05/xmlmime"; has not been bound to a prefix." message. Googling that message without the URI appears to suggest there's an isRepairingNamespace() property that can be set to fix that problem, but I'm not certain:

Even the aegis maintainer can tie himself into a prezel

2009-08-24 Thread Benson Margulies
I tried to do something today that I thought I understood. I am sending this report to 'users' because I'm curious as to whether non-developer users have similar problems. I started with a Simple front end + Aegis service. Like what seems to be everyone else, I just started with a pojo class (and

Re: cxf-codegen-plugin package name problem

2009-08-24 Thread Daniel Kulp
The ObjectFactory and types and such are JAXB generated and would not be affected by the "jaxws:packageName" customization. You would need to google the jaxb binding customizations to control those. That said, our wsdl2java has a nice -p flag that you could just use to stick everything into

RE: getting "NO_RESOURCES_AVAILABLE" from "AbstractJAXRSFactoryBean.checkResources()"

2009-08-24 Thread KARR, DAVID (ATTCINW)
> -Original Message- > From: Sergey Beryozkin [mailto:sergey.beryoz...@iona.com] > Sent: Monday, August 24, 2009 1:13 PM > To: users@cxf.apache.org > Subject: Re: getting "NO_RESOURCES_AVAILABLE" from > "AbstractJAXRSFactoryBean.checkResources()" > > > Hi > > Everything seems to be ok. >

RE: getting "NO_RESOURCES_AVAILABLE" from "AbstractJAXRSFactoryBean.checkResources()"

2009-08-24 Thread KARR, DAVID (ATTCINW)
> -Original Message- > From: Sergey Beryozkin [mailto:sergey.beryoz...@iona.com] > Sent: Monday, August 24, 2009 1:17 PM > To: users@cxf.apache.org > Subject: Re: getting "NO_RESOURCES_AVAILABLE" from > "AbstractJAXRSFactoryBean.checkResources()" > > > By the way, you might want to add @X

Re: getting "NO_RESOURCES_AVAILABLE" from "AbstractJAXRSFactoryBean.checkResources()"

2009-08-24 Thread Sergey Beryozkin
By the way, you might want to add @XmlRootElement to the Item class declaration - I'm not sure the explicit collection (List) will be properly serialized otherwise, alternatively you may just want to set a 'marshalAsJaxbElement' on a jaxb provider - if you'd like to avoid setting @XmlRootElement

Re: getting "NO_RESOURCES_AVAILABLE" from "AbstractJAXRSFactoryBean.checkResources()"

2009-08-24 Thread Sergey Beryozkin
Hi Everything seems to be ok. It appears the problem is to do with a missing import : can you add it please to your beans.xml ? For some reasons Catalog class is not introspected. Perhaps due to the fact the above import is missing and thus no jaxrs-aware spring factory is invoked cheers, S

RE: getting "NO_RESOURCES_AVAILABLE" from "AbstractJAXRSFactoryBean.checkResources()"

2009-08-24 Thread KARR, DAVID (ATTCINW)
> -Original Message- > From: KARR, DAVID (ATTCINW) > Sent: Monday, August 24, 2009 11:02 AM > To: users@cxf.apache.org > Subject: getting "NO_RESOURCES_AVAILABLE" from > "AbstractJAXRSFactoryBean.checkResources()" > > I'm trying to set up a simple REST prototype running alongside some > ot

getting "NO_RESOURCES_AVAILABLE" from "AbstractJAXRSFactoryBean.checkResources()"

2009-08-24 Thread KARR, DAVID (ATTCINW)
I'm trying to set up a simple REST prototype running alongside some other existing code. When I deploy, I appear to fall into the following "if" block in "AbstractJAXRSFactoryBean.checkResources()": - if (list.size() == 0) { org.apache.cxf.common.i18n.Message m

Problem generating schema when using MTOM with Websphere 7

2009-08-24 Thread youngm
I'm using CXF in Websphere 7. I'm trying to use the IBM JDK's stax library. Everything seems to work fine but when I try to get a WSDL with a schema that is using MTOM I get the following stack trace. It appears to work fine when using the Sun JDK. Any thoughts? I'm not the best at Stax but d

Re: WS SecurityPolicy

2009-08-24 Thread Stephen Langella
Dan, In performing this I was using Java 5, then I had to context switch to something else that required Java 6. In context switching back to this issue, I tried running the same scenario as I described below with Java 6 and now I run into a different issue. When the client tries t

Re: CXF client fails to consume a WebSphere Process Server service

2009-08-24 Thread Juan David
Hello Well I'm using cxf on client side, the "Eclipse XML deserializer" is on the server side (WebSphere Process Server) and fails because a "ClassNotFoundException: Class 'pago' ". So I do connect cxf with this issue because cxf is serializing and the deserialization is failing. //this is ho

AW: AW: Problem with CXF wsdl2java

2009-08-24 Thread Sertic Mirko, Bedag
Hi We are using Maven too :-) Use the following in your pom: org.apache.cxf cxf-codegen-plugin ${cxf.version}

Re: CXF snapshot location has changed.

2009-08-24 Thread Glen Mazza
Also you'll probably need to add the same URL to your plugin repository list because the cxf-codegen-plugin (used for the wsdl2java, java2wsdl, etc., tools) is downloaded from that entry: ... other repos ... apache-plugin-snapshot-repository Apache Plugin Snapshot Repository

GZIPFeature: Zero threshold does not work

2009-08-24 Thread Rajeev Hathi
> > Hi, > > I am trying to send GZIP based compressed response from the service > endpoint back to the client. For that I used JaxWsServerFactory bean > component and added a GZIPFeature with a threshold value of 0 (it means > compress message anywayz). But unfortunate part is, its not compressing.

Re: cxf webservice and client. how to use them?

2009-08-24 Thread Glen Mazza
http://www.jroller.com/gmazza/entry/database_crud_actions_with_web and http://www.jroller.com/gmazza/entry/creating_a_soap_client_with might help you. Regards, Glen homer84 wrote: > > Hi, > I finally had spring working with hibernate and I managed to develop a > simple functionality which retu

Re: Using RESTful services with J2ME client

2009-08-24 Thread Sergey Beryozkin
Hi Serge, > That's exactly what I was looking for - _method parameter. great... > I've just realized that all HTTP clients use JAXB to marshall/unmarshall > objects JAXRS-aware clients like CXF JAXRS can register alternative providers, for example, Aegis or XMLBeans or some other databinding c

cxf webservice and client. how to use them?

2009-08-24 Thread homer84
Hi, I finally had spring working with hibernate and I managed to develop a simple functionality which returns a string with country names. I tested it with SOAPUI and It works fine. now that I have the environment, I need to advance with my project which is quite complex (at least for me). Basica

Re: Using RESTful services with J2ME client

2009-08-24 Thread Siarhei Barysiuk
Hi Sergey, Thanks for your feedback. That's exactly what I was looking for - _method parameter. I've just realized that all HTTP clients use JAXB to marshall/unmarshall objects, so I suppose it it's impossible to use them on client side (J2ME). Thanks, Serge Sergey Beryozkin wrote: > > Hi S

Re: Using RESTful services with J2ME client

2009-08-24 Thread Sergey Beryozkin
Hi Serge You might want to set the following HTTP header : X-HTTP-Method-Override : DELETE CXF will assume that DELETE HTTP method was actually used. _method queries can also be used. Some more info is here : http://cxf.apache.org/docs/jax-rs.html#JAX-RS-OverridingHTTPmethod cheers, Sergey

Re: JAX-RS : initial WADL support

2009-08-24 Thread Sergey Beryozkin
Hi Gabo I've just got it fixed. WADLgenerator will now introspect package-info.java in cases when @XmlRootElement has only a local name set and if the namespace is available then the resulting WADL will correctly link to a generated schema element thanks for raising this issue Sergey Serge

cxf-codegen-plugin package name problem

2009-08-24 Thread Sebbo
Hello, I'm new to cxf, and I have a problem with the cxf-codegen-plugin. I'have to use multiple web services with the same namespace, so I try to split them in different package. In order to do this I use the binding-file.xml configuration of the maven plugin. I have a binding-file.xml : http

Re: AW: Problem with CXF wsdl2java

2009-08-24 Thread manoj.java
Hi, I am using Maven to perform this task. Could you please let me know how to use binding file in maven while generating code from wsdl file. Thanks. Sertic Mirko, Bedag wrote: > > Hi > > Try to use the following in your binding file: > > false > > Regards > Mirko > > -Ursprüngliche N

Looking for a good JAX-WS Logging Handler

2009-08-24 Thread Michael Berkowitz
Can anyone provide sample code for a JAX-WS SOAPHandler that knows how to extract the operation and its arguments from the message? I'm trying to write a handler that logs all the requests with their arguments. I've seen lots of examples of handlers that log the entire SOAP message, and I've figu

Using RESTful services with J2ME client

2009-08-24 Thread Siarhei Barysiuk
Hi, I'm working on application which consists from 2 parts: backend services and mobile java client (J2ME). The main idea that server exposes some services and mobile client uses them, pretty standard. RESTful web services looks more lightweight and more flexible in this particular situation and

Re: Returning Something Less Than the Full Object Graph

2009-08-24 Thread Sergey Beryozkin
Hi Hi Dan Can you please post a complete sample object graph, as seen on the wire, and/or an object graph instance to be serialized by JAXB. I didn't mean a complete 100K grapgh :-), just a sample showing how a graph is structured and then also the expected grpagh after the would be max len

AW: Problem with CXF wsdl2java

2009-08-24 Thread Sertic Mirko, Bedag
Hi Try to use the following in your binding file: false Regards Mirko -Ursprüngliche Nachricht- Von: manoj.java [mailto:m.manojsi...@gmail.com] Gesendet: Montag, 24. August 2009 09:13 An: users@cxf.apache.org Betreff: Problem with CXF wsdl2java I am using CXF to expose my web service

Problem with CXF wsdl2java

2009-08-24 Thread manoj.java
I am using CXF to expose my web service and also using wsdl2java to generate the code from wsdl. For optional element of type String CXF generate JAXBElement. Is there any way to create element of String Type in place of JAXBElement. Please suggest. -- View this message in context: http://www