How get WSDL file from URL?
The WSDL can be obtained from the following URL http://example-custhelp.com/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://example-custhelp.com/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
Code Block language powershell collapse true
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
-uri: WSDL location
-ns2p: Set the namespace for each package in the notation of [namespace]=[package], could change between versions of Right Now, see Right Now Getting Started (Axis2) - Creating the Ant Build File
-u: Unpack databinding classes
-uw: Switch on un-wrapping
-or: Overwrite files
The connector is returning duplicated data.