I play with the eBay Finding API for Java and do a basic test search based on the included tutorial. The call ends, but a java.lang.IllegalArgumentException thrown during the execution of java.lang.IllegalArgumentException .
Here is the basic code adapted from the example:
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());
And here is the written output:
[ERROR] 2012-11-01 16:52:09,847 fail to get xml string from SOAP message java.lang.IllegalArgumentException: Not supported: indent-number
Has anyone else experienced this / have ideas why?
source share