You should use the "WSDL first" method to build these services. Define
a common schema that defines the "A" type, and then import that schema
into your WSDLs.
Anne
On Tue, Sep 9, 2008 at 2:56 PM, Jonge, Merijn de
<[EMAIL PROTECTED]> wrote:
> Hi All,
>
>
>
> I'm using axis2-1.4.1 and Eclipse/WTP and want to create the following two
> services:
>
> * A service "f" that produces a result of type "A"
>
> * A service "g" that consumes an input of type "A"
>
> Next, I would like to make the service composition g(f()). In other words, I
> would like to pass the result of service "f" to the service "g".
>
>
>
> My problem is that the generated client stubs contain incompatible class
> definitions for type "A", making the service composition impossible.
>
> The problem is that both definitions are defined as static inline classes of
> the corresponding services.
>
> Something like:
>
>
>
> public class fStub {
>
> …
>
> public static class A {}
>
> …
>
> }
>
>
>
> public class gStub {
>
> …
>
> public static class A {}
>
> …
>
> }
>
>
>
> Since both definitions of A are in different name spaces (fstub.A and
> gStub.A, respectively), the classes are incompatible.
>
> On the server side this is not a problem, because there the generated class
> definition for "A" uses the namespace as defined in the wsdl.
>
>
>
> Could someone indicate how to solve this problem? Am I doing things wrong?
>
>
>
> Any help would be greatly appreciated.
>
>
>
> Kind regards,
>
> Merijn de Jonge
>
>
>
>
>
> Merijn de Jonge
>
> Healthcare Systems Architecture Department
>
> Philips Research Laboratories
>
> http://www.extra.research.philips.com/hera/people/mdejonge/
>
>
>
> ________________________________
> The information contained in this message may be confidential and legally
> protected under applicable law. The message is intended solely for the
> addressee(s). If you are not the intended recipient, you are hereby notified
> that any use, forwarding, dissemination, or reproduction of this message is
> strictly prohibited and may be unlawful. If you are not the intended
> recipient, please contact the sender by return e-mail and destroy all copies
> of the original message.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]