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

2008-06-25 Thread Bilel
Hey I built a little example but I can't upload it :-(. So I performed a little test, I made a jar of a client -consumer-, put all the dependencies in the classpath, and when I run the jar it work, this test make me believe that all the issues is in the deploying phase. I put these entire depen

Re: namespace and "Message part was not recognized"

2008-06-25 Thread _Eric_
Solved, that was the problem. thanks for the hint :-) dkulp wrote: > > > Ah, yes. Not a valid wsdl. > > For doc/lit bindings, the parts in the messages should refer to > element declarations, not types. Using types in the parts is only > valid for rpc/lit bindings. > > Dan > > >

Re: restful parameters setting

2008-06-25 Thread rm-ramos
Same problem here. Things like @HttpResource(location = "/{id}/details") don't seem to work either. Any thoughs on this? Thanks, Rui Ramos -- View this message in context: http://www.nabble.com/restful-parameters-setting-tp11931194p18113430.html Sent from the cxf-user mailing list archive at

Re: Maven Java2WSDL/Java2WS Plugin

2008-06-25 Thread Will Gomes
I never got a response to my question. java2ws maven plugin outputs generated generated wrappers to {base.dir}. Will this be fixed to output to {project.build.directory} or config options be added to specify this location? Will Gomes wrote: > > I was unable to find config options to specify the

Re: Maven Java2WSDL/Java2WS Plugin

2008-06-25 Thread Will Gomes
Answered my own question. Apparently there is a .. config option not mentioned in the docs, to which I can pass in command line options for the java2ws plugin. Will Gomes wrote: > > I never got a response to my question. java2ws maven plugin outputs > generated generated wrappers to {base.dir}.

Re: restful parameters setting

2008-06-25 Thread Sergey Beryozkin
Are you seeing a NPE ? If yes then 2.1.1 shoukd have it fixed... Cheers, Sergey Same problem here. Things like @HttpResource(location = "/{id}/details") don't seem to work either. Any thoughs on this? Thanks, Rui Ramos -- View this message in context: http://www.nabble.com/restful-paramet

Re: JSON-RPC instead of JSON RESTful service

2008-06-25 Thread Sergey Beryozkin
Hi Hello, I've seen the examples configuring a application/json RESTful web service. However, I'm interested in building a JSON-RPC service which will output JSON-RPC packets, example: http://json-rpc.org/wd/JSON-RPC-1-1-WD-20060807.html#ProcedureCall http://json-rpc.org/wd/JSON-RPC-1-1-WD-200

binding.setMTOMEnabled does not work on the CXF 2.1 client

2008-06-25 Thread Bharath Thippireddy
We see the mtom attachment being sent back from the server but the Source object on the client returns a null InputStream.We are using cxf 2.1 and as per the following discussion we see that binding.setMTOMEnabled(true ); doesnt seem to work in 2.1. http://www.nabble.com/MTOM-with-large-file-o

Re: restful parameters setting

2008-06-25 Thread rm-ramos
Hey Sergey, In my case no NPE, just an empty String ("") set in the URL's parameter. I'm using 2.0.6. Think it might me fixed in later versions? Thanks, Rui Ramos Sergey Beryozkin wrote: > > Are you seeing a NPE ? If yes then 2.1.1 shoukd have it fixed... > > Cheers, Sergey > >> >> Same p

RE: how do I enable logging of the SOAP request and response in CXF in straight Java?

2008-06-25 Thread Sergey Pulyaev
I made this by implementing SOAP interceptor, store the message in message and then get it if needed: Add the following: IN ApplicationContext.xml Create class logging/SAAJInterceptor.java package logging; import javax.xml.soap.SOAPMessage; import

RE: Dinamic Clients - How to

