Just an update.. got it working.. needed a good night sleep. :-)
sample code below.
<cfset ebayWS = CreateObject("webservice",
"http://developer.ebay.com/webservices/393/eBaySvc.wsdl")>
<cfset methodToCall = "geteBayOfficialTime">
<!--- build the auth header --->
<cfsavecontent variable="ebayHeaderXML">
<ebl:RequesterCredentials xmlns:ebl="urn:ebay:apis:eBLBaseComponents">
<ebl:eBayAuthToken>XXXX</ebl:eBayAuthToken>
<ebl:Credentials>
<ebl:DevId>XXXXXX</ebl:DevId>
<ebl:AppId>XXXXXX</ebl:AppId>
<ebl:AuthCert>XXXX</ebl:AuthCert>
</ebl:Credentials>
</ebl:RequesterCredentials>
</cfsavecontent>
<cfset ebayXMLObj = xmlparse(ebayHeaderXML)>
<cfscript>
// set the header
addSOAPRequestHeader(ebayWS, "urn:ebay:apis:eBLBaseComponents",
"RequesterCredentials", "#ebayXMLObj#", false);
// set the end point
ebayWS._setProperty("javax.xml.rpc.service.endpoint.address","https://api.sandbox.ebay.com/wsapi?callname=#methodToCall#&siteid=0&appid=XXXXX&version=393&&Routing=New");
// build geteBayOfficialTimeRequest..
timeRequest = StructNew();
timeRequest.version = "393";
</cfscript>
<!--- call the service --->
<cfinvoke webservice="#ebayWS#"
method="#methodToCall#" returnvariable="temp">
<cfinvokeargument name="geteBayOfficialTimeRequest"
value="#timeRequest#">
</cfinvoke>
<!--- dump the output --->
<cfdump var="#temp.getTimeStamp().getTime()#">
--
regards,
Umer Farooq wrote:
> Has anyone been able to get ebay SOAP API going with CF. I've tried and
> I keep on getting:
>
> coldfusion.xml.rpc.ServiceProxy$ServiceMethodNotFoundException
>
> this is what i'm doing..
>
>
> <cfsavecontent variable="ebayHeaderXML">
> <Credentials xmlns="urn:ebay:apis:eBLBaseComponents">
> <AppId>XXXXXXXXXXXXXXXX</AppId>
> <DevId>XXXXXXXXXXXXXXXX</DevId>
> <AuthCert>XXXXX</AuthCert>
> </Credentials>
> </cfsavecontent>
> <cfset ebayXMLObj = xmlparse(ebayHeaderXML)>
> <cfscript>
> bayWS = CreateObject("webservice",
> "http://developer.ebay.com/webservices/361/eBaySvc.wsdl");
>
> addSOAPRequestHeader(ebayWS, "urn:ebay:api:eBayAPI",
> "RequesterCredentials", "#ebayXMLObj#");
>
> //this does not work..
> //ebayWS._setProperty("javax.xml.rpc.service.endpoint.address","https://api.sandbox.ebay.com/wsapi?callname=getFeedback&siteid=0&appid=XXXXXXXXXXX&version=361");
>
> // this seems set the endpoint..
> ebayWS._getService().seteBayAPIEndpointAddress("https://api.sandbox.ebay.com/wsapi?callname=getFeedback&siteid=0&appid=XXXXXXXXXXXXXXXXXXXX&version=361");
> </cfscript>
>
> TIA.
--
Umer Farooq
Octadyne Systems
+1 (519) 489-1119 voice
+1 (519) 635-2795 mobile
+1 (530) 326-3586 fax
WEB SOLUTIONS FOR NON-PROFIT ORGANIZATION:
http://www.Non-ProfitSites.biz
WARNING: ------------------------------- The information contained in
this document and attachments is confidential and intended only for the
person(s) named above. If you are not the intended recipient you are
hereby notified that any disclosure, copying, distribution, or any other
use of the information is strictly prohibited. If you have received
this document by mistake, please notify the sender immediately and
destroy this document and attachments without making any copy of any kind.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:195518
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54