Re: Exception while marshalling

2009-08-19 Thread Sergey Pulyaev INTEGO
Now i have got the same situation again - after switching to version 2.2.3. Now StaxOutInterceptor.getXMLOutputFactory always returns NULL - so i have no way to specify this flag anymore. How can i setup XMLStreamWriter to AUTOMATIC_EMPTY_ELEMENTS = OFF ? Sergey Pulyaev wrote: I have

How to configure XMLStreamWriter AUTOMATIC_EMPTY_ELEMENTS

2009-08-19 Thread Sergey Pulyaev INTEGO
Hi all, After switching from 2.0.9 to 2.2.3 i found that StaxOutInterceptor have changes it's behaviour. I have a problem with XMLStreamWriter in 2.0.9 - if function returns empty array - it will be changed to a null - for example: getArrayResult /getArrayResult which mean new

Exception handling during unmarshalling

2009-08-19 Thread Sergey Pulyaev INTEGO
I have the following situation: Web service function receives a value object with some properties and one of the properties have a check in the setter - is value correct. But when the exception thrown about incorrect value it is catched by Accessor.handleInvocationTargetException, converted

Re: Parameters from client are null at server

2009-08-19 Thread Sergey Pulyaev INTEGO
evilh...@yandex.ru wrote: Hi I've created java webservice with .NET client with CXF. I have no problems with import of the WSDL to .NET client. But when I make some requests I see parameters in logged XML request. But when I check this parameters in the debugger there are nulls for all of

Re: CXF Handler and JBoss 4.2.3

2009-08-19 Thread Alessio Soldano
Hi, this most likely because of the same issue addressed here (linking as afaics you created that thread): http://www.jboss.org/index.html?module=bbop=viewtopicp=4250348#4250348 Your installation of JBossWS-CXF on top of JBoss AS 4.2.3 is somehow broken. Here below, the JBossWS-Native saaj

RE: Determining Caller's Identity

2009-08-19 Thread Eamonn Dwyer
Hi Stephen Not quite what you want but maybe you could do something like this inside an interceptor rather than inside your service. TLSSessionInfo tlsSessionInfo = message.put(TLSSessionInfo.class); Certificate[] peerCerts = tlsSessionInfo.getPeerCertificates(); ... check the peer

Interceptor to modify http soap-message

2009-08-19 Thread Hartmut Lang
Hi, We have the need to modify some of the soap messages that are generated by CXF. The idea is to use an OutInterceptor. Is there an example how such an interceptor should work, if it has to change the soap-message in the POST_MARSHALL phase. Our approach was to rewrite the outputstream of the

xsd:choice in xsd:sequence

2009-08-19 Thread Lukasz Lichota
If I have complex type like this: xsd:sequence xsd:element name=n1 type=t1 / xsd:element name=n2 type=t2 / xsd:choice xsd:element name=n3 type=t3 / xsd:element name=n4 type=t4 / /xsd:choice /xsd:sequence then all this sequence is mapped to one field of type

RE: Accessing jaxws:client address in application.

2009-08-19 Thread Bruno Melloni
Trying again. Does anybody know how a client app can get the address URL of the jaxws:client being used? Thanks, b. -Original Message- From: Bruno Melloni [mailto:bruno.mell...@chickasaw.net] Sent: Tuesday, August 18, 2009 9:05 AM To: users@cxf.apache.org Subject: Accessing

RE: Determining Caller's Identity

2009-08-19 Thread Josef Bajada
If you use the servlet container's authentication and transport security methods (through WEB-INF/web.xml) to force authentication (such as HTTP BASIC Auth over HTTPS), you can simply put the following line in your service implementation class. /** * The web-service context will be

Re: Determining Caller's Identity

2009-08-19 Thread Stephen Langella
Josef, Thanks for the information, how do I get a handle the the WebServiceContext inside my service implementation? --Steve Stephen Langella Co-Director Software Research Institute Center for IT Innovations in Healthcare Ohio State University Senior Researcher Department of Biomedical

Getting Exceptions during Schema-Validation of Responses

