Can I remove Bouncy Castle from CXF 2.1.4

2009-12-01 Thread Bruce Li
Hi all, We want to use CXF 2.1.4 in our product but we are told not to use Bouncy Castle. I'm new to CXF so my question is, is Bouncy Castle only used for https and WS-Security? Could I remove it if we do not have such requirements, or replace it with other components? Thanks, -- Bruce Li

Re: CXF asynchronous Example

2009-12-01 Thread Christian Schneider
Hi, what exactly do you want to do? There are two kinds of asynchronous services. First there are one way services. In this case you only send information to the server and do not expect it to return anything. In this case you can configure cxf to return directly after the send without waitin

Re: Problem getting SOAP client to read jaxws:properties

2009-12-01 Thread Glen Mazza
OK, judging from here: http://tinyurl.com/yatskw4 and http://tinyurl.com/y9e7rjf the "name" attribute of jaxws:client must point to the name of the wsdl:port within the wsdl:service section, *not* the name of the wsdl:service. I'll update the docs to clarify that. That doesn't completely solve

RE: How to use CXF and JSON

2009-12-01 Thread KARR, DAVID (ATTCINW)
> -Original Message- > From: cgswtsu78 [mailto:cg...@proofpoint.com] > Sent: Tuesday, December 01, 2009 3:59 PM > To: users@cxf.apache.org > Subject: RE: How to use CXF and JSON > > > When I do the below I get the below exception. EnvFromHourlyWrapper is > my > wrapper object that holds

RE: How to use CXF and JSON

