Hi all,

I'm very new to this tomcat/soap stuff so be gentle :-)

We've been using Apache/Jserv for a long while and have a lot of servlets
working in that environment. We are now migrating to Apache 2 and Tomcat 4.
We got everything installed and we even got our old servlets working in the
new environment with no problem.

Now we're trying to setup a SOAP 'server'. I can successfully deploy a SOAP
'server' using the following DeploymentDescriptor.xml file:

<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment";
             id="urn:CaseFetcher">
  <isd:provider type="java"
                scope="Application"
                methods="getAllCases">
    <isd:java class="Spike.soapServer.CaseBook" static="false"/>
  </isd:provider>


<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListene
r>

  <isd:mappings>
    <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
             xmlns:x="urn:xml-soap-case-demo"
             qname="x:case"
             javaType="Spike.soapServer.Case"

java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"

xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
  </isd:mappings>
</isd:service>

Pretty straight forward. This SOAP 'server' needs two class files, the
actual class providing the interface (CaseBook), and then an internal class
(Case) which is used in the API as well. This works beautifully and we can
deploy this SOAP 'server' by doing the following:

typeset
classpath=${tomcatJar}/mail.jar:${tomcatJar}/activation.jar:${tomcatJar}/soa
p.jar:${tomcatJar}/xerces.jar
java -cp $classpath:$CLASSPATH org.apache.soap.server.ServiceManagerClient
http://$host:8180/soap/servlet/rpcrouter deploy ..
/soapServer/DeploymentDescriptor.xml

Very nice. Now the next step is packaging this simple server (CaseBook.class
and Case.class) in a standalone file (either .jar or .war file). And after
we do that we'd like to deploy it with a descriptor like the one we're
currently using (with modifications of course).

I searched the archives and google but I can't find any clear answers as to
how to do this. Anybody out there that can either give me pointers to the
right documentation or a procedure I can follow to accomplish this?

If I have to use a war file, wow do I build one?

Thanks a lot,

-Anibal


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to