Re: CXF Client issue with upgrade from CXF 2.2.7 to 2.4.2

2011-11-16 Thread srinivas thallapalli
Anybody faces this issue. Thanks -- View this message in context: http://cxf.547215.n5.nabble.com/CXF-Client-issue-with-upgrade-from-CXF-2-2-7-to-2-4-2-tp4845738p5000264.html Sent from the cxf-user mailing list archive at Nabble.com.

Re: Debbugging incoming SOAP Message

2011-11-16 Thread Aki Yoshida
In CXF, the message is represented by different objects as it is processed through the interceptors. And you can get the SOAPMessage representation only after the SAAJ interceptor processes the message. In your case, you should just capture the input stream to dump the received message instead of

Debbugging incoming SOAP Message

2011-11-16 Thread marco1982
Hi all, I have the need to persist all SOAP incoming messages received by the Web service. I'm using Apache CXF on Tomcat 6.0. So I have written an Interceptor which tries to collect the SAOPMessage from the Message Content: public void handleMessage(SoapMessage msg) throws Fault { SOAPMessage sm

Re: Slow WSDL Initialization

2011-11-16 Thread Andrew
It's much faster with the fastBoot property. Down to about 7 seconds now, from 15. About 2 seconds to create the service and 5 to get the port. I think I can live with this. Thanks On Wed, Nov 16, 2011 at 12:54 PM, Daniel Kulp wrote: > > There is a system property: > > System.setProperty(JAX

Re: case differences in WSDL and generated classes

