You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by falom <fa...@yahoo.com.cn> on 2007/01/14 09:39:14 UTC

[Axis2]:Re: Re: Axis2 and Pure messaging.

Hi Paul,

How can i in axis2 client code, before calling the operation,  set:
http://server.com/axis2/services/serviceName/opName1
http://server.com/axis2/services/serviceName/opName2
...
using option or other ways? Also does WSDL allow operations to be defined with different URL?

falom

Paul Fremantle <pz...@gmail.com> wrote: Its really simple.

use
http://server.com/axis2/services/serviceName/opName

Paul

On 1/12/07, Giuseppe Sarno  wrote:
> Hi Thanks,
> I can't rely on the SOAPAction but the URL seems to be the right one.
>
> Do you have or know where I can find any example ?
>
> Regards.
> Giuseppe.
>
> -----Original Message-----
> From: Paul Fremantle [mailto:pzfreo@gmail.com]
> Sent: 12 January 2007 14:50
> To: axis-user@ws.apache.org
> Subject: Re: Axis2 and Pure messaging.
>
> Giuseppe
>
> Yes it is completely possible. The operation can be decided by a number
> of things, for example the URL or the SOAPAction. So you can easily have
> any message body.
>
> The RawXML message receiver implements this, or you can use the -d none
> option on WSDL to Java.
>
> The WSDL for this simply defines the message as xsd:any.
>
> Paul
>
>
> On 1/12/07, Giuseppe Sarno  wrote:
> >
> >
> >
> > Hi,
> > I was looking if was possible to use Axis2 to implement a messing
> > style web service where The Soap body is not known at compile time.
> >
> > This way the client can send multiple or different XML messages (with
> > different root) and the same Interface on the Server side is called.
> >
> > So far from what I understood the root of the SOAP body is fixed by
> > the operation I want to use.
> >
> > Does anyone knows if what I'm trying to do it's possible ?
> >
> > Thanks.
>
>
> --
> Paul Fremantle
> VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
>
> http://bloglines.com/blog/paulfremantle
> paul@wso2.com
>
> "Oxygenating the Web Service Platform", www.wso2.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
paul@wso2.com

"Oxygenating the Web Service Platform", www.wso2.com

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org



 		
---------------------------------
 Mp3疯狂搜-新歌热歌高速下   

Re: [Axis2]:Re: Re: Axis2 and Pure messaging.

Posted by Sanjiva Weerawarana <sa...@opensource.lk>.
On Sun, 2007-01-14 at 16:39 +0800, falom wrote:
> Hi Paul,
> 
> How can i in axis2 client code, before calling the operation,  set:
> http://server.com/axis2/services/serviceName/opName1
> http://server.com/axis2/services/serviceName/opName2

See http://wso2.org/library/290 and look at options.setTo().

> using option or other ways? Also does WSDL allow operations to be
> defined with different URL?

With WSDL 1.1 this is not possible unfortunately. WSDL 2.0 allows this-
see whttp:location that can be added to any SOAP binding on an
operation-by-operation basis.

Sanjiva.
-- 
Sanjiva Weerawarana, Ph.D.
Founder & Director; Lanka Software Foundation; http://www.opensource.lk/
Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
Director; Open Source Initiative; http://www.opensource.org/
Member; Apache Software Foundation; http://www.apache.org/
Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org