Re: can't disable session support (JSESSIONID is always created)

2015-08-04 Thread John Baker
Inject request into your WS and get the session: @Context protected HttpServletRequest request; On Tue, Aug 4, 2015, at 10:37 AM, micleva wrote: > well it should be disabled by default. > However, the behavior it looks like is not. > > Indeed it is the Applet who sets the JSESSIONID but in

Re: not fully serialising objects

2015-08-02 Thread John Baker
public List getSorts() { .. } if an empty list is returned, the serialiser adds (XML) or sorts: [] (JSON), but the deserialiser calls: public void setSorts(List sorts) { .. } it passes an empty list when deserialising JSON, and null if XML! John On Sun, Aug 2, 2015, at 01:32 PM, J

not fully serialising objects

2015-08-02 Thread John Baker
Hello, I'm using CXF 3.1.1 and am struggling with a REST service but am unsure what exactly is wrong. The service is defined via and it's working correctly in so far as I can get various simple services to work, but one is perplexing me. Here is an example interface defining the service: @Pat

Re: confirm unsubscribe from users@cxf.apache.org

2015-07-13 Thread John Baker
-- John Baker, Web Technologies Consultant. http://www.javasystemsolutions.com +44 77 3639 3822 On Mon, Jul 13, 2015, at 11:33 AM, users-h...@cxf.apache.org wrote: > Hi! This is the ezmlm program. I'm managing the > users@cxf.apache.org mailing list. > > I'm working fo

CXF, Jetty, jaxws:client, Spring

2015-07-09 Thread John Baker
Hello I have a simple webservice defined in a Spring application: http://localhost:8000";> and a JUnit test that's using : true http://localhost:8000";> Jetty is being used a

Re: confirm unsubscribe from users@cxf.apache.org

2013-07-29 Thread John Baker
-- John Baker On Mon, Jul 29, 2013, at 03:17 PM, users-h...@cxf.apache.org wrote: > Hi! This is the ezmlm program. I'm managing the > users@cxf.apache.org mailing list. > > I'm working for my owner, who can be reached > at users-ow...@cxf.apache.org. > >

Re: JAX-RS method matching

2013-07-29 Thread John Baker
0; else if (m1.equals(target)) result= -1; else if (m2.equals(target)) result= 1; else result= m1.compareTo(m2); } return result; -- John Baker On Mon, Jul 29, 2013, at 01:51 PM, John Baker w

Re: JAX-RS method matching

2013-07-29 Thread John Baker
> The relevant RC method needs to help with ordering the method > candidates, so return either -1 or 1 to help the runtime choose the > right candidate But what is "equal"? Is it the two resource infos pointing to updateFruit when i know the target is that method? So return 0 in that case? And

Re: JAX-RS method matching

2013-07-29 Thread John Baker
Defining in the XML Is fine. I'm just working out how the compare method for a method is supposed to work with my example... -- John Baker On Mon, Jul 29, 2013, at 01:02 PM, Sergey Beryozkin wrote: > On 29/07/13 12:59, John Baker wrote: > > > >> Have you read the sectio

Re: JAX-RS method matching

2013-07-29 Thread John Baker
I can only determine the parameter type / method by the message body, so I guess I need a generic "put" method with an object, and use the provider to create the correct object, before using an if instanceof in the method. -- John Baker On Mon, Jul 29, 2013, at 12:46 PM, Sergey Beryo

Re: JAX-RS method matching

2013-07-29 Thread John Baker
Sergey, > You can have "@Context MessageContext" or any of standard JAX-RS > contexts injected into your custom provider Just to clarify, should I inject this as a class variable on the provider, ie are the providers thread safe and is the message updated on each call to readFrom? John

Re: JAX-RS method matching

