我在尝试POST
通过. 我从服务器得到以下响应。.NET
HTTPS
Error while dispatching hrxml [ Server was unable to process request. --> Procedure or function 'sp__LogMessage' expects parameter '@pi_ClientID', which was not supplied. at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at DispatchService.HRISMessageRouter.MessageRouter.Route(String HRXML)
at DispatchService.DispatchMessage.Dispatch(String HRXML)]
我的 Java 代码;
String requestURL = "https://test.com";
Map<String, String> params = new HashMap<String, String>();
requestURL = "https://test.com/example.asp";
params.put("name", "xxx");
params.put("age", "88");
InputStream input = HTTPUtil.sendPostRequest(requestURL, params);
String[] r = HTTPUtil.parseMultipleLinesRespone(input);
for (String line : r) {
System.out.println(line);
}