5

我正在使用 eBay Finding API for Java,并根据包含的教程执行基本测试搜索。调用完成,但java.lang.IllegalArgumentException在执行过程中抛出异常。

这是改编自示例的基本代码:

ClientConfig config = new ClientConfig();
config.setEndPointAddress("http://svcs.ebay.com/services/search/FindingService/v1");
config.setGlobalId("EBAY-GB");
config.setApplicationId("my app id");

FindingServicePortType serviceClient =FindingServiceClientFactory.getServiceClient(config);

FindItemsByKeywordsRequest request = new FindItemsByKeywordsRequest();
request.setKeywords("HTC One X");

FindItemsByKeywordsResponse result = serviceClient.findItemsByKeywords(request);

System.out.println("Ack = "+result.getAck());

这是记录的输出:

[ERROR] 2012-11-01 16:52:09,847
fail to get xml string from SOAP message

java.lang.IllegalArgumentException: Not supported: indent-number

有没有其他人经历过这个/知道为什么?

4

1 回答 1

3

看起来它是 JAXWSHandler 中的错误。尝试禁用请求/响应日志记录

config.setSoapMessageLoggingEnabled(false);
于 2013-07-07T22:10:22.497 回答