|
@@ -35,7 +35,7 @@ public class SoapUtil {
|
|
|
}
|
|
|
|
|
|
public static Document generatorWebserviceBySoap(String soapPrefix, String endPointURL, String action, String cdata) throws Exception {
|
|
|
- log.info("Soap util");
|
|
|
+// log.info("Soap util");
|
|
|
Document doc = null;
|
|
|
SOAPConnectionFactory soapConnectionFactory = SOAPConnectionFactory.newInstance();
|
|
|
SOAPConnection soapConnection = soapConnectionFactory.createConnection();
|
|
@@ -108,7 +108,7 @@ public class SoapUtil {
|
|
|
}
|
|
|
|
|
|
public static Document GeneratorWebserviceBySoap(String soapPrefix, String endPointURL, String namespace, String methodName, String soapActionURI, String[] inputNames, String[] inputValues, String tagName) throws Exception {
|
|
|
- log.info("Use mawei soap util");
|
|
|
+// log.info("Use mawei soap util");
|
|
|
Document doc = null;
|
|
|
SOAPConnectionFactory soapConnectionFactory = SOAPConnectionFactory.newInstance();
|
|
|
SOAPConnection soapConnection = soapConnectionFactory.createConnection();
|
|
@@ -158,7 +158,7 @@ public class SoapUtil {
|
|
|
}
|
|
|
|
|
|
public static String GeneratorWebserviceBySoapResultUpload(String soapPrefix, String endPointURL, String namespace, String methodName, String soapActionURI, String[] inputNames, String[] inputValues, String tagName) throws Exception {
|
|
|
- log.info("Use mawei soap util");
|
|
|
+// log.info("Use mawei soap util");
|
|
|
SOAPConnectionFactory soapConnectionFactory = SOAPConnectionFactory.newInstance();
|
|
|
SOAPConnection soapConnection = soapConnectionFactory.createConnection();
|
|
|
MessageFactory messageFactory = MessageFactory.newInstance("SOAP 1.2 Protocol");
|
|
@@ -185,13 +185,13 @@ public class SoapUtil {
|
|
|
ByteArrayOutputStream out_req = new ByteArrayOutputStream();
|
|
|
ByteArrayOutputStream out_res = new ByteArrayOutputStream();
|
|
|
soapRequest.writeTo(out_req);
|
|
|
- log.info("SOAP Request:");
|
|
|
- log.info(new String(out_req.toByteArray()));
|
|
|
+// log.info("SOAP Request:");
|
|
|
+// log.info(new String(out_req.toByteArray()));
|
|
|
SOAPMessage soapResponse = soapConnection.call(soapRequest, endPointURL);
|
|
|
soapResponse.writeTo(out_res);
|
|
|
soapConnection.close();
|
|
|
- log.info("SOAP Response:");
|
|
|
- log.info(new String(out_res.toByteArray()));
|
|
|
+// log.info("SOAP Response:");
|
|
|
+// log.info(new String(out_res.toByteArray()));
|
|
|
SOAPBody resBody = soapResponse.getSOAPBody();
|
|
|
result = resBody.getElementsByTagName(tagName).item(0).getFirstChild().getNodeValue();
|
|
|
}
|