Regenerate the webservice proxy in case you see any red crosses in the generated overview. We are going to use also 3 other operations from this webservice.ġ-Create in JDeveloper a new application and call it for example CountriesBatchJob and the project WsClientproxy.Ģ-Create a webservice proxy (JAX-WS Style) for the wsdl describing the country webservice: The webservice will give back the international telephone-code back. In this example a standard ISO country-code is submitted to the webservice as request parameter for the operation CountryIntPhoneCode. The part parameters is also referring to their own definition: These messages are also in the wsdl defined: These operations (for example CountryIntPhoneCode) have input (tns:CountryIntPhoneCodeSoapRequest) and output (tns:CountryIntPhoneCodeSoapResponse) messages. At the bottom are all the wsdl operations that we are interested in: Open de wsdl in de browser, for example in Firefox. Look at the wsdl file of this webservice and lets have a look at it so that we know to which webservice we talk to. We are going to create a webservice client proxy for a country webservice available on: Part 1: Create the country webservice client with JAX-WS Your company wants to weekly synchronise its internal countries database table with up-to-date country information from a recognised country-monitoring institution that delivers up-to-date country information by a webservice. A few months ago the world welcomed a new country (South-Sudan) and yet we dont know what will happen in Libya (maybe it will be separated in West and East-Libya?). Since 1990, 33 new countries have been created. Recently there were some changes in the number of countries and there might be in the future. This step-by-step starter hands-on provides an example how to make a JAX-WS webservice proxy in JDeveloper, and save retrieved data from this webservice in a batch-job to your own database with ADF Business Components.įor this hands-on example, imagine that your company wants to expand internationally and that reliable, up to date country information is absolutely critical.
0 Comments
Leave a Reply. |