>- see footer for list info -< Can any of you help with this: I need to create a web service that allows users to send in mortgage application data to be processed and entered into a database. I have no problems at all in developing a basic web service, however I don't seem to be able to get any further. I need to be able to get the WSDL to define specifically what data needs to be sent in.
I can specify the basic data that needs to be sent using a component such as: <!--- saved as CaseDetail.cfc ---> <cfcomponent> <cfproperty name="CaseRefNum" type="string" required="Yes" hint="Case/Application Reference Number"> <cfproperty name="ProcessingCentre" type="string" required="Yes"> <cfproperty name="ProductCode" type="string" required="Yes" hint="Product code for this case"> <cfproperty name="ApplicationDate" type="date" required="No"> <cfproperty name="StartDate" type="date" required="No"> <cfproperty name="RequiredAdvanceAmount" type="numeric" required="Yes"> </cfcomponent> .and individual customer data can be defined as: <!--- saved as CustomerDetail.cfc ---> <cfcomponent> <cfproperty name="CusRef" type="string" required="Yes" hint="Unique customer reference number"> <cfproperty name="CusSalutation" type="string" required="Yes" hint="Customer Salutation (Mr,Mrs,etc)"> <cfproperty name="CusFirstname" type="string" required="Yes" hint="All firstnames of customer"> <cfproperty name="CusSurname" type="string" required="Yes"> <cfproperty name="CusDoB" type="date" required="Yes" hint="Customer Date of birth"> </cfcomponent> .however in order to send more than one set of customer data (joint mortgage applications) we need this to sent as an array. Coldfusion only allows you to specify type as array (<cfargument name="CaseCustomersArray" type="array" required="Yes">), which in turn creates the WSDL as a complex type of ArrayOf_xsd_anyType. This means that there is no definition of what goes in the array and the of the CustomerDetail.cfc object. Further more, the required attribute in CFARGUMENT has no effect when the component is used as a web service, and as such all arguments are always required (returning an error if they aren't there). This is recorded as a bug by Macromedia. On top of this there doesn't seem to be any way to define the attributes of the data, number of allowed occurrences etc. At the end of the day this web service needs to be able to be consumed by applications other than ColdFusion (.Net etc) so the WSDL needs to define it properly, so if any of you have any solutions for all this it would be much appreciated. Thanks, Mike Padmore _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- Hosting provided by www.cfmxhosting.co.uk -< >- Forum provided by www.fusetalk.com -< >- DHTML Menus provided by www.APYCOM.com -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
