Showing posts with label calling webservice. Show all posts
Showing posts with label calling webservice. Show all posts

Thursday 28 November 2013



Calling Simple Webservice in jdvloper and getting response/Calling webservice in java /Webservice Calling in Jdeveloper 
  • We are going to use the weather webservice located at URL

http://www.webservicex.net/globalweather.asmx?WSDl  ( service provided by webservicex.net)

  • We are going to use jdevloper 11.1.1  (release 1) 




  •  Right click on new project1 select webservice proxy in webservices a wizard will appear

  •  Select jax ws style in clinet style enter the wsdl url of webservice

 














  • Click next next and check the gerate asyhnchornous mehtod for all operations this will create java stub files for all the operations if some error occures select continue and click next next untill the java stubs get generated






















  •  Open the globalweathersoapclient.java file












  •  Add code to the GlobalWeatherSoapClient.java file in main class and run the java file you will see after passing paramter  cityname and country name to method getWeather its giving response and returning the weather of respective city

    String weather;
    weather=globalWeatherSoap.getWeather("BHOPAL","INDIA");
    System.out.println(weather);