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 ataud <an...@yahoo.fr> on 2008/02/05 15:00:35 UTC
How can I test the endpoint validity with axis2 at client side ?
At client side, I generate an Axis2 stub (WSDL2Java). When I populate an
invalid URL, it does not throw an exception !!!
...
MyStub stub = new MyStub("aninvalidurl");
...
It should throw an exception, but it does not !!!
--
View this message in context: http://www.nabble.com/How-can-I-test-the-endpoint-validity-with-axis2-at-client-side---tp15290664p15290664.html
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: How can I test the endpoint validity with axis2 at client side
?
Posted by ataud <an...@yahoo.fr>.
I try MyStub stub = new MyStub("http://aninvalidurl"); but does not throw an
exception
The axis version is 2.1.3
Normaly it should throw an exception without http or other prefix !!
Charitha Kankanamge wrote:
>
> Hi ataud,
> If you insert 'http' in front of your url ("http://aninvalidurl"), you
> should get java.net.UnknownHostException: aninvalidurl. I just checked
> it with Axis2 snapshot.
>
> regards
> Charitha
>
> ataud wrote:
>
>>At client side, I generate an Axis2 stub (WSDL2Java). When I populate an
>>invalid URL, it does not throw an exception !!!
>>
>>...
>>MyStub stub = new MyStub("aninvalidurl");
>>...
>>
>>It should throw an exception, but it does not !!!
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/How-can-I-test-the-endpoint-validity-with-axis2-at-client-side---tp15290664p15291425.html
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: How can I test the endpoint validity with axis2 at client side
?
Posted by Charitha Kankanamge <ch...@wso2.com>.
Hi ataud,
If you insert 'http' in front of your url ("http://aninvalidurl"), you
should get java.net.UnknownHostException: aninvalidurl. I just checked
it with Axis2 snapshot.
regards
Charitha
ataud wrote:
>At client side, I generate an Axis2 stub (WSDL2Java). When I populate an
>invalid URL, it does not throw an exception !!!
>
>...
>MyStub stub = new MyStub("aninvalidurl");
>...
>
>It should throw an exception, but it does not !!!
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org