2009-08-19 Thread MarkusKra
Hi, i have a cxf service client which sends requests to a service over cxf-JMS-transport. I activated schamavalidation to ensure, that the service-response is valid, which works pretty well, but i don't get the unmarshalling-exceptions. The exception shows up in the logfilee, but the only

Re: xsd:choice in xsd:sequence

2009-08-19 Thread tpe
It's even worse :). If t3 is of collection type, each element of that collection will become single element of the resulting ListJaxbElement?. So, if for example t3 is a list with the size of 3, the final JaxbElement list will contain 5 elements. Lukasz Lichota wrote: If I have complex type

RE: Determining Caller's Identity

2009-08-19 Thread Josef Bajada
Just put the annotation @Resource before the field and by resource-injection it should be populated automatically by the container. Josef -Original Message- From: Stephen Langella [mailto:stephen.lange...@osumc.edu] Sent: 19 August 2009 15:48 To: users@cxf.apache.org Subject: Re:

Re: xsd:choice in xsd:sequence

2009-08-19 Thread Daniel Kulp
This needs to be asked on the jaxb list. (jaxb.dev.java.net) This code generation is per jaxb default spec, but there may be an xjc plugin or something that simplifies this. Dan On Wed August 19 2009 11:06:11 am tpe wrote: It's even worse :). If t3 is of collection type, each element

Re: Accessing jaxws:client address in application.

2009-08-19 Thread Daniel Kulp
Most likely, you would need to do: Client client = ClientProxy.getClient(proxy); client.getEndpoint().getEndpointInfo().getAddress(); That should retrieve the address that is being used. Dan On Tue August 18 2009 10:05:05 am Bruno Melloni wrote: If an application declares a client in

Re: Determining Caller's Identity

2009-08-19 Thread Stephen Langella
Josef, Thanks --Steve Stephen Langella Co-Director Software Research Institute Center for IT Innovations in Healthcare Ohio State University Senior Researcher Department of Biomedical Informatics Ohio State University Office: (614) 293-9534 Lab: (614) 292-8420

Re: Incorrect Package names for generated code with CXF and XMLBeans

2009-08-19 Thread Daniel Kulp
This is completely per XMLBeans code generation rules. Basically, we just feed the schemas to XMLBeans and it uses whatever rules it has to generate the package names. XMLBeans does have some sort of context file that may be usable to remap things (much like a jaxb binding file), but I

Re: Determining Caller's Identity

2009-08-19 Thread Stephen Langella
Josef, I tried what you suggested but context.getUserPrincipal() returned null. Keep in mind I am using X.509 client certificates to authenticate with the server, I am trying to get the subject DN from the clients certificate as opposed to a basic authentication user id. Is this supported

Re: Determining Caller's Identity

2009-08-19 Thread Daniel Kulp
On Wed August 19 2009 1:20:25 pm Stephen Langella wrote: Josef, I tried what you suggested but context.getUserPrincipal() returned null. Keep in mind I am using X.509 client certificates to authenticate with the server, I am trying to get the subject DN from the clients certificate as

Re: Incorrect Package names for generated code with CXF and XMLBeans

2009-08-19 Thread Uday . Natra
Thanks Dan. I will see if I can do that. Uday Natra Technical Architect 901-495-7595 uday.na...@autozone.com Daniel Kulp dk...@apache.org 08/19/2009 11:36 AM To users@cxf.apache.org cc natra uday.na...@autozone.com Subject Re: Incorrect Package names for generated code with CXF and XMLBeans

Re: Interceptor to modify http soap-message

2009-08-19 Thread Daniel Kulp
Under normal operation, the messages are streamed out on the wire as they are produced. Thus, you cannot really rewrite them that way. There are options, however, depending on how complex of a re-writing you need to do: Options: 1) Usually highest performing, but usually harder to write and

Re: ClientOutFaultObserver in ClientImpl not initialized

2009-08-19 Thread Daniel Kulp
That definitely sounds like a bug. Can you log a jira issue and possibly attach a patch? Other than resorting to some reflection to set the field directly, I'm not sure there is a workaround. :-( Dan On Sun August 16 2009 8:24:08 am Bernd Wiswedel wrote: The field protected

