generate3DViewSOAPClient.sh 488 Bytes
#!/bin/bash

USAGE="Usage : ${0} GSOAP_DIR 3DVIEW_WSDL"

if [ -z ${1} ]; then
  echo ${USAGE}
  exit 1
fi

if [ -z ${2} ]; then
  echo ${USAGE}
  exit 1
fi

CLIENT_DIR=CDPP3DViewSOAPClient

if [ ! -d ${CLIENT_DIR} ]; then
  mkdir ${CLIENT_DIR}
fi

GSOAP_DIR="${1}"
CDPP_3DVIEW_WSDL="${2}"

${GSOAP_DIR}/bin/wsdl2h -o ${CLIENT_DIR}/CDPP3DView.h ${CDPP_3DVIEW_WSDL}
${GSOAP_DIR}/bin/soapcpp2 -C -i -pcdpp3dview -I ${GSOAP_DIR}/share/gsoap/import -d ${CLIENT_DIR} ${CLIENT_DIR}/CDPP3DView.h