Hi Jonese,

I'm still struggling with this - not being a Java bod at all.

Am I correct in thinking that your example below would return an inventory
item from Netsuite? That's what it looks like to me.

Any pointers on the logging on issue?

Thanks again.

Will
        
                

-----Original Message-----
From: jonese [mailto:[EMAIL PROTECTED] 
Sent: 06 October 2006 18:16
To: CF-Talk
Subject: Re: Soap and namespaces A bit deeper

// Get a handle to the class
 RecType = CreateObject("java",
"com.netsuite.webservices.platform.core_1_2.types.RecordType");

<< The above code uses the createobject function to create an instance of
the java class RecordType. this is like creating a CFC in normal CF

 // Call the static method of the class that returns an instance of the
enumeration  recordType = RecType.fromString("inventoryItem");

<< the above code here basically creates a recordType object in CF using the
RecordType Class and the from String function. So in the end recordType is
of taype inventoryItem.

 // Create the argument Jaav type
 recordRef = CreateObject("java",
"com.netsuite.webservices.platform.core_1_2.RecordRef");

<< this code does the same thing as RecordType above

 // Call the constructor with the three arguments recordRef.init("name",
"527", recordType);

<< this  init's the class and passes in the data. I think you can remove the
double quotes around the itemid to get it to work properly.

 // call the operation
 result = ws.get(recordRef);

<< This gets the resultset of th operaition above

Something i forgot to mention was when referancing the java class files in
dot notation you'll what to check out your folder structure to make sure
everything matches up. More than likely the referances to 'core_1_2' will
changes are your version numbers change etc.

Also make sure you followed netsuites recommendation to over write the
axis.jar file. You'll want to update the axis.jar in the ColdFusion lib
directory and not the one buried inside the webservices.jar file.
Also Adobe did make changes to the axis.jar file so expect possible issues
(i haven't run across any).

hope this helps!
jonese

On 10/6/06, Will Swain <[EMAIL PROTECTED]> wrote:
>
> Hi jonese,
>
> I've followed the first part of your suggestion, but can you explain 
> to me what's going on here in a bit more detail:
> <<SNIP>>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:256319
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to