Hi Bhojraj,
Could you please try with Axis2 1.3 , Im sure that the issue is fixed in
1.3 release.
Thanks
Deepal
> Hi:
> I am trying out some things in Axis2 using the samples\pojoguide for
> starters. I added a _new_ method with the signature below to the
> WeatherService:
>
> public Weather[] getWeatherForCities(String[] cities)
>
> The service has been deployed successfully on JBoss 4.0.3 SP1.
>
> Below is the _client code_ being used to call this new method:
>
> QName opGetWeather4Cities = new
> QName("http://service.pojo.sample/xsd", "getWeatherForCities");
>
> String[] opGetWeather4Cities_Args = {"Boston","New York" };
> Class[] arrayReturnTypes = new Class[] { Weather[].class };
>
>
> Object[] weather4AllCities =
> serviceClient.invokeBlocking( opGetWeather4Cities,
> opGetWeather4Cities_Args, arrayReturnTypes);
>
> System.out.println("RESPONSE Entry class: " +
> weather4AllCities[0].getClass() );
> Object[] allEntriesRsltArray = (Object[]) weather4AllCities[0];
> System.out.println("Num Entries in Result Array:" +
> allEntriesRsltArray.length );
> for(int i=0, n= allEntriesRsltArray.length; i < n;i++)
> {
> System.out.println("Weather Info for " + (i+1) + ": " +
> (null != allEntriesRsltArray[i] ?
> ((Weather)allEntriesRsltArray[i]).getTemperature() : "NULL") );
> }
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]