private void soapBadActionRecieved(HTTPRequest soapReq) { SOAPResponse soapRes = new SOAPResponse(); soapRes.setStatusCode(HTTPStatus.BAD_REQUEST); soapReq.post(soapRes); }
public SOAPResponse postMessage(String host, int port) { HTTPResponse httpRes = post(host, port); SOAPResponse soapRes = new SOAPResponse(httpRes); byte content[] = soapRes.getContent(); if (content.length <= 0) return soapRes; try { ByteArrayInputStream byteIn = new ByteArrayInputStream(content); Parser xmlParser = SOAP.getXMLParser(); Node rootNode = xmlParser.parse(byteIn); soapRes.setEnvelopeNode(rootNode); } catch (Exception e) { Debug.warning(e); } return soapRes; }
private void soapBadActionRecieved(HTTPRequest soapReq) { SOAPResponse soapRes = new SOAPResponse(); soapRes.setStatusCode(HTTPStatus.BAD_REQUEST); soapReq.post(soapRes); }
private void soapBadActionRecieved(HTTPRequest soapReq) { SOAPResponse soapRes = new SOAPResponse(); soapRes.setStatusCode(HTTPStatus.BAD_REQUEST); soapReq.post(soapRes); }
public SOAPResponse postMessage(String host, int port) { HTTPResponse httpRes = post(host, port); SOAPResponse soapRes = new SOAPResponse(httpRes); byte content[] = soapRes.getContent(); if (content.length <= 0) return soapRes; try { ByteArrayInputStream byteIn = new ByteArrayInputStream(content); Parser xmlParser = SOAP.getXMLParser(); Node rootNode = xmlParser.parse(byteIn); soapRes.setEnvelopeNode(rootNode); } catch (Exception e) { Debug.warning(e); } return soapRes; }
public SOAPResponse postMessage(String host, int port) { HTTPResponse httpRes = post(host, port); SOAPResponse soapRes = new SOAPResponse(httpRes); byte content[] = soapRes.getContent(); if (content.length <= 0) return soapRes; try { ByteArrayInputStream byteIn = new ByteArrayInputStream(content); Parser xmlParser = SOAP.getXMLParser(); Node rootNode = xmlParser.parse(byteIn); soapRes.setEnvelopeNode(rootNode); } catch (Exception e) { Debug.warning(e); } return soapRes; }