How get WSDL file from URL
- The WSDL can be obtained from the following URL http://<host_name>/cgi-bin/<interface>.cfg/services/soap?wsdl=typed
- This URL will always return the latest version of the WSDL
- If a previous WSDL version is needed, it can be seen with the following URL https://<host_name>/cgi-bin/<interface>.cfg/services/soap?wsdl=typed_v (version_number)
How generate source code from WSDL URL
- Download Axis2 from http://axis.apache.org/axis2/java/core/download.cgi
- Decompress the file
- Open a console
- Go to the \bin folder of the uncompressed file
- Execute the command
wsdl2java -uri http://<domain>.custhelp.com/cgi-bin/<interface>.cfg/services/soap?wsdl -ns2p urn:wsdl.ws.rightnow.com/v1=com.rightnow.ws.wsdl,urn:objects.ws.rightnow.com/v1=com.rightnow.ws.objects,urn:messages.ws.rightnow.com/v1=com.rightnow.ws.messages,urn:common.ws.rightnow.com/v1=com.rightnow.ws.common -u -uw -or
- wsdl2java Options:
- -uri: WSDL location
- -ns2p: Set the namespace for each package in the notation of [namespace]=[package], could change between versions of Right Now, see [1]Right Now Getting Started (Axis2) - Creating the Ant Build File
- -u: Unpack databinding classes
- -uw: Switch on un-wrapping
- -or: Overwrite files
- In the same folder the package structure of the classes will appear.
Overview
Content Tools