肥皂产生java.io.IOException:HTTP请求失败,HTTP状态:500 [英] Soap Throws java.io.IOException: HTTP request failed, HTTP status: 500

查看:1605
本文介绍了肥皂产生java.io.IOException:HTTP请求失败,HTTP状态:500的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

其实我用这个code访问该Web服务 FahrenheitToCelsius 方法,我得到了正确的反应,但是当我试图访问我的web服务是越来越

Actually I used this code to access this web service FahrenheitToCelsius Method, am getting the correct response, but when I tried to access my webservice am getting

java.io.IOException异常:HTTP请求失败,HTTP状态:500

java.io.IOException: HTTP request failed, HTTP status: 500

错误,它指向的 transport.call(SOAP_ACTION,包);

SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);                     
//Use this to add parameters                              
request.addProperty("username",usr);
request.addProperty("password",pass);
request.addProperty("backOfficePartnerId",id);

//Declare the version of the SOAP request
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER10);

envelope.setOutputSoapObject(request);

envelope.dotNet = true;

try {
    HttpTransportSE transport = new HttpTransportSE(URL);

    Log.i("bodyout", "" + envelope.bodyOut.toString());

    transport.call(SOAP_ACTION, envelope);      

    // Get the SoapResult from the envelope body.
    SoapObject result = (SoapObject)envelope.bodyIn;
    System.out.println("result IN F TO C::"+result);
}catch(Exception e){
    e.printStackTrace();
}

我得到到这里正确的反应。我debuged并检查值发送我的身体出了是正确的,在响应我的bodyin为空。

Am getting the correct response till here. I debuged and checked the values am sending the body out that is correct and in response for me the bodyin is null.

推荐答案

我搜索了很多,但找不到任何具体的解决办法。 我通过下载(的同一版本)的新服务器软件包解决我的问题,并换上新的previous服务器软件包。(关于Apache Tomcat的7)

I searched a lot but couldn't find any specific solution. I solved my problem by downloading new server package(of same version) and replaced the previous server package by new one .(about Apache tomcat 7)

这篇关于肥皂产生java.io.IOException:HTTP请求失败,HTTP状态:500的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