Re: Interrupting a Web service execution

2012-02-15 Thread Freeman Fang
Hi, This requirement sounds like what CXF continuation API can offer, CXF continuation API can let you suspend and resume server side interceptors, both camel-cxf and servicemix-cxf use it to get async support which won't block any underlying thread. You can read related blogs [1] &[2] to

Re: Unit testing JAX-RS services

2012-02-15 Thread Jeff Wang
Sorry, didn't see this message until just now... On Fri, Feb 3, 2012 at 9:42 AM, Sergey Beryozkin wrote: > On 03/02/12 03:02, Jeff Wang wrote: >> >> I'm having two difficulties with testing.  One practical, one theoretical. >> >> practical: >> If I have any @Context annotations, I can't actually

Re: Multiple CXF instances + ServiceMix + Thirdparty Jar... help!

2012-02-15 Thread Jeff Wang
Based upon what I know of OSGI and CXF, I'd actually suggest (if possible) to do 1, and see if that works. In java, instances from a Class X belonging to ClassLoader A is not of the type (instanceof returns false) Class X belonging to ClassLoader B, even though the class bytes are exactly the same

Generic return types

2012-02-15 Thread Jeff Wang
Scenario: User "owns" contacts via an unidirectional @ManyToOne JPA mapping on Contact. Contact subclasses from a @MappedSuperclass called UserResource. What I would like to do: an Interface called ISubResourceService that has a CXF annotation of: public interface ISubResourceService {

Re: Ws-trust java first jax-ws?

2012-02-15 Thread Jason Pell
Forget it - I checked the logs of the JavaWS and it cannot download the xsds because I am behind a firewall! Caused by: org.apache.ws.commons.schema.XmlSchemaException: Unable to locate imported document at 'http://ws-i.org/profiles/basic/1.1/swaref.xsd', relative to 'schema1.xsd'. On Thu, Feb

Running STS Sample in CXF 2.5.2

2012-02-15 Thread mohamadan
Hi, CXF 2.5.2 comes with a sample on STS. ( I am using jdk 1.6) Basically, Client communicates with STS to get a SAML token, and then Client uses SAML token to communicate with Server. When I try to run the sample, it fails when client sends a request for Saml Token to STS: ID: 2 Response-Cod

Re: Ws-trust java first jax-ws?

2012-02-15 Thread Daniel Kulp
On Thursday, February 16, 2012 10:19:02 AM Jason Pell wrote: > Is maven 3 supported for building? Yep. That's what I use extensively. Dan > > On Thu, Feb 16, 2012 at 6:56 AM, Jason Pell wrote: > > Will do later this morning thanks > > > > Sent from my iPhone > > > > On Feb 16, 2012, at 3:0

Re: Ws-trust java first jax-ws?

2012-02-15 Thread Jason Pell
Is maven 3 supported for building? On Thu, Feb 16, 2012 at 6:56 AM, Jason Pell wrote: > Will do later this morning thanks > > Sent from my iPhone > > On Feb 16, 2012, at 3:03, Daniel Kulp wrote: > >> On Wednesday, February 15, 2012 3:58:30 PM Jason Pell wrote: >>> I am assuming you ran a full bu

Re: DOSGI CXF just listening localhost

2012-02-15 Thread Sergey Beryozkin
On 15/02/12 17:00, Fernando Avalos García wrote: Hi All, I am trying DOSGI cxf and I deployed the greeter sample on Felix and it is working fine. The problem is that I am not able to access the 9090 port from another machine. It looks like it is listening just localhost. COMMAND PID USER

Re: Ws-trust java first jax-ws?

2012-02-15 Thread Jason Pell
Will do later this morning thanks Sent from my iPhone On Feb 16, 2012, at 3:03, Daniel Kulp wrote: > On Wednesday, February 15, 2012 3:58:30 PM Jason Pell wrote: >> I am assuming you ran a full build of CXF for this patch? I just >> tried to build 2.5.3 and I got a build failure in the tools/

DOSGI CXF just listening localhost

2012-02-15 Thread Fernando Avalos García
Hi All, I am trying DOSGI cxf and I deployed the greeter sample on Felix and it is working fine. The problem is that I am not able to access the 9090 port from another machine. It looks like it is listening just localhost. COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAMEjava2012

Re: Help with functional tests

2012-02-15 Thread Daniel Kulp
On Tuesday, February 14, 2012 12:12:48 PM Márcio Dantas wrote: > Hi ladies and gentlemen, > > I'm writing some functional tests to a webservice we have. > For now I just got three tests. My problem is that one test is affecting > the others. > > In the first test I expect an exception "Soap Fault

Re: ?wsdl is not being handled by cxf 2.5.x

2012-02-15 Thread Daniel Kulp
You may need to uninstall the cxf bundle and reinstall it instead of just a refresh. You need to get those imports resolved. Without them, the ws- security stuff won't load within CXF and none of the ws-securitypolicy related things will run. Dan On Tuesday, February 14, 2012 10:34:30 PM

Re: Ws-trust java first jax-ws?

2012-02-15 Thread Daniel Kulp
On Wednesday, February 15, 2012 3:58:30 PM Jason Pell wrote: > I am assuming you ran a full build of CXF for this patch? I just > tried to build 2.5.3 and I got a build failure in the tools/javato/ws > project > > org.apache.cxf.tools.java2ws.JavaToWSTest > > Is it normal for a fixed branch to h

RE: Checkstyle for CXF sources

2012-02-15 Thread Andrei Shakirin
Hi Dan, Yep, it was the issue. After run on root level it works. Thanks for help! I would like extend the documentation regarding checkstyle in CXF Wiki. Regards, Andrei. -Original Message- From: Daniel Kulp [mailto:dk...@apache.org] Sent: 15 February 2012 13:37 To: users@cxf.apache.or

Re: JAXWS client with XPath

2012-02-15 Thread Glen Mazza
Well, a JAX-WS handler if your reason for avoiding interceptors is to retain portability across other JAX-WS frameworks, or you can use the Dispatch interface to get the raw SOAP message and parse it. (Links #43 and #52 here: http://www.jroller.com/gmazza/entry/blog_article_index). Glen On 0

Re: Logging WebServiceException

2012-02-15 Thread Glen Mazza
IIRC such exceptions should already be present in the server's (e.g., Tomcat or Weblogic, etc.) log files. There's fault handlers in both JAX-WS handlers and CXF interceptors in which you can log whatever additional data needed that should show up in the server logs as a result (http://www.jro

Re: JAXWS client with XPath

2012-02-15 Thread Daniel Kulp
On Wednesday, February 15, 2012 12:29:39 PM Guy Pardon wrote: > Thanks, > > But isn't there a way to avoid an interceptor here? I mean, getting access > to the resulting SOAP response message in the client? By default, we stream and thus the resulting SOAP message doesn't exist. You can configu

Re: Checkstyle for CXF sources

2012-02-15 Thread Daniel Kulp
The -Psetup.eclipse stuff needs to be run once from the root of the CXF tree to get the workspace stuff setup. Can you try from there? Dan On Wednesday, February 15, 2012 9:27:06 AM Andrei Shakirin wrote: > Hi Dan, > > Have updated settings.xml, unfortunately still doesn't work ... > > I

Re: CXF DOSGI Won't Export Multiple Services

2012-02-15 Thread jbert
On Wed, Feb 15, 2012 at 12:10 AM, Fabio souza [via CXF] < ml-node+s547215n5484300...@n5.nabble.com> wrote: > It seems that you are registering both services using the same address... > I > think you could check the properties that you are using while registering > the services. Each one should hav

Re: JAXWS client with XPath

2012-02-15 Thread Sergey Beryozkin
Hi Guy On 15/02/12 11:29, Guy Pardon wrote: Thanks, But isn't there a way to avoid an interceptor here? I mean, getting access to the resulting SOAP response message in the client? I think for JAX-WS you need to use Dispatcher and use it with CXF XPathUtils which accepts a Node in one of i

Re: JAXWS client with XPath

2012-02-15 Thread Guy Pardon
Thanks, But isn't there a way to avoid an interceptor here? I mean, getting access to the resulting SOAP response message in the client? Guy On 15-feb-2012, at 10:44, Freeman Fang wrote: Hi, You can write a customer inInterceptor for client side to do anything you want, of course include t

Re: x 509 security token

2012-02-15 Thread Colm O hEigeartaigh
No, it should work fine with the TransportBinding. The problem is that your policy is invalid, as it leaves out the TransportToken policy. If you were to add in: Then you would see the BST in the request. I have merged a fix so that an exception will be

Interrupting a Web service execution

2012-02-15 Thread arun
Dear All, I want to interrupt a Web service execution, say a JAX-WS service running on Glassfish server, on a button click from JSP interface and halt its further execution. Could anybody elaborate me on how to achieve this? Any suggestions in this direction would be of great help. Thanks in adva

Re: Configure logging in CXF + pax-web + Jetty

2012-02-15 Thread Sergey Beryozkin
Hi Sven On 14/02/12 16:40, Viehmeier, Sven wrote: Hi Sergey, Thanks for your reply. I had a look at the links. If I understand the function of the different bundles correct, you ran a zookeeper instance in your OSGi container using the cxf-dosgi-ri-discovery-distributed-zookeeper-server bundle

Re: JAXWS client with XPath

2012-02-15 Thread Freeman Fang
Hi, You can write a customer inInterceptor for client side to do anything you want, of course include the XPath filter operation. If your requirement is too complex, Apache Camel[1] is more suitable to do it. [1]http://camel.apache.org/ Freeman On 2012-2-15, at 下午4:19, Guy Pardon wrote:

RE: Checkstyle for CXF sources

2012-02-15 Thread Andrei Shakirin
Hi Dan, Have updated settings.xml, unfortunately still doesn't work ... I see my workspace dir in maven output: "Using Eclipse Workspace: D:\Projects\CXF\workspace" , but there are not cxf-checkstyle-corba.xml and cxf-checkstyle.xml files in workspace dir. Am I missing some steps? Is there a

Logging WebServiceException

2012-02-15 Thread Guy Pardon
Hi cxf, If my service throws a generic WebServiceException: what is the best approach for logging / monitoring this on the server-side? With a handler? Are there any samples? Thanks Guy

JAXWS client with XPath

2012-02-15 Thread Guy Pardon
Hi, Any pointers on how I can write a JAXWS client that uses XPath to filter the response from a service? For instance, to extract only the known content, like in consumer-driven contracts. Thanks Guy