2008-06-25 Thread Sergey Pulyaev
I have running server - it has some JaxBContext. I need to get concrete this context - not any other... To use for marshalling classes currently known to it using the reflection... -Original Message- From: Benson Margulies [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2008 3:21 PM To:

Method with dynamic paramerters

2008-06-25 Thread Sergey Pulyaev
Hi! Is it possible to declare method with undefined list of parameters and get them in runtime? I need it to create web service with method that can receive list of parameters from MS SQL reporting service that cannot send hashMap as parameter but need different parameters for some situa

How to define the value of minOccurs or maxOccurs using CXF SOAP server engine

2008-06-25 Thread Landslide
Here is what I got from Axis2 forum. I just wonder if CXF has already have a better solution for this issue. Thanks for any help. == At the moment what you can do is , generate a wsdl using Java2wsdl , then modified that to have minOccurs="1" and then put that i

Re: REST + JSON + Namespaces

2008-06-25 Thread Joe Sunday
Thanks for the hints. I added a setNamespaceMap(Map) setter to JSONProvider and set that with the map I had in spring, then set that provider bean via jaxrs:entityProviders. I actually prefer that, it's cleaner than creating the input and output factories like I was attempting. Is there a

CXF REST - Constrain the xml elements in output

2008-06-25 Thread David Castro
I would like to allow the user to somehow specify which elements they care about for an object, so that the output can be optimized as well as the queries backing the service. For instance, if a call is made to retrieve a Contact and the user specifies "firstName,lastName", I only want the output

CXF REST - output in both XML & JSON

2008-06-25 Thread David Castro
Is there a way to use the same service class and methods to generate both XML and JSON output depending on say the client "Accept" format? Or if not possible, what about mapping the same service methods to different URLs with different output types. Cheers, David

how to configure Beans.xml to support Json?

2008-06-25 Thread Robin Liu
Hi, I want below configuration to support Json, how to modify? I try with adding red, but it still return the xml format, can you help me? In addtion, I tested with the sample[* apache-cxf-2.1\samples\restful_http_binding*] Thanks Robin http://www.springframework.org/schema/beans"; xmlns:xsi

WS-RM enabling in CXF

2008-06-25 Thread Barlotta, Michael [USA]
CXF Users: I am trying to learn WS-RM and have looked at CXF 2.0.7 and the samples. I have tried to take the existing sample (ws-rm) and port the Server-side service into Jboss, calling it from a stand-alone WS Client. Right now both client and server are CXF. The client can call the service

Re: Dinamic Clients - How to

2008-06-25 Thread Benson Margulies
If the JAXBDataBinding does not have an accessor to return the context, please file a JIRA to ask for one. On Wed, Jun 25, 2008 at 4:07 PM, Sergey Pulyaev < [EMAIL PROTECTED]> wrote: > I have running server - it has some JaxBContext. I need to get concrete > this context - not any other... > To u

Re: How to define the value of minOccurs or maxOccurs using CXF SOAP server engine

2008-06-25 Thread Benson Margulies
I don't understand the issue. Is this a code-first or a wsdl-first situation? On Wed, Jun 25, 2008 at 4:19 PM, Landslide <[EMAIL PROTECTED]> wrote: > > Here is what I got from Axis2 forum. I just wonder if CXF has already have > a > better solution for this issue. > > Thanks for any help. > > ===

Re: How to define the value of minOccurs or maxOccurs using CXF SOAP server engine

2008-06-25 Thread Daniel Kulp
This is a spec compliance issue. The DEFAULTS for this are minOccurs=0. The nillable probably shouldn't be there. In anycase, it IS controllable to some extent, but it's not exactly easy. Basically, you would have to create a bean to represent the request, annotate it poperly, and t

Could not resolve a binding for http://apache.org/cxf/binding/http

2008-06-25 Thread Tim Harsch
Hi all, I am trying to implement the JAX-RS example given at: http://cwiki.apache.org/CXF20DOC/jax-rs-jsr-311.html into a Tomcat servlet via the additional Spring configuration options outlined towards the bottom of the page. I am getting the error "Could not resolve a binding for http

CXF | WS-Policy| Custom Header

2008-06-25 Thread Manolescu, Radu (IT)
We need to send SOAP messages which include a custom security header designed by our counterparty. The header is declared inside a Policy element (WS-Policy). (See "CPTYWSHeader", below.) We did WSDL-first, so our WSDL is static. We understand that we can get CXF to add these custom headers by conf

Using existing Java objects as against the WSDL generated java objects!

2008-06-25 Thread Kuga
Hi, We have several existing Java POJO classes in client side. Now we are planning to use the WSDL, as such we have defined the WSDL definition, based on server side schema, and then generated Java objects. I would not be able to just use these generated classes in the client side instead of my PO

Re: how to configure Beans.xml to support Json?

2008-06-25 Thread Willem Jiang
Hi , I just found your mistake, you set the XMLInputFactory twice in the Willem Robin Liu wrote: Hi, I want below configuration to support Json, how to modify? I try with adding red, but it still return the xml format, can you help me? In addtion, I tested with the sample[* apache-cxf-2.