[jboss-user] [JBossWS] - Re: WebService Client with MTOM - WSDL

2009-07-08 Thread MichaW
attachmentservice_1.wsdl

http://tempuri.org/"; 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
 xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata"; 
xmlns:tns="http://tempuri.org/"; 
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"; 
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"; 
xmlns:i0="http://ebus.onefox.nl/2009/2/4"; 
xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract"; 
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"; 
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"; 
xmlns:wsa10="http://www.w3.org/2005/08/addressing"; 
xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex";>
  http://ebus.onefox.nl/2009/2/4"; 
location="AttachmentService.wsdl"/>
  
  

  http://wkst02.onefox.nl/ebus/AttachmentService.svc"/>

  



AttachmentService.wsdl

http://ebus.onefox.nl/2009/2/4"; 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
 xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata"; 
xmlns:tns="http://ebus.onefox.nl/2009/2/4"; 
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"; 
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"; 
xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract"; 
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"; 
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"; 
xmlns:wsa10="http://www.w3.org/2005/08/addressing"; 
xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex";>
  

  
http://schemas.xmlsoap.org/ws/2004/09/policy/optimizedmimeserialization"/>
  

  
  
http://ebus.onefox.nl/2009/2/4/Imports";>
  http://ebus.onefox.nl/2009/2/4"/>
  http://ebus.onefox.nl/2009/2/4/attachment"/>
  http://schemas.microsoft.com/2003/10/Serialization/"/>
  http://ebus.onefox.nl/2009/2/4/data"/>
  http://schemas.microsoft.com/Message"/>

  
  
  

http://ebus.onefox.nl/2009/2/4/attachment"/>
  
  
http://ebus.onefox.nl/2009/2/4/attachment"/>
  
  
http://ebus.onefox.nl/2009/2/4/attachment"/>
  
  
http://ebus.onefox.nl/2009/2/4/attachment"/>
  
  

http://ebus.onefox.nl/2009/2/4/attachment"/>
  
  
  
http://ebus.onefox.nl/2009/2/4/attachment"/>
  
  

  http://ebus.onefox.nl/2009/2/4/AttachmentService/ReadDocument"; 
name="ReadDocumentMsg" message="tns:ReadDocumentMsg"/>
  http://ebus.onefox.nl/2009/2/4/AttachmentService/ReadDocumentResponse";
 name="AttachmentServiceReadDocumentResMsg" 
message="tns:AttachmentServiceReadDocumentResMsg"/>


  http://ebus.onefox.nl/2009/2/4/AttachmentService/WriteDocument"; 
name="WriteDocumentMsg" message="tns:WriteDocumentMsg"/>
  http://ebus.onefox.nl/2009/2/4/AttachmentService/WriteDocumentResponse";
 name="AttachmentServiceWriteDocumentResMsg" 
message="tns:AttachmentServiceWriteDocumentResMsg"/>

  
  

http://schemas.xmlsoap.org/soap/http"/>

  http://ebus.onefox.nl/2009/2/4/AttachmentService/ReadDocument"; 
style="document"/>
  



  
  


  


  http://ebus.onefox.nl/2009/2/4/AttachmentService/WriteDocument"; 
style="document"/>
  



  
  


  

  



AttachmentService.xsd


http://ebus.onefox.nl/2009/2/4/data"; 
xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns:tns="http://ebus.onefox.nl/2009/2/4/data";>
  

  
  
  

  
  
  

  

  
  
  

  
  

  
  
  

  

  
  
  

  
  

  
  



AttachmentService_1.xsd


http://ebus.onefox.nl/2009/2/4"; 
xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns:tns="http://ebus.onefox.nl/2009/2/4";>
  http://ebus.onefox.nl/2009/2/4/data"/>
  http://ebus.onefox.nl/2009/2/4/data"/>


AttachmentService_1_2.xsd


http://schemas.microsoft.com/2003/10/Serialization/"; 
xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/";>
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  

  
  
  

  
  
  

  
  
  

  

  
  
  
  


AttachmentService_1_2_3.xsd


http://ebus.onefox.nl/2009/2/4/attachment"; 
xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns:tns="http://ebus.onefox.nl/2009/2/4/attachment";>
  http://ebus.onefox.nl/2009/2/4/data"/>
  ht

