|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Client with TDHi,
I am trying to build a test case in that I put a ETD Token into a message. I am using the JettySSLTestCase as basis, deploy a service an then try to insert TD via the ClientTrustDelegationUtil. XFireClientFactory fac = new XFireClientFactory(); IWorkflowService myService = fac.createProxy(IWorkflowService.class, getBaseurl() + "/" + workflowName + "WorkflowService", service, sec); TrustDelegation td = new TrustDelegation("C=DE,ST=none,L=none,O=Unicore,OU=none,CN=NJS Test Certificate,1.2.840.113549.1.9.1=#161c756e69636f72652d737570706f7274406c697374732e73662e6e6574"); List<TrustDelegation> lsit = new LinkedList<TrustDelegation>(); lsit.add(td); ClientTrustDelegationUtil.addTrustDelegation(myService, lsit); But my "myService" is not an implementation of XFireProxy java.lang.IllegalArgumentException: Argument is not an XFireProxy at org.codehaus.xfire.client.Client.getInstance(Client.java:531) Isn't this the correct way? André -- André Höing Technische Universitaet Berlin Faculty of Electrical Engineering and Computer Science Department of Telecommunication Systems Complex and Distributed IT Systems Secr. EN 59 Einsteinufer 17 10587 Berlin Phone: +49 30 314 78946 Fax: +49 30 314 21114 e-mail: andre.hoeing@... WWW: http://www.cit.tu-berlin.de/ ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Unicore-support mailing list Unicore-support@... https://lists.sourceforge.net/lists/listinfo/unicore-support |
|
|
Re: Client with TDHi Andre,
André Höing pisze: > Hi, > > I am trying to build a test case in that I put a ETD Token into a > message. I am using the JettySSLTestCase as basis, deploy a service an > then try to insert TD via the ClientTrustDelegationUtil. > > XFireClientFactory fac = new XFireClientFactory(); I assume here that XFireClientFactory is the one from the package de.fzj.unicore.wsrflite.xfire(?) > IWorkflowService myService = fac.createProxy(IWorkflowService.class, > getBaseurl() + "/" + workflowName + "WorkflowService", service, sec); > > TrustDelegation td = new > TrustDelegation("C=DE,ST=none,L=none,O=Unicore,OU=none,CN=NJS Test > Certificate,1.2.840.113549.1.9.1=#161c756e69636f72652d737570706f7274406c697374732e73662e6e6574"); > List<TrustDelegation> lsit = new LinkedList<TrustDelegation>(); > lsit.add(td); > ClientTrustDelegationUtil.addTrustDelegation(myService, lsit); > > But my "myService" is not an implementation of XFireProxy > java.lang.IllegalArgumentException: Argument is not an XFireProxy > at org.codehaus.xfire.client.Client.getInstance(Client.java:531) > > Isn't this the correct way? 1) (this one is causing your problem) From the JavaDoc of the method you call (your last line): Configures trust delegation for the Xfire proxy. It is assumed that standard XFireProxy was used (so don't use this method for clients obtained with WSRFLite or other higher level frameworks -- see other methods). [CUT] So you should use the other method as suggested and pass it an object of the Client class as the 1st argument. 2) Even when you fix this issue it still won't work. The TD you created is unsigned and doesn't provide all the necessary information. Use one of the utility methods from the eu.unicore.security.etd.ETDImpl to create your TD - it will set all the required things correctly. You can see ETDApi from the same package to see the sole programmer interface implemented by ETDImpl. Best regards Krzysztof ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Unicore-support mailing list Unicore-support@... https://lists.sourceforge.net/lists/listinfo/unicore-support |
| Free embeddable forum powered by Nabble | Forum Help |