@Override protected void parseBody2Filed(Element body, SoapMessageModel soapMessageModel) { deviceId.parseBodyOfThis(body, soapMessageModel); maxEnvelopes = Integer.parseInt(getRequestElement(body, MAXENV)); retryCount = Integer.parseInt(getRequestElement(body, RETRYCOUNT)); currentTime = getRequestElement(body, CURRENTTIME); event.parseBodyOfThis(body, soapMessageModel); parameterList.parseBodyOfThis(body, soapMessageModel); }
@Override public String toString() { StringBuilder sbd = new StringBuilder(); sbd.append(" DeviceId:" + deviceId); sbd.append("\r\nMaxEnvelopes:" + maxEnvelopes); sbd.append(" RetryCount:" + retryCount); sbd.append(" CurrentTime:" + currentTime); sbd.append("\r\nEvent:" + event); sbd.append("\r\nParameterList:" + parameterList.toString()); return super.toString() + sbd.toString(); }
@Override protected void addField2Body(Element body, SoapMessageModel soapMessageModel) { deviceId.addThisToBody(body, soapMessageModel); event.addThisToBody(body, soapMessageModel); Element maxnv = soapMessageModel.createElement(MAXENV); maxnv.setTextContent(Integer.toString((maxEnvelopes))); Element retry = soapMessageModel.createElement(RETRYCOUNT); retry.setTextContent(Integer.toString(retryCount)); Element curren = soapMessageModel.createElement(CURRENTTIME); curren.setTextContent(currentTime); body.appendChild(maxnv); body.appendChild(retry); body.appendChild(curren); parameterList.addThisToBody(body, soapMessageModel); }