Changes since
the last release

com.ebay.sdk.pictureservice.eps
Class eBayPictureServiceXMLCall

java.lang.Object
  extended by com.ebay.sdk.pictureservice.eps.eBayPictureServiceXMLCall
All Implemented Interfaces:
PictureService

public class eBayPictureServiceXMLCall
extends Object
implements PictureService

Title: eBayPictureServiceXMLCall

Description: Defines object that uploads pictures to EPS server and get the uploaded URLs back, this class use the new Schema XML call.

EpsServerUrl: for production, use: http://api.ebay.com/ws/api.dll for sandbox, use: http://api.sandbox.ebay.com/ws/api.dll

Copyright: Copyright (c) 2008

Company: eBay Inc.

Version:
1.0
Author:
Conan Zhou & William Yang

Constructor Summary
eBayPictureServiceXMLCall(ApiContext apiContext)
           
 
Method Summary
 boolean uploadPicture(PhotoDisplayCodeType option, PictureInfo picInfo)
          Upload one picture file to EPS server.
 int uploadPictures(PhotoDisplayCodeType option, PictureInfo[] picInfoList)
          Upload list of picture files to EPS server.
 boolean UpLoadSiteHostedPicture(PictureInfo picInfo, UploadSiteHostedPicturesRequestType request)
          Upload one picture file to EPS server, this interface is for those who want to operate on UploadSiteHostedPicturesRequestType directly.
 UploadSiteHostedPicturesResponseType uploadSiteHostedPictures(UploadSiteHostedPicturesRequestType request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

eBayPictureServiceXMLCall

public eBayPictureServiceXMLCall(ApiContext apiContext)
Method Detail

uploadSiteHostedPictures

public UploadSiteHostedPicturesResponseType uploadSiteHostedPictures(UploadSiteHostedPicturesRequestType request)
Specified by:
uploadSiteHostedPictures in interface PictureService

UpLoadSiteHostedPicture

public boolean UpLoadSiteHostedPicture(PictureInfo picInfo,
                                       UploadSiteHostedPicturesRequestType request)
Upload one picture file to EPS server, this interface is for those who want to operate on UploadSiteHostedPicturesRequestType directly. This interface use the new Schema XML call.

Specified by:
UpLoadSiteHostedPicture in interface PictureService
Parameters:
picInfo - Contains the local picture file path, uploading error, response object and URL if the uploading succeeded.
request, - the UploadSiteHostedPicturesRequestType object.
Returns:
true means the uploading succeeded. Otherwise check picInfo for detailed error information.

uploadPicture

public boolean uploadPicture(PhotoDisplayCodeType option,
                             PictureInfo picInfo)
Upload one picture file to EPS server.

Specified by:
uploadPicture in interface PictureService
Parameters:
option - The PhotoDisplayCodeType option.
picInfo - Contains the local picture file path, uploading error, response object and URL if the uploading succeeded.
firstImage - If this is the first image for the particular item, the picture generated will be different based on if this is the first image for the item or not.
Returns:
true means the uploading succeeded. Otherwise check picInfo for detailed error information.

uploadPictures

public int uploadPictures(PhotoDisplayCodeType option,
                          PictureInfo[] picInfoList)
Upload list of picture files to EPS server.

Specified by:
uploadPictures in interface PictureService
Parameters:
option - The PhotoDisplayCodeType option.
picInfoList - List of PictureInfo objects. Each object contains the local picture file path, uploading error, response object and URI if the uploading succeeded.
Returns:
Number of pictures that have been successfully uploaded. Loop through picInfoList for individual uploading error.

Changes since
the last release

The information contained in this document is proprietary and confidential. Use of this information and the eBay API requires a Non-Disclosure Agreement (NDA) between the user and eBay Inc. For information regarding a qualifying NDA, contact Developer Relations: developer-relations@ebay.com
© 2004-2009 eBay Inc. All rights reserved.