hi stephan,

>
> I am trying to rollout our application to JBoss.NET instead of a separate
> Axis.war
> I am running xdoclet 1.2b2, JBoss 3.2.2RC4 under redhat 9
>

some days ago, i had the same problem. i solved it by looking into the
jboss-net testsuite which is distributed with the sources.

>
> My session bean (the one exposed as web service is):
>
>  * @ejb.bean   type="Stateless"
>  *             name="NodeSyncher"
>  *
>  * @ejb.transaction type="Required"
>  *
>  * @jboss-net.web-service urn="NodeSynchService"
>  */
> public class NodeSyncherBean implements javax.ejb.SessionBean {
>
>
> My LoginResponse is:
>
>  *
>  * @jboss-net.xml-schema urn="kserver:LoginResponse"
>  *
> public class LoginResponse implements java.io.Serializable {
>
>
> My ant task do :
>
> <jbossnet webDeploymentName="NodeSynchService"
>                 prefix="kserver"
>                 destdir="${build.wsr.dir}/META-INF"/>
>

the answer is, that you have to configure your client, i.e. your client's
axis configuration and tell it which serializer to use for which class.
the configuration file could look something like this:

<!-- Example EJB Web Service Descriptor -->

<deployment
  name="SessionId"
  targetNamespace="http://net.jboss.org/";
  xmlns="http://xml.apache.org/axis/wsdd/";
  xmlns:jbnet="http://net.jboss.org/server";
  xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";
  xmlns:kserver=   you have to put something here. the exact content
                   is not important, it's just a namespace definition.
                   e.g. "http://xml.kiala.com/kserver";
  >

  <transport name="http" pivot="java:org.apache.axis.transport.http.HTTPSender">
  </transport>

  <typeMapping
    qname="kserver:NodeSynchService"
    type="java:your.complete.package.name.NodeSynchService"
    serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
    deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
    >
  </typeMapping>
</deployment>


As you may observe from my response, i am myself not really sure what i am
doing here. however, at least in my case it seems to work ;-)

for e.g. i am not sure how to configure a axis, since i am using the
(deprecated) AxisInvocationHandler. i do not know why it is deprecated,
but it allows me to work with the remote EJBObject's in almost the same
way as directly calling EJB.

good look, heinz-dieter conradi



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to