Deploy the Webservice Confidential Tutorial on the Java Platform

xiaoxiao2021-03-06  96

Use of Axis deployment WebService simple tutorial on the Java platform: dytt@yeah.net Note: This article uses Bea WebLogic Axis Web server that allows you to write webservice like to write a function that simple, will be a step by step description: 1, write a Java Class I write a static function Sayhello (STRING NAME), which is the WebService function we have to write to the interface. (Note: Be sure to write a static function, AXIS will only convert a static function into a webservice code (Hellobeauty.java) as follows: Public class hellobeauty {public static void main (String [] args) {} public static string Sayello (String Name) {return name ", you are a beauty girl.";}} 2, download axis-1_1.zip, unzipped, and deployed into a Web site. The AXIS-1.1 directory structure is as follows: AXIS-1.1 ----- DOC ----- lib ----- Samples ----- WebApps ----- xmls ----- license ---- -Readme ----- Release-Notes.html Adds a virtual directory on the web server (here you temporarily change the virtual directory name to AXIS, you can change it according to the situation), the root node of the virtual directory is set to the AXIS-1.1 directory . 3, deploy the Hellobeauty.java written in front to the AXIS-1.1 / WebApps directory and change the file suffix to jws, ie Hellobeauty.jws. 4. Access open IE, enter http: // web server address /axis/hellobeauty.jws will appear after the AXIS processed page, the page content is as follows. There is a web service here click to see the wsdl After seeing the above page, you represent your WebService deployment success. Others can call your WebService via http: // web server address /axis/hellobeauty.jws?wsdl.

转载请注明原文地址:https://www.9cbs.com/read-123177.html

New Post(0)