Re: A simple jax-ws service issue

2009-08-19 Thread Daniel Kulp
I just tried the demo in the actual kit via a ant server and it started up and listened fine on 9000. Was there any error or anything printed out? Dan On Tue August 18 2009 11:04:05 am vf wrote: I've tries the following guide at:

Re: CachedOutputStream writing to temp files for large messages

2009-08-19 Thread Daniel Kulp
On Mon August 17 2009 3:39:57 pm Nepali, Sonam (GE Healthcare, consultant) wrote: In CXF 2.1.3 version, the CachedOutputStream does not delete the temporary files that were created. This leads to proliferation of temporary files residing in the file systems. Wouldn't it be better if the

Is there a .zip or .jar with just the cxf source code?

2009-08-19 Thread Gabriel Guardincerri
Hi, I want to attach a source .jar or .zip to cxf.jar to be able to debug cxf classes using an IDE (IntelliJ). I have the apache-cxf-2.2.3-src.zip, but is has all the .java files in different folders, and I don't how to easily merge them into one single folder. Any ideas? Thanks, Gabriel --

Re: Is there a .zip or .jar with just the cxf source code?

2009-08-19 Thread Daniel Kulp
Use the sources jar from: http://repo2.maven.org/maven2/org/apache/cxf/cxf-bundle/2.2.3/ Dan On Wed August 19 2009 3:03:09 pm Gabriel Guardincerri wrote: Hi, I want to attach a source .jar or .zip to cxf.jar to be able to debug cxf classes using an IDE (IntelliJ). I have the

Re: Is there a .zip or .jar with just the cxf source code?

2009-08-19 Thread Gabriel Guardincerri
Thanks! IMHO it would be great to have in the source distribution. dkulp wrote: Use the sources jar from: http://repo2.maven.org/maven2/org/apache/cxf/cxf-bundle/2.2.3/ Dan On Wed August 19 2009 3:03:09 pm Gabriel Guardincerri wrote: Hi, I want to attach a source .jar or .zip to

Re: How to configure XMLStreamWriter AUTOMATIC_EMPTY_ELEMENTS

2009-08-19 Thread Daniel Kulp
Setting that flag on the output of StaxOutInterceptor.getXMLOutputFactory with previous versions of CXF was probably a bad thing. Under normal circumstances, that XMLOutputFactory would have been shared all over the place so setting properties on it would affect things other than the

Re: WS SecurityPolicy

2009-08-19 Thread Daniel Kulp
Hmm... it definitely should be asserted. Is there any way you can run this in a debugger? If you could put a break point on line 174 of HttpsTokenInterceptorProvider, that would be a big help. At that point, I'd like to see the contents of TLSSessionInfo and make sure the certs are

Re: CXF Handler and JBoss 4.2.3

2009-08-19 Thread xinxinwang
What is vanilla 4.2.3 release? Alessio Soldano wrote: Hi, this most likely because of the same issue addressed here (linking as afaics you created that thread): http://www.jboss.org/index.html?module=bbop=viewtopicp=4250348#4250348 Your installation of JBossWS-CXF on top of JBoss AS

interrupting a web service invocation

2009-08-19 Thread Anshul Jaiswal
Hey, I have a use-case where a user action in a GUI results in a web service invocation. A web-service invocation being a remote operation can take arbitrary amount of time to complete. For this reason, the GUI provides an option to the user to cancel the operation. My question is what is the

Re: Exception handling during unmarshalling

2009-08-19 Thread Daniel Kulp
Interesting. I just debugged into JAXB a bit for this. By default, JAXB treats such exception as recoverable and pretty much just ignores them. You can configure a JAXB ValidationEventHandler on the JAXBDataBinding in CXF that would do something a bit smarter than that. The REALLY

Re: Parameters from client are null at server

2009-08-19 Thread Daniel Kulp
If you are getting into the getPara method, that means you don't have asm on the classpath.Most likely, just putting asm on the classpath would fix things for you. That said, that probably also explains why I've never been able to reproduce this.Is there any way to create a small

Javadoc missing for some classes?

