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:

-- 
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:195520
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

Reply via email to