You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Rehor Vykoupil <re...@anfdata.cz> on 2002/06/07 14:14:10 UTC
how can I get service name on the server side - SOAP over JMS
Hi!
I use Axis with JMS as transport protocol. The message javax.jms.Message,
which is sent over JMS, carries (in my case) just SOAP message
(TextMessage). But SOAP message doesn't contain the name of the service. In
my case JMS doesn't carry "MessageContext", which contains the soap message,
and into which I can put the service name.
1) How can I get service name on the server side? At the moment I'm setting
up the sevice name with "msgContext.setTargetService("Calculator")" on the
server side but it is fault!!!
2) Where is any documentation of configuration of axis (wsdd, how to
configure Chains, ...)?
Thanks,
-Rehor.
Re: how can I get service name on the server side - SOAP over JMS
Posted by Rehor Vykoupil <re...@anfdata.cz>.
Hi William,
thank you for your answer. I have shortly looked at the chapter 8 of your
book. But:
1) the name of the service class (String providerClass
=dd.getProviderClass();) is taken from the deployment descriptor (dd) and
the dd includes just one service.
2) In my case the deployment descriptor includes many services. So I am not
able to retreive the name of the class from the dd.
<------- just example of a part of deployment descriptor ----->
<service name="Calculator" provider="java:RPC">
<parameter name="className" value="Calculator.Calculator"/>
<parameter name="allowedMethods" value="add"/>
<parameter name="scope" value="Session"/>
</service>
<service name="CalculatorNew" provider="java:RPC">
<parameter name="className" value="Calculator.Calculator"/>
<parameter name="allowedMethods" value="add"/>
<parameter name="scope" value="Session"/>
</service>
<------- the end of the example ----->
The question:
Where can I find a documentation of Axis (wsdd, ...).
Thank you,
-Rehor.
----- Original Message -----
From: "William Brogden" <wb...@bga.com>
To: <so...@xml.apache.org>
Sent: Friday, June 07, 2002 8:46 PM
Subject: RE: how can I get service name on the server side - SOAP over JMS
>
> > -----Original Message-----
> > From: Rehor Vykoupil [mailto:rehor.vykoupil@anfdata.cz]
> > Sent: Friday, June 07, 2002 7:14 AM
> > To: soap-user@xml.apache.org
> > Subject: how can I get service name on the server side - SOAP over JMS
> >
> >
> > Hi!
> >
> > I use Axis with JMS as transport protocol. The message
> > javax.jms.Message,
> > which is sent over JMS, carries (in my case) just SOAP message
> > (TextMessage). But SOAP message doesn't contain the name of
> > the service. In
> > my case JMS doesn't carry "MessageContext", which contains
> > the soap message,
> > and into which I can put the service name.
> > 1) How can I get service name on the server side? At the
> > moment I'm setting
> > up the sevice name with
> > "msgContext.setTargetService("Calculator")" on the
> > server side but it is fault!!!
> > 2) Where is any documentation of configuration of axis (wsdd, how to
> > configure Chains, ...)?
> >
> > Thanks,
> >
> > -Rehor.
> >
>
> I discuss using JMS for SOAP msg in chapter 8 of my SOAP book.
> You can download that chapter from:
> http://www.lanw.com/books/javasoap/
>
> Unfortunately I was using Apache SOAP for that, not AXIS, but
> you may find it useful.
>
> WBB
>
>
>
Re: how can I get service name on the server side - SOAP over JMS
Posted by Rehor Vykoupil <re...@anfdata.cz>.
Hi William,
thank you for your answer. I have shortly looked at the chapter 8 of your
book. But:
1) the name of the service class (String providerClass
=dd.getProviderClass();) is taken from the deployment descriptor (dd) and
the dd includes just one service.
2) In my case the deployment descriptor includes many services. So I am not
able to retreive the name of the class from the dd.
<------- just example of a part of deployment descriptor ----->
<service name="Calculator" provider="java:RPC">
<parameter name="className" value="Calculator.Calculator"/>
<parameter name="allowedMethods" value="add"/>
<parameter name="scope" value="Session"/>
</service>
<service name="CalculatorNew" provider="java:RPC">
<parameter name="className" value="Calculator.Calculator"/>
<parameter name="allowedMethods" value="add"/>
<parameter name="scope" value="Session"/>
</service>
<------- the end of the example ----->
The question:
Where can I find a documentation of Axis (wsdd, ...).
Thank you,
-Rehor.
----- Original Message -----
From: "William Brogden" <wb...@bga.com>
To: <so...@xml.apache.org>
Sent: Friday, June 07, 2002 8:46 PM
Subject: RE: how can I get service name on the server side - SOAP over JMS
>
> > -----Original Message-----
> > From: Rehor Vykoupil [mailto:rehor.vykoupil@anfdata.cz]
> > Sent: Friday, June 07, 2002 7:14 AM
> > To: soap-user@xml.apache.org
> > Subject: how can I get service name on the server side - SOAP over JMS
> >
> >
> > Hi!
> >
> > I use Axis with JMS as transport protocol. The message
> > javax.jms.Message,
> > which is sent over JMS, carries (in my case) just SOAP message
> > (TextMessage). But SOAP message doesn't contain the name of
> > the service. In
> > my case JMS doesn't carry "MessageContext", which contains
> > the soap message,
> > and into which I can put the service name.
> > 1) How can I get service name on the server side? At the
> > moment I'm setting
> > up the sevice name with
> > "msgContext.setTargetService("Calculator")" on the
> > server side but it is fault!!!
> > 2) Where is any documentation of configuration of axis (wsdd, how to
> > configure Chains, ...)?
> >
> > Thanks,
> >
> > -Rehor.
> >
>
> I discuss using JMS for SOAP msg in chapter 8 of my SOAP book.
> You can download that chapter from:
> http://www.lanw.com/books/javasoap/
>
> Unfortunately I was using Apache SOAP for that, not AXIS, but
> you may find it useful.
>
> WBB
>
>
>
RE: how can I get service name on the server side - SOAP over JMS
Posted by William Brogden <wb...@bga.com>.
> -----Original Message-----
> From: Rehor Vykoupil [mailto:rehor.vykoupil@anfdata.cz]
> Sent: Friday, June 07, 2002 7:14 AM
> To: soap-user@xml.apache.org
> Subject: how can I get service name on the server side - SOAP over JMS
>
>
> Hi!
>
> I use Axis with JMS as transport protocol. The message
> javax.jms.Message,
> which is sent over JMS, carries (in my case) just SOAP message
> (TextMessage). But SOAP message doesn't contain the name of
> the service. In
> my case JMS doesn't carry "MessageContext", which contains
> the soap message,
> and into which I can put the service name.
> 1) How can I get service name on the server side? At the
> moment I'm setting
> up the sevice name with
> "msgContext.setTargetService("Calculator")" on the
> server side but it is fault!!!
> 2) Where is any documentation of configuration of axis (wsdd, how to
> configure Chains, ...)?
>
> Thanks,
>
> -Rehor.
>
I discuss using JMS for SOAP msg in chapter 8 of my SOAP book.
You can download that chapter from:
http://www.lanw.com/books/javasoap/
Unfortunately I was using Apache SOAP for that, not AXIS, but
you may find it useful.
WBB
RE: how can I get service name on the server side - SOAP over JMS
Posted by William Brogden <wb...@bga.com>.
> -----Original Message-----
> From: Rehor Vykoupil [mailto:rehor.vykoupil@anfdata.cz]
> Sent: Friday, June 07, 2002 7:14 AM
> To: soap-user@xml.apache.org
> Subject: how can I get service name on the server side - SOAP over JMS
>
>
> Hi!
>
> I use Axis with JMS as transport protocol. The message
> javax.jms.Message,
> which is sent over JMS, carries (in my case) just SOAP message
> (TextMessage). But SOAP message doesn't contain the name of
> the service. In
> my case JMS doesn't carry "MessageContext", which contains
> the soap message,
> and into which I can put the service name.
> 1) How can I get service name on the server side? At the
> moment I'm setting
> up the sevice name with
> "msgContext.setTargetService("Calculator")" on the
> server side but it is fault!!!
> 2) Where is any documentation of configuration of axis (wsdd, how to
> configure Chains, ...)?
>
> Thanks,
>
> -Rehor.
>
I discuss using JMS for SOAP msg in chapter 8 of my SOAP book.
You can download that chapter from:
http://www.lanw.com/books/javasoap/
Unfortunately I was using Apache SOAP for that, not AXIS, but
you may find it useful.
WBB