Adding WSA-headers programmatically

2017-03-10 Thread Ted Roeloffzen
Hello all, I have a short question. What is the default way of adding wsa-headers programmatically to a SOAP-message? thanks in advance. kind regards, Ted

adding custom interface to generated code

2015-08-20 Thread Ted Roeloffzen
don't want to do this by hand after the code is generated. It is time consuming and error prone. Is there a way, using wsdl2java, to set parameters that certain types need to implement certain interfaces? kind regards, Ted Roeloffzen

Setting and Getting WS-Addressing attributes in header

2015-01-15 Thread Ted Roeloffzen
to the server, but i'm unable to find examples of how to retrieve the ws-addressing attributes. Does anyone have a short example or something that can help me along? Thanks in advance. Kind regards, Ted Roeloffzen

Re: SOAPMessage is null

2013-11-15 Thread Ted Roeloffzen
, you may not need SOAPMessage? regards, aki 2013/11/14 Ted Roeloffzen ted.roeloff...@gmail.com: Hi all But now I'm having a problem. I'm doing a little coding by example, so don't shoot me if i'm doing something stupid ;) In the interceptor i do the following: SOAPMessage sm

retaining header values

2013-11-13 Thread Ted Roeloffzen
Hi All, I have a question concerning soapheaders. For a project I'm working on I need to add some interceptors to my service. First I have to make an InInterceptor that checks some values that are in the SoapHeader. Then I have to make an OutInterceptor that adds some values to the SoapHeader.

altering wsse security header

2013-08-14 Thread Ted Roeloffzen
Hi All, I'm still trying to figure out CXF and WSSE. At this point, sending a message to the server works fine, aside from the timestamp not being correct. But the return message gives a exception. I get the exception that there is no EncodingType, or at least it says that the EncodingType is .

Re: altering wsse security header

2013-08-14 Thread Ted Roeloffzen
:42 AM, Ted Roeloffzen ted.roeloff...@gmail.comwrote: Hi All, I'm still trying to figure out CXF and WSSE. At this point, sending a message to the server works fine, aside from the timestamp not being correct. But the return message gives a exception. I get the exception

Re: altering wsse security header

2013-08-14 Thread Ted Roeloffzen
on its own, then the value is isBSPCompliant: http://ws.apache.org/wss4j/config.html Colm. On Wed, Aug 14, 2013 at 11:05 AM, Ted Roeloffzen ted.roeloff...@gmail.comwrote: HI, I'm not creating the message without EncodingType, the service that I'm calling is doing

WSSE TimeStamp in Header

2013-08-14 Thread Ted Roeloffzen
Hi All, I'm having trouble with the timestamp that is created through CXF. The TimeStamp that is created is incorrect. That is, because it is 2 hours in the past. I assume that it has to do with the locale or timezone that is being used, but i can't find where to configure it. kind regards, Ted

Re: WSSE TimeStamp in Header

2013-08-14 Thread Ted Roeloffzen
Hi All, I've figured out why it is going wrong. It seems that UTC is used as the TimeZone and this is 2 hours behind my own. But how can i make sure that the correct timezone is used? Ted 2013/8/14 Ted Roeloffzen ted.roeloff...@gmail.com Hi All, I'm having trouble with the timestamp

Re: WSSE TimeStamp in Header

2013-08-14 Thread Ted Roeloffzen
:46, Ted Roeloffzen wrote: Hi All, I've figured out why it is going wrong. It seems that UTC is used as the TimeZone and this is 2 hours behind my own. But how can i make sure that the correct timezone is used? Ted 2013/8/14 Ted Roeloffzen ted.roeloff...@gmail.com Hi

Re: WSSE TimeStamp in Header