2009-12-01 Thread cgswtsu78
When I do the below I get the below exception. EnvFromHourlyWrapper is my wrapper object that holds a List of the objects that I want to return. @XmlRootElement(name="EnvFromHourlyWrapper") public class EnvFromHourlyWrapper implements Serializable { private static final long serialVer

RE: How to use CXF and JSON

2009-12-01 Thread cgswtsu78
So the below will return the json representation of the Object o? No other setup is needed? Thanks for the quick responses! @GET @Path("/topspamsenderjson") @Produces("application/json") public Object getTopSpamSenderData() throws Exception {

RE: How to use CXF and JSON

2009-12-01 Thread KARR, DAVID (ATTCINW)
> -Original Message- > From: cgswtsu78 [mailto:cg...@proofpoint.com] > Sent: Tuesday, December 01, 2009 3:07 PM > To: users@cxf.apache.org > Subject: RE: How to use CXF and JSON > > > Ok, I've made that switch, but I'm still confused as how I need to > setup the > javax.ws.rs.core.Respons

RE: How to use CXF and JSON

2009-12-01 Thread cgswtsu78
Ok, I've made that switch, but I'm still confused as how I need to setup the javax.ws.rs.core.Response. How would I take an Object and convert it into a json string? Below is the xml sample I created, any suggestions on converting this to a json implementation would be greatly appreciated.

RE: How to use CXF and JSON

2009-12-01 Thread KARR, DAVID (ATTCINW)
> -Original Message- > From: cgswtsu78 [mailto:cg...@proofpoint.com] > Sent: Tuesday, December 01, 2009 2:44 PM > To: users@cxf.apache.org > Subject: How to use CXF and JSON > > > Hello, > > I'm very new to building RESTful webservices using apache cxf and I > currently have a small samp

How to use CXF and JSON

2009-12-01 Thread cgswtsu78
Hello, I'm very new to building RESTful webservices using apache cxf and I currently have a small sample that returns a javax.ws.rs.core.Response in xml format using the @ProduceMime("application/xml"). My question is how do I return a javax.ws.rs.core.Response in JSON format? I've tried using

Re: Payload: .No message body writer found for response class : ArrayList.

2009-12-01 Thread Parimal Dhinoja
found the error in my code. @produces should be "application/xml". Thanks, Parimal On Tue, Dec 1, 2009 at 2:09 PM, Parimal Dhinoja wrote: > Hi, > > I am getting error that my custom MessageBodyWriter is not found. > following is my code. Please let me know what went wrong. > > My customMessage

Re: changing endpoint location in cxf client

2009-12-01 Thread Bill Smith
That's exactly what I needed. Thanks On Tue, Dec 1, 2009 at 2:18 PM, Glen Mazza wrote: > > ENDPOINT_ADDRESS_PROPERTY, Step #6 here: > http://www.jroller.com/gmazza/entry/creating_soap_clients_for_the1 > > Glen > > > Bill Smith-20 wrote: > > > > So, I have developed a simple cxf client and am cal

Re: changing endpoint location in cxf client

2009-12-01 Thread Glen Mazza
ENDPOINT_ADDRESS_PROPERTY, Step #6 here: http://www.jroller.com/gmazza/entry/creating_soap_clients_for_the1 Glen Bill Smith-20 wrote: > > So, I have developed a simple cxf client and am calling it as follows. > > > CaseServiceImplService ss = *new* CaseServiceImplService(wsdlURL, * > SERVICE

Re: how to close inputStream before returning response

2009-12-01 Thread Parimal Dhinoja
Thanks guys, Sergey, can you provide any link or document for the last option(prototype one) you suggested? Also if I want to send multiple XML files in response, what will be the good solution? at present, I am getting HttpServletResponse object stream in my service implementation and feed all f

Payload: .No message body writer found for response class : ArrayList.

2009-12-01 Thread Parimal Dhinoja
Hi, I am getting error that my custom MessageBodyWriter is not found. following is my code. Please let me know what went wrong. My customMessageBodyWriter class @Provider @Produces("text/xml") public class CustomResBodyWriter implements MessageBodyWriter> { public static final int ARRAY_SIZ

Re: Working with HTTP sessions in Apache CXF

2009-12-01 Thread Eugene Dzhurinsky
On Tue, Dec 01, 2009 at 05:50:20PM -, Sergey Beryozkin wrote: > Hi > > You'll probably need to set up an appropriate Jetty handler using > httpj:handler, ex : > > > > > > > > >

changing endpoint location in cxf client

2009-12-01 Thread Bill Smith
So, I have developed a simple cxf client and am calling it as follows. CaseServiceImplService ss = *new* CaseServiceImplService(wsdlURL, * SERVICE_NAME*); CaseService port = ss.getCaseServiceImplPort(); port.closeCase("124"); If I want to change the url of the webservice what is the best way

Re: Working with HTTP sessions in Apache CXF

2009-12-01 Thread Sergey Beryozkin
Hi You'll probably need to set up an appropriate Jetty handler using httpj:handler, ex : Actually, you can probably just set a sessionSupport attribute to true : htt

Working with HTTP sessions in Apache CXF

2009-12-01 Thread Eugene Dzhurinsky
Hi there! Can somebody please help me with the following issue: I defined the method of interface as @GET @Path("/image") @Produces("image/jpeg") @Consumes(MediaType.WILDCARD) public BufferedImage loadBodyPart(@Context MessageContext context, @QueryParam("position

Using CXF with NTLM authentication as well as SSL/HTTPS

2009-12-01 Thread Pink, Simon (AGCS)
I cannot seem to get jcifs NTLM working with SSL/HTTPS. I get the following exception: java.lang.NoSuchMethodException: jcifs.http.NtlmHttpURLConnection.getSSLSocketFactory() In a nutshell, CXF is trying to decorate

java2ws and xmlbeans databinding

2009-12-01 Thread rmiyares
The online documentation mentions that java2ws supports jaxb and aegis databindings. Does it also support xmlbeans? Here is the basics of what I am doing (apache-cxf-2.2.3): 1) vendor xsd's -> xmlbeans using xmlbeans-2.4.0, mapping empty or poorly defined namespaces to package names 2) annotated

RE: SSL with mutual authentication for system and propagating username in same call

2009-12-01 Thread forda
Hi ! Nate, thanks for your feeback. I have the same opinion regarding two-ssl, and presented a full solution a while ago. But seems the customer wanted a temporary solution based on two-way ssl instead. My task is to document how to do so they can compare the different solutions. The full soluti

Re: DOSGi - how do i change http port?

2009-12-01 Thread Eoghan Glynn
In most of the demos, the "org.apache.cxf.ws.address" property is set in some way (either programmatically, or in the DS or Spring-DM config). This URL will include the listen port you wanted to change. So for example you could change http://localhost:9000/... to http://localhost:9001/... Cheers,

Re: DOSGi - how do i change http port?

2009-12-01 Thread David Bosschaert
Hi Kits, If you're using the built-in Jetty from CXF (which is the default) you simply put the port you want in the org.apache.cxf.ws.address property, e.g. for port 9876 you do props.put("org.apache.cxf.ws.address", "http://localhost:9876/greeter";) If you're using the OSGi Http Service instea

DOSGi - how do i change http port?

2009-12-01 Thread Edwin Quita
hello codesmiths, i'm using the multiple bundle distribution of DOSGi, just want to know how do i change the http port for the endpoint in the samples included in the distribution. thanks, kits

Re: DOSGi - Dynamic Web Services (no service interface at compile time)

2009-12-01 Thread David Bosschaert
Hi Bernd, On your questions: (a) instead of going the route of generating the java source code and compiling that (which should work) you could take a look at libraries like CGLib (http://cglib.sourceforge.net) or ASM (http://forge.ow2.org/projects/asm) they should allow you to do this without ha

RE: SSL with mutual authentication for system and propagating username in same call

2009-12-01 Thread Nate Woody
Hello, I, too, am interested in intelligent ways to implement this solution and so am interested in any feedback on this. We recently implemented something similar and I've got an axe to grind. 2-way SSL is a bit of an annoyance as it's really out-of-band with the web service. CXF has essentiall

Re: MTOM OutOfMemory

2009-12-01 Thread surajchhetry
I am running into same problem . I have configure MTO to accept large file as but iam getting out of memory exception. Please help me how can i solve this issue? -- View this message in context: http://old

Re: WSD2JS Not Creating Schema Objects

2009-12-01 Thread Benson Margulies
I just submitted a fix to CXF-2568 which is your problem with the enum default values. On Wed, Nov 18, 2009 at 6:53 PM, noosy wrote: > > The latest snapshot has fixed the problem with the header  - thanks very much > :) > > One question regarding the generated code for the following element > (de

Re: client send null data to web service

2009-12-01 Thread Benson Margulies
Don't use 2.0-incubator. How about, say, 2.2.5. On Mon, Nov 30, 2009 at 10:11 PM, Saiful Haqqi wrote: > > hi all, > > I'm using spring 2.5, CXF 2.0-incubator, java-1.6.0_17. > > this is my Pojo > public class Debitur { >    private int id; >    private String name; >    private String message; >

jax-ws-catalog and resolving schemas in jars that do xsd:include

2009-12-01 Thread Håkan Dahl
I can't get schema resolution from a jar-file (using jax-ws-catalog as per 4.4 Catalog Facility in the JAX-WS 2.1 spec) to work when: * The referenced schema in a jar makes xsd:include on another schema in the jar (all schemas in a jar share the same namespace). Stacktrace below. Shouldn't this b

CXF asynchronous Example

2009-12-01 Thread Nguyen Tien Luong
    Hi everybody, I'm new in the community of CXF. I acctually work on a project of Asynchronous WebServices. So if someone who have an example of code which illustre the asynchronous of CXF, please let me know. It will be perfect if example uses JMS as transporting layer. I appriciate it. Luo

Re: CXF REST Map as argument can it handle it?

2009-12-01 Thread Sergey Beryozkin
Hi, Sergey, I just wonder if you had a chance to implement this in 2.2.5? No, you said there was no rush :-). I actually did look at it briefly just before the release but could not figure out, fast enough, how to do it cleanly...Still planning to do it for 2.2.6/2.3 cheers, Sergey Than

Re: Any best practise to make CXF better support large amount data transmit

2009-12-01 Thread Jessie914
hi, Glen Many thanks for the reply, I am now able to invoke async calls. Regarding to the MTOM, if MTOM is used, the server side must enable the MTOM as well, correct? if there is nothing I can change on the server side, the only transport way is to use the default way? thanks again. Gle

Re: DOSGi - Dynamic Web Services (no service interface at compile time)

2009-12-01 Thread Bernd Wiswedel-2
Hi David, Option (1) sounds good to me. Two follow-up questions so far: (a) I need to create the services at runtime (it's not just that I'm missing the dependency on the bundle that defines the interface -- it's really created at runtime depending on some protocol that the user defines in the GU