Consume web service using WSDL in JAVA -
i have been workin in java while, project i'm doing requires data web service(well have never worked in web services befor :d). have wsdl file , link wsdl file. wanted know how call webservice in java program input variables web service.
thank in advance.
you can generate web service client classes using jaxws utilities , published wsdl
e.g.
something
wsimport -target 2.2 -s c:\temp\outputcode -p com.package.name http://1.2.3.4/jaxsws/wsname?wsdl
this put classes c:\temp\outputcode can use in project.
look class extending service. have number of constructors allow wsdl location overridden.
from service obtain handle (proxy) web service port. (this generated interface methods corresponding web service methods in wsdl). invoke method , call web service.
there further information here how wsimport generated client work?
Comments
Post a Comment