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



On 10/6/06, Will Swain <[EMAIL PROTECTED]> wrote:
> Hi Jonese,
>
> Version 1.3.1 I believe.
>
> Thanks
>
> Will
>
>
>
> -----Original Message-----
> From: jonese [mailto:[EMAIL PROTECTED]
> Sent: 06 October 2006 14:55
> To: CF-Talk
> Subject: Re: Soap and namespaces A bit deeper
>
> Will which version of netsuite webservices are you using?
>
> erj
>
> On 10/6/06, WIll Swain <[EMAIL PROTECTED]> wrote:
> > Sorry to resurrect an old topic, but I stumbled across this in a web
> search. I'm having the same issues with the netsuite webservices. Can jonese
> or anyone else shed any light? Did you find a solution in the end?
> >
> > Thanks
> >
> > Will
> >
> > >Based on some help from andrew i'm a bit closer but still at a loss
> > >for what the namespace s for this soap service. I'm trying to get the
> > >namespace so i can read the soap response headers so i can find out
> > >cookie information which i need to pass with future requests to
> > >remain "logged in"
> > >
> > >any help would be appreciated.
> > >
> > >ok here's the soap returned after a successful login. any idea where
> > >the namespace is?
> > >
> > ><soapenv:envelope
> > >xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> > >xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> > >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
> > >       <soapenv:header>
> > >         <sessioninfo
> xmlns="urn:messages_1_2.platform.webservices.netsuite.com">
> > >               <userid>11429</userid>
> > >         </sessioninfo>
> > >       </soapenv:header>
> > >       <soapenv:body>
> > >         <loginresponse
> xmlns="urn:messages_1_2.platform.webservices.netsuite.com">
> > >               <sessionresponse
> xmlns="urn:messages_1_2.platform.webservices.netsuite.com">
> > >                 <ns1:status issuccess="true"
> > >xmlns:ns1="urn:core_1_2.platform.webservices.netsuite.com">
> > >                       <ns2:wsrolelist
> xmlns:ns2="urn:core_1_2.platform.webservices.netsuite.com">
> > >                         <ns2:wsrole>
> > >                               <ns2:role internalid="3">
> > >                                 <ns2:name>Administrator</ns2:name>
> > >                               </ns2:role>
> > >                               <ns2:isdefault>false</ns2:isdefault>
> > >                               <ns2:isinactive>false</ns2:isinactive>
> > >                         </ns2:wsrole>
> > >                         <ns2:wsrole>
> > >                               <ns2:role internalid="11">
> > >                                 <ns2:name>Store Manager</ns2:name>
> > >                               </ns2:role>
> > >                               <ns2:isdefault>false</ns2:isdefault>
> > >                               <ns2:isinactive>false</ns2:isinactive>
> > >                         </ns2:wsrole>
> > >                       </ns2:wsrolelist>
> > >                 </ns1:status>
> > >               </sessionresponse>
> > >         </loginresponse>
> > >       </soapenv:body>
> > ></soapenv:envelope>
> > >
> > >On 3/9/06, Andrew Stevens <[EMAIL PROTECTED]> wrote:
> > >> >
> >
> >
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:255794
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