I built a little webclient that uses Axis 1.3 recently. Here's the qsh script that sets JAVA_HOME depending on whether Java 1.4 is in IFS root or QOpenSys and sets the classpath to include all the jar files in a given IFS directory.
# shell script to run STRCWPNEP
# SBMJOB CMD(QSH CMD('path/STRCWPNEP400.sh')) JOB(STRCWPNEP)
COMMAND='chgjob job('$JOBNAME') runpty(14)'
system $COMMAND
export QIBM_MULTI_THREADED=Y
for i in /QOpenSys/QIBM/ProdData/JavaVM/jdk14/64bit /QIBM/ProdData/Java400/jdk14 ; do
if test -e "$i" ; then
export -s JAVA_HOME="$i"
break
fi
done
echo Using JAVA_HOME: $JAVA_HOME
cd $(dirname ${0})
echo Working Directory: $(pwd)
for i in lib/*.jar ; do
CLASS_PATH="${CLASS_PATH}:${i}"
done
echo Class Path: "${CLASS_PATH}"
# parameters are host IP address (optional), user name (optional), password (optional)
# if IP address is omitted, localhost is assumed
# if user and password are omitted, current user is assumed
java -Djava.class.path="${CLASS_PATH}" -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true com.rjssoft.workflow.workpiece.NEP localhost
The jars in the path, exclusive of my own are:
Axis.jar
Commons-codec-1.2.jar
Commons-discovery-0.2.jar
Jaxrpc.jar
Log4j-1.2.8.jar
Saaj.jar
Wsdl4j-1.5.1.jar
Commons-logging-1.0.4.jar
Jt400.jar
Mail.jar
Activation.jar
Outlook capitalized all those, the're all lower case in my path.
-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Sonin,Nikolai
Sent: Monday, October 01, 2012 3:37 PM
To: Java Programming on and around the IBM i
Subject: RE: Web Services through Java
Mr. Perkins:
I was trying to use plain old java classes to call into AXIS to communicate with the Avalara sales tax webservice. The Avalara Avatax webservice uses an SDK for Java based on Axis 1.2.1 and I was trying to get that to work on our system where our EDI vendor who shall remain nameless to protect the guilty, dumped an unkown version of AXIS into /QIBM/UserData/Java400/ext because IBM told them to. Being new to Java, it took me some time to find out that this was causing some severe problems on our iSeries.
Nick Sonin
-----Original Message-----
From: James Perkins [mailto:jrperkinsjr@xxxxxxxxx]
Sent: Monday, October 01, 2012 4:21 PM
To: Java Programming on and around the IBM i
Subject: Re: Web Services through Java
Maybe could you explain a bit more what you're trying to do? AXIS is quite old and I don't know that's it's really active any more. The last release date was 2006.
Using web services in a Java EE container is quite easy. Is that what you're trying to do?
--
James R. Perkins
On Mon, Oct 1, 2012 at 12:24 PM, Sonin,Nikolai <nsonin@xxxxxxxxxxx> wrote:
Has anyone gotten AXIS 1.4 to work on the J9 JVM on the iSeries at
V5R4M0? If so how?
Nick Sonin
--
This is the Java Programming on and around the IBM i (JAVA400-L)
mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To
subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at
http://archive.midrange.com/java400-l.
--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/java400-l.
--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/java400-l.
As an Amazon Associate we earn from qualifying purchases.