Ok after some great help here, and some futher great help from tom
jordhal i got this working. Basically when i got this error CF was
telling me that it couldn't create the objects needed for my
webservices call and that i needed to use actual java objects.

Tom showed me how get these objects without coding them from scratch:

In order to do this, you will have to have the output of WSDL2Java
compiled and in the ColdFusion classpath (aka in the lib directory).

Do this, 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.

Once you've done the above you can now create and use the "expected"
java objects. for my code it was something like so:

// 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);


So there you go (for those who care).

Thanks all!
jonese

On 3/22/06, jonese <[EMAIL PROTECTED]> wrote:
> Anyone understand this error??
>
>  Error converting CFML arguments to Java classes for web service invocation.
> Unable to create web service argument class
> com.netsuite.webservices.platform.core_1_2.BaseRef. Error:
> java.lang.InstantiationException. Often this is because the web
> service defines an abstract complexType as an input to an operation.
> You must create an actual instance of this type in Java.
>
> jonese
>

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