I am Trying to find someone to get me started on the right path in consuming my products via ColdFusion.
I have some sample code that I have been experimenting with here:
I can do this...
<cfscript>
stUser = structNew();
stUser.email = "xxx";
stUser.password = "xxx";
stUser.account = "xxx";
stUser.role = 31;
ws = createObject("webservice", "https://webservices.netsuite.com/wsdl/v2_5_0/netsuite.wsdl");
</cfscript>
And if I dump the ws variable I get something like this....
Methods:
add (returns com.netsuite.webservices.platform.messages_2_5.WriteResponse)
get (returns com.netsuite.webservices.platform.messages_2_5.ReadResponse)
..
..
login (returns com.netsuite.webservices.platform.messages_2_5.SessionResponse)
..
Now it shows me specifically that there is a login method. But If I try to use it - well then I get THIS...
Web service operation "login" with parameters {{PASSWORD={xxx},EMAIL={xxx},ACCOUNT={xxx},ROLE={31},}} could not be found.
If I try it this way...
<cfinvoke webservice="https://webservices.netsuite.com/wsdl/v2_5_0/netsuite.wsdl"
returnvariable="myReturnVar"
method="login">
<cfinvokeargument name="email" value="xxx">
<cfinvokeargument name="password" value="xxx">
<cfinvokeargument name="account" value="xxx">
<cfinvokeargument name="role" value="31">
</cfinvoke>
I get this ...
Web service operation "login" with parameters {email={xxx},role={31},account={xxx},password={xxx},} could not be found.
All in all - I keep getting told that the login method does not exist. But it does
Can anyone help me? I am thoroughly stumped.
Thanks so much,
Chris