CD part X: Create the Webservices Clients

  • 13/01/2017
  • 0 minuten leestijd

CD part X: Create the Webservices Clients

To consume our AccountStatus webservice, we are going to create a Webservice Client

create a webservice client

We are going to create a webservice client for our Account Status webservice: http://localhost:8071/accountStatusWebservice/accountstatus?wsdl.

We are going to do this by executing the following:

mvn archetype:generate -DgroupId=nl.com.devnl -DartifactId=AccountStatusWsClient -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
  1. open the generated project
  2. remove App Object
  3. rename package > nl.devnl.entity
  4. wsimport -keep -verbose http://localhost:8071/accountStatusWebservice/accountstatus?wsdl
  5. remove the *.class files
  6. remove ObjectFactory.java and package-info.java
  7. after this we are done and we can release this artifact wsclient-structure