Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: DVBAHWSC

DVBAHWSC.m

Go to the documentation of this file.
  1. DVBAHWSC ;ALB/RPM - CAPRI HEALTHEVET WEB SERVICES CLIENT TOOLS ;06/28/12
  1. ;;2.7;AMIE;**181**;Apr 10, 1995;Build 38
  1. ;
  1. Q ;no direct entry
  1. ;
  1. EN ; -- setup
  1. ;
  1. ; -- create DVBPSIM proxy
  1. D SETUP("PSIMWSEXECUTE.WSDL","DVB_PSIM_EXECUTE")
  1. Q
  1. ;
  1. CKSETUP(DVBWSDL) ; - used to check the environment
  1. ; returns the path to be used that was verified or 0 if it fails
  1. ;
  1. ; $$DEFDIR^%ZISH,$$LIST^%ZISH - #2320
  1. ; BMES^XPDUTL - #10141
  1. ;
  1. N DVBSTAT,DVBPATH,DVBFILE
  1. S DVBPATH=$$DEFDIR^%ZISH()
  1. S DVBFILE(DVBWSDL)=""
  1. S DVBSTAT=$$LIST^%ZISH(DVBPATH,"DVBFILE","DVBSTAT")
  1. I 'DVBSTAT!($D(DVBSTAT)'=11) D Q 0
  1. . D BMES^XPDUTL("**** Error cannot find file "_DVBPATH_DVBWSDL)
  1. I 'DVBSTAT!($D(DVBSTAT)'=11) D Q 0
  1. . W !!,"**** WSDL file "_DVBWSDL_" not found in "_DVBPATH_"."
  1. . W !," You will need that prior to install."
  1. Q DVBPATH
  1. ;
  1. SETUP(DVBWSDL,DVBSERV) ; -- call to setup hwsc
  1. ;DVBWSDL - call with the wsdl file to setup, must be in the
  1. ; kernel default directory
  1. ;
  1. ; $$GENPORT^XOBWLIB - #5421
  1. ;
  1. N DVBSTAT,DVBPATH,DVBARR
  1. S DVBPATH=$$CKSETUP(DVBWSDL) I DVBPATH=0 Q
  1. S DVBFILE(DVBWSDL)=""
  1. S DVBARR("WSDL FILE")=DVBPATH_DVBWSDL
  1. S DVBARR("CACHE PACKAGE NAME")="DVBPSIM"
  1. S DVBARR("WEB SERVICE NAME")=DVBSERV
  1. S DVBARR("AVAILABILITY RESOURCE")="?wsdl"
  1. S DVBSTAT=$$GENPORT^XOBWLIB(.DVBARR)
  1. ;
  1. I 'DVBSTAT D BMES^XPDUTL("**** Error creating Web Service (#18.02)"_DVBSERV),MES^XPDUTL(DVBSTAT) Q
  1. D BMES^XPDUTL(">>> "_DVBSERV_" entry added to WEB SERVICE file #18.02")
  1. D BMES^XPDUTL(" - Be sure and set up the Web Server as in the post-install instructions!!")
  1. ;
  1. Q
  1. ;
  1. ERROR ; - catch errors
  1. ; Set ecode to empty to return to calling function
  1. ;
  1. ; $$EOFAC^XOBWLIB, ZTER^XOBWLIB - #5421
  1. ; UNWIND^%ZTER - #1621
  1. ;
  1. N DVBERR
  1. S DVBERR=$$EOFAC^XOBWLIB()
  1. D ZTER^XOBWLIB(DVBERR)
  1. S $ECODE=""
  1. D UNWIND^%ZTER
  1. Q
  1. ;