OK i did just what Dave says below and now I'm getting the following error:
Could not perform web service invocation "get".
Here is the fault returned when invoking the web service operation:
java.lang.IllegalArgumentException: argument type mismatch
I can send the files I'm using if it will help but basically i have
two CFC's one called recordRef which Extends BaseRef and inside i have
the cfproperty tags with types set to string. and then i just do:
RecordRef = createObject('component','recordRef');
RecordRef.name = '';
RecordRef.type = 'inventoryItem';
RecordRef.internalId = '527';
q_getList = ws.get(RecordRef);
thoughts now?
jonese
On 3/23/06, Dave Watts <[EMAIL PROTECTED]> wrote:
> > The recordRef type descends from BaseRef and is defined in core.xsd.
> > (https://webservices.netsuite.com/xsd/platform/v1_2_1/core.xsd)
> >
> > Field Name: internalId
> > XML Schema Type: xsd:string (attribute)
> > Req: y
> > Notes:
> >
> > Field Name: type
> > XML Schema Type: xsd:string (attribute)
> > Req: N
> > Notes: Reference to a value in a Web services only system
> > list. If the type is known by context, the type is NOT required.
> >
> > Field Name: name
> > XML Schema Type: xsd:string
> > Req: N
> > Notes: This is a read-only field that is populated by
> > NetSuite when it's a part of a get or search response. If
> > this field is populated during a write operation, it will be ignored.
> >
> > So how would you build this in CF?
>
> You'd create a CFC that uses the CFPROPERTY tag to document these fields.
> You'd then create an instance of this CFC and pass that to your web service,
> instead of just passing a structure.
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
>
> Fig Leaf Software provides the highest caliber vendor-authorized
> instruction at our training centers in Washington DC, Atlanta,
> Chicago, Baltimore, Northern Virginia, or on-site at your location.
> Visit http://training.figleaf.com/ for more information!
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236061
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54