Not quite. I have no problems in returning the same type of the argument of the method. Problems arise only when I need to share the same type between different services.

Um abraço.

- -
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


On Feb 7, 2007, at 12:07 PM, Jiang Liu wrote:

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 <[EMAIL PROTECTED]>
To: [email protected]
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 <[EMAIL PROTECTED]>:


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to