[jboss-user] [JBossWS] - Problem calling a web service that requires empty input

2007-03-15 Thread zhijun
I'm trying to call a Web service using a method that doesn't take an input 
parameter. The WSDL for the input parameter is this:

  | 
  |  
  | 
  | 

I'm using call.invoke(Object[]) method to call it. I'm always getting the 
following ArrayIndexOutOfBoundsException no matter how I manipulate the 
Object[] for this call. It feels like JBossWS is having problem with this 
situation/WSDL description.

2007-03-15 10:48:18,870 DEBUG [org.jboss.ws.soap.MessageContextAssociation] 
pushMessageContext: [EMAIL PROTECTED]
  | 2007-03-15 10:48:18,916 ERROR [org.jboss.ws.jaxrpc.CallImpl] Call 
invocation failed with unkown Exception
  | java.lang.ArrayIndexOutOfBoundsException: 0
  | at 
org.jboss.ws.binding.EndpointInvocation.initInputParams(EndpointInvocation.java:300)
  | at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:642)
  | at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404)
  | at org.apache.jsp.TestWS1_jsp._jspService(TestWS1_jsp.java:90)
  | at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
  | at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
  | at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | ... ...
  | 

Is this a know issue or am I doing something wrong?

Thanks!

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

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


[jboss-user] [JBossWS] - Re: How can I do mutual SSL when using JBoss as Web service

2007-03-14 Thread zhijun
I have tried everything I can think of. 
- Added the -Djavax.net.ssl.keystore= properties in my command to start the 
JBoss JVM.
- Added the following in my web.xml file 
anonymous wrote :   
  | RemoteWebService
  | javax.xml.rpc.Service
  | RemoteWebService.wsdl
  | 
META-INF/jaxrpc-mapping.xml
  | 
  | 
  | com.zzz.MyWebService
  | 
  | 
  | javax.net.ssl.keyStore
  | my.keystore
  | 
  | 
  | 
javax.net.ssl.keyStorePassword
  | password
  | 
  | 
  | javax.net.ssl.trustStore
  | keystore.trust
  | 
  | 
  | 
javax.net.ssl.trustStorePassword
  | password
  | 
  | 
  | 
- I added the following lines in my Web service client that will run in JBoss
System.setProperty("javax.net.ssl.keyStore", 
"/opt/jboss/jas405/server/myserver/conf/my.keystore");
  | System.setProperty("javax.net.ssl.keyStorePassword", 
"password");   
  | System.setProperty("javax.net.ssl.trustStore", 
"/opt/jboss/jas405/server/myserver/conf/trust.keystore");
  | System.setProperty("javax.net.ssl.trustStorePassword", 
"password");

Now when I ran my Web service client in JBoss and when I tried to call the web 
service, I continued to get the following error in server log:


2007-03-14 10:37:31,054 DEBUG [org.jboss.remoting.Client] invoke called, but 
our invoker is disconnected, discarding and fetching another fresh invoker for: 
InvokerLocator [https://:1443/.../services/MyWebService]
  | 2007-03-14 10:37:31,054 DEBUG 
[org.jboss.remoting.transport.http.ssl.HTTPSClientInvoker] connect called for: 
[EMAIL PROTECTED]
  | 2007-03-14 10:37:31,063 DEBUG 
[org.jboss.remoting.transport.http.ssl.HTTPSClientInvoker] Setting request 
header with SOAPAction : ""
  | 2007-03-14 10:37:31,063 DEBUG 
[org.jboss.remoting.transport.http.ssl.HTTPSClientInvoker] Setting request 
header with Content-Type : text/xml; charset=UTF-8
  | 2007-03-14 10:37:31,098 DEBUG [org.jboss.ws.soap.SOAPContentElement] 
Transitioning to dom-valid state, MTOM disabled
  | 2007-03-14 10:37:31,132 DEBUG 
[org.jboss.remoting.transport.http.ssl.HTTPSClientInvoker] Error invoking http 
client invoker.
  | org.jboss.ws.WSException: Invalid HTTP server response [403] - Forbidden
  | at 
org.jboss.ws.binding.soap.SOAPMessageUnMarshaller.read(SOAPMessageUnMarshaller.java:73)
  | at 
org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:175)
  | at 
org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:81)
  | at 
org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
  | at org.jboss.remoting.Client.invoke(Client.java:525)
  | at org.jboss.remoting.Client.invoke(Client.java:488)
  | at 
org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:189)
  | at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:687)
  | at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404)
  | at org.apache.jsp.TestWS1_jsp._jspService(TestWS1_jsp.java:86)
  | at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334) 
  | at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
  | at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | at 
org.jboss.web.tomcat.security.Jacc

[jboss-user] [JBossWS] - Re: How can I do mutual SSL when using JBoss as Web service

2007-03-13 Thread zhijun
Actually I'm only running the Web service client on JBoss. The Web service 
itself is running remotely on a Sun Solaris environment.

Thanks.

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

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


[jboss-user] [JBossWS] - Re: How can I do mutual SSL when using JBoss as Web service

2007-03-13 Thread zhijun
Actually since I'm running my Web service client in JBoss as a JSP page, where 
should I set up the keystore file and password to use as a Web service client? 

The set up in server.xml is apparently for managing the keys and certificates 
for JBoss as a server.

Thanks!

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

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


[jboss-user] [JBossWS] - Re: How can I do mutual SSL when using JBoss as Web service

2007-03-13 Thread zhijun
Thanks for the information.

If I have multiple certificates in the keystore, how do I specify which one to 
use? 

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

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


[jboss-user] [JBossWS] - How can I do mutual SSL when using JBoss as Web service clie

2007-03-13 Thread zhijun
Hi,

I'm running a Web Service client on JBoss 4.0.5 and JBossWS1.0.4GA. 

The Web service I'm trying to consume requires mutual SSL authentication.

I have created keytore, with the private key, the certificate in it. I also 
added the Web service provider's certificate to this keystore as a trusted 
certificate.

I have configured my server.xml file to include the following:

  

But I guess this is not good enough (I don't feel that way either). So when I 
called the service, the error message said that my request did not present a 
certificate.

How do I configure my Web service client, or write some code, to make sure that 
my web service request (to a https URL) will present a client certificate? 

I saw that you could specify user ID and password in the  tag if 
you are using basic authentication. But I need certificate-based authentication 
and couldn't find an example. 

SOAP signing doesn't help me either because the Web service provider expects 
the certificate to be presented during the SSL handshake.

Thanks!


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

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


[jboss-user] [JBossWS] - Re: xml encription and signature in JBossWS

2007-01-22 Thread zhijun
We have JBoss 4.0.5, which includes JBossWS.

>From the following page
http://labs.jboss.com/portal/jbossws/user-guide/en/html/wssecurity.html

it looks like I should be able to do XML signing of Web Service requests. Is it 
true or do I need additional components to digitally sign my SOAP request?

Thanks.

"[EMAIL PROTECTED]" wrote : WS-Security is only available in HEAD, where Apache 
Axis does not enter the game. There is no backport to jboss-4.0.x, yet.

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

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