I've been encountered another problem with the sample from the NetSuite resource using Axis-SOAP.
I downloaded the zip, followed the instructions to build. My environment:
- Java SDK: j2sdk1.4.2_10
- Axis: axis-1_2_1
- NetSuite WebService ver. 1.0
The src.generated I got is not the same as that of your sample zip.
I got the errors on the compilation of the NSClient.java. Below is one of those errors:
[javac] C:\NetSuite\ver-1_1_0\src\com\netsuite\webservices\samples\NSClient.java:353: cannot resolve symbol
[javac] symbol : class Status
[javac] location: class com.netsuite.webservices.samples.NSClient
[javac] Status status = (_port.login(passport)).getStatus();
[javac] ^
As much as I can see, the above problem is due to:
1. The SessionResponse.getStatus() method has a different type on return:
From my build:
public com.netsuite.webservices.platform.core_1_0.StatusDetail[] getStatus() {
return status;
}
From your sample:
public com.netsuite.webservices.platform.core_1_0.Status getStatus() {
return status;
}
2. There is no Status class (Status.java file) generated in my build.
I don't know why my src.generated is different from your sample. I have tried both Axis-1_2_1 and the latest Axis-1_3, got the same result. I have even tried different WebServices versions of yours: v1_2_0/netsuite.wsdl and v1_2_1/netsuite.wsdl, but they give the same set of problems. Are there any other options or anything else I'm missing?
Please advise,
Thanks,
Trung