Revision 66 hci/trunk/eneraptor-web-app/grails-app/controllers/com/eneraptor/hci/ActionsController.groovy

View differences:

ActionsController.groovy
17 17
	def getActions = {
18 18
		
19 19
		String reqStr = "<?xml version=\"1.0\"?><hci-request type=\"getScenarios\"></hci-request>"
20
		Map reply = hciLogicCommService.getReplyToRequest(reqStr)
20
		Map reply = hciLogicCommService.getReplyToRequest(reqStr,session.hwSet.IPaddress,session.hwSet.portNumber)
21 21
		
22 22
		if(reply['status'] == 'error' || reply['content'] == null) {
23 23
			return [replyError: reply['content']]
......
43 43
	def viewAction = {
44 44
		
45 45
		String reqStr = "<?xml version=\"1.0\"?><hci-request type=\"getScenarios\"></hci-request>"
46
		Map reply = hciLogicCommService.getReplyToRequest(reqStr)
46
		Map reply = hciLogicCommService.getReplyToRequest(reqStr,session.hwSet.IPaddress,session.hwSet.portNumber)
47 47
		
48 48
		if(reply['status'] == 'error' || reply['content'] == null) {
49 49
			flash['errors'] = "<p>Error connecting with logic: " + reply['content'] + "</p>"
......
94 94
		// First part: get XML from logic and modify
95 95
		
96 96
		String reqStr = "<?xml version=\"1.0\"?><hci-request type=\"getScenarios\"></hci-request>"
97
		Map reply = hciLogicCommService.getReplyToRequest(reqStr)
97
		Map reply = hciLogicCommService.getReplyToRequest(reqStr,session.hwSet.IPaddress,session.hwSet.portNumber)
98 98
		
99 99
		if(reply['status'] == 'error' || reply['content'] == null) {
100 100
			flash['errors'] = "<p>Error connecting with logic: " + reply['content'] + "</p>"
......
118 118
				
119 119
				// Second part: give modified XML to logic
120 120
				
121
				Map reply2 = hciLogicCommService.getReplyToRequest(result)
121
				Map reply2 = hciLogicCommService.getReplyToRequest(result,session.hwSet.IPaddress,session.hwSet.portNumber)
122 122
				
123 123
				if(reply2['status'] == 'error' || reply2['content'] == null) {
124 124
					flash['errors'] = "<p>Error connecting with logic: " + reply2['content'] + "</p>"

Also available in: Unified diff