SOAP Interceptor question

2009-11-11 Thread Pydipati, Karuna
Hi I have hard time extracting the following information from request XML. How do get hold of piece and access ClientApplicationId and Password into Interceptor java program? http://schemas.xmlsoap.org/soap/envelope/"; xmlns:soap="http://soap.ws.xxx.com/";> abcd x

CXF REST Map as argument can it handle it?

2009-11-11 Thread vickatvuuch
Must be a simple one for anyone already done it. I have tried it today and couldn't figure out why it would not initialize my bean with a Map in it, anyone knows the trick? There seem to be a bug open on this, but I'm not sure if there is still an issue and if so is there a way to do this? Tried

Re: AbstractSoapInterceptor can't access Addressing Properties

2009-11-11 Thread Jason Clark
Thanks Dan, that worked like a charm. Looking at the javadocs, I see isProviderContext - true if the binding provider request context available to the client application as opposed to the message context visible to handlers With that set to false, it seems the problem was resolved. 2009/11/11 D

Re: How to configure CXF client consume wsdl with overloaded methods?

2009-11-11 Thread Benson Margulies
Dan, So, we have the following situation? XFire let the OP create a non-WSI-BP service, and purports to generate a WSDL for it. If the version of Aegis was the same on both ends, it would work. If the particular API does not happen to run into one of the areas where Aegis has changed what goes on

RE: JAXB xml response marshalling issue

2009-11-11 Thread Cristian Botiza
Just to let you know that it worked perfectly in WAS CE 2.1.1.3 (latest) with cxf and dependencies embedded in the WAR file. Note: CXF is NOT bundled with WAS CE 2.1.1.3 but it was in WAS CE 2.1.1.2 Strange. Thanks again From: Sergey Beryozkin [sbery...@

Re: How to get rid of certain runtime exceptions in the log?

2009-11-11 Thread Daniel Kulp
The only thing I can think of would be to subclass the JAXWSMethodInvoker we use and override the invoke or createFault things and do: message.put(FaultMode.class, FaultMode.CHECKED_APPLICATION_FAULT); if the fault is the security fault. That would mark it as a checked exception and not an u

Re: Unmarshalling error while processing soap fault.

2009-11-11 Thread Daniel Kulp
OK. The soap message isn't valid according to that schema. In the schema, they are all and thus should be attributes, not child elements. Dan On Wed November 11 2009 4:02:30 pm deepika vadapalli wrote: > Dan, > > I am sorry. Actual for that call, I get DataNotFoundServiceException.

Re: Argument appears in message but is null in implementation method

2009-11-11 Thread Daniel Kulp
It's quite possible (probable actually) that there is a mismatch between the namespace expectations on client and server, especially if the interface and impl are in different packages. Definitely add the namespace attributes to the @WebService annotations on both client and server. Next thi

Re: Unmarshalling error while processing soap fault.

2009-11-11 Thread deepika vadapalli
Dan, I am sorry. Actual for that call, I get DataNotFoundServiceException. Schema is like this: * * * * * * I have getters and setters . @XmlAccessorType(XmlAccessType.*FIELD*) @XmlType(name = "") @XmlRootElement(name = "DataNotFoundServiceException") * public* *class* D

Re: Unmarshalling error while processing soap fault.

2009-11-11 Thread Daniel Kulp
What does your ValidationServiceException bean look like? Does it have proper getter/setters for the code attribute? What does the schema for the service look like? Particularly for that exception type. Dan On Wed November 11 2009 3:29:05 pm deepika vadapalli wrote: > Hi All, > > I use

Re: AbstractSoapInterceptor can't access Addressing Properties

2009-11-11 Thread Daniel Kulp
Try changing: ContextUtils.retrieveMAPs(message, true, true); to: ContextUtils.retrieveMAPs(message, false, true); If that doesn't work, you may need to dig into the Message contents to see what is there: for (String s : message.keySet()) { System.out.println(s + " " + message.get(s).getCla

Re: How to configure CXF client consume wsdl with overloaded methods?

2009-11-11 Thread Daniel Kulp
Two notes: 1) Without the wsdl and the IVolume interface you are using, it might be hard to diagnose. You may need to put them someplace public or log a JIRA or similar. The mailing list usually strips attachments. 2) Operation overloading in wsdl is not supported.It's specifically f

