Hi Umer,
I'm just getting my hands dirty with this stuff..
I'm using Cold Fusion MX 6.1.
Running the same code with my own auth headers, causes the JRun server to
crash. It seems like the first line itself. Any idea what's causing this?
Prem
> 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?cal>
lname=#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.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211228
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54