2013-07-29 Thread John Baker
Hello Thanks for responding so quickly. > JAX-RS selection algorithm sees these 2 methods as equal candidates. > IMHO having unique paths for different type of resources (from the > client's POV, not from the Java hierarchy perspective) is reasonable > IMHO, but if you prefer or *have to* use t

JAX-RS method matching

2013-07-29 Thread John Baker
aced the problem into JAXRSUtils and I'm wondering if there's any solution, or do these methods need unique paths? Thanks John -- John Baker

Re: confirm subscribe to users@cxf.apache.org

2013-07-29 Thread John Baker
-- John Baker On Mon, Jul 29, 2013, at 11:39 AM, users-h...@cxf.apache.org wrote: > Hi! This is the ezmlm program. I'm managing the > users@cxf.apache.org mailing list. > > I'm working for my owner, who can be reached > at users-ow...@cxf.apache.org. > >

RE: Schema validation of SOAP headers

2012-11-02 Thread John Baker
So the answer appears to be /META-INF/jax-ws-catalog.xml -Original Message- From: John Baker [mailto:john.ba...@camelotgroup.co.uk] Sent: 02 November 2012 09:17 To: users@cxf.apache.org Subject: RE: Schema validation of SOAP headers Hello If a schema catalog is required, where is it

RE: Schema validation of SOAP headers

2012-11-02 Thread John Baker
Hello If a schema catalog is required, where is it specified and is there an example somewhere? John -Original Message- From: Daniel Kulp [mailto:dk...@apache.org] Sent: 01 November 2012 16:41 To: users@cxf.apache.org; John Baker Subject: Re: Schema validation of SOAP headers This

RE: Schema validation of SOAP headers

2012-11-02 Thread John Baker
16:41 To: users@cxf.apache.org; John Baker Subject: Re: Schema validation of SOAP headers This is a problem with the test case. It's not using the wsdl for the service and thus is generating a new schema at runtime based on the annotations. JAXB doesn't have any annotations for t

RE: Schema validation of SOAP headers

2012-10-31 Thread John Baker
Sent: 31 October 2012 14:50 To: users@cxf.apache.org Subject: Re: Schema validation of SOAP headers On Oct 31, 2012, at 5:58 AM, John Baker wrote: > I've put a debugger on SoapHeaderInterceptor and I can see: > >schema.newValidator().validate(ds); > >

Schema validation of SOAP headers

2012-10-31 Thread John Baker
[mailto:ashaki...@talend.com] Sent: 31 October 2012 10:27 To: users@cxf.apache.org Cc: John Baker Subject: RE: Schema validation of SOAP headers Xerces definitely validates such patterns. From the first view I do not see any problems in your configuration. Could you distil the use in a small te

RE: Schema validation of SOAP headers

2012-10-31 Thread John Baker
I've put a debugger on SoapHeaderInterceptor and I can see: schema.newValidator().validate(ds); being called. I'm beginning to think the problem lies in the Xerces schema validator? -Original Message----- From: John Baker [mailto:john.ba...@camelotgroup.co.uk]

Schema validation of SOAP headers

2012-10-30 Thread John Baker
Hello, I note this topic has been discussed before and I have discovered a JIRA issue (https://issues.apache.org/jira/browse/CXF-4334). However, after upgrading to CXF 2.6.3, I note the SOAP headers are not being fully validated. Consider this schema extract:

RE: Spring bean problem

2012-04-30 Thread John Baker
Hello Are there specific Spring Integration elements that pull in CXF? If so ,I can't find the docs.. John -Original Message- From: Daniel Kulp [mailto:dk...@apache.org] Sent: 27 April 2012 21:07 To: users@cxf.apache.org Cc: John Baker Subject: Re: Spring bean problem On F

RE: Spring bean problem

2012-04-27 Thread John Baker
Well, for future reference, the problem went away when I imported the CXF configuration: But that now leaves me with a problem which suggests CXF and Spring Integrate won't work together.. -Original Message- From: John Baker [mailto:john.ba...@camelotgroup.

Spring bean problem

2012-04-27 Thread John Baker
Hello, I've put this into Spring and am using CXF 2.3.0: http://localhost:8080/moo"; xmlns:ns="http://ctp.company.com/il/wsdl/AuditLog-v1"; wsdlLocation="META-INF/il-auditlog-wsdl/AuditLog-v1.wsdl"

CXF JMS

2012-04-27 Thread John Baker
Hello Is it possible to wire a CXF Spring component into an existing Spring JMS connection factory? John ** The information contained in this email may be confidential. It is intended only for the use of the named rec

CXF, JMS

2012-04-26 Thread John Baker
Hello, Is there a CXF endpoint that will listen for JMS messages by implementing javax.jms.MessageListener? If not, how hard would it be to create one? John ** The information contained in this email may be confidenti

RE: Kerberos and credential propagation

2012-04-26 Thread John Baker
Oh sorry, I didn't read your example hard enough :) -Original Message- From: Henk-Jan [mailto:h.vissc...@cordares.nl] Sent: 26 April 2012 14:08 To: users@cxf.apache.org Subject: RE: Kerberos and credential propagation John afaik, this example uses the same "environment" variables as my

RE: Kerberos and credential propagation

2012-04-26 Thread John Baker
http://stackoverflow.com/questions/1431999/java-and-kerberos-authentication-krb5-conf-versus-system-setproperty -Original Message- From: Henk-Jan [mailto:h.vissc...@cordares.nl] Sent: 26 April 2012 12:29 To: users@cxf.apache.org Subject: RE: Kerberos and credential propagation I know of

RE: Kerberos and credential propagation

2012-04-26 Thread John Baker
I meant the environment variables that allow you not to use a krb5.conf. -Original Message- From: Henk-Jan [mailto:h.vissc...@cordares.nl] Sent: 26 April 2012 10:33 To: users@cxf.apache.org Subject: RE: Kerberos and credential propagation Running with the following command gives the same

RE: Kerberos and credential propagation

2012-04-26 Thread John Baker
Yes, I see now. It looks fine. The failed to find key error is often associated with a case issue, but I can see that your domain is in upper case and that matches the krb5.conf: principal="HTTP/_kerbisspoc-service.melkweg@melkweg.tld"; I would suggest trying to get rid of the krb5.conf

RE: Kerberos and credential propagation

2012-04-26 Thread John Baker
Well, perhaps the Kerberos module was fixed in 1.6 :) Can you send the Kerberos debug in 1.6? -Original Message- From: Henk-Jan [mailto:h.vissc...@cordares.nl] Sent: 26 April 2012 09:05 To: users@cxf.apache.org Subject: RE: Kerberos and credential propagation Java 7 didn’t break things

RE: Kerberos and credential propagation

2012-04-26 Thread John Baker
If you're saying things broke with Java 1.7 then it's worth noting there are some known bugs in the Keberos module prior to update 4. -Original Message- From: Colm O hEigeartaigh [mailto:cohei...@apache.org] Sent: 25 April 2012 17:04 To: users@cxf.apache.org Subject: Re: Kerberos and cre

RE: CXF, JMS/AMQP listener

2012-04-25 Thread John Baker
Oh sorry, I didn't see the end of your mail :) -Original Message- From: Daniel Kulp [mailto:dk...@apache.org] Sent: 25 April 2012 16:32 To: users@cxf.apache.org Cc: John Baker Subject: Re: CXF, JMS/AMQP listener On Wednesday, April 25, 2012 03:16:43 PM John Baker wrote: > Th

RE: CXF, JMS/AMQP listener

2012-04-25 Thread John Baker
niel Kulp [mailto:dk...@apache.org] Sent: 25 April 2012 16:32 To: users@cxf.apache.org Cc: John Baker Subject: Re: CXF, JMS/AMQP listener On Wednesday, April 25, 2012 03:16:43 PM John Baker wrote: > That's the problem, I'm not using an endpoint. > > I'm reading a message

RE: CXF, JMS/AMQP listener

2012-04-25 Thread John Baker
lp [mailto:dk...@apache.org] Sent: 25 April 2012 16:13 To: users@cxf.apache.org Cc: John Baker Subject: Re: CXF, JMS/AMQP listener On Wednesday, April 25, 2012 11:10:36 AM John Baker wrote: > I've done that but I'm now missing a SOAP message validation step. > Jaxb2marshaller can&

RE: CXF, JMS/AMQP listener

2012-04-25 Thread John Baker
Could a LocalConduit be used? -Original Message- From: John Baker [mailto:john.ba...@camelotgroup.co.uk] Sent: 25 April 2012 12:11 To: users@cxf.apache.org Subject: RE: CXF, JMS/AMQP listener I've done that but I'm now missing a SOAP message validation step. Jaxb2marshalle

RE: CXF, JMS/AMQP listener

2012-04-25 Thread John Baker
one else has On Wed, Apr 25, 2012 at 6:00 AM, John Baker wrote: > Hello > > Is there a CXF component to connect to a JMS or AMQP queue, read messages and > validate the SOAP message against the WSDL etc? > > > John > > > **

CXF, JMS/AMQP listener

2012-04-25 Thread John Baker
Hello Is there a CXF component to connect to a JMS or AMQP queue, read messages and validate the SOAP message against the WSDL etc? John ** The information contained in this email may be confidential. It is intended o

SOAP over JMS

2012-04-24 Thread John Baker
Hello, I am writing a SOAP over JMS service and need to validate SOAP messages created by a CXF client. Given a WSDL and a message (in the form of a Document or a String), how can I validate the SOAP message to ensure it complies with the schema and WSDL? I assume there must be something in CX

Re: CXF, resolving schemas

2012-03-12 Thread John Baker
Daniel Thanks for your feedback. On Monday 12 March 2012 19:12:31 you wrote: > If using a jax-ws-catalog.xml thing like that, it should always be grabbing > the classpath. That's how our own builds work to keep them from hitting > the internet all the time. This may be a bug in the way Mule

CXF, resolving schemas

2012-03-12 Thread John Baker
Hello I'm using a jaxws service with a contract first approach: The WSDL refers to a schema: http://abc.com/il/xsd/FormatEmail-v1.0"; schemaLocation="http://abc.com/il/xsd/FormatEmail-v1.0.xsd"; /> And I've got a jax-ws-catalog.xml file to map the URL to a schema o

Re: Obtaining sample webservice message as XML

2011-02-06 Thread John Baker
ema is just an XML document, so you're asking how to parse an XML > document in Java -- I would google on JAXP, SAX, StAX, and/or DOM and > you'll see lots of examples. > > Glen > > On 06.02.2011 15:18, John Baker wrote: > > Is there any sample code to show how

Re: Obtaining sample webservice message as XML

2011-02-06 Thread John Baker
Is there any sample code to show how to walk a schema? On Sun, 06 Feb 2011 14:48 -0500, "Benson Margulies" wrote: > It just walks the WSDL/Schema. > > On Sun, Feb 6, 2011 at 1:52 PM, John Baker > wrote: > > Glen, > > > > I appreciate that demand for suc

Re: Obtaining sample webservice message as XML

2011-02-06 Thread John Baker
Glen, I appreciate that demand for such a request would be low. Could you tell me how SoapUI does it? It's quite a clever feature and would help in building a UI for building SOAP messages. John

Obtaining sample webservice message as XML

2011-02-06 Thread John Baker
Hello, With the latest builds of CXF (2.3.x), is there a way to obtain a 'sample' webservice message as a string, in the same way SoapUI does where it replaces parameters for question marks John

Axis 1.4 versions CXF 2.3.1

2011-01-02 Thread John Baker
I see the answer, set the targetNamespace in the @Webservice annotation on the service bean. Pity the vendor app still doesn't read the WSDL evem without wsdl:import.

CXF 2.3.1 jar file dependency problem?

2011-01-02 Thread John Baker
Hello, I'm struggling with what I suspect is jar file hell whilst trying to make a simple WSDL call with CXF 2.3.1. Here's the code: JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance(); Client client = dcf.createClient(wsdl); And here's the exceptio

Axis 1.4 versions CXF 2.3.1

2011-01-02 Thread John Baker
Hello, I have a vendor application that can process an Axis WSDL but not a CXF WSDL generated from the same object. The problem appears to be that the application can not support wsdl:import. Can I persuade CXF to generate a WSDL without using wsdl:import? I'm using Spring: Thanks, Jo

Re: WS client, original message

2009-06-24 Thread John Baker
rce) > > > DOMSource domResMsg = disp.invoke(domReqMsg); > > > > Dan > > On Sun June 21 2009 9:35:17 am John Baker wrote: > > Hi, > > > > Thanks for your response. I've written an interceptor to do it, but was > > just look