Unmarshalling error while processing soap fault.

2009-11-11 Thread deepika vadapalli
Hi All, I use CXF 2.1.7. I have a soap message which generates valid fault. I am able to unmarshall faults from other services properly. When I call this particular service, in my client code, I get Unmarshlling exception. When I check, the object has all the attributes, the fault messgae has sen

AbstractSoapInterceptor can't access Addressing Properties

2009-11-11 Thread Jason Clark
Hello all, I'm trying to create an Interceptor that is setup under the following method: public void getStudy(int studyId) { try { MyInterceptor myInterceptor = new MyInterceptor(); ClientProxyFactoryBean factory = new ClientProxyFactoryBean();

RE: CXF on Weblogic 10 cluster

2009-11-11 Thread Cristian Botiza
What you may try is to have the server (Weblogic) load its own version of the JWS API. The JAR you're referring to is from the CXF bundle just in case the API is not available. Any serious application server should have that bundled already. Not sure how you would do this in WebLogic, but I'm th

RE: CXF and Custom Annotation

2009-11-11 Thread Pydipati, Karuna
Thanks. Let me try CGLIB option. Regards Karuna Pydipati StubHub/eBay - Platform & Services Phone: (415)222-8752 Email: kpydip...@ebay.com From: Sergey Beryozkin [mailto:sbery...@progress.com] Sent: Wednesday, November 11

Re: JAXB xml response marshalling issue

2009-11-11 Thread Sergey Beryozkin
I'm wondering, is is something similar to what David Karr had to deal with ? Are you using ear packaging on WAS CE ? May be you need to embed some of the CXF libs in ? cheers, Sergey - Original Message - From: "Cristian Botiza" To: Sent: Wednesday, November 11, 2009 5:02 PM Subject:

RE: JAXB xml response marshalling issue

2009-11-11 Thread Cristian Botiza
Drum roll!!! It works perfectly now on Tomcat 6. My issue is that I have to deploy on IBM's WAS CE (geronimo based) and I suspect geronimo is not loading the latest CXF version. Thanks a lot. From: Sergey Beryozkin [sbery...@progress.com] Sent: 11 November

Re: How to configure CXF client consume wsdl with overloaded methods?

2009-11-11 Thread Benson Margulies
I should warn you that is is quite likely that a CXF Aegis client will be UNABLE to talk to an XFire server. Aegis is/was not tightly specified. If you want to talk to an XFire server with a CXF client, I recommend that you use wsdl2java to generate a JAX-WS+JAXB client. On Wed, Nov 11, 2009 at 11

Re: How to configure CXF client consume wsdl with overloaded methods?

2009-11-11 Thread Benson Margulies
This list strips attachments. To do show-and-tell, you have to open a JIRA and attach there. On Wed, Nov 11, 2009 at 11:53 AM, Alpin, Luba wrote: > > Attached are: > > 1. The http://localhost:8080/demo/services/Demo?wsdl file (created by > XFire). > > 2. The 'src.rar' - my service implementatio

RE: How to configure CXF client consume wsdl with overloaded methods?

2009-11-11 Thread Alpin, Luba
Attached are: 1. The http://localhost:8080/demo/services/Demo?wsdl file (created by XFire). 2. The 'src.rar' - my service implementation. 3. 'WEB-INF.rar' - my service configuration. I load service with Tomcat or Jetty. And this is my XFire Client test method that works good. public void XF

RE: CXF on Weblogic 10 cluster

2009-11-11 Thread vickatvuuch
I also didn't expect a cluster to not behave in the same way, but it does. What works fine (jre/lib/endorsed) on the non-clustered WS doesn't work on the clustered one. And I do use mixed mode: SOAP and REST so I have to have it all. KARR, DAVID (ATTCINW) wrote: > >> -Original Message-

