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

accessing a web service with complex types

New Here ,
Jan 14, 2007 Jan 14, 2007

Copy link to clipboard

Copied

Hi I have been struggling with this web service for a while now....

I am trying to send input parameters that are composed by : applicant name( name, surname, .....) and applicant input address( hse no, street, postcode...) Applicant dob(dob)....I am using <cfscript> tag to pass these parameters...Now my problem is do i need to put each complex type inside its own <cfscript> tag???
ie:

stName = structNew();
stName.Title = "#Mr#";
stName.forename = "Man";
stName.othernames = " NA";
stName.Applicant = "Yellow";
stName.suffix="";
stName.dob = createDate(1972,06,05);

and do this for applicant address? or could i enclose this in under the same cfscript tag??

Any help would be appreciated...thanks

critical
TOPICS
Advanced techniques

Views

246

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
Enthusiast ,
Jan 16, 2007 Jan 16, 2007

Copy link to clipboard

Copied

<cfscript> doesn't relate to your problem at all. You could just as well have:

<cfset stName = structNew()>
<cfset stName.Title = "#Mr#">
...
<cfinvokeargument name="userComplexType" value="#stName#">

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
Advocate ,
Jan 16, 2007 Jan 16, 2007

Copy link to clipboard

Copied

LATEST
Check out http://hcc.musc.edu/research/shared_resources/xml_complex_types_to_cf_structure_notes.cfm

The last part of that link is .cfm - not sure why its getting cut off.

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