Getting Started with SOAP of Java Web Service

xiaoxiao2021-03-05  23

In the past few days, I saw a book "Java SOAP Programming Guide", which was borrowed from the curiosity of the Xing Web Service. After reading the introduction of SOAP, I didn't understand, I only know that Simple Object Access Protocol, and XML combinations can provide cross-platform services.

The programmed person always has such a hobby. When I start, I will always take a HelloWorld look, I am no exception.

To try, there is a running environment that must be SOAP. Follow the instructions on the book, install Tomcat, download the relevant package, will soap.jar

, mail.jar, activativeio.jar, XerceptImpl.jar Add to Environment Variables ClassPath to copy SOAP.WAR to Tomcat's WebApps directory.

Test catalog running SOAP: http: //127.0.0.1: 8080 / soap / Discovery SOAP has been working properly.

Next, it is to deploy a new SOAP service. According to the source code on the book, write the deployment class and client class with the test, compile.

Add a form to the steps on the New SOAP web page to add a form and deploy it.

Add the catalog where the test is located to the ClassPath.

Restart Tomcat.

Run the client class that has just compiled, the result Noclassdeferror.

I have tried it several times, it's like this, it is very depressed.

I saw another book "Java Web Service Application Development Detailed" finally found the answer:

When running a client test program, *** Client.class is in Package Test

Return to Test's superior directory, Java Test. *** Client.

I want to meet similar problems or is not familiar with Java's packages.

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

New Post(0)