尝试通过HTTPS发布到.NET`应用程序的问题

时间:2012-05-31 16:38:57

标签: java .net web-services post

我在通过POST尝试.NETHTTPS申请时遇到问题。我从服务器得到以下响应。

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);
        } 

1 个答案:

答案 0 :(得分:0)

服务器应用程序在调用存储过程时出现问题。你知道服务器应用程序有效吗?通过更改您的客户,它看起来不像您能解决的任何问题。