Listing 1 deploy.wsdd

<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">

<service name="PBCalculator" provider="java:RPC" >
<parameter name="className" value="AxisCalculator" />
<parameter name="allowedMethods" value="*" />
</service>

</deployment>



Listing 2 Setpath.bat 
REM SET JAGUAR=c:\sybase\EAServer

SET WEBAPP=%JAGUAR%\Repository\WebApplication\axis\WEB-INF\lib

Set CLASSPATH=%CLASSPATH%;%JAGUAR%\java\lib\easclient.jar;
Set CLASSPATH=%CLASSPATH%;%JAGUAR%\html\classes;
Set CLASSPATH=%CLASSPATH%;%JAGUAR%\java\classes;
Set CLASSPATH=%CLASSPATH%;%JAGUAR%\java\classes\crimson.jar;
Set CLASSPATH=%CLASSPATH%;%WEBAPP%\axis.jar;
Set CLASSPATH=%CLASSPATH%;%WEBAPP%\commons-logging.jar;
Set CLASSPATH=%CLASSPATH%;%WEBAPP%\jaxrpc.jar;
Set CLASSPATH=%CLASSPATH%;%WEBAPP%\log4j-core.jar;
Set CLASSPATH=%CLASSPATH%;%WEBAPP%\saaj.jar;
Set CLASSPATH=%CLASSPATH%;%WEBAPP%\tt-bytecode.jar;
Set CLASSPATH=%CLASSPATH%;%WEBAPP%\wsdl4j.jar;.




Listing 3 p_pbcalculator.srx
$PBExportHeader$p_PBCalculator.srx$PBExportComments$Proxy 
imported from WSDL file via Soap Proxy generator.
global type p_PBCalculator from NonVisualObject
end type

type variables
Protected:
string tns1 = "http://Axis"
string intf = "http://localhost:8080/axis/services/
PBCalculator"
string impl = "http://localhost:8080/axis/services/
PBCalculator-impl"
string SOAP_ENC = "http://schemas.xmlsoap.org/soap/
encoding/"
string wsdl = "http://schemas.xmlsoap.org/wsdl/"
string wsdlsoap = "http://schemas.xmlsoap.org/wsdl/soap/"
string xsd = "http://www.w3.org/2001/XMLSchema"

string endpoint = "http://localhost:8080/axis/services/
PBCalculator"
tns1__calculator i__tns1__calculator
end variables

global p_PBCalculator p_PBCalculator

forward prototypes
public:
function long add (long in0, long in1) alias for "add([in] xsd:int in0, [in] xsd:int in1) return xsd:int addReturn@add"
function tns1__calculator getComponent () alias for "getComponent() return tns1:calculator return@getComponent"
function string getVersion () alias for "getVersion() return xsd:string getVersionReturn@getVersion"
subroutine main (string in0[ ]) alias for "main([in] xsd:string[ ] in0)@main"
function long subtract (long in0, long in1) alias for "subtract([in] xsd:int in0, [in] xsd:int in1) return xsd:int subtractReturn@subtract"
end prototypes




Listing 4 PowerBuilder 9beta3 sourcecode
Long ll_ret
Long ll_v1 = 4, ll_v2 = 3, ll_ReturnVal
String str_proxy_name = "p_pbcalculator"
String ls_url = "http://localhost:8090/axis/services/PBCalculator"

SoapConnection lsc_Conn
p_pbcalculator lproxy_obj

lsc_Conn = create SoapConnection
lsc_Conn.SetOptions("SoapLog=~"C:\\soaplog.txt~"")

ll_ret = lsc_Conn.CreateInstance(lproxy_obj, str_proxy_name, ls_url)

IF ll_ret <> 0 THEN
MessageBox("Error","CreateInstance failed " + String(ll_ret))
return
END IF

Try

ll_ReturnVal = lproxy_obj.add(ll_v1, ll_v2)
MessageBox("add returned", &
String(ll_v1) + "+" + String(ll_v1) + "=" + String(ll_ReturnVal))

Catch ( SoapException e )

MessageBox("Error","Exception: " + e.getmessage())

end try
Destroy lsc_Conn

Additional Source Code