have you tried adding name and type to the RecordRef structure? I know they
are optional in terms of content, but I wonder if they need to exist?  Only
a guess I'm afraid and I expect you have tried that already.

On 3/23/06, jonese <[EMAIL PROTECTED]> wrote:
>
> Ok so i'm calling a get method via webservices and in the docs it
> tells me i have to pass in a RecordRef XSD type. So i look at the docs
> to find out what a RecordRef is and i'm given this:
>
> The RecordRef type is used to reference an existing record in NetSuite
> in get operations.
> Typically, a RecordRef references one of the following:
>         * Another business object such as a customer or sales order
>         * An entry in a user defined list such as the category list for
> contacts or sales tax items
>
> 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? i thought it was just a structure
> so i did the following:
>
> <cfscript>
>         passport = structNew();
>         passport.email = "[EMAIL PROTECTED]";
>         passport.password = "pass";
>         passport.account = 318786;
>
>         ws = CreateObject('webservice','NetSuite');
>         ws.setMaintainSession(true);
>         ws.login(passport);
>         RecordRef.internalId = '527';
>         q_get = ws.get(RecordRef);
> </cfscript>
>
> Thoughts?
>
> WSDL is here if it helps:
> https://webservices.netsuite.com/wsdl/v1_2_1/netsuite.wsdl
>
> jonese
>
>
> On 3/23/06, Michael Traher <[EMAIL PROTECTED]> wrote:
> > I had a similar issue calling a java method. I had to wrap the
> javacast()
> > function around one of the arguments passed.
> >
> > Because the java class was local I could use cfdump on the object to
> give me
> > some clues - not so easy with a web service, but if you don't have good
> docs
> > you can always take a close look at the wsdl XML.
> >
> > On 3/23/06, Thomas Chiverton <[EMAIL PROTECTED]> wrote:
> > >
> > > On Wednesday 22 March 2006 21:58, jonese wrote:
> > > >  Error converting CFML arguments to Java classes for web service
> > >
> > > I'm guessing your inputs to the web service are of the wrong type.
> > >
> > > --
> > >
> > > Tom Chiverton
> > > Advanced ColdFusion Programmer
> > >
> > >
> >
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236037
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

Reply via email to