Re: cxf client returns null

2009-03-25 Thread brijesh
Dan , thanks a lot for the input response. But when I generated the client with using Wsdl2Java i am getting the client as follows(below code snippet). Is there anything wrong in my wsdl (see my prev posting). It would be great help if you giude me , public final class

Multiple collections in JSON Dto mixed up

2009-03-25 Thread felixsch
Hi, I'm using cxf 2.2 to provide a REST Service which produces XML and JSON. I have a Dto which contains two String fields and two fields of type VectorString. What happens is, that all fields, that are declared after the first vector, are returned as elements of this vector. Example:

[CXF2.2][wsdl2java][RPC/Lit] Unable to create stubs

2009-03-25 Thread Gabo Manuel
Hi All, I have a service deployed using CXF and was planning to test it using a CXF client as well. Attached is a zip file containing the service and the wsdl generated. However, when I issue the following: D:\java\cxf\apache-cxf-2.2\binwsdl2java -ant -client -autoNameResolution -exsh true

Jow to publish web service using port 443 (SSL) / java.net.SocketException: Permission denied issue

2009-03-25 Thread XyLus
Hello All, I am working on web service that should support SSL (the requirement is to publish webservice using port 443). I have following server-config.xml beans xmlns=http://www.springframework.org/schema/beans;... http:conduit

Re: [CXF2.2] Runtime exception with no message

