Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ebay API Question
Message
General information
Forum:
Visual FoxPro
Category:
Web Services
Title:
Ebay API Question
Miscellaneous
Thread ID:
01180969
Message ID:
01180969
Views:
87
I'm trying to connect to the ebay API. I registered the WSDL (http://developer.ebay.com/webservices/latest/ebaySvc.wsdl) in fox and it gives me the following sample code:
LOCAL loeBayAPI AS "XML Web Service"
* LOCAL loeBayAPI AS "MSSOAP.SoapClient30"
* Do not remove or alter following line. It is used to support IntelliSense for your XML Web service.
*__VFPWSDef__: loeBayAPI = http://developer.ebay.com/webservices/latest/ebaySvc.wsdl , eBayAPIInterfaceService , eBayAPI
LOCAL loException, lcErrorMsg, loWSHandler
TRY
	loWSHandler = NEWOBJECT("WSHandler",IIF(VERSION(2)=0,"",HOME()+"FFC\")+"_ws3client.vcx")
	loeBayAPI = loWSHandler.SetupClient("http://developer.ebay.com/webservices/latest/ebaySvc.wsdl", "eBayAPIInterfaceService", "eBayAPI")
	* Call your XML Web service here.  ex: leResult = loeBayAPI.SomeMethod()
	
CATCH TO loException
	lcErrorMsg="Error: "+TRANSFORM(loException.Errorno)+" - "+loException.Message
	DO CASE
	CASE VARTYPE(loeBayAPI)#"O"
		* Handle SOAP error connecting to web service
	CASE !EMPTY(loeBayAPI.FaultCode)
		* Handle SOAP error calling method
		lcErrorMsg=lcErrorMsg+CHR(13)+loeBayAPI.Detail
	OTHERWISE
		* Handle other error
	ENDCASE
	* Use for debugging purposes
	MESSAGEBOX(lcErrorMsg)
FINALLY
ENDTRY
Documentation on this can be found at http://developer.ebay.com/DevZone/SOAP/docs/WebHelp/wwhelp/wwhimpl/js/html/wwhelp.htm On the left click on "Getting Started", "Executing You First C# Call".

I'm not sure what to do next. Somehow I have to give this thing my AppID, DevID & CertID. I also need to send it some XML.

Thanks in advance for any help.

Pat
Reply
Map
View

Click here to load this message in the networking platform