Re: WS client, headers, and sessions.

2009-06-24 Thread John Baker
se > upgrade) would be to grab the cookies map directly from the HTTPConduit. > > HTTPConduit hc = (HTTPConduit)(c.getConduit()); > Map cookies = hc.getCookies() > > That can also be easily used to copy session cookies from one proxy object > to another. > > Dan > &g

Re: WS client, original message

2009-06-21 Thread John Baker
So, I've found a thread where someone is doing the same: http://www.nabble.com/Client-from-ClientFactoryBean-as-a-generic-soap-client--td17700799.html However, when I try the same it seems to fail because of no service class in the endpoint: NullPointerException: at org.apache.cxf.serv

Re: WS client, original message

2009-06-21 Thread John Baker
ject[] { message }); Is that easy to replace with the jaxws (dispatch?) api? It did nothing more than call a WS method, passing one parameter and assuming a String response. No WSDL involved... John P.S. If anyone needs the interceptor then I'm happy to post it. On Sunday 21 June 2

WS client, original message

2009-06-21 Thread John Baker
Hello, How does one obtain the raw SOAP message returned from a client webservice call? Ideally, as String or a Document would be nice. John

Re: WS client, headers, and sessions.

2009-06-20 Thread John Baker
Hello, HTTPClientPolicy.setCookie seems an odd method. It takes one parameter, not two (i'd expect key/value?), and some other post suggests the format is value:key (which isn't documented in the API docs). Finally, what do I do if I want to set multiple cookies? Could someone clarify this p

