• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Bean to CFC, Quirky one..

Guest
Aug 02, 2007 Aug 02, 2007

Copy link to clipboard

Copied

Well, I'm at my wits end with this one. I've had several people stare at it.

I am passing a custom data type (bean) to a function via a webservice to do updating in a database. My invoke statement looks like this.

QuoteBean = createObject("component","apps.webservices.quote");
QuoteBean.Quote_ID = 40000;
QuoteBean.Lob_ID = 2;
QuoteBean.Branch_ID = 4;

ws = createObject("webservice", " http://sanintdev01/apps/webservices/quotelog.cfc?wsdl");
ws.displayBean(QuoteBean);


My function looks like this

<cffunction name="displayBean" access="remote" returntype="quote">
<cfargument name="QuoteBean" type="quote" required="true" />
(update query)
<cfreturn QuoteBean />
</cffunction>

For some reason, when my type="quote" on my argument is set I get a type mismatch. I'm obviously passing it a complex type of "quote". No idea why it's bombing. The interesting part is, when I change that to type="any" - it runs fine.

A few things to consider which I have done.
1. I've made sure to account for case sensetivity
2. I've made sure the paths are accurate
3. I've made sure the WSDL looks good

Really stuck on this one, anyone?
TOPICS
Advanced techniques

Views

290

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Aug 02, 2007 Aug 02, 2007

Copy link to clipboard

Copied

Any change if you use
<cfargument name="QuoteBean" type="apps.webservices.quote" required="true" />

?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Aug 02, 2007 Aug 02, 2007

Copy link to clipboard

Copied

Hi,

I have noticed this as well when working with webservices, a few times I had to specify "any", never found out why, I know my answer does not help you, but your not alone. I also want to know more about this.

-Westside

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 10, 2007 Aug 10, 2007

Copy link to clipboard

Copied

LATEST
Don't forget to hit the "refresh" icon in the webservices section of the CFIDE/Administrator. I always forgot to do that and would be developing and testing my webservices on the same instance of CF. The caching of webservices is a pain during the development cycle, but don't forget to refresh!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation