Interview Questions

How do I write a SOAP Client using Perl?

SOAP Interview Questions and Answers


(Continued from previous question...)

How do I write a SOAP Client using Perl?

This section shows you how to write a SOAP client using Apache SOAP for Java. The instructions given here pertain to Win32 and Unix systems but can be adapted for any applicable platform.

Introduction
We will be writing some very simple SOAP clients which will exploit the Quotation Service as described and developed in the Section 4 of Server-Side SOAP. If you have already gone through the Server-Side SOAP tutorial and implemented and tested the Quotation Service then you have already seen these clients. The only difference on this page is that there is a little more explanation of how they tick.

You can incorporate the java code you find here into Java Server Pages, Servlets, Applet-based web pages and stand-alone GUI-based java clients. But it is not our intention to show detailed examples of all of these client types here because the SOAP-related code that you would incorporate is essentially invariant. So we will just look at the bare essentials in a stripped down client with the rawest user interface possible.

As is the case when writing clients to any SOAP service, ensure in advance that you are familiar with the service and its method signatures.

We will build three clients, one for each service method. The source files are available in the soapuser-1.0.zip archive. If you have not already downloaded and extracted this file then save it to your machine and extract to C:\soap [ ~/soap if using Unix ]. Everything will be contained in a subdirectory called soapuser-1.0. In particular the java client source files will be under soapuser-1.0\src in a directory structure that complies with the package name (ie. com\soapuser\soap\client\quotation).

Read More... http://www.soapuser.com/client2.html

(Continued on next question...)

Other Interview Questions