Serializing collections containing only one object

2008-06-30 Thread Sandhya2008
Hi, I have a problem. When I serialize collections containing more than one object to JSON objects, the JSON object contains an array. However, when the collection contains only one object, then the resulting JSON object is not an array. How can this problem be overcome such that the resulting JS

Re: CXF and Marhsaller/Unmarshaller Listeners

2008-06-30 Thread Glen Mazza
Taking a shot in the dark here, would the #REF_BEAN_NAME[1] in your cxf-servlet.xml config file help you at all? Glen [1] http://www.nabble.com/Using-spring% 27s-Ioc-in-the-service-endpoint-setup-tc18175080.html 2008-06-30 Bart Skondin wrote: > Hi All, > > In attempting to set listeners on CXF

Re: Aegis Bindings

2008-06-30 Thread Benson Margulies
Is the .aegis.xml file sitting on the classpath next to the .class that it modifies? On Mon, Jun 30, 2008 at 3:29 PM, Stopp, Bryan <[EMAIL PROTECTED]> wrote: > Hello! > > > > I'm sure this is going to be a fault on my part. But I can't seem to get > Aegis bindings to work with the "simple:serv

mapping from complex response objects to custom value objects - is it worth it? what is the clearest/easiest/most maintainable way to do it?

2008-06-30 Thread Gary Weaver
Hello, Though this isn't really a CXF question, I thought it might be good to ask here to see people's thoughts... In short, my question is "What is the easiest and most maintainable way (and able to handle a small but not unsignificant load) of mapping cxf-codegen-plugin v2.1 + JAXB generat

RE: About annotation inheritance, and HTTP properties

2008-06-30 Thread Sergey Beryozkin
Ok, I see what you mean know. To be honest, I haven't even thought about the client side yet. I'm wondering if the Jersey Client API will eventually get standardized ? In meantime, providing a simpler JAXRSClientFactoryBean for CXF would definitely be worth it, thanks for raising this issue. The on

org.apache.cxf.binding.soap.SoapFault: "http://schemas.xmlsoap.org/wsdl/", the namespace on the "definitions" element, is not a valid SOAP version.

2008-06-30 Thread nmt999
Hi I'm new to using apache cxf. I'm trying to develop a client to yahoo searchmarketing services using cxf. I'm trying to make a simple call to getAccountStatus (http://searchmarketing.yahoo.com/developer/docs/V4/wsdl/V4/AccountService.wsdl). I get the following error message in ReadHeadersInterc

Binding/Validating a SAMLv2 Token with STS

2008-06-30 Thread Tim Williams
So my STS returns a SAML token that I can get as an w3c element. I'm wondering how I can bind that token to an outgoing message and then validate a SAMLv2 token on an incoming service call. There are samples of, I think, something similiar using a UserNameToken with WSS4J(In|Out)Interceptor but I

Aegis Bindings

2008-06-30 Thread Stopp, Bryan
Hello! I'm sure this is going to be a fault on my part. But I can't seem to get Aegis bindings to work with the "simple:server" binding definitions. I have attached an example aegis.xml, web.xml, spring.xml and source code. The minOccurs specification on the aegis mapping is not being hon

Re: SOAP Header

2008-06-30 Thread Daniel Kulp
On Jun 30, 2008, at 5:04 AM, Selena85 wrote: Hello I'm newbie in CXF and Spring. My task is to prepear user authenthication and to log user activities. Now I've got user authenthication using WSS4JInInterceptor and callback - and it's work fine. My problem is, how to pass authentication data

Re: cxf behind load balancer, services point to localhost:8080 instead of server:80

2008-06-30 Thread Daniel Kulp
With the latest versions, the jaxws:endpoint element has a publishedEndpointUrl attribute that can be used to specify the actual public URL that it's exposed on. That should solve the problem. Dan On Jun 24, 2008, at 4:10 AM, jimpo wrote: We're using JAXWS endpoints that are configu

Re: Unsubscribing

2008-06-30 Thread Daniel Kulp
Most likely the email you are sending from doesn't EXACTLY match the email address. I think I managed to get you unsubscribed. Let me know if you have any more issues. Dan On Jun 26, 2008, at 4:16 PM, Javier Delgadillo wrote: All, I've sent 2 messages to [EMAIL PROTECTED]

CXF and Marhsaller/Unmarshaller Listeners

2008-06-30 Thread Bart Skondin
Hi All, In attempting to set listeners on CXF-created Marshallers and Unmarshallers via spring, we have been running into issues. I needed to marshal / unmarshal xml data from / to an existing database through existing business classes. * I used JAXB adapters and xjb bindings to creat

Re: About annotation inheritance, and HTTP properties

2008-06-30 Thread Brice
> > Ok, so to have a REST client we can use the following code in Java. > == >> >> === >> JaxWsProxyFactoryBean sf = new JaxWsProxyFactoryBean(); >> sf.setServiceClass(RestService.class); >> sf.getServiceFactory().setWrapped(false); >> >> sf.getClient

Re: CXF REST - Constrain the xml elements in output

2008-06-30 Thread Sergey Beryozkin
Hi Judging from you said your requirement is to do the filtering outside of the application class. As such I see no other way other than providing a custom message body writer, something similar to what I suggested below earlier, or just rely on a servlet filter. If you were prepared to return a

Re: About annotation inheritance, and HTTP properties

2008-06-30 Thread Sergey Beryozkin
Hi Brice Ok, I understand better the case, I just read in surface the specification, I am not well aware then of those recommendations. I only saw that the jaxrs annotations are not annotated with @Inherited, but it's okay if CXF implementation do the job to check the interfaces. I hope this will

RE: CXF and Acegisecurity

2008-06-30 Thread Arundel, Donal
Maybe have a look at the ACEGI docs on ACL annotations if you want method level access control, to allow distinguishing between REST CRUD operations. (Ideally from a pure engineering viewpoint one would extend ACEGIs ACL syntax to support REST directly, but this is obviously more effort :-) ). If

Re: Can I use absolute jaxws:endpoint address in a webapp?

2008-06-30 Thread jimpo
Yes, that seems to fit my needs. Thanks a lot! Christian Vest Hansen wrote: > > Are you looking for this: >https://issues.apache.org/jira/browse/CXF-1279 > ? > -- View this message in context: http://www.nabble.com/Can-I-use-absolute-jaxws%3Aendpoint-address-in-a-webapp--tp18195627p1819

Re: About annotation inheritance, and HTTP properties

2008-06-30 Thread Brice
Hi Sergey, Thx for your answers :) On Mon, Jun 30, 2008 at 14:09, Sergey Beryozkin <[EMAIL PROTECTED]> wrote: > Hi Brice > > Thanks for your comments. > > > Hello, >> >> I have question regarding annotation inheritance. >> >> Imagine we have an API with a model and an interface with exposed met

Re: Can I use absolute jaxws:endpoint address in a webapp?

2008-06-30 Thread Christian Vest Hansen
Are you looking for this: https://issues.apache.org/jira/browse/CXF-1279 ? On 6/30/08, jimpo <[EMAIL PROTECTED]> wrote: > > If I could stop cxf from replacing the soap:address from the WSDL, this would > solve my problem also. I am using my own wsdl file and I could set the > correct server

Re: Can I use absolute jaxws:endpoint address in a webapp?

2008-06-30 Thread jimpo
If I could stop cxf from replacing the soap:address from the WSDL, this would solve my problem also. I am using my own wsdl file and I could set the correct server url there. -- View this message in context: http://www.nabble.com/Can-I-use-absolute-jaxws%3Aendpoint-address-in-a-webapp--tp1819562

Can I use absolute jaxws:endpoint address in a webapp?

2008-06-30 Thread jimpo
I have this problem which I am trying to solve using absolute endpoint address in my config. For explanation on the original problem, see the link in the end of my post. My problem would be solved if I could use an absolute URL for my endpoint address. Documentation at http://cwiki.apache.org/CX

Re: cxf behind load balancer, services point to localhost:8080 instead of server:80

2008-06-30 Thread jimpo
Thanks...this did not help me though. Also SOAP client settings do not help me since the problem is solely on the server side. I am trying to create a service with a proper WSDL and so far that is failing. My clients are external and I have no control over them. I will create a new thread with

Re: @Context in message body provider? - was CXF REST - Constrain the xml elements in output

2008-06-30 Thread Sergey Beryozkin
Hi I'm jumping a bit ahead here. On the trunk it's not supported. I'm hoping to do a merge sometimes this week and the injection for all types of providers will also be supported. Cheers, Sergey I see the use of @Context in this example but the docs state: "Injection of contexts into messag

Re: About annotation inheritance, and HTTP properties

2008-06-30 Thread Sergey Beryozkin
Hi Brice Thanks for your comments. Hello, I have question regarding annotation inheritance. Imagine we have an API with a model and an interface with exposed methods like: = @Path("/customerrestservice/") @ProduceMime("application/xml") pub

Re: JMSSessionFactory problem: "Don't understand null destinations"

2008-06-30 Thread Ulhas Bhole
Hi Dan, This issue is now fixed and will be available whenever next SNAPSHOT is deployed or you can download the latest source and build it yourself. Regards, Ulhas Bhole Ulhas Bhole wrote: Hi Dan, This is a problem in handling the pooledsession. Here is the JIRA. https://issues.apache.org/

Re: JMSSessionFactory problem: "Don't understand null destinations"

2008-06-30 Thread Ulhas Bhole
Hi Dan, This is a problem in handling the pooledsession. Here is the JIRA. https://issues.apache.org/jira/browse/CXF-1676 Fix is on the way in few hours after I finish the test run. Regards, Ulhas Bhole Dan Retzlaff wrote: Hi, I think org.apache.cxf.transport.jms.JMSSessionFactory has a probl

SOAP Header

2008-06-30 Thread Selena85
Hello I'm newbie in CXF and Spring. My task is to prepear user authenthication and to log user activities. Now I've got user authenthication using WSS4JInInterceptor and callback - and it's work fine. My problem is, how to pass authentication data (username) to the endpoint implementor class (tran

Re: Unsubscribing

2008-06-30 Thread Glen Mazza
Making a help request to [EMAIL PROTECTED] might also work. 2008-06-29 Benson Margulies wrote: > I looked into this. You may be stuck until Dan comes back from paternity ... > I think he's the only list owner. Or, at least, if the rest of us PMC types > have the same access, I don't know how to u