Hot Search: apple store debit card fraud labview run sub vi in the background sap note 363309 mick smythwood VVR4 Message no. AC551 itunes download 10.5 default icloud settings
Home >Default > Getting status Pending when calling rest function call

Getting status Pending when calling rest function call

-0001-11-30 | Default
Advertisement
Hi,
Coldfusion version 10.
The app hangs using IE9 when I do a REST cf function call from js file. Observing the console, I see Pending status. However, it works fine in later versions of IE, Chrome and Mozilla.
When I changed cffunction httpmethod from DELETE to PUT it worked. So, I figure that maybe javascript function call and cffunction header mismatch.
Here is cffunction;
<cffunction output="no" name="zeroUpdateCredits" access="remote" produces="application/json" consumes="application/json" returnType="struct" httpmethod="DELETE">
<cfargument name="DATA" type="struct" required="yes"/>
<cfset var retStatus = StructNew() />
<cfset retStatus["success"] = true />
<cftry>
<cfset var qSponsDetails = APPLICATION.cfc.properties.getsettings(DATA.employee_id)>
<cfif qSponsDetails.allow_credits>
  <cfset temp = saveCredits(credits = 0, employee_id = DATA.employee_id, effective_date = DATA.effective_date)>
</cfif>
<cfcatch type="any">
<cfthrow errorcode="401" message="error zero credits" />
<cfreturn>
</cfcatch>
</cftry>                  
<cfreturn retStatus>
</cffunction>
Here is the function call:
exports.clearCredits = function(employeeId, effectiveDate){
data = {
  employee_id: employeeId,
  effective_date: effectiveDate
var promise = rest.DELETE({
  url: appConfig.restPrefix + 'selections/unusedcredits?t=' + new Date().getTime(),
    contentType: 'application/json'
  }, JSON.stringify(data)
  return promise;
Thank you,
Gena

Latest answer

Advertisement
Hi,
Are you sure your Sender SOAP adapter is configured properly. Also ensure that the SIEBEL team is using the right URL to communicate to the SOAP adapter.
First try using SOAP Client and see if the scenario is working fine. If so then the problem lies in SIEBEL.
Check this link for confiuring SOAP sender
http://help.sap.com/saphelp_nw04/helpdata/en/fc/5ad93f130f9215e10000000a155106/content.htm
Thanks,
Pakash

Related recommended

Getting status Pending when calling rest function call

Hi, Coldfusion version 10. The app hangs using IE9 when I do a REST cf function call from js file. Observing the console, I see Pending status. However, it works fine in later versions of IE, Chrome and Mozilla. When I changed cffunction httpmethod f [More]

-0001-11-30 Default

Oracle 10g Status Pending

I have installed Oracle 10g. I can browse through Enterprise Manager, can create/delete objects. When I see the Status of my Database Server, it shows Status Status Pending Status Pending Since Apr 13, 2005 Why the Status is still pending and why it [More]

-0001-11-30 Default

Order status pending

Hi, I wanted to order Skype number from Sydney-Australia (Number: 0050060) so I selected a number & 3 months payment option (without entering credit card details) and then I came to know that if we get subsciption first then there is some discount on [More]

2015-10-11 Default

Import Items Request remain in Status Pending Normal For a Long Period

Hi, Import Items Concurrent Requests Remain in Status Pending Normal For a Long Period(30 minutes) Before Running. It is actually completing within 10 minutes after pending normal for 30 minutes. This problem is happening only with Import Items concu [More]

2015-10-11 Default

Status pending in OEM

hi, i oem grid control i cant access one of the database.in the availability section it shows status pending.what is this error.your kind help is always appreciated. thankx in advance....Check for the database,listener, agent are up on that server. t [More]

2015-10-11 Default

How to show catalog items with Approval Status:Pending in a Content Search Webpart

How to show catalog items with Approval Status:Pending in a Content Search Webpart using cross site publishing. Thanks in advance.I don't think you're going to be able to. Usually Approval Status is used in conjunction with Major/Minor versioning and [More]

2015-10-11 Default

Scheduled reports (DeskI) remain in status "Pending" in SP4(FP 4.3)

Hi, I am facing a weird problem with a BO XI R2 cluster installation (2 Windows Servers, one CMS, 2 DeskI Job servers on one node) after installing SP4 + FP 4.3. The users are allowed to schedule DeskI reports they created themselves. The scheduling [More]

-0001-11-30 Default

ISE Posture Status Pending

Hello, I am newly configuring and testing  Posturing/Client Provissioning on ISE.  I configured Client_Provissioning Policy without any Posture_Policy just to test it works or not. My Wireless client can authenticate and get and install NAC_Agent suc [More]

-0001-11-30 Default

Status pending but DB is up

Hi all, when I go to GRID, it showed that the status of the DB is "status Pending". but when I go to server and check that DB, the database is running. 1. Why it showed status pending? 2. how to fix it? thanks,Try the following: 1. Stop the agen [More]

-0001-11-30 Default

Status Pending on Grid Control

Hi, On the Grid Control -> All Targets Type=Cluster I have the "Status Pending" on my target Cluster. All the nodes are up as also as all the agents, instances, etc...except the cluster that appears to be "Status Pending". I tried t [More]

-0001-11-30 Default

Click Ranking