WS client, headers, and sessions.

2009-06-20 Thread John Baker
Hello, Can someone point me at an example of session support in CXF? I'm not configuring with Spring, so some code would be handy. The SOAP server to which my CXF client connects is using a session cookie and that needs to be presented across all calls after an initial "login" call. Also, ho

Re: WSDL issue

2009-06-20 Thread John Baker
I spoke to soon! It appears the problem was this: http://www.caps-solutions.co.uk/webservices/connectors/servicerequest/messagetypes"; location="ServiceRequestConnector-MessageTypes-1.0.xsd"/> Which should have been: Hello, > > This question is more specifically WSDL related, and isn't d

WSDL issue

2009-06-20 Thread John Baker
Hello, This question is more specifically WSDL related, and isn't due to any fault in CXF, but if someone could point me in the right direction (or at the correct documentation) then that would be very helpful. Consider the following: wsdl2java -d src ServiceRequest-Service-1.0.wsdl WSDLToJa

CXF, Unicode, utf8, encoding issue

2009-04-27 Thread John Baker
Hi, I'm looking at Unicode characters returned via a webservice call. The common encoding scenerio - it works for me, where a CXF generated client can make a WS call, the WS call returns a String containing Unicode characters, and the client converts them correctly. However for someone in the

Re: Attachments

