[JBossWS] - wsse.keystore: How to create?
by Juergen.Zimmermann
I extended my app with WS-Security and signatures. Using wsse.keystore and wsse.truststore from the JBossWS examples works fine.
However, I don't know how to create my own keystore and truststore. I tried these commands -- without success. Any hint is appreciated!
keytool -genkeypair -alias wsse -keyalg RSA -keysize 2048 -sigalg SHA1withRSA -dname "CN=..." -keypass jbossws -storetype JKS -keystore testKeystore.jks -storepass jbossws -v
|
| keytool -exportcert -file test.cer -alias wsse -storetype JKS -keystore testKeystore.jks -storepass jbossws -v
|
| keytool -importcert -alias wsse -file test.cer -keypass jbossws -noprompt -storetype JKS -keystore testTruststore.jks -storepass jbossws -v
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064447#4064447
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064447
17 years, 5 months
[JBossWS] - Re: Unsupported content type: application/x-www-form-urlenco
by florian79
yes it sounds like a problem with the content-type. But I set the HTTP- HEADER with
'Content-Type':'text/xml'
And I tried the following encode variations:
plain:
<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><getHalloWorld xmlns="http://hibernate.base.dooris.com/jaws"></getHalloWorld></soap:Body></soap:Envelope>
escape:
%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csoap%3AEnvelope%20xmlns%3Asoap%3D%22http%3A//schemas.xmlsoap.org/soap/envelope/%22%3E%3Csoap%3ABody%3E%3CgetHalloWorld%20xmlns%3D%22http%3A//hibernate.base.dooris.com/jaws%22%3E%3C/getHalloWorld%3E%3C/soap%3ABody%3E%3C/soap%3AEnvelope%3E
encodeURI:
%3C?xml%20version=%221.0%22%20encoding=%22UTF-8%22?%3E%3Csoap:Envelope%20xmlns:soap=%22http://schemas.xmlsoap.org/soap/envelope/%22%3E%3Csoap:Body%3E%3CgetHalloWorld%20xmlns=%22http://hibernate.base.dooris.com/jaws%22%3E%3C/getHalloWorld%3E%3C/soap:Body%3E%3C/soap:Envelope%3E
and encodeURIComponent:
%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csoap%3AEnvelope%20xmlns%3Asoap%3D%22http%3A%2F%2Fschemas.xmlsoap.org%2Fsoap%2Fenvelope%2F%22%3E%3Csoap%3ABody%3E%3CgetHalloWorld%20xmlns%3D%22http%3A%2F%2Fhibernate.base.dooris.com%2Fjaws%22%3E%3C%2FgetHalloWorld%3E%3C%2Fsoap%3ABody%3E%3C%2Fsoap%3AEnvelope%3E
my HTTP-HEADER :
| Request Headers
| Host 18.nvmodules.netvibes.com
| User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
| Accept text/javascript, text/html, application/xml, text/xml, */*
| Accept-Language de
| Accept-Encoding gzip,deflate
| Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
| Keep-Alive 300
| Connection close
| Content-Type text/xml
| X-Requested-With XMLHttpRequest
| Referer http://18.nvmodules.netvibes.com/api/uwa/frame/uwa_netvibes.php?id=18&mod...
| Content-Length 324
| Pragma no-cache
| Cache-Control no-cache
|
always the same exception with IE and MOZILLA
is there any example in the web, how to call a jboss-webservice by browser?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064215#4064215
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064215
17 years, 5 months
[JBossWS] - No way to write a working client
by GenesisD
Hi all,
I'm going crazy!!!!!
I'm trying to write a f***ing client for a web service using:
jboss-4.0.5GA
jbossws-1.2.1.GA
the service I deployed is the "jax-ws/WebResult" of jbossws-samples-1.2.1.GA/jbossws-samples-1.2.1.GA" I downloaded for your site.
The service results correctly deployed.
NOW, instead of using the non-sense client tomas diesler wrote to consume that damned service, I tryied to write another one, more simple.
The client I wrote is:
| import java.net.URL;
|
| import javax.xml.namespace.QName;
|
| import org.jboss.test.ws.jaxws.samples.webresult.CustomerRecord;
| import org.jboss.test.ws.jaxws.samples.webresult.CustomerService;
| import org.jboss.test.ws.jaxws.samples.webresult.USAddress;
|
| public class Client {
| public static void main(String[] args) throws Exception {
| System.out.println("Start");
|
| javax.xml.ws.Service factoryTest = javax.xml.ws.Service.create(new URL("http://sviluppo-013:8080/jaxws-samples-webresult?wsdl"),
| new QName("http://webresult.samples.jaxws.ws.test.jboss.org/", "CustomerServiceImplService"));
| CustomerService proxyTest = (CustomerService)factoryTest.getPort(CustomerService.class);
| CustomerRecord ritorno = (CustomerRecord)proxyTest.locateCustomer("nome","cognome", new USAddress());
| System.out.println("ritorno del secondo servizio "+ritorno.getFirstName());
| }
| }
is some one able to tell me if it is correct or not?
the error that running this f***ing client shows is:
| Start
| Exception in thread "main" javax.xml.ws.WebServiceException: java.lang.NoSuchMethodError: org.jboss.ws.core.utils.JBossWSEntityResolver.getEntityMap()Ljava/util/Map;
| at javax.xml.ws.Service.create(Service.java:731)
| at uk.co.regdeveloper.webservice.Client.main(Client.java:35)
| Caused by: java.lang.NoSuchMethodError: org.jboss.ws.core.utils.JBossWSEntityResolver.getEntityMap()Ljava/util/Map;
| at org.jboss.ws.tools.JavaToXSD.resolveNamespaceURI(JavaToXSD.java:211)
| at org.jboss.ws.tools.JavaToXSD.parseSchema(JavaToXSD.java:172)
| at org.jboss.ws.tools.wsdl.WSDL11Reader.processTypes(WSDL11Reader.java:271)
| at org.jboss.ws.tools.wsdl.WSDL11Reader.processDefinition(WSDL11Reader.java:158)
| at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:131)
| at org.jboss.ws.metadata.umdm.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:321)
| at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.buildMetaData(JAXWSClientMetaDataBuilder.java:83)
| at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.<init>(ServiceDelegateImpl.java:140)
| at org.jboss.ws.core.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:61)
| at javax.xml.ws.Service.<init>(Service.java:83)
| at org.jboss.ws.core.jaxws.client.ServiceExt.<init>(ServiceExt.java:60)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
| at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
| at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
| at javax.xml.ws.Service.create(Service.java:726)
| ... 1 more
|
What the hell does it means??????
I know well that org.jboss.ws.core.utils.JBossWSEntityResolver class has not that method... so WHY my client tryes to call it?
I read thousands of examples...hundreds of books and documantation, but I was not able to write a damned client for a very simple web service.
So I'm so sorry for my words, but I'm going crazy!!!!
Plz help me: in name of my mental health!!!!!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063940#4063940
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063940
17 years, 5 months
[JBossWS] - ClassnotFoundError while trying to use wsrunclient
by koganty
I am trying to run a WebService client generated using wsconsume from JBoss 4.0.5 running on JDK 1.6 using wsrunclient and am running into this error. I do have jaxb-impl.jar in the classpath. How do I ger arounf this issue.
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/xml/bind/api/
TypeReference
at com.sun.xml.ws.model.RuntimeModeler.processDocWrappedMethod(RuntimeMo
deler.java:571)
at com.sun.xml.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java
:492)
at com.sun.xml.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:
334)
at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.
java:220)
at com.sun.xml.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java
:588)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.jav
a:291)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.jav
a:274)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.jav
a:267)
at javax.xml.ws.Service.getPort(Service.java:92)
at com.extremenetworks.epicenter.client.webservice.ClientManagerBeanServ
ice.getClientManagerBeanPort(ClientManagerBeanService.java:51)
at com.extremenetworks.epicenter.client.webservice.Test.main(Test.java:2
2)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063767#4063767
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063767
17 years, 5 months