private synchronized Node getRootNode() { if (rootNode != null) return rootNode; try { byte content[] = getContent(); ByteArrayInputStream contentIn = new ByteArrayInputStream(content); Parser parser = SOAP.getXMLParser(); rootNode = parser.parse(contentIn); } catch (ParserException e) { Debug.warning(e); } return rootNode; }
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 synchronized Node getRootNode() { if (rootNode != null) return rootNode; try { byte content[] = getContent(); ByteArrayInputStream contentIn = new ByteArrayInputStream(content); Parser parser = SOAP.getXMLParser(); rootNode = parser.parse(contentIn); } catch (ParserException e) { Debug.warning(e); } return rootNode; }
private synchronized Node getRootNode() { if (rootNode != null) return rootNode; try { byte content[] = getContent(); ByteArrayInputStream contentIn = new ByteArrayInputStream(content); Parser parser = SOAP.getXMLParser(); rootNode = parser.parse(contentIn); } catch (ParserException e) { Debug.warning(e); } return rootNode; }
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; }