2009-04-21 Thread John Baker
Excellent. The documentation on the link I provided sort of suggested I needed to add an interceptor to get access to them... John On Monday 20 April 2009 21:34:08 you wrote: > On Mon April 20 2009 3:59:23 pm John Baker wrote: > > Do I need to setup the interceptor? > > N

Re: Attachments

2009-04-20 Thread John Baker
MessageContext)context.getMessageCont >ext()).getWrappedMessage().getAttachments() > > That would return Collection. > > > Another option with 2.2: > PhaseInterceptorChain.getCurrentMessage().getAttachments(); > > > > Dan > > On Sun April 19 2009 6:21:24 pm John Baker wrote:

Attachments

2009-04-19 Thread John Baker
Hello, What's the quickest/easiest way to get attachments from a SOAP call in CXF? Do we have to use an interceptor, as detailed here: http://cwiki.apache.org/CXF20DOC/interceptors.html Or is there an easier way, using a WebserviceContext perhaps? This is the Apache way, which is fairly triiva

Re: wsdl:location

2008-12-21 Thread John Baker
Is that a JVM flag? Can it be set as a property when creating beans through Spring? Thanks. On Friday 19 December 2008 09:45:50 you wrote: > Hi John, > After cxf 2.1, there is a flag "-address" for you to specify the port > address. > But it's not in the cxf 2.0

wsdl:location

2008-12-19 Thread John Baker
Hi, When a WSDL is produced, the wsdl:location is often set to localhost - is there any way to change this? john

Re: WL9.2 and CXF 2.1

2008-12-15 Thread John Baker
I should add, it seems to work alright in an EAR. I'm attempting to make Axis and CXF co-exist together - it doesn't seem much fun :) On Monday 15 December 2008 22:47:02 you wrote: > Hi, > > Does anyone have any idea how to deploy CXF with WL9.2? I've created a war > with a Spring based webserv

WL9.2 and CXF 2.1

2008-12-15 Thread John Baker
Hi, Does anyone have any idea how to deploy CXF with WL9.2? I've created a war with a Spring based webservice and this exception is produced: 15-Dec-2008 22:38:06 o'clock GMT> http://www.bea.com/ns/weblogic/90"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> true I see

Re: Axis1 WSDLs

2008-12-14 Thread John Baker
being generated? John On Sunday 14 December 2008 14:30:37 you wrote: > John Baker wrote: > > Of course, that's just the prefixes.. > > > > Perhaps I should ask if anyone has any experience with products written > > around Axis1 WSDL that failed when using CXF? > &g

Re: Axis1 WSDLs

2008-12-14 Thread John Baker
I've now found something of significance: These are generated by Axis under: But they are not mentioned by CXF. What annotation am I missing? On Sunday 14 December 2008 14:22:28 you wrote: > Of course, that's just the prefixes.. > > Perhaps I should

Re: Axis1 WSDLs

2008-12-14 Thread John Baker
Of course, that's just the prefixes.. Perhaps I should ask if anyone has any experience with products written around Axis1 WSDL that failed when using CXF? One thing I do note is that if I set use=Use.ENCODED, the WDSL generated by CXF produces use="literal". Why is this? john On Sunday 14

Axis1 WSDLs

2008-12-14 Thread John Baker
Hi, I've used CXF on a few projects and I'm seriously impressed with the quality of the product. I'm currently porting some old Axis1 webservices over to CXF and while my new WS works perfectly, I do have a little problem with the WSDL generated. The problem is that I need a fairly old produc