[jboss-user] [JBossWS] - Re: JBoss WS security throws javax.xml.ws.WebServiceExceptio

2008-07-31 Thread helmutdoe
Hi, i had similiar problems. Make sure you are using only jboss jars. 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167914#4167914

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167914
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: ...Port does not contain operation meta data for: {http:

2008-07-04 Thread helmutdoe
Hi,

if i disable encryption and only sign my requests all is don completly 
successfull without occuring any kind of errors. Last night i tried downgrading 
again and used JEMS Installer: http://www.jboss.org/jemsinstaller/downloads/. 
After i had patched the included jbossws stack from 2.0.1 -> 2.0.4 i get a new 
error which was allready discussed in this forum.


  | [Reference] Verification failed for URI "#timestamp"
  | 11:14:36,296 ERROR [WSSecurityDispatcher] Internal error occured handling 
inbound message:
  | org.jboss.ws.extensions.security.exception.FailedCheckException: Signature 
is invalid.
  | at 
org.jboss.ws.extensions.security.operation.SignatureVerificationOperation.process(SignatureVerificationOperation.java:65)
  | at 
org.jboss.ws.extensions.security.SecurityDecoder.decode(SecurityDecoder.java:134)
  | 
  | 

Since i had downgraded from 3.0.2 to 2.0.4 disabeling timestamps 
 

arent allwoed any more.

I cant imagine that everyone who implements Webservices using jbossws - stack 
donot use encryption. If someone got this allready working please post an 
example :).

BIG Thanks and i hope that helps you 
timeagentess

Bye


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4162496#4162496

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4162496
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: ...Port does not contain operation meta data for: {http:

2008-07-03 Thread helmutdoe
Hi 
i tried several combinations of modifing jboss-wsse-*.xml


  | 
  | 
  | 
  | 
  | 
  | setValueResponse
  | 
  | 
  | 
  | 
  | setValueResponse
  | 
  | 
  | 
  | 
  | 
  | 
  |   
  |
  | 
  | 
  | 

unfortunately the result is the same. in this example 
http://wiki.jboss.org/wiki/WSSecurityComplexExample i saw that for respose 
elements a typeNamespace has been setted. Since i work with JAXWS i didnt found 
the annotation to activate this.

Thanks in advance  

if it is a Bug how can i report it?


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4162406#4162406

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4162406
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - ...Port does not contain operation meta data for: {http://ww

2008-07-02 Thread helmutdoe
Hi Community,

i know i had posted this problem allready in another thread but i seems to be a 
good choice to state this as standalone topic. 
What i need and what i had already done. I need to get working a simple 
Webservice using WSSecurity. Both Encryption and Signature shall be used. The 
Webservice should consumed by a standalone client.

So what i have done. Since i had read all tutorial from JBossWS and several 
other Documentation i got the folloing code for my Server Side.


  | /*
  |  * LottoEJBWS.java
  |  *
  |  * Created on 22. Juni 2008, 13:18
  |  *
  |  * To change this template, choose Tools | Template Manager
  |  * and open the template in the editor.
  |  */
  | 
  | package com.tools.wsse;
  | 
  | import java.util.Random;
  | import javax.ejb.Stateless;
  | 
  | import javax.jws.HandlerChain;
  | import javax.jws.WebMethod;
  | import javax.jws.WebService;
  | import javax.jws.soap.SOAPBinding;
  | 
  | import org.jboss.annotation.security.SecurityDomain;
  | import org.jboss.ws.annotation.EndpointConfig;
  | 
  | 
  | /**
  |  *
  |  * @author Wolfram
  |  **/
  | @WebService(name="LottoEJBWS", 
  | targetNamespace = "urn:com:tools:wsse",
  | serviceName = "LottoEJBWSService") 
  | @SOAPBinding(style = SOAPBinding.Style.DOCUMENT,
  | parameterStyle=SOAPBinding.ParameterStyle.WRAPPED, 
  | use=SOAPBinding.Use.LITERAL)
  | @EndpointConfig(configName="Standard WSSecurity Endpoint") 
  | public class LottoEJBWS {
  | @WebMethod()
  | public String get6from49() {
  | Random random = new Random();   
  | String result = "";
  | 
  | //cutted
  | 
  | return (result);
  | }
  | 
  | /**
  |  * Web service operation
  |  */
  | @WebMethod()
  | public boolean setValue(String name, int age) {
  | System.out.println(""); 
  | System.out.println("Name: " + name + " Age: " + age ); 
  | System.out.println(""); 
  | return true;
  | }
  | }
  | 

web.xml

  | 
  | http://www.w3.org/2001/XMLSchema-instance"; 
xmlns="http://java.sun.com/xml/ns/javaee"; 
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; 
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; id="WebApp_ID" version="2.5">
  |  
  | jbossws-config-name
  | Standard WSSecurity Endpoint 
  |
  |   LottoWSSE-war
  |  
  | LottoEJBWS
  | com.tools.wsse.LottoEJBWS
  | 1
  | 
  | 
  | LottoEJBWS
  | /LottoEJBWS
  | 
  | 
  | 30
  | 
  |   
  | index.html
  | index.htm
  | index.jsp
  | default.html
  | default.htm
  | default.jsp
  |   
  | 
  | 

jboss-wsse-client.xml

http://www.jboss.com/ws-security/config"; 
  | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  | xsi:schemaLocation="http://www.jboss.com/ws-security/config 
  | http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd";>
  |
  | 
  | 
  | 
  | 
  | 
  |  
  | 
  | 

jboss-wsse-server.xml

http://www.jboss.com/ws-security/config"; 
  | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  | xsi:schemaLocation="http://www.jboss.com/ws-security/config 
  | http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd";>
  |
  | 
  | 
  | 
  | 
  | 
  |  
  | 
  | 

Since @EndpointConfig points to 
AS_HOME/server/default/deploy/jbosswss.sar/META-INF no need to includes 
standard-jaxws-endpoint-config.xml.
All the above described in addition with Trust + Keystore is packed as war file 
and deployed successfull.

The Client Side is implemented as shown below. To get Service classes etc. 
wsconsume -k  was used. All automatically generated files arent 
shown. So the Cleint looks like...


  | /*
  |  * Main.java
  |  *
  |  * Created on 22. Juni 2008, 18:20
  |  *
  |  * To change this template, choose Tools | Template Manager
  |  * and open the template in the editor.
  |  */
  | 
  | package com.tools.wsse;
  | 
  | import java.io.File;
  | import java.net.URL;
  | import java.util.ArrayList;
  | import java.util.Iterator;
  | import java.util.List;
  | import javax.jws.HandlerChain;
  | import javax.xml.namespace.QName;
  | import javax.xml.ws.BindingProvider;
  | import javax.xml.ws.Service;
  | import javax.xml.ws.WebServiceClient;
  | import javax.xml.ws.handler.Handler;
  | import org.apache.log4j.Logger;
  | import org.apache.log4j.PropertyConfigurator;
  | import org.jboss.ws.core.StubExt;
  | import org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient;
  | import org.jboss.ws.extensions.addressing.jaxws.WSAddressingClientHandler;
 

[jboss-user] [JBossWS] - Re: Unable to create a WSClient that uses jboss-wsse-client.

2008-07-01 Thread helmutdoe
I am using JBoss 4.2.2 GA + jbossws-3.0.2 GA.
i tried to downgrade my System using the same AS and jbossws-2.0.3 but the 
error resists. 


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161786#4161786

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161786
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Port does not contain operation meta data for: {http://www.w

2008-07-01 Thread helmutdoe
Hi i have a similiar problem
using a client which should be able to encrypt soaprequests


  | javax.xml.ws.soap.SOAPFaultException: Endpoint {urn:com:tools:wsse}... Port 
does not contain operation meta data for: 
{http://www.w3.org/2001/04/xmlenc#}EncryptedData
  | at 
org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.getSOAPFaultException(SOAPFaultHelperJAXWS.java:72)
  | at 
org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.throwFaultException(SOAP11BindingJAXWS.java:109)
  | at 
org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:579)
  | at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:383)
  | at 
org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:304)
  | at 
org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:172)
  | at 
org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:152)
  | at $Proxy9.get6From49(Unknown Source)
  | 
  | 
did the community solve this problem?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161676#4161676

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161676
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: Need help : JBossWS Security!

2008-06-30 Thread helmutdoe
Hi all, 

yes think you were right i had mixed RPC und JAXWS. Also after a while i was 
able to fix the  -Tag missing by using the folloing code


  | import java.io.File;
  | import java.net.MalformedURLException;
  | import java.net.URL;
  | import java.util.ArrayList;
  | import java.util.List;
  | import javax.xml.namespace.QName;
  | import javax.xml.ws.BindingProvider;
  | import javax.xml.ws.Service;
  | import javax.xml.ws.handler.Handler;
  | import org.jboss.ws.core.StubExt;
  | import org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient;
  | import org.jboss.ws.extensions.addressing.jaxws.WSAddressingClientHandler;
  | 
  | ...
  |  
System.setProperty("org.jboss.ws.wsse.keyStore","src/WEB-INF/keystore.jks");
  | System.setProperty("org.jboss.ws.wsse.trustStore", 
"src/WEB-INF/cacerts.jks");
  | System.setProperty("org.jboss.ws.wsse.keyStorePassword", 
"changeit");
  | System.setProperty("org.jboss.ws.wsse.trustStorePassword", 
"changeit");
  | System.setProperty("org.jboss.ws.wsse.keyStoreType", "jks");
  | System.setProperty("org.jboss.ws.wsse.trustStoreType", "jks");  
  | 
  | 
  | 
  | // Create Service Binding
  | URL url = new 