2009-08-19 Thread KARR, DAVID (ATTCINW)
I'm going through the JAX-RS portion of the doc, and occasionally going to the Javadoc to look at some classes that are mentioned, and there are quite a few that I don't see in the javadoc, like CXFServlet and XMLSource, for instance. Are they somewhere else?

Re: Javadoc missing for some classes?

2009-08-19 Thread Daniel Kulp
On Wed August 19 2009 5:01:08 pm KARR, DAVID (ATTCINW) wrote: I'm going through the JAX-RS portion of the doc, and occasionally going to the Javadoc to look at some classes that are mentioned, and there are quite a few that I don't see in the javadoc, like CXFServlet and XMLSource, for

CORBA bindings

2009-08-19 Thread Shulok, Thomas
Hi All, Are there any simple examples demonstrating the use of the CORBA bindings (org.apache.cxf.binding.corba http://cxf.apache.org/javadoc/latest-2.1.x/org/apache/cxf/binding/corba /package-summary.html et al)? I've checked the usual places, but I'm not finding much... Thanks, Thom

Re: CORBA bindings

2009-08-19 Thread Daniel Kulp
Actually, there is also the Yoko docs. http://cwiki.apache.org/YOKO/documentation.html The Yoko code is what became the CORBA binding in CXF. (Yoko was split, part went to Geronimo, part went to CXF)I'm not sure how much is still completely relevant. I'd have to dig through a bit.

Re: Exception about *** nor any of its super class is known to this context

2009-08-19 Thread Daniel Kulp
Well, the basic reason is that many of the generic types get compiled away and thus are not able to be discovered via reflection. In your case: new CRUDResponseApple(apple) The Apple gets compiled away to just Object. When we create the JAXBContext, Apple doesn't get added and thus it's

Re: WS-security encryption

2009-08-19 Thread Daniel Kulp
On Sat August 15 2009 4:39:57 pm diego.v...@capgemini-sdm.com wrote: I want to use ws-security encryption in my application which does not use spring and a web server except the started by cxf to publish the web server. Is it possible to use in this scenario ws-security encryption? I'm not

Re: CORBA bindings

2009-08-19 Thread Daniel Kulp
On Wed August 19 2009 5:12:32 pm Shulok, Thomas wrote: Are there any simple examples demonstrating the use of the CORBA bindings (org.apache.cxf.binding.corba http://cxf.apache.org/javadoc/latest-2.1.x/org/apache/cxf/binding/corba /package-summary.html et al)? I've checked the usual places,

RE: Javadoc missing for some classes?

2009-08-19 Thread KARR, DAVID (ATTCINW)
-Original Message- From: Daniel Kulp [mailto:dk...@apache.org] Sent: Wednesday, August 19, 2009 2:11 PM To: users@cxf.apache.org Cc: KARR, DAVID (ATTCINW) Subject: Re: Javadoc missing for some classes? On Wed August 19 2009 5:01:08 pm KARR, DAVID (ATTCINW) wrote: I'm going

Re: Exception about *** nor any of its super class is known to this context

2009-08-19 Thread Sam.Wang
Hi dkulp: Thanks your reply! I was tried your method, however I get an exception when the response message be serialized in JAXRSOutInterceptor class. I debug it and find out the detailed exception info. javax.ws.rs.WebApplicationException: java.lang.IllegalStateException: Invalid JSON

Re: CXF Handler and JBoss 4.2.3

2009-08-19 Thread Alessio Soldano
I meant a clean, just downloaded, jboss 4.2.3.GA. xinxinwang wrote: What is vanilla 4.2.3 release? Alessio Soldano wrote: Hi, this most likely because of the same issue addressed here (linking as afaics you created that thread):

Re: JAX-RS : initial WADL support

2009-08-19 Thread Gabo Manuel
Hi Sergey, Sorry for the late response. I may have misrepresented the method, it should be as follows: @WebService(name=MyObjectService) @SOAPBinding(use=Use.LITERAL, style=Style.RPC) @Consumes(*/*) @Produces(text/xml) @Path(/MyObjects) public interface MyObjectService{ @GET @Path(/)