I am using a proxy since I am on an intranet but as I used in other
applications I wrote
Properties systemSettings = System.getProperties();
systemSettings.put("http.proxyHost", "xxxxxx");
systemSettings.put("http.proxyPort", "xx");
System.setProperties(systemSettings);
now I'm getting Server did not recognize the value of HTTP Header SOAPAction.
I'm trying to figure out the problem though I have the impression I'm doing
something wrong somewhere
----- Original Message ----
From: Philipp Leitner <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thursday, October 4, 2007 4:08:21 PM
Subject: Re: new to axis
well, not that I claim to be an expert in Axis 1 (which you seem to be
using), but from what I see the code looks OK.
Anyway, your exception is pretty obvious -
java.net.NoRouteToHostException means - well - that your application
cannot reach the host. AFAIK this means that either the host is not
online or does not exist (what it does), or that you are having problems
with your inet connection.
Can you access the endpoint with your browser?
/philipp
loredana loredana wrote:
> yes :). are you saying the java code is correct and should work?
>
>
>
> ----- Original Message ----
> From: Philipp Leitner <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Thursday, October 4, 2007 3:24:30 PM
> Subject: Re: new to axis
>
> are you connected to the internet when you run the example?
>
> /philipp
>
> loredana loredana wrote:
>> Hy guys, I'm new to axis and I am having a small problem understanding even
>> the begining example...ok, so i took the most simple web service from w3
>> schools: http://www.w3schools.com/webservices/tempconvert.asmx
>> and I tried to make a web service client like the first example presented on
>> the axis site. As I understood, it should look like this:
>>
>> try{
>>
>> String endpoint =
>> "http://www.w3schools.com/webservices/tempconvert.asmx";;;
>>
>> Service service = new Service();
>> Call call = (Call) service.createCall();
>>
>> call.setTargetEndpointAddress( new java.net.URL(endpoint) );
>> call.setOperationName(new QName("http://tempuri.org";;,
>> "CelsiusToFahrenheit"));
>> call.addParameter("Celsius", org.apache.axis.Constants.XSD_STRING,
>> javax.xml.rpc.ParameterMode.IN);
>> call.setReturnType(org.apache.axis.Constants.XSD_STRING);
>>
>>
>> String ret = (String) call.invoke( new Object[] { "10" } );
>>
>> System.out.println("result: " + ret + "'");}catch{}
>>
>> this should return something like <short>50</short> but instead I get a
>> java.net.NoRouteToHostException
>>
>> So what am I doing wrong?. What exactly did I missunderstood? 10x in advance
>>
>>
>>
>>
>>
>>
>>
>> ____________________________________________________________________________________
>> Luggage? GPS? Comic books?
>> Check out fitting gifts for grads at Yahoo! Search
>> http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
>
>
> ____________________________________________________________________________________
> Moody friends. Drama queens. Your life? Nope! - their life, your story. Play
> Sims Stories at Yahoo! Games.
> http://sims.yahoo.com/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
____________________________________________________________________________________
Shape Yahoo! in your own image. Join our Network Research Panel today!
http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]