2009-03-25 Thread Sergey Beryozkin
Hi Gabo Just to add, the exception does not have a cause. fault.getCause() returns null. :( I think it's because in this case (no appropriate constructor or factory nethod is available) the RuntimeException you get is the original WebApplicationException and thus there's no cause is

Re: [CXF2.2] Runtime exception with no message

2009-03-25 Thread Sergey Beryozkin
Hi Gabo By the way, a WebApplicationException instance which is thrown in this case contains Response object with the message. Perhaps you might want to provide both RuntimeException and WebApplicationException mappers or explicitly check in the RuntimeException mapper if it's

Re: Jow to publish web service using port 443 (SSL) / java.net.SocketException: Permission denied issue

2009-03-25 Thread Eoghan Glynn
Are you running on Linux perchance? AFAIK most *nix variants disallow non-root users from listening on ports less than 1024. To avoid running your server with root privileges, you can use xinetd to re-direct any traffic from the standard SSL port 443 to some other port 1024. Cheers, Eoghan

Re: [CXF2.2] Runtime exception with no message

2009-03-25 Thread Sergey Beryozkin
Hi Gabo NPE is always a bug - so I need to investigate. Can you please post the spring configuration which you use (in sample form but with the same relationships between beans, etc...) ? And a sample MyService bean ? By the way is there any chance that spring 2.0.6 is still hanging around

Re: [CXF2.2] Runtime exception with no message

2009-03-25 Thread Sergey Beryozkin
Hi Gabo It apperas that the root cause of it is that a subresource method is invoked and it returns null. Now, JAXRSInvoker does check for 'null' but I can see now that the check is faulty, as the null is wrapped in a CXF specific wrapper initiallyI'll update the code nowCan you

portnumbers in target namespaces

2009-03-25 Thread Trevor Paterson
I am having problems generating client code from a WSDL, which I suspect may be because the WSDL imports a schema which has a targetNamespace which includes a port number. the WSDL types: types xsd:schema xsd:import namespace=http://www.biomart.org:80/MartServiceSoap;

RE: Passing array as a parameter in JAX-RS

2009-03-25 Thread subh
Hi Sergey, Thanks for your reply. I tried the ParameterHandler way by creating a ArrayParamHandler class for my Integer[]. public Integer[] fromString(String ids) { String[] idsArr = ids.split(,); return getIntArr(idsArr); } private Integer[] getIntArr(String[] arrStr) {

Re: Passing array as a parameter in JAX-RS

2009-03-25 Thread Sergey Beryozkin
Hi What CXF version are you using ? Support for ParameterHandlers should be available in 2.1.4. How are you registering it ? thanks, Sergey - Original Message - From: subh sube...@aol.com To: users@cxf.apache.org Sent: Wednesday, March 25, 2009 3:38 PM Subject: RE: Passing array as

RE: Passing array as a parameter in JAX-RS

2009-03-25 Thread subh
Hi, I got it working. I forgot to change the @PathParam to String. Thanks for your help. Rgds Subh subh wrote: Hi Sergey, Thanks for your reply. I tried the ParameterHandler way by creating a ArrayParamHandler class for my Integer[]. public Integer[] fromString(String ids) {

Re: Are properties not resolved in http:conduit

2009-03-25 Thread jmdev
OK Dan, I finally got back to this problem I was having and thought I would post what I've found in case you have a simple solution. Spring property resolution works fine for http:client http:proxyAuthorization and http:tlsClientParameters as you said...however... What I found is that having a

Re: Need help to start using CXF2.1.4+JMS(ActiveMQ)+WebServices and RESTfulWebservices

2009-03-25 Thread Sergey Beryozkin
Hi, I'm sorry for a very late reply - hope you've found all the info you need in the CXF docs. Another possible source is the system tests and demos in the source tree. here is what I'm working with : CXF2.1.4(JAX-RS; JAX-WS); ActiveMQ(as JMSImplementation); It's an interesting

Re: getting hold of the session in a jaxrs service

2009-03-25 Thread Mani S
Hi, I'm trying to get session in the web service implementation class. But I'm webservicecontext is coming as null.. The class and the configuration is as below. How can i get the session or session cookie? It will be great if anyone can provide some help or some example. ***class*

Re: Aegis as a client

2009-03-25 Thread Sergey Beryozkin
Hi Benson Aegis does not implement a specification. There is no compliance test. Every time we change anything in Aegis, we are likely to change the mappings. As a result, the safe policy is to use Aegis as a client only when the two ends of the connection have exactly the same version of CXF.

CXF and JAMON integration?

2009-03-25 Thread Jeffrey.Constantin
Has anyone integrated CXF and JAMon (http://jamonapi.sourceforge.net/) successfully? I would like to track web service hits using JAMon but I don't know where to *centralize* the code. We are converting an existing XML over HTTP app to SOAP using CXF. In the current app we have a central point

Re: Soap Schema Validation CXF?

2009-03-25 Thread dave sinclair
Can it be done programatically on the server side? The problem is the client doesn't want Spring, they are an ATG shop. So I need to enable validation without using the spring config. thanks dkulp wrote: On May 27, 2008, at 5:48 PM, Bharath Thippireddy wrote: Can this be done

Re: Soap Schema Validation CXF?

2009-03-25 Thread Andrew Clegg
This is a VFAQ: http://cxf.apache.org/faq.html 2009/3/25 dave sinclair dsincl...@chariotsolutions.com: Can it be done programatically on the server side? The problem is the client doesn't want Spring, they are an ATG shop. So I need to enable validation without using the spring config.

Re: CXF and JAMON integration?

2009-03-25 Thread Daniel Kulp
On Wed March 25 2009 2:28:32 pm jeffrey.constan...@cox.com wrote: Has anyone integrated CXF and JAMon (http://jamonapi.sourceforge.net/) successfully? I would like to track web service hits using JAMon but I don't know where to *centralize* the code. We are converting an existing XML over HTTP

Re: Soap Schema Validation CXF?

2009-03-25 Thread dave sinclair
That is using a Spring configuration of an endpoint. I need to do it without using Spring. Andrew Clegg-2 wrote: This is a VFAQ: http://cxf.apache.org/faq.html 2009/3/25 dave sinclair dsincl...@chariotsolutions.com: Can it be done programatically on the server side? The problem is the

Re: portnumbers in target namespaces

2009-03-25 Thread Daniel Kulp
What version of CXF are you using? I just tried with 2.2 and modified the wsdl_first sample to put :80 on the schema targetNamespace and it properly resulted in the soap message: soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; soap:Body sayHi

Re: [CXF2.2][wsdl2java][RPC/Lit] Unable to create stubs

2009-03-25 Thread Daniel Kulp
Hmmm... in RPC/Lit, those checks shouldn't be applying. The zip got stripped off by Apache's mailer. Could you file a JIRA and attach? Thanks! Dan On Wed March 25 2009 5:55:20 am Gabo Manuel wrote: Hi All, I have a service deployed using CXF and was planning to test it using a CXF

Re: Are properties not resolved in http:conduit

2009-03-25 Thread jmdev
Alright, I dug into this one a bit more and learned that this is one of the features they are trying to fix in Spring 3.*. For now, I will post my solution so that others may benefit... CXF has a solution for turning off schema validation if you are using their application context. Since I

Re: Soap Schema Validation CXF?

2009-03-25 Thread Daniel Kulp
On Wed March 25 2009 2:35:48 pm dave sinclair wrote: Can it be done programatically on the server side? The problem is the client doesn't want Spring, they are an ATG shop. So I need to enable validation without using the spring config. Without spring, how are you creating your endpoints? I

Simplest way in CXF to customize XML serialization for JAXWS WSDL-first services?

2009-03-25 Thread Joe-D Morrison
I'm porting an application from XFire to CXF. The XFire implementation was a code-first design with a customized serializer for one of the types. That code obtained a reference to the type registry using this Spring reference: xfire.typeMappingRegistry and then registered a custom type with

OSGI Transport

2009-03-25 Thread Josh Holtzman
I'm trying to deploy CXF-based webservices on Apache Felix. I've got almost everything working, thanks to the generous help of Guillaume Nodet (thanks again!). The one piece I haven't figured out is how to configure a JAX-WS endpoint to use the existing osgi http service (I'm using Pax).

Re: cxf client returns null

2009-03-25 Thread brijesh
hello , can you anybody give a hint on this? regards Brijesh N K brijesh wrote: hello , I have generated cxf client using wsdl2java, wsdl as follows. ?xml version='1.0' encoding='UTF-8'?wsdl:definitions name=NotifyEvent targetNamespace=http://www.ekaplus.com/NotifyEvent/;