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

Webservice -> returnType complexData

Guest
Jul 26, 2007 Jul 26, 2007

Copy link to clipboard

Copied

I try to publish a webservice, which returns a struct (component). This is the code for the webservice:

quote:

<cfcomponent>
<cffunction name="checkLogin" returntype="loginData" access="remote">
<cfargument name="login" type="string" required="yes">
<cfargument name="password" type="string" required="yes">

<cfobject component="loginData" name="vData">
<cfset vData.success = false>
<cfreturn vData>
</cffunction>
</cfcomponent>



As you see, i have "loginData" as return type. So I created a loginData.cfc in the same directory as the webservice is:

quote:

<cfcomponent>
<cfproperty name="success" type="boolean">
<cfproperty name="recordCount" type="int">
<cfproperty name="mandants" type="string">
</cfcomponent>



Now, when i try to access the webservice with the parameter ?wsdl (service.cfc?wsdl) i get the following error:

java.lang.NoClassDefFoundError

The webservice works, if i have another returnType. The webservice is placed in [webroot]/subdir1/subdir2/

I tryed to copy the loginData.cfc to different places in the cfusionmx7-folder, such as cfx, customTags, libs, wwwroot/web-inf/lib. With no success.
Also I tryed to set a mapping, but i'm not sure, what to set there.

Can somebody help? Thanks!
TOPICS
Advanced techniques

Views

262

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

correct answers 1 Correct answer

Explorer , Jul 26, 2007 Jul 26, 2007
This is filing because of the

<cfproperty name="recordCount" type="int">

when I changed type="int" to type="numeric" no error was thrown and the wsdl was displayed.

Votes

Translate

Translate
Explorer ,
Jul 26, 2007 Jul 26, 2007

Copy link to clipboard

Copied

This is filing because of the

<cfproperty name="recordCount" type="int">

when I changed type="int" to type="numeric" no error was thrown and the wsdl was displayed.

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
Guest
Jul 26, 2007 Jul 26, 2007

Copy link to clipboard

Copied

LATEST
OUUUUU.. too bad..

Thanks! 😉

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