[jboss-user] [JBossWS] - WebService Client with MTOM

2009-07-08 Thread MichaW
Hi,

I'm using jbossws-native-2.0.1 (default for the AS 4.2.2.GA).
I've used ws-consume on a wsdl from a thirdparty (see attached file).

When I try the create the service 

Service service = Service.create(getWsdlUrl(), getServiceName());

I get an error
 Caused by: org.jboss.ws.WSException: Cannot deploy null policy!
  | at 
org.jboss.ws.extensions.policy.deployer.PolicyDeployer.deployClientSide(PolicyDeployer.java:146)
  | at 
org.jboss.ws.extensions.policy.metadata.PolicyMetaDataBuilder.deployPolicyClientSide(PolicyMetaDataBuilder.java:310)
  | at 
org.jboss.ws.extensions.policy.metadata.PolicyMetaDataBuilder.deployPolicy(PolicyMetaDataBuilder.java:277)
  | at 
org.jboss.ws.extensions.policy.metadata.PolicyMetaDataBuilder.processPolicies(PolicyMetaDataBuilder.java:236)
  | at 
org.jboss.ws.extensions.policy.metadata.PolicyMetaDataBuilder.processPolicyExtensions(PolicyMetaDataBuilder.java:193)
  | at 
org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.buildMetaData(JAXWSClientMetaDataBuilder.java:93)
  | at 
org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.(ServiceDelegateImpl.java:131)
  | at 
org.jboss.ws.core.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:61)
  | at javax.xml.ws.Service.(Service.java:83)
  | at javax.xml.ws.Service.create(Service.java:721)
  | at 
nl.denhaag.gbd.services.ebus.attachmentservice.client.AttachmentServiceClient.initEndpoint(AttachmentServiceClient.java:63)
  | ... 43 more

When I use the same code on a webservice that does not use MTOM everything is 
working fine. 

What should I do to provide a policy for MTOM on the clientside?

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

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


[jboss-user] [JBossWS] - Using the jboss-ws-security with signature breaks when the l

2008-01-10 Thread MichaW
We have developed a webservice and want to use a signature as security. This 
sometimes gives an error: Signature is invalid.
It appears to be related to the loglevel of the org.jboss.ws package. 
We have done some testing with different levels of logging on that package. 
Here is what we get:
Client log level: DEBUG  and  service log level: INFO   throws exception on the 
client side.
Client log level: DEBUG  and  service log level: DEBUG  works fine.
Client log level: INFO   and  service log level: DEBUG  throws exception on the 
service side.
Client log level: INFO   and  service log level: INFO   throws exception on the 
service side.


We have tested this with different environments
application server: jboss-4.2.1.GA or jboss-4.2.2.GA 
ws: jbossws-native-2.0.2.GA or jbossws-native-2.0.1.GA


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/wsse.keystore
   jbossws
   WEB-INF/wsse.truststore
   jbossws
   
  
  
 
  
   




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";>
   WEB-INF/wsse.keystore
   jbossws
   WEB-INF/wsse.truststore
   jbossws
  
 
 

 
  




Service side exception:

09:54:04,781 WARN  [Reference] Verification failed for URI 
"#element-64-1199955244687-5289337"
09:54:04,781 INFO  [Reference] Verification successful for URI "#timestamp"
09:59:56,562 ERROR [WSSecurityDispatcher] Internal error occured handling 
inbound message:
org.jboss.ws.extensions.security.FailedCheckException: Signature is invalid.
at 
org.jboss.ws.extensions.security.SignatureVerificationOperation.process(SignatureVerificationOperation.java:59)
at 
org.jboss.ws.extensions.security.SecurityDecoder.decode(SecurityDecoder.java:123)
at 
org.jboss.ws.extensions.security.SecurityDecoder.decode(SecurityDecoder.java:185)
at 
org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:147)
at 
org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:78)
at 
org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer.handleInbound(WSSecurityHandlerServer.java:41)
at 
org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55)
at 
org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295)
at 
org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140)
at 
org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:87)
at 
org.jboss.ws.core.server.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:126)
at 
org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:170)
at 
org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:414)
at 
org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:273)
at 
org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:190)
at 
org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:123)
at 
org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at 
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.j