axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jiang Liu" <S3075...@student.rmit.edu.au>
Subject Re: Re: Shared data types between services
Date Wed, 07 Feb 2007 12:07:01 GMT
Hi
I have the same question, well, i used to have a service which in one operation has same type
of input and output message, when i try to invoke this operation, it throws me NullPointerException.
So i guess we can not have same type of messages as both input and output, the only difference
here is they are same but seperate in two operations. 

BTW, you can use BPEL to finish the this job by using XPath.

Cheers!!

-----Original Message-----
From: Alan Birtles <mailinglists@birtles.org.uk>
To: axis-user@ws.apache.org
Date: Wed, 07 Feb 2007 11:59:11 +0000
Subject: Re: Shared data types between services

Simply delete one of the generated types and replace all references to  
it with the other type.

Quoting Miguel Ferreira <mferreira@dsi.uminho.pt>:

>
> Dear all,
>
> How can I share a message definition (i.e. object definition or data
> type) between two different web services?
> The idea is the following:
>
> I have two distinct web services: service A and service B with web
> methods method1 and method2 respectly. Both methods receive a
> "Parameter" object type as argument and return the same type.
>
> Summary:
>
> ServiceA
> 	- Paramenter method1(Parameter p);
> ServiceB
> 	- Paramenter method2(Parameter p);
>
> I want to build a client that invokes method1 on ServiceA and uses the
> response to call method2 on ServiceB. For example:
>
> Parameter a = serviceA.method1(p);
> serviceB.method2(a);
>
> The problem is that while building the stubs (using WSDL2Java), I end
> up with two different "Parameter" objects, so composition is not
> possible.
> I can one solve this problem from a SOA perspective using axis.
>
> Thanks in advance.
>
> Best regards,
> Miguel
>
>
> - -
> Miguel Ferreira (researcher)
> Department of Information Systems
> University of Minho Campus de Azurém
> 4800-058 Guimar√£es, Portugal
> http://www.dsi.uminho.pt/~ferreira/
> Phone: +351 253 510 261 / FAX: +351 253 510 300 / Ext.: 510261
>
>
>
> ---------------------------------------------------------------------
> 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


------------------------------
Jiang Liu
Student Number: 3075163
CS/Yallara Name: ljiang
RMIT, Melbourne

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


Mime
View raw message