7 Replies Latest reply on Oct 3, 2001 9:03 AM by joy

    SOAP for server-client communication

    raheit00

      Hi,

      can someone tell me how to use SOAP to communicate with JBoss from a client. I would like to use other languages than Java on the client side. Another issue is that only port 80 can be used as a communication port. There is the ZOAP project, but I can't find any documentation on this.

      Thanks,
      Ralph

        • 1. Re: SOAP for server-client communication
          fredj

          Hello,

          With the Apache SOAP 2.2 distribution, you just have to install it ( SOAP.WAR put in our Tomcat WebApp directory). After, just test the ejb samples provide with it. It's quite easy. The SOAP bridge to EJB server (provider) are for Session Beans (session and Stateless).

          If you want an MDB provider we have write a simple provider for.

          Here is a sample of deployment descriptor for a simple ping service.

          <?xml version="1.0"?>
          <isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
          id="urn:Ping">
          <isd:provider type="org.apache.soap.providers.StatelessEJBProvider"
          scope="Request"
          methods="echo">
          <isd:java class="Ping"/>
          <isd:option key="FullHomeInterfaceName" value="com.mycompany.service.ping.PingHome"/>
          <isd:option key="ContextProviderURL" value="localhost:1099" />
          <isd:option key="FullContextFactoryName" value="org.jnp.interfaces.NamingContextFactory" />
          </isd:provider>
          <isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListener>
          </isd:service>

          Good luck !

          FJ

          • 2. Re: SOAP for server-client communication
            raheit00

            Thanks for your help,
            I got it running. At first the ejb sample within the soap package. Now I will try my own ejb's.

            Is it correct that the EJB's have to be in the JBOSS_CLASSPATH. They are already deployed to JBoss, looks like that that is not enough.

            Thanks,
            Ralph

            • 3. Re: SOAP for server-client communication
              fredj

              You'll have to put your .jars of the ejbs you want to deploy in the TOMCAT.BAT.



              • 4. Re: SOAP for server-client communication
                simons

                Would You please be so kind to explain to me how You got the example up and running?
                Would You please do it step-by-step, as I'm new to EJB and absolutely new to SOAP but have to do a similar job like yours?

                thanks, michael

                • 5. Re: SOAP for server-client communication
                  raheit00

                  I mailed my configuration to your mail address.

                  Ralph

                  • 6. Re: SOAP for server-client communication
                    ericw

                    Would it be possible to mail me the same configuration files. I've been trying to get it to work and i'm just missing somthing.

                    Thanks

                    • 7. Re: SOAP for server-client communication
                      joy

                      Please sent me an example of ZOAP server-client communication

                      Thanks.