URL("http://localhost:8080/LottoBean/LottoEJBWS?wsdl";);
  | QName qName = new QName("urn:com:tools:wsse", 
"LottoEJBWSService");
  | 
  | //LottoEJBWSService service = new LottoEJBWSService(url,qName);
  | LottoEJBWS port = Service.create(url, 
qName).getPort(LottoEJBWS.class);
  | 
  | ((StubExt) port).setSecurityConfig(new 
File("src/META-INF/jboss-wsse-client.xml").toURI().toURL().toExternalForm());
  | ((StubExt) port).setConfigName("Standard WSSecurity Client");
  | 
  | BindingProvider binding = (BindingProvider)port;
  | List handlerChain = new ArrayList();
  |// handlerChain.add(new WSAddressingClientHandler());
  | handlerChain.add(new WSSecurityHandlerClient());
  | handlerChain.add(new LogHandler());
  | binding.getBinding().setHandlerChain(handlerChain);
  | 

With this code and my configured handlers i be able to sign messages. If i add 
encryption to the WebService Endponit i run in an other Exception.


  | Endpoint {urn:com:tools:wsse}LottoEJBWSPort does not contain operation meta 
data for: {http://www.w3.org/2001/04/xmlenc#}EncryptedData
  | javax.xml.ws.soap.SOAPFaultException: Endpoint 
{urn:com:tools:wsse}LottoEJBWSPort does not contain operation meta data for: 
{http://www.w3.org/2001/04/xmlenc#}EncryptedData
  | at 
org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.getSOAPFaultException(SOAPFaultHelperJAXWS.java:72)
  | at 
org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.throwFaultException(SOAP11BindingJAXWS.java:109)
  | at 
org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:579)
  | 
  | 

The code below shows my xml handler files.

standard-jaxws-client-config.xml



  | 
  |   
  | Standard WSSecurity Client
  | 
  |   
  | ##SOAP11_HTTP 
##SOAP11_HTTP_MTOM
  | 
  |   
WSSecurityHandlerOutbound
  |   
org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient
  | 
  |   
  | 
  |   
  | 


standard-jaxws-endpoint-config.xml


  | 
  | 
  | 
  | Standard WSSecurity Endpoint
  | 
  |   
  | ##SOAP11_HTTP 
##SOAP11_HTTP_MTOM
  | 
  |   WSSecurity Handler
  |   
org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer
  | 
  | 
  |   Recording Handler
  |   
org.jboss.wsf.framework.invocation.RecordingServerHandler
  | 
  |   
  | 
  |   
  | 

jboss-wsse-client.xml


  | http://www.jboss.com/ws-security/config"; 
  | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  | xsi:schemaLocation="http://www.jboss.com/ws-security/config 
  | http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd";>
  | 
  | 
  |
  | 
  | 
  |  
  | 
  | 
  | 

jboss-wsse-server.xml


  |   http://www.jboss.com/ws-security/config"; 
  | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  | xsi:schemaLocation="http://www.jboss.com/ws-security/config 
  | 
http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd";>
  | WEB-INF/keystore.jks
  | changeit
  | jks
  | WEB-INF/cacerts.jks
  | changeit
  | 
  | 
  |
  | 
  | 
  | 
  | 
  | 
  | 

Thnx for any hints



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161537#4161537

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=41615

[jboss-user] [JBossWS] - Re: Need help : JBossWS Security!

2008-06-25 Thread helmutdoe
The  missing occurs if i remove the followin line on my code.

 ((StubExt) ksb).setConfigName("Standard WSSecurity Client");
  | 

And this is traceable to me because then the client application do not know how 
he should configure the SecurityHandlers. Since i had debugged the client code 
i was able to locate when the exception occurs.


  | ((StubExt) ksb).setSecurityConfig("META-INF/jboss-wsse-client.xml");
  | 

I have a problem on understanding how the client side gets this xml. Since 
Webservices have to be interoperable only the wsdl should be public.

Im looking forward to fix these problems

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160606#4160606

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4160606
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: Need help : JBossWS Security!

2008-06-25 Thread helmutdoe
"helmutdoe" wrote : Same Problem here ...
  | 
  | $Proxy29 cannot be cast to org.jboss.ws.core.StubExt
  | 
  | did someone solve this problem?

Im using JBoss AS 4.2.2 GA & JBossWS native 3.0.2 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160552#4160552

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4160552
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: Need help : JBossWS Security!

2008-06-25 Thread helmutdoe
Same Problem here ...

$Proxy29 cannot be cast to org.jboss.ws.core.StubExt

did someone solve this problem?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160445#4160445

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4160445
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user