Step1: using eclipse ide developed Jax-ws webservice application
File>new>dyanmicwebproject>Enter project name >next>next>finish
create new class (showing below screen shot)
create class as SumService
then open below window
after drag the test service and test client(show in bleow image)
>next>next> then get this
after next>next>---->finish after open below browser here you enter input values then press invoke button get the result(for testing only)
now see the your package structure
Client Application:
create java project>after create java project
then open
after click the browse button
choose browse button select our wsdl document
>ok
>next>next>next>finish
Now see your packages there new class
now create your own class
create class as SumService
Then right click on java class >webservice>create webservice
>next>next> then get this
after next>next>---->finish after open below browser here you enter input values then press invoke button get the result(for testing only)
now see the your package structure
Client Application:
create java project>after create java project
then open
after click the browse button
choose browse button select our wsdl document
>ok
>next>next>next>finish
Now see your packages there new class
now create your own class
create new class as client
create object sumserviceproxy class using this instance we can cal our webservice method shown below
No comments:
Post a Comment