coldfusion - CFArgument is causing the function to return ERROR 415 -


After

I am trying to create a rest of the web service in CF11 and I think I really do not understand It comes from where it's getting an error.

Step 1
I created a function that gives results of a query - works fine
Step 2
Some CFArguments were added and the function 415 unsupported media type
step 3
removed < / P>

This is a component

 

Code> & lt; Cfcomponent restpath = "student" rest = "true" & gt; & Lt; Cffunction name = "dbTest" access = "remote" output = "false" returntype = "query" httpmethod = "to get" restpath = "dbTest" & gt; & Lt; Cfargument name = "addSFSurveys" type = "numerical" required = "no" default = "0" & ​​gt; & Lt; Cfargument name = "showRatings" type = "numerical" required = "no" default = "5" & gt; & Lt; Cfargument name = "siteID" type = "numeric" required = "no" default = "0" & ​​gt; & Lt; Cfargument name = "pageID" type = "numeric" required = "no" default = "0" & ​​gt; & Lt; Cfargument name = "includeDoctor" type = "numerical" required = "no" default = "1" & gt; & Lt; Cfargument name = "topreviews" type = "string" required = "no" default = "" & gt; & Lt; Cfargument name = "testimonialID" type = "string" required = "no" default = "" & gt; & Lt; Cfargument name = "procedureID" type = "string" required = "no" default = "" & gt; & Lt; Cfargument name = "detailScore" type = "string" required = "no" default = "" & gt; & Lt; Cfargument name = "minscore" type = "string" required = "no" default = "" & gt; & Lt; Cfargument name = "maxScore" type = "string" required = "no" default = "" & gt; & Lt; Cfquery name = "testimonials" data source = "dpsigweb2" & gt; The first as the testimonial, t.contactid, t.doctorid, c.first (t.testimonial as varchar (max)), left (c.last, 1) as the last, c.city , C.state selections as separate top 10 artists, d.practiceNameDisplay, t.featured, t.owneridfk, docCity, docState as cd.state, cc.zip as docZip, '' sorter, t.testimonialID, as artists In the form of cd.city (t.title varchar (max)), as the finalscore, cast (decimal (10.1 as st.finalscore) in the form of varchar (as in the form of varchar) se.procedureID (25 )) As processID, st.dateComplete surveyDate, cost as se.revenue, as Combine Latin1_General_BIN as the locationName, consultloc = (select top 1 se2.locationname from survey.dbo.survey_events SE2 se2.surveytypeidfk = s.id where c.contactid = se2.contactidfk join the survey.dbo.surveys s And se2.locationname is not null and isnull (s.surveytypecatidfk, 0) in the 1st order by the & lt; se.eventdate desc) Testimonials to be included on the t contact contact c t.contactid = c.contactid Having or going to t.doctorid = d.doctorID on d cd.contactID = d.contactID on the left side of ts.testimonialID = t.TestimonialID on the testimonial_sites ts st.owneridfk = t.owneridfk on std survey_tracking Delivered on .survey_events se.id = st.surveyEventID join left join join survey.dbo where t.owneridfk = '' and ts.siteID = '9 surveyDate desc & lt' commands; / Cfquery & gt; & Lt; Cfreturn testimonials & gt; & Lt; / Cffunction & gt; & Lt; / Cfcomponent & gt;

Result Enter image details here

After

you should add lt to a restArgSource and; Cfargument & gt;

Div>

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -