I have created a java class whose methods I need to access via wM java service.
My java class name is “TestABC.class” which does not have any qualified package name.
I created a jar file for this class and placed it under IntegrationServer/lib/jars folder and also under my custom webMethods package (MyPackage/code/jars). I restarted Integration Server after this and reloaded “MyPackage”.
Now I need to access a method of this external class (TestABC.myMethods()) in a wM java service(testJavaService) that I’m going to create under my custom wM package (i.e. MyPackage.utils:testJavaService). I tried specifying the class name (i.e. TestABC.*) in the import section of the shared tab of the java service. But with this, the java service would not compile. The java service compilation process is not able to recongnize this external class.
Can you please let me know how can I import this external class into my java service?
A code snippet showing how to access TestABC.myMethods(); in the java service that I’m going to build would really help a lot.
Please help me out with your expert answers.
Thanking you in advance.