2013-08-14 Thread Ted Roeloffzen
by the XML Schema type (dateTime). Colm. On Wed, Aug 14, 2013 at 12:55 PM, Alessio Soldano asold...@redhat.com wrote: Usign UTC timezone for timestamps is the right approach (and possibly also mandated by specs, I'd need to check though). On 14/08/13 13:46, Ted Roeloffzen wrote

CXF Security policy signature method

2013-08-13 Thread Ted Roeloffzen
Hi All, How does CXF determine which signature method to use? Does it retrieve it from the security-policy in the WSDL or do you have to configure it? kind regards, Ted

Re: CXF Security policy signature method

2013-08-13 Thread Ted Roeloffzen
:08 AM, Ted Roeloffzen ted.roeloff...@gmail.com wrote: Hi All, How does CXF determine which signature method to use? Does it retrieve it from the security-policy in the WSDL or do you have to configure it? kind regards, Ted -- Colm O hEigeartaigh Talend Community Coder

Fwd: CXF Security policy signature method

2013-08-13 Thread Ted Roeloffzen
you want to use? Colm. On Tue, Aug 13, 2013 at 1:36 PM, Ted Roeloffzen ted.roeloff...@gmail.comwrote: Hi Colm, The WSS4JOutInterceptor is created and configured automatically by CXF, right? Can I somehow retrieve the WSS4JOutInterceptor during the process and set the signatureAlgorithm

Re: CXF Security policy signature method

2013-08-13 Thread Ted Roeloffzen
understanding. I've created a JIRA to find a way around this problem: https://issues.apache.org/jira/browse/CXF-5200 I think I will add a configuration option to override the default RSA-SHA1 signature algorithm. Colm. On Tue, Aug 13, 2013 at 2:19 PM, Ted Roeloffzen ted.roeloff...@gmail.com wrote

password and username with signature

2013-08-12 Thread Ted Roeloffzen
Hi All, How does CXF generate a signature as specified in a WSS-policy? Do I need a username and password? At this point I have a created my own custom implementation of a Crypto. When I register this in CXF and try to send a message, I get an exception stating that there is no password or

Re: CXF WS-security policy question

2013-08-01 Thread Ted Roeloffzen
(SecurityConstants.SIGNATURE_CRYPTO, store); } } Could it be a problem that I'm not overriding the standard implementation of the verifyTrust-methods? king regards, Ted Roeloffzen 2013/7/12 Andrei Shakirin ashaki...@talend.commailto: ashaki...@talend.com Hi Ted, I used own

CXF WS-security policy question

2013-07-12 Thread Ted Roeloffzen
direction? Greate many thanks. Kind regards, Ted Roeloffzen

Re: CXF WS-security policy question

2013-07-12 Thread Ted Roeloffzen
12, 2013 at 2:41 PM, Ted Roeloffzen ted.roeloff...@gmail.com wrote: Hi Andrei, Thanks for your advice. I created a class thats implements Crypto, actually it extends CryptoBase, but now i get the message: No callback handler and no password available Do I have to repeat the same

Securitypolicy in Java-first service

2013-06-01 Thread Ted Roeloffzen
Hi all, At my company we also create Java-first services, but is it possible to create a Java-first service that uses the securitypolicy version 1.2 and if so how? Thanks in advance Kind regards, Ted

ws security

2013-05-23 Thread Ted Roeloffzen
Hello all, I'm having al little difficulty setting up my client-webservice with the correct settings. This is the main part of the WSDL that i have to comply to. wsp:Policy wsu:Id= wsp:ExactlyOne wsp:All sp:AsymmetricBinding xmlns:sp=

Re: ws security

2013-05-23 Thread Ted Roeloffzen
-securitypolicy.html Colm. On Thu, May 23, 2013 at 10:34 AM, Ted Roeloffzen ted.roeloff...@gmail.comwrote: Hello all, I'm having al little difficulty setting up my client-webservice with the correct settings. This is the main part of the WSDL that i have to comply to. wsp:Policy

Re: ws security

2013-05-23 Thread Ted Roeloffzen
phase? kind regards, Ted 2013/5/23 Ted Roeloffzen ted.roeloff...@gmail.com Okay thanks. Correct me if i'm wrong, but the only thing i have to do is add the interceptor that sets the correct certificate? kind regards, Ted 2013/5/23 Colm O hEigeartaigh cohei...@apache.org You are using

Re: ws security

2013-05-23 Thread Ted Roeloffzen
that directly in your crypto.properties. That way you don't need to change anything in CXF itself. Colm. On Thu, May 23, 2013 at 2:01 PM, Ted Roeloffzen ted.roeloff...@gmail.com wrote: We have the certificates stored in a DB. So in the interceptor i load the certificate, put

Re: WS-Security question

2013-05-15 Thread Ted Roeloffzen
) { WSPasswordCallback wsPasswordCallback = (WSPasswordCallback)callback; wsPasswordCallback.setPassword(password); } } } } On 5/14/13, Ted Roeloffzen ted.roeloff...@gmail.com wrote: Good day all, At this moment I'm

Re: WS-Security question

2013-05-15 Thread Ted Roeloffzen
We don't have a keystore, but the certificate is persisted in a database. I have to retrieve it from the database and give it to cxf, but is that even possible? I can't seem to find any documentation on that best regards, Ted 2013/5/15 Ted Roeloffzen ted.roeloff...@gmail.com Okay thanks

Re: WS-Security question

2013-05-15 Thread Ted Roeloffzen
. So to get a key from a database, you will have to implement your own Crypto provider and plug it in to CXF/WSS4J. Colm. On Wed, May 15, 2013 at 9:17 AM, Ted Roeloffzen ted.roeloff...@gmail.com wrote: We don't have a keystore, but the certificate is persisted in a database. I have

WS-Security question

