[jboss-user] [JBossWS] - Re: wscompile - Restricted base='xsd:string' mapping issue

2006-11-12 Thread zarzar
I'm also having the same simple type restriction problem on jboss-4.0.5.GA with 
code generated by wstools on a doc/literal wsdl.

I found an article on the wiki on annotations. 
  http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossXB_JBXBAnnotations
The "jbxb:value" section shows how to specify you own marshalling and 
unmarshalling code. But I'm not sure if this is implemented yet. It didn't work 
for me.

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

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


[jboss-user] [JBossWS] - WS-Security: keystores and truststores

2006-11-09 Thread zarzar
Hi,

I'm using WS-Security to sign and encrypt SOAP messages. I'm signing with the 
sender's private key and encrypting with the receiver's public key.


  |   
  | 
  | 
  |   
  | 

The problem is that JBoss doesn't look for the receiver's cert in the 
truststore, but in the keystore. My understanding of keystores and truststores 
is that keystores contain your own private and public keys, while truststores 
contain public certs of others you trust. So I'm wondering why I've got to put 
certs of others that I want to send to in my keystore.

Is there a way around this? Or does the keystore have to be a duplicate of the 
truststore plus your own private key?

Thanks for any help.

Zar

 


 

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

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


[jboss-user] [JBossWS] - SOAP 1.2 WSDL

2006-11-07 Thread zarzar
Hi,

I'm having problems building a web service using a WSDL with a SOAP 1.2 
binding. (The WSDL is given at the bottom.) The web service works fine when 
using the SOAP 1.1 binding. Problems arise only when changing to SOAP 1.2. I'm 
using JBoss version 4.0.5.GA and generating code from WSDL using wstools. There 
are problems at both the client- and server- side. 

On the client-side, the code doesn't complain about the SOAP 1.2 WSDL, but 
sends the SOAP message using the SOAP 1.1 namespace.

On the server-side, I get a NullPointerException when I deploy the web service 
war file. The stack trace is given below.

Is there a SOAP 1.2 setting to turn on that I'm missing?

Thanks,
Zar



=
Server-side stack trace 

java.lang.NullPointerException
at java.net.URI$Parser.parse(URI.java:3010)
at java.net.URI.(URI.java:578)
at org.jboss.ws.deployment.AbstractMetaDataBuilder.getUriScheme(Abstract
MetaDataBuilder.java:277)
at org.jboss.ws.deployment.AbstractMetaDataBuilder.replaceAddressLocatio
n(AbstractMetaDataBuilder.java:166)
at org.jboss.ws.deployment.JSR109ServerMetaDataBuilder.buildMetaData(JSR
109ServerMetaDataBuilder.java:210)
at org.jboss.ws.deployment.ServiceEndpointDeployer.create(ServiceEndpoin
tDeployer.java:78)
at org.jboss.ws.integration.jboss.DeployerInterceptor.create(DeployerInt
erceptor.java:80)
at org.jboss.ws.integration.jboss.DeployerInterceptorJSE.create(Deployer
InterceptorJSE.java:74)
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.
create(SubDeployerInterceptorSupport.java:180)
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce
ptor.java:91)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy39.create(Unknown Source)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
or.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
BeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy8.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
tScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
canner.java:610)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
loop(AbstractDeploymentScanner.java:274)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
run(AbstractDeploymentScanner.java:225)

===
WSDL


  | http://schemas.xmlsoap.org/wsdl/";
  |   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap12/";
  |   xmlns:xsd="http://www.w3.org/2001/XMLSchema";
  |   xmlns:tns="http://www.example.com/Example";
  |   xmlns:xmime="http://www.w3.org/2005/05/xmlmime";
  |   targetNamespace="http://www.example.com/Example";
  |   name="Example"
  |   >
  | 
  |   
  | http://www.w3.org/2001/XMLSchema";
  |   targetNamespace="http://www.example.com/Example";
  |   elementFormDefault="qualified"
  |   >
  | 
  |   
  | 
  |   
  | 
  |   
  | 
  |   
  | 
  |   
  | 
  |   
  | 
  |   
  | 
  |   
  | 
  | 
  |   
  | 
  |   
  | 
  |   
  | 
  |   
  | 
  |   
  | 
  |   
  | 
  |   
  |   
  | 
  |   
  | 
  |   
  | http://schemas.xmlsoap.org/soap/http"/>
  | 
  |   http://www.example.com/Example/Echo"/>
  |   
  | 
  |   
  |   
  | 
  |   
  | 
  |