<@U8KL7Q1C3> I believe those com.netsuite.suitetal...
# suitetalkapi
c
@Xplosivo I believe those com.netsuite.suitetalk jars are their own for the sample app. Updating to a 2018.X would require you to manually go through and update the jar source (I believe).
x
wow and they haven’t updated the sample app. No sweat just a little more elbow grease 🙂 Thanks
c
it should be just be a matter of changing a 7 to an 8. I was messing with it last night for my plugin. I may use these jars as well since it has the TBA stuff built out already and I don't have to recreate the wheel
if i get it working ill drop them in here
x
Yes I was going to do find/replace 🙂
assuming the class path in the dependency is the same which so far it doesn’t look like it is
c
careful with find and replace the package namespaces change sometimes
yeah
x
The wsdl generated different class paths vs 2017_2
c
yeah I have the 2018.1 WSDL on my github but i THINK I did something weird as there's 2 .class files for each class which isn't right
i did a wsimport and then jar'd it.. gonna have to do it again
x
yes I did the same
c
did it generate 2 .class file?
x
Copy code
wsimport -J-Djavax.xml.accessExternalSchema=all -b bindings.xml -keep /Users/djxmobile/Downloads/netsuite <https://webservices.netsuite.com/wsdl/v2018_2_0/netsuite.wsdl>
I used gradle to generate the jar
c
i just used ar cvf NetSuite2018.1.jar ./com
x
dropped this in the project dir
Copy code
apply plugin: 'java'

version = '2.0.0'
sourceCompatibility = 1.8
targetCompatibility = 1.8

//create a single Jar with all dependencies
task fatJar(type: Jar) {
    manifest {
        attributes 'Implementation-Title': '2018.2 SuiteTalk client',
                'Implementation-Version': version,
                'Implementation-Vendor': 'NetSuite Inc.'
    }
    baseName = project.name + '-all'
    from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
    with jar
}
c
maybe thats my problem
what is the size of your .jar?
x
2717632 Aug 23 00:12 netsuite-2018_2.0.0.jar
2.7mb
c
I think when i jar'd it, its also including the .java files as well
and i think you only need the .class files
is the 2018.2 even out yet? or are you using the beta one
x
i used beta, trying to stay ahead of the curb
c
Ok.. i got 2.6mb after i removed the .jar files so that seems right
i used "find . -name '*.java' - delete" on mac in the directory where the com folder lives to get rid of the .java files after the wsimport
x
ah ok
what about if you want to download the sources for development?
maybe generate a new dependency for sources?
c
java can decompile .class files
x
Good point.
c
So having the .java files MAY help you but the code isn't obfuscated so it should decompile nicely. You could probably have 1 .jar file w/ both and one "production" (like a minified .js) that has only the .class files if the .class files don't decompile correctly
x
gotcha. I guess time to reconstruct the WsClient class 🙂
c
ha lemme know how it works out... you may save me some time
x
cool. will do.
was trying to share netsuite webservices but asking me to upgrade to paid slack account. Trying to charge me for every user in this group 🙂 30k
c
you shouldn't have to
you can post in the channel
x
yep that is where I tried to post originally.
maybe ill throw it in dropbox or google docs
c
its all good i'll recreate it.. I'm guessing it worked alright?
x
still migrating all the classes from that netsuite proxy jar.
to be continued!
c
all good just looking at it myself
seems like some methods are missing in the 2018.1 wsdl
nevermind
x
how did you make out?
I think that proxy class contained a lot of utility classes which aren’t part of the classes generated by the wsdl
also those dependencies in the sample app were generated with an old java jdk so the implementation of streams for example has changed in 1.8
c
yeah I didn't go too deep
i only use it for my plugin which netsuite is about to release their own soon so no real reason
if you want TBA, they are just creating a PassPort (native WSDL class) and using that
x
👍