Re: Error handling

2009-11-11 Thread Sergey Beryozkin
Hi There's a numer of options, the simplest ones are : 1. Return JAXRS Response from your method, with your error description (jaxb) bean set as a Response entity 2. Register a custom ExceptionMapper and convert a catched Exception instance into Response, same as in 1 cheers, Sergey - Ori

RE: CXF on Weblogic 10 cluster

2009-11-11 Thread KARR, DAVID (ATTCINW)
> -Original Message- > From: vickatvuuch [mailto:vlisov...@gmail.com] > Sent: Tuesday, November 10, 2009 6:44 PM > To: users@cxf.apache.org > Subject: CXF on Weblogic 10 cluster > > > Was anybody able to get CXF up and running on the cluster setup? > I tried the suggested work around for

Re: JAXB xml response marshalling issue

2009-11-11 Thread Sergey Beryozkin
See a servlet named "CXFServlet" in this web.xml (theer're 4 of them there) http://svn.apache.org/repos/asf/cxf/trunk/systests/jaxrs/src/test/resources/jaxrs_non_spring/WEB-INF/web.xml It has a "/singleton/*" pattern and it sets no jaxrs address (which is equivalent to '/'). Changing "/singleton

Error handling

2009-11-11 Thread suraj chhetry
Hi, I am using CXF in my project where i need to create both SOAP and RESTfull web service.If there is exception on WS API it is throwing runtime error with message.This is okay with SOAP but it is not good with REST. I want to display error as User Not found How can i achieve that goal? Ple

RE: JAXB xml response marshalling issue

2009-11-11 Thread Cristian Botiza
The exception only says something about the CORBA binding (!). IllegalAccessError: tried to access field org.apache.cxf.binding.AbstractBindingFactory.bus from class org.apache.cxf.binding.corba.CorbaBindingFactory Doesn't seem to have anything to do with my issue. _

Re: JAXB xml response marshalling issue

2009-11-11 Thread Sergey Beryozkin
assuming you have /services/* and jaxrs.address / then URIs starting from /services/ should be accepted Perhaps the exception you're referring to can provide some clues ? cheers, Sergey - Original Message - From: "Cristian Botiza" To: Sent: Wednesday, November 11, 2009 2:24 PM Subj

RE: JAXB xml response marshalling issue

2009-11-11 Thread Cristian Botiza
Followed this (using CXFNonSpringJaxrsServlet): created my Application implementation. When deploying to geronimo, I get some huge stack trace but it still deploys. However, no matter what I set in jaxrs.address I still get the message: setting the server publish address to be / The servlet is

Enabling WS-RM interceptors via the JAX-WS factory API not possible?

2009-11-11 Thread Alexandros Karypidis
Hi, I have a test that initializes a cxf bus, and then goes on to create a JAX-WS service + client and enable WS-RM using the "features" API. However, the server side seems to no have "WS-Addressing" and "WS-RM" enabled. The code looks like: JaxWsServerFactoryBean factory = new JaxWsServerFa

Re: How to configure CXF client consume wsdl with overloaded methods?

2009-11-11 Thread Benson Margulies
Post a JIRA and attach the wsdl and we'll try to help. On Wed, Nov 11, 2009 at 7:02 AM, Alpin, Luba wrote: > I need a help to configure my CXF client to use XFire SOAP service with > overloaded methods. > > > > IVolume interface has two method 'getVolumes' with different signature > > > > Wsdl

Re: CXF and Custom Annotation

2009-11-11 Thread Daniel Kulp
On Tue November 10 2009 6:20:18 pm Pydipati, Karuna wrote: > I kind of found the issue. Since, I am doing my own Spring-AOP, I need > to modify the jaxws:endpoint XML config as follows. > > implementorClass="com.xxx.ws.soap.XXXServiceImpl" >implementor="#xxxServiceImpl" > address="/XXXSe

Re: cxf 2.1.5 release

2009-11-11 Thread Daniel Kulp
On Wed November 11 2009 7:37:10 am Alexandre Jaquet wrote: > Hi, > > I need to know when the release of cxf 2.1.5 will be released because it > will fixe some issues related to SSL and we go into production in the end > of december. 2.1.5 was released a long time ago. Do you mean 2.2.5? I'm h

cxf 2.1.5 release

2009-11-11 Thread Alexandre Jaquet
Hi, I need to know when the release of cxf 2.1.5 will be released because it will fixe some issues related to SSL and we go into production in the end of december. Thanks in advance Alexandre Jaquet

How to configure CXF client consume wsdl with overloaded methods?

2009-11-11 Thread Alpin, Luba
I need a help to configure my CXF client to use XFire SOAP service with overloaded methods. IVolume interface has two method 'getVolumes' with different signature Wsdl has one 'getVolumes' and second 'getVolumes1' This is the dump of error: INFO: Creating Service {http://xfire.codehaus

Re: JAXB xml response marshalling issue

2009-11-11 Thread Sergey Beryozkin
Please see http://cwiki.apache.org/CXF20DOC/jax-rs.html#JAX-RS-ConfiguringJAXRSservices thanks, Sergey - Original Message - From: "Cristian Botiza" To: Sent: Wednesday, November 11, 2009 10:46 AM Subject: RE: JAXB xml response marshalling issue I used a classpath file cxf.xml: w

RE: JAXB xml response marshalling issue

2009-11-11 Thread Cristian Botiza
I used a classpath file cxf.xml: web.xml: contextConfigLocation classpath:cxf.xml org.springframework.web.context.ContextLoaderListener And in cxf.xml: http://localhost:8080/MathService/"; bindingId="http://apache.org/cxf/binding/http";>

Re: JAXB xml response marshalling issue

2009-11-11 Thread Sergey Beryozkin
Hi I'm sorry, can't help you here. Please consider moving to JAXRS as the HTTP binding (the one you're using) is not mantained, only some of the blockers for the existing users might get fixed occasionally. unfortunately the jaxrs annotations seem to be ignored by CXF at least in my experien

RE: JAXB xml response marshalling issue

2009-11-11 Thread Cristian Botiza
Thanks for your quick response. I'm using annotations from org.codehaus.jra package (unfortunately the jaxrs annotations seem to be ignored by CXF at least in my experience). Ok, the code follows. interface: @WebService() @Produces("application/xml") @Consumes("application/xml") @HttpResource(lo

Re: JAXB xml response marshalling issue

2009-11-11 Thread Sergey Beryozkin
Hi Yes please. Just the method signature and the response class should do Also, do you use deprecated HTTP or JAXRS binding ? thanks, Sergey - Original Message - From: "Cristian Botiza" To: Sent: Wednesday, November 11, 2009 10:14 AM Subject: JAXB xml response marshalling issue Hi

How to get rid of certain runtime exceptions in the log?

2009-11-11 Thread Tomas Majak
Hi, I'm using CXF together with Spring Security (Acegi). I have secured my WS methods, with role constraints. I'm also using basic auth, which in most cases leads to requests without credentials first, then I reply HTTP401-USE BASIC AUTH (I have added a interceptor for doing this) Upon receivin

JAXB xml response marshalling issue

2009-11-11 Thread Cristian Botiza
Hi, I've developed a simple RESTful service with CXF 2.2.4. I use the HTTP transport, CXFServlet and Spring-based configuration. Everything works fine except that when marshalling the response into XML, the root element is auto-generated by CXF. More exactly, I get: 100 200 instead of t

Re: CXF and Custom Annotation

2009-11-11 Thread Sergey Beryozkin
Hi > This is because ResourceInjector (CXF class) works on Fields (using > Reflections API) rather than on methods. Perhaps it is worth opening an enhancement request against JAXWS runtime ? In meantime, any chnace that you can force Sprion AOP to use CGLIB ? It might help. > I might need to d