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

XWBP62.m

Go to the documentation of this file.
  1. XWBP62 ;OIFO-Oakland/RD - Test routine for patch 62 ;05/17/2002 17:41
  1. ;;1.1;RPC BROKER;**62**;Mar 21, 2002;Build 13
  1. ;Per VHA Directive 6402, this routine should not be modified
  1. Q
  1. EN ;send XML message to test M2M Broker
  1. N ADD,PARMS,PORT,MESS,TST,X
  1. ;get address and port of listener
  1. W !!,"This routine will attempt to send an XML message to the M2M Broker."
  1. W !,"You will need to IP Address and Port number for the M2M Broker."
  1. R !,"IP Address: ",ADD:300 Q:ADD="^"!(ADD="")
  1. R !,"Port Number: ",PORT:300 Q:PORT="^"!(PORT="")
  1. ;Set up arrays for connection and message
  1. S PARMS("ADDRESS")=ADD,PARMS("PORT")=PORT,PARMS("RETRIES")=3
  1. S PARMS("RESULTS")="MESS",PARMS("REQUEST")="TST"
  1. S TST(1)="<?xml version=""1.0"" encoding=""utf-8"" ?>"
  1. S TST(2)="<vistalink type=""Gov.VA.Med.RPC.Request"" mode=""RPCBroker"" >"
  1. S TST(3)="<rpc uri=""XUS DIVISION GET"" >"
  1. S TST(4)="<session>"
  1. S TST(5)="<duz value=""1"" />"
  1. S TST(6)="<security>"
  1. S TST(7)="<token value=""AAA"" />"
  1. S TST(8)="</security>"
  1. S TST(9)="</session>"
  1. S TST(10)="</rpc>"
  1. S TST(11)="</vistalink>"
  1. ;connect to server
  1. I '$$OPEN^XWBRL(.PARMS) U IO W !!,"Couldn't open port",! Q
  1. S X=$$EXECUTE^XWBVLC(.PARMS)
  1. DO CLOSE^%ZISTCP
  1. U IO W !!
  1. ZW MESS
  1. Q