1 Reply Latest reply on Oct 21, 2004 4:03 PM by sudhad

    NameSpace Issues

    sudhad

      Is there a document or article which points to configuration of web-service.xml ?

      Looks like I am miss configuring things on my web-service.xml which is pasted below. Aim is to expose the StudentEJB as a WebService and the Vignette Builder is used to expose the EJB as a Portlet Application.

      The issue is the generated wsdl file is so complicated that there are 4 namespaces and I am wondering why?

      web-service.xml:
      <!-- Example Web Service Descriptor for Console Client HelloClient and EJB Based Client TestHelloClient -->
      <deployment xmlns="http://xml.apache.org/axis/wsdd/" targetNamespace="http://net.jboss.org/hello" xmlns:hello="http://net.jboss.org/hello" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
      <!--
      this is an extension to the Axis deployment descriptor which allows to
      specify the naming environment for the deployed ws logic

      -->





































      Another thing is the StudentListDataBean (a value Object) extends BaseDataBean which implements the serilizable interface.

      Question is should I use type mapping for BaseDataBean too? In other words the inherited class too?

      Or is some parameter/configuration I missing.

      Any help on this is highly appreciated.

      Sudha

        • 1. Re: NameSpace Issues
          sudhad

           

          "Sudhad" wrote:
          Is there a document or article which points to configuration of web-service.xml ?

          Looks like I am miss configuring things on my web-service.xml which is pasted below. Aim is to expose the StudentEJB as a WebService and the Vignette Builder is used to expose the EJB as a Portlet Application.

          The issue is the generated wsdl file is so complicated that there are 4 namespaces and I am wondering why?

          web-service.xml:
          <!-- Example Web Service Descriptor for Console Client HelloClient and EJB Based Client TestHelloClient -->
          <deployment xmlns="http://xml.apache.org/axis/wsdd/" targetNamespace="http://net.jboss.org/hello" xmlns:hello="http://net.jboss.org/hello" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
          <!--
          this is an extension to the Axis deployment descriptor which allows to
          specify the naming environment for the deployed ws logic

          -->
          <service name="Hello" provider="Handler">
          <parameter name="handlerClass" value="org.jboss.net.axis.server.EJBProvider" />
          <parameter name="beanJndiName" value="StudentSB_Jndi_Name" />
          <parameter name="homeInterfaceName" value="StudentSBHome" />
          <parameter name="allowedMethods" value="getStudentHello" />
          <requestFlow name="HelloRequest">
          <handler name="TransactionRequestHandler" type="java:org.jboss.net.axis.server.TransactionRequestHandler" />
          </requestFlow>
          <responseFlow name="HelloResponse">
          <handler name="SerialisationResponseHandler" type="java:org.jboss.net.axis.server.SerialisationResponseHandler" />
          <handler name="TransactionResponseHandler" type="java:org.jboss.net.axis.server.TransactionResponseHandler" />
          </responseFlow>
          </service>

          <service name="TestHelloWorld" provider="java:RPC">
          <parameter name="className" value="edu.cmu.acis.sis.portal.TestHelloWorld"/>
          <parameter name="allowedMethods" value="*"/>
          <requestFlow name="HiYaRequest">
          <handler name="TransactionRequestHandler" type="java:org.jboss.net.axis.server.TransactionRequestHandler" />
          </requestFlow>
          <responseFlow name="HiYaResponse">
          <handler name="SerialisationResponseHandler" type="java:org.jboss.net.axis.server.SerialisationResponseHandler" />
          <handler name="TransactionResponseHandler" type="java:org.jboss.net.axis.server.TransactionResponseHandler" />
          </responseFlow>

          </service>

          <service name="HiYa" provider="java:RPC">
          <parameter name="className" value="edu.cmu.acis.sis.portal.HiYa"/>
          <parameter name="allowedMethods" value="*"/>
          <requestFlow name="HiYaRequest"/>
          <responseFlow name="HiYaResponse"/>
          </service>

          <typeMapping qname="hello:StudentListDataBean"
          type="java:edu.cmu.acis.sis.view.databean.student.StudentListDataBean"
          serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
          deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
          encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />

          Another thing is the StudentListDataBean (a value Object) extends BaseDataBean which implements the serilizable interface.

          Question is should I use type mapping for BaseDataBean too? In other words the inherited class too?

          Or is some parameter/configuration I missing.

          Any help on this is highly appreciated.

          Sudha