2013-05-14 Thread Ted Roeloffzen
Good day all, At this moment I'm working on a webservice-client that has to use WS-Security, but i can't seem to figure out how configure CXF that it fills the SOAP-header in the correct way. We don't use Spring for the configuration, so everything has to be configured via the API. We need to

Re: cxf wsdl generation

2013-04-10 Thread Ted Roeloffzen
on deployment configuration decisions you've made, as discussed in note #2 here: http://www.jroller.com/gmazza/**entry/web_service_tutorial#**noteshttp://www.jroller.com/gmazza/entry/web_service_tutorial#notes Glen On 04/09/2013 10:00 AM, Ted Roeloffzen wrote: Hello all, I'm having some

cxf wsdl generation

2013-04-09 Thread Ted Roeloffzen
Hello all, I'm having some difficulty with CXF. I got a WSDL from an external party and used this to create a webservice-server. For this I used de codegen-plugin for maven. When I check the definition of the server, by going to the url and adding ?wsdl, then I receive a WSDL that seems to be

Re: Generated wsdl contains errors

2013-03-29 Thread Ted Roeloffzen
On 03/28/2013 08:54 AM, Ted Roeloffzen wrote: Good day all, To elaborate on my earlier mail. The problem is that the input and ouput typenames in de wsdl are incorrect. The name that is set in the Webparam-annotation of the webmethod isn't used. for the input the name of webmethod is used

Generated wsdl contains errors

2013-03-28 Thread Ted Roeloffzen
classes and method, they are equal to the wsdl we used for the wsdl2java plugin, but differ from de wsdl that is published by the endpoint. Does this sound familiar to anyone or does anyone have any idea what i'm doing wrong? kind regards, Ted Roeloffzen

Re: Generated wsdl contains errors

2013-03-28 Thread Ted Roeloffzen
and gets response added to it. Is there a setting that i'm forgetting? kinds regards, Ted Roeloffzen 2013/3/28 Ted Roeloffzen ted.roeloff...@gmail.com Good day all, I've created a webservice using the wsdl2java maven plugin. But when I publish the webservice and check the wsdl, by going

Re: Marshalling weirdness

2010-11-30 Thread Ted Roeloffzen
and unmarshall the XML? thnx 2010/11/26 Ted Roeloffzen ted.roeloff...@gmail.com yes we are using CXF. The situation looked weird and inplausible to me too. I'll see if i can make a test. 2010/11/26 Benson Margulies bimargul...@gmail.com Are you even using CXF at all? The situation you describe

Marshalling weirdness

2010-11-26 Thread Ted Roeloffzen
Hi All, At my company we're having a little trouble with the marshalling. Perhaps you know a solution. We're trying to connect to a third-party Webservice and we've created the code ot ouf their WSDL. We have a few classes, in the same package, with instance variables that have the same name. They

Re: Marshalling weirdness

2010-11-26 Thread Ted Roeloffzen
and post it? On Fri, Nov 26, 2010 at 5:03 AM, Ted Roeloffzen ted.roeloff...@gmail.com wrote: Hi All, At my company we're having a little trouble with the marshalling. Perhaps you know a solution. We're trying to connect to a third-party Webservice and we've created the code ot ouf

Re: CXF dates are empty

2010-07-09 Thread Ted Roeloffzen
Hi Glen, I haven't checked with wireshark yet, but all the other properties are being picked up correctly. Ted 2010/7/8 Glen Mazza glen.ma...@gmail.com Ted Roeloffzen-2 wrote: Hi All, I'm using CXf and i have a wierd problem. I have a class that has 2 dates

CXF dates are empty

2010-07-08 Thread Ted Roeloffzen
Hi All, I'm using CXf and i have a wierd problem. I have a class that has 2 dates. They are XMLGregorianCalendars. When i send the object to the server, the dates are null. I can't seem to figure out what i'm doing wrong. thanks

Newbie question. Webservice not registered in servlet

2010-06-30 Thread Ted Roeloffzen
Hi All, I have a quick question. I'm using cxf 2.2.3 and I want to register a service (the server side) via Spring. My web.xml contains context-param param-namecontextConfigLocation/param-name param-valueclasspath:nl/topicus/cluedo/spring-web.xml /param-value /context-param listener

Re: Newbie question. Webservice not registered in servlet

2010-06-30 Thread Ted Roeloffzen
too :-) but could you give us the complete url that you try to call ? Philippe 2010/6/30 Ted Roeloffzen ted.roeloff...@gmail.com Hi All, I have a quick question. I'm using cxf 2.2.3 and I want to register a service (the server side) via Spring. My web.xml contains context-param

Newbie question

2010-05-31 Thread Ted Roeloffzen
Hi all, I'm just starting with CXF and i have a question. I have to store a variable in the session, but i can' t seem to find how i can do that. Can anyone help me with that? thanks a bunch Ted