You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Shaoguang Cong <sc...@yahoo.com> on 2007/04/05 20:12:03 UTC
[AXIS2] Issues in using WSDL2JAVA, AxisFault and SSL
I posted couple of my questions, but got no complete answer. I'd very appreciate if anyone of the Axis 2 dev can look at it.
1. The generated server skeleton interface doesn't have "throws java.rmi.RemoteException" anymore. So I cannot throw AxisFaut directly. Should I convert all server exception to RuntimeException? Is there any impact on how client consume the exception?
2. In Axis 1.3, EPR is defined like http://hostname:port/axis/services/<WSDL:Port>
Now for Axis 2, EPR has to be something like http://hostname:port/axis2/services/<WSDL:Service>
Why makes this change? Is there any configuration option on the server side to make it still work for clients using the Axis1.3 version of EPR?
3. SSL connection: Is there a way to trust all certificates - not need to add server certificates to client trustStore? I did that for Axis 1.3 by System.setProperty("axissocketSecureFactory", "....SunFakeTrustSocketFactory"). It looks AXis 2 is asking to use SecureSocketFactory (or SSLProtocolSocketFactory). I wonder if there's a similar mechanism for Axis 2 that can let you bypass the validation. Or is there a way to access the HttpConnection from Axis 2 client stub?
Thank you.
Shaoguang
Shaoguang Cong <sc...@yahoo.com> wrote:
Date: Tue, 3 Apr 2007 12:02:42 -0700 (PDT)
From: Shaoguang Cong <sc...@yahoo.com>
Subject: [AXIS2] WSDL2JAVA generated interface code is missing RemoteException
To: axis-user@ws.apache.org
Anyone knows why the generated java skeleton interface doesn't have "throws java.rmi.RemoteException" anymore? Since AXIS 2 is still dealing with AxisFault which is a RemoteException, should the "thows" still be part of the method signature?
The client stub does have the "throws" there.
Thanks.
Shaoguang
---------------------------------
No need to miss a message. Get email on-the-go
with Yahoo! Mail for Mobile. Get started.
---------------------------------
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.