错误易趣[CDATA [内部错误应用程序] [英] error ebay [CDATA[ Internal error to the application ]]

查看:143
本文介绍了错误易趣[CDATA [内部错误应用程序]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要得到的SessionID易趣的机器人。我已经使用XML解析器。

I have to get SessionID ebay in android. I have used xml parser.

和code是,

static final String url = "https://api.sandbox.ebay.com/ws/api.dll";

HttpClient httpClient = new DefaultHttpClient();
final HttpParams httpParams = httpClient.getParams();
HttpConnectionParams.setConnectionTimeout(httpParams, 100000);
HttpPost httpPost = new HttpPost(url);

StringEntity se = new StringEntity("<RuName>\"your runame\"</RuName>",HTTP.UTF_8);

//StringEntity entity = new StringEntity(sb.toString(),"UTF-8");
httpPost.setEntity(se);
httpPost.setHeader("X-EBAY-API-COMPATIBILITY-LEVEL","673");
httpPost.setHeader("X-EBAY-API-APP-NAME", Constants.EBAY_APP_ID);
httpPost.setHeader("X-EBAY-API-DEV-NAME",Constants.EBAY_DEV_ID);
httpPost.setHeader("X-EBAY-API-CERT-NAME", Constants.EBAY_CERT_ID);
httpPost.setHeader("X-EBAY-API-SITEID","0");
httpPost.setHeader("X-EBAY-API-CALL-NAME","GetSessionID");
httpPost.setHeader("Content-Type","text/xml");
//httpPost.addHeader("Content-Length","4392");

HttpResponse httpResponse = httpClient.execute(httpPost);
HttpEntity httpEntity = httpResponse.getEntity();

xml = EntityUtils.toString(httpEntity);
Log.e("xml", xml);

但它显示的响应,

But it shows response,

12-22 14:52:57.327: ERROR/xml(422):
<?xml version="1.0" encoding="UTF-8" ?>
<eBay>
  <EBayTime>2012-12-22 07:52:57</EBayTime>
  <Errors>
   <Error>
   <Code>10007</Code>
   <ErrorClass>SystemError</ErrorClass>
   <SeverityCode>1</SeverityCode>
   <Severity>SeriousError</Severity>
   <Line>0</Line>
   <Column>0</Column>
   <ShortMessage><![CDATA[ Internal error to the application ]]></ShortMessage>
  </Error>
 </Errors>
</eBay>

任何解决方案?

推荐答案

从的http://developer.ebay.com/devzone/xml/docs/Reference/eBay/Errors/ErrorMessages.htm:

错误10007(内部错误应用程序),表示错误
  在eBay上服务器端,而不是在你的应用程序错误。

Error 10007 ("Internal error to the application") indicates an error on the eBay server side, not an error in your application.

您是否尝试过现场直播了吗? eBay的沙箱有时有点马车。

Have you tried the live site yet? The eBay sandbox sometimes is a bit buggy.

这篇关于错误易趣[CDATA [内部错误应用程序]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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