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:

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

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

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

 // Call the constructor with the three arguments  

recordRef.init("name", "527", recordType);

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

When I try this I get the following error:

Unable to find a constructor for class
com.netsuite.webservices.platform.core_1_3.RecordRef that accepts parameters
of type ( java.lang.String, java.lang.String,
com.netsuite.webservices.platform.core_1_3.types.RecordType ).

recordRef.init("name", "527", recordType);

Thanks

Will
                

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

Ok when you code your calls to netsuite are you creating any java objects or
strictly CFML?

the netsuite webservice requires you to create java objects using the code
generated by CF and the wsdl2java function.

here are steps to move that code into a usable area and other stuff Tom
Jordahl sent me back when i was having these issues.

clean out the CFusionMX7/stubs directory.  Restart your CF server.  Do a
CreateObject on the WSDL, this will run WSDL2Java and compile all the
resulting code.  Then, copy the directory of class files (i.e. the "com"
directory) in to CFusionMX7/lib.  Restart CF.

Now in your CFML code you can do this:
  // Get a handle to the class
  RecType = CreateObject("java", "
com.netsuite.webservices.platform.core_1_2.types.RecordType");

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

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

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

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


jonese


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:255800
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to