Chapter 9 .NET Client Support
The server setup requires EAServer version 4.1.2 or later and WST:
set JAGUAR=d:\jag41 set WST=%JAGUAR%\webservices set JAG_HOST=localhost set IIOP_PORT=9000 set HTTP_PORT=8080 %JAGUAR%\bin\jagtool deploy -type ejbjar dotNetTest.jar %JAGUAR%\bin\jagtool restart
setenv JAGUAR /work/jag41 setenv WST $JAGUAR/Webservices setenv JAG_HOST localhost setenv IIOP_PORT 9000 setenv HTTP_PORT 8080 $JAGUAR/bin/jagtool deploy -type ejbjar dotNetTest.jar $JAGUAR/bin/jagtool restart
%WST%\wstool -host %JAG_HOST% -port %IIOP_PORT% gen_wsdl -tns http://www.com.sybase.webservices -DefName DotNETSample -soapaddr http://%JAG_HOST%:%HTTP_PORT%/WEBSERVICES/SOAP Package:dotNETSample Component:dotNETSample/Greeting Method:dotNETSample/Greeting/sayHello
$WST\wstool -host $JAG_HOST -port $IIOP_PORT gen_wsdl -tns http://www.com.sybase.webservices -DefName DotNETSample -soapaddr http://$JAG_HOST:$HTTP_PORT/WEBSERVICES/SOAP Package:dotNETSample Component:dotNETSample/Greeting Method:dotNETSample/Greeting/sayHello
gen_wsdl
instructs wstool to
generate WSDL files.
-tns
specifies
the target name space.
-DefName
is
the name of the definition. The name you set here becomes the Web
service's interface WSDL file name, and the implementation
WSDL file name is <name> + "Impl".
For example, when you set -DefName to DotNETSample
,
the WSDL file names are DotNETSample.wsdl
and DotNETSampleImpl.wsdl.
-soapaddr
is
the address of WST's soap servlet.
Package
sets
the package name
Component
sets
the component name
Method
sets
the methods you want to expose in your Web service.
You can use the WST GUI instead of wstool to
create the WSDL document and add a Web service.
Copyright © 2002 Sybase, Inc. All rights reserved. |
![]() |