2011-11-16 Thread rouble
Daniel, Yep - that solves it. Is there anyway to specify this via configuration to cxf? tia, rouble On Wed, Nov 16, 2011 at 2:43 PM, Daniel Kulp wrote: > On Tuesday, November 15, 2011 5:20:57 PM Pranab Mehta wrote: >> CXF Gurus, >> >> I have a class defined as follows: >>     @XmlAccessorType(

Re: Slow WSDL Initialization

2011-11-16 Thread Daniel Kulp
There is a system property: System.setProperty(JAXBContextImpl.class.getName()+".fastBoot", "true") that you can set that tells JAXB not to optimize these things. Runtime performance would be a little bit worse though. Other than that, I'm not sure what to suggest. Dan On Wednesday, Nove

Re: Alternatives to WSDLQueryHandler?

2011-11-16 Thread Daniel Kulp
On Wednesday, November 16, 2011 10:44:21 AM Evangelina Martinez wrote: > > Doesn't look like it's possible. Can I ask what you're trying to > > achieve? > > I'm migrating the functionality that I had in 2.3.1, where if the request > path contains ?wsdl or ?xsd, I would return the corresponding

Re: case differences in WSDL and generated classes

2011-11-16 Thread Daniel Kulp
On Tuesday, November 15, 2011 5:20:57 PM Pranab Mehta wrote: > CXF Gurus, > > I have a class defined as follows: > @XmlAccessorType(XmlAccessType.PROPERTY) > @XmlRootElement(name = "FOO") > public class FOO { > ... > } > > When CXF generates the WSDL it looks like this: >

Re: Slow WSDL Initialization

2011-11-16 Thread Andrew
I configured Java logging here's what I'm seeing: The first three seconds: 573 Nov 16, 2011 11:23:34 AM com.sun.xml.bind.v2.ContextFactory createContext 574 FINE: Property com.sun.xml.bind.XmlAccessorFactoryis not active. Using JAXB's implementation Then, I'm seeing about 10 seconds (~37K li

Re: Does cxf support xsd:any?

2011-11-16 Thread Aki Yoshida
If you want to send out an arbitrary xml payload from a camel-cxf endpoint, you can use the dispatch mode (i.e., specifying neither the wsdl nor the service endpoint class at the camel-cxf endpoint). regards, aki 2011/11/8 xuhb : > Hi: >    I am using camel 's payload CXF component; Now I want pub

Re: case differences in WSDL and generated classes

2011-11-16 Thread Glen Mazza
The Java->XML Schema->WSDL naming conversions are all dictated by the JAX-WS and JAXB specifications, which CXF follows. I'm unsure why you're using nonstandard class naming ("FOO" instead of "Foo"). I believe there are some JAXB customizations/attributes you can use in your Java class (htt

Re: How to do java first with imported XSD schema correctly?

2011-11-16 Thread Conficio
Thanks Daniel, for confirming, it is not me attempting something totally wrong. I created https://issues.apache.org/jira/browse/CXF-3918. Please let me know if I can help, for example by structuring the sample as a test case. K -- View this message in context: http://cxf.547215.n5.nabble.com/Ho

RE: CXF DOSGI and transactions

2011-11-16 Thread De Backer Frederik (DBB)
Hi, As far as I can tell, Aries doesn't use AOP or CGLIB to proxy the service. Instead they use an interceptor mechanism: a Java class that contains methods to define the behaviour to be executed before and after the service invocation is done. Kr, Frederik. -Original Message- From:

Re: Alternatives to WSDLQueryHandler?

2011-11-16 Thread Evangelina Martinez
> Doesn't look like it's possible. Can I ask what you're trying to achieve? I'm migrating the functionality that I had in 2.3.1, where if the request path contains ?wsdl or ?xsd, I would return the corresponding wsdl or xsd. And for that end I was using the WSDLQueryHandler. > One option really

Re: CXF DOSGI and transactions

2011-11-16 Thread Sergey Beryozkin
Hi On 16/11/11 11:20, De Backer Frederik (DBB) wrote: Hello, I have installed the latest single bundle release of CXF DOSGI in Apache Aries 0.3. I have played around a bit with it and it works ok to remotely expose a service (see blueprint definition below). However, when I add a transaction attr

Re: Current state of Multipart form binding in JAX-RS

2011-11-16 Thread Sergey Beryozkin
Hi On 16/11/11 12:50, Benson Margulies wrote: I'm a bit confused by the current content of: http://cxf.apache.org/docs/jax-rs-multiparts.html I just wrote the following code: @POST /* * Note the bogus content type. Getting jquery/forms to successfully do Ajax * with an upload

Current state of Multipart form binding in JAX-RS

2011-11-16 Thread Benson Margulies
I'm a bit confused by the current content of: http://cxf.apache.org/docs/jax-rs-multiparts.html I just wrote the following code: @POST /* * Note the bogus content type. Getting jquery/forms to successfully do Ajax * with an upload depends on this. */ @Produces("text/html")

Re: Unmarshaling attachment (MTOM)

2011-11-16 Thread Alex Declent
I found the solution by my self, maybe this will help someone else. The package-info.class was not generated by the compiling process (take care of the ANT version) take a look at http://ant.apache.org/manual/Tasks/javac.html. After I had tried the solution which is mentioned at http://stackove

CXF DOSGI and transactions

2011-11-16 Thread De Backer Frederik (DBB)
Hello, I have installed the latest single bundle release of CXF DOSGI in Apache Aries 0.3. I have played around a bit with it and it works ok to remotely expose a service (see blueprint definition below). However, when I add a transaction attribute on the bean definition (in comment below), the se

Re: Getting error while calling the .svc Web Service using from java program.

2011-11-16 Thread jatinder
It shows me the following errors- com.sun.xml.messaging.saaj.soap.ver1_2.Fault1_2Impl checkIfStandardFaultCode SEVERE: SAAJ0435: {http://www.w3.org/2003/05/soap-envelope}Server is not a standard Code value java.lang.reflect.UndeclaredThrowableException at $Proxy33.enrollRequest(Unknown Source

Re: Disabling NTLM authentication

2011-11-16 Thread Lucas Madar
On Tue, Nov 15, 2011 at 11:59 PM, Sergey Beryozkin wrote: > Hi > > > On 15/11/11 23:09, Lucas Madar wrote: > >> I have an application that runs fine on a linux machine using CXF to >> access >> a service on a windows IIS server via REST. I am not in control of this >> server or the way things are

Re: Spring-Security Sessions and CXF

2011-11-16 Thread Jeff Wang
There's an open-id implementation of spring security. It goes through a bunch of redirects (302s) 1) client POSTs to the open id endpoint on , which typically is a /j_spring_openid_security_check 2) the endpoint in 1 responds with a 302 and a redirect to the openid endpoint (www.google.com//j_spr

Re: Spring-Security Sessions and CXF

2011-11-16 Thread Sergey Beryozkin
Hi, On 16/11/11 05:45, Jeff Wang wrote: Due to a variety of reasons, we decided to not secure our html pages, but to secure the AJAX data calls. The AJAX endpoints are CXF JAX-RS endpoints. Because we support OAuth and OpenID, we made the decision to go with Spring Security and sessions, instea

Re: Disabling NTLM authentication

2011-11-16 Thread Sergey Beryozkin
Hi On 15/11/11 23:09, Lucas Madar wrote: I have an application that runs fine on a linux machine using CXF to access a service on a windows IIS server via REST. I am not in control of this server or the way things are implemented on it. Parts of the service are secured via windows authentication