mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix excel sax
This commit is contained in:
@@ -3,6 +3,8 @@ package cn.hutool.http.webservice;
|
||||
import javax.xml.soap.SOAPException;
|
||||
import javax.xml.soap.SOAPMessage;
|
||||
|
||||
import cn.hutool.core.util.XmlUtil;
|
||||
import cn.hutool.http.HtmlUtil;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
@@ -40,5 +42,27 @@ public class SoapClientTest {
|
||||
SOAPMessage message = client.sendForMessage();
|
||||
Console.log(message.getSOAPBody().getTextContent());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Test
|
||||
public void test(){
|
||||
final SoapClient soapClient = SoapClient.create("http://117.132.161.47:6403/services/JybgService")
|
||||
.setMethod("ser:zzjRequest", "http://service.jfsoft.com/")
|
||||
.setParam("arg0", "<![CDATA[\n" +
|
||||
"<Request>\n" +
|
||||
"<CardType>3</CardType>\n" +
|
||||
"<CardNo>C00002347</CardNo>\n" +
|
||||
"<BeginDate>20191101</BeginDate>\n" +
|
||||
"<EndDate>20191115</EndDate>\n" +
|
||||
"<TerminalNo>JKGCOnline000001</TerminalNo>\n" +
|
||||
"<BusinessCode>GetLisReport</BusinessCode>\n" +
|
||||
"<OperName>自助机01</OperName>\n" +
|
||||
"<OperCode>zzj01</OperCode>\n" +
|
||||
"<OperTime>20191116153748</OperTime>\n" +
|
||||
"</Request>\n" +
|
||||
"]]>", false);
|
||||
|
||||
final String send = soapClient.send();
|
||||
Console.log(HtmlUtil.unescape(send));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user