webservice development process

1. Server-side development
  (a) First develop schema (.xsd file)
  (b) Use xjc command to generate xsd file into java file JAXB (Java Architecture for XML Binding, these files are mainly used for webservice input and output. Generated files Will include request input, response output, objectfactory, package-info and other files
command: xjc -xmlschema webservice.xsd –dc:\service –p com.webservice
  (c) According to the generated java file, write the server class of webservice, This class uses annotations such as @webservice to realize

2.client-side development
  (a) According to the wsdl file generated on the server side, use command:wsimport -p com.fosun.bidservice.webservice.client -keep http://10.161.34.66: 8089/tenderingWebService?wsdl generates java client side code
  

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326772551&siteId=291194637