...
- A running instance of WSO2 Governance Registry. Download and setup instructions are given in section Installation Guide.
- WSO2 Application Server: Download and unpack the binary distribution from http://wso2.com/products/application-server.
- SOAP UI 4.5.0 tool : Downloads can be found in http://www.soapui.org. Note to select the non-JRE version if JRE is already installed in your server.
- Maven build tool: Download and installation instructions are given in section Installation Prerequisites.
Executing and Testing the Sample
...
Activity 1: View the wsdl representation for the service exposed by the Employee artifact. The wsdl uri is similar to https://{IP address}:9443/services/{singular label of the artifact}?wsdl.
Activity 2: Any Any wsdl2java tool can be used to generate the stub. In this sample, we use the WSO2 Application Server which has the wsdl2java facility.1.
- As the prerequisites state, download and unpack the WSO2 Application Server binary distribution
...
...
- if you haven't done already.
...
- Change the value of the
<HideAdminServiceWSDLs>
element in the<AS_HOME>/repository/conf/carbon.xml
file tofalse
. - Navigate to <AS_HOME>/bin directory execute wso2server.sh (for Linux) or wso2server.bat (for Windows) to start the Application Server.
...
- Log-in to the AS management console and click the "tools" menu. Management console log-in is similar to that of Governance Registry.
...
- Select wsdl2java from the tools pane which is in the left hand side of the management console.
...
- Provide the uri of the wsdl or file path of the wsdl. If the uri does not work, copy the wsdl from the browser to a text document and save it as .wsdl file and give the file path.
Activity 3: Result contains the stub java file and other skeletons with build.xml
and pom.xml
.
Info | |||||
---|---|---|---|---|---|
Note: Add the following dependencies to the
|
...