Instantly share code, notes, and snippets.

Embed
What would you like to do?
Create Java packages with wsimport for an Interplay setup.
#!/bin/sh
# USAGE ./import-avid-interplay-ws.sh <host name/IP of Interplay webservice server>
WS_SERVER=$1
createPackages () {
mkdir -p $3
wsimport -extension -XadditionalHeaders -keep -p $1 -clientjar $2-bin.jar -s $3 $4
cd $3
zip -r ../$2-src.zip .
cd ..
rm -rf $3
}
createPackages com.avid.interplay.ws.assets avid-interplay-ws-assets assets "http://$WS_SERVER/services/Assets?wsdl"
createPackages com.avid.interplay.ws.archive avid-interplay-ws-archive archive "http://$WS_SERVER/services/Archive?wsdl"
createPackages com.avid.interplay.ws.infrastructure avid-interplay-ws-infrastructure infrastructure "http://$WS_SERVER/services/Infrastructure?wsdl"
createPackages com.avid.interplay.ws.jobs avid-interplay-ws-jobs jobs "http://$WS_SERVER/services/Jobs?wsdl"
createPackages com.avid.interplay.ws.transfer avid-interplay-ws-transfer transfer "http://$WS_SERVER/services/Transfer?wsdl"
createPackages com.avid.interplay.ws.usermanagement avid-interplay-ws-usermanagement usermanagement "http://$WS_SERVER/services/UserManagement?wsdl"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment