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 Bahman Kalali <bk...@csg.uwaterloo.ca> on 2002/10/30 00:52:37 UTC
getting the same parameter types after exposing a Java app as a Web Service
Hi,
I am new into the world of Web Services and I have some questions
1) I am trying to expose a Java notification system as a Web Service.
2) I only want to expose one class of my application with its public methods( publish/subscribe methods) as a Web service.
3) This class is called EventService and its methods (publish/subscribe) get parameters of type Event, Publisher, Filter....
For example, in the following, the parameters to the publish method are (Event eventType, Filter filter, Subscriber sub), but I am getting anyType.
<wsdl:message name="subscribeRequest">
<wsdl:part name="in0" type="xsd:anyType" />
<wsdl:part name="in1" type="xsd:anyType" />
<wsdl:part name="in2" type="tns1:Subscriber" />
</wsdl:message>
This means when I create stubs from thhe EventService.wsdl, the publish method has parameters of (Object, Object, Subscriber).
How can I get the same parameter types like what I had in my original publish method (i.e, Event eventType, Filter filter, Subscriber sub) ? I want to get the same paramter types for my client stubs.
Thank you very much in advance,
--Bahman
Re: getting the same parameter types after exposing a Java app as a Web Service
Posted by Bahman Kalali <bk...@csg.uwaterloo.ca>.
Do I have to do some Custom Serialization, as I am reading in
http://docs.pushtotest.com/axisdocs/user-guide.html?
--Bahman
----- Original Message -----
From: "Bahman Kalali" <bk...@csg.uwaterloo.ca>
To: <ax...@xml.apache.org>
Sent: Tuesday, October 29, 2002 8:46 PM
Subject: Re: getting the same parameter types after exposing a Java app as a
Web Service
> Thanks Steve,
>
> You mean compiling my Java application with debugging mode, or with
> Java2wsdl tool.
>
> --Bahman
>
>
>
> ----- Original Message -----
> From: "Steve Loughran" <st...@iseran.com>
> To: <ax...@xml.apache.org>
> Sent: Tuesday, October 29, 2002 8:42 PM
> Subject: Re: getting the same parameter types after exposing a Java app as
a
> Web Service
>
>
> > have you tried compiling with all your debug info left in your app? it
> > should pick up names. Types normally come for free.
> >
> > ----- Original Message -----
> > From: "Bahman Kalali" <bk...@csg.uwaterloo.ca>
> > To: <ax...@xml.apache.org>
> > Sent: Tuesday, October 29, 2002 3:52 PM
> > Subject: getting the same parameter types after exposing a Java app as a
> Web
> > Service
> >
> >
> > Hi,
> >
> > I am new into the world of Web Services and I have some questions
> >
> > 1) I am trying to expose a Java notification system as a Web Service.
> >
> > (snip)
> >
> > For example, in the following, the parameters to the publish method are
> > (Event eventType, Filter filter, Subscriber sub), but I am getting
> anyType.
> >
> >
> > <wsdl:message name="subscribeRequest">
> > <wsdl:part name="in0" type="xsd:anyType" />
> > <wsdl:part name="in1" type="xsd:anyType" />
> > <wsdl:part name="in2" type="tns1:Subscriber" />
> > </wsdl:message>
> >
> > (snip)
> >
> > How can I get the same parameter types like what I had in my original
> > publish method (i.e, Event eventType, Filter filter, Subscriber sub) ? I
> > want to get the same paramter types for my client stubs.
> >
> > Thank you very much in advance,
> >
> > --Bahman
> >
> >
> >
>
Re: getting the same parameter types after exposing a Java app as a Web Service
Posted by Bahman Kalali <bk...@csg.uwaterloo.ca>.
Thanks Steve,
You mean compiling my Java application with debugging mode, or with
Java2wsdl tool.
--Bahman
----- Original Message -----
From: "Steve Loughran" <st...@iseran.com>
To: <ax...@xml.apache.org>
Sent: Tuesday, October 29, 2002 8:42 PM
Subject: Re: getting the same parameter types after exposing a Java app as a
Web Service
> have you tried compiling with all your debug info left in your app? it
> should pick up names. Types normally come for free.
>
> ----- Original Message -----
> From: "Bahman Kalali" <bk...@csg.uwaterloo.ca>
> To: <ax...@xml.apache.org>
> Sent: Tuesday, October 29, 2002 3:52 PM
> Subject: getting the same parameter types after exposing a Java app as a
Web
> Service
>
>
> Hi,
>
> I am new into the world of Web Services and I have some questions
>
> 1) I am trying to expose a Java notification system as a Web Service.
>
> (snip)
>
> For example, in the following, the parameters to the publish method are
> (Event eventType, Filter filter, Subscriber sub), but I am getting
anyType.
>
>
> <wsdl:message name="subscribeRequest">
> <wsdl:part name="in0" type="xsd:anyType" />
> <wsdl:part name="in1" type="xsd:anyType" />
> <wsdl:part name="in2" type="tns1:Subscriber" />
> </wsdl:message>
>
> (snip)
>
> How can I get the same parameter types like what I had in my original
> publish method (i.e, Event eventType, Filter filter, Subscriber sub) ? I
> want to get the same paramter types for my client stubs.
>
> Thank you very much in advance,
>
> --Bahman
>
>
>
Re: getting the same parameter types after exposing a Java app as a Web Service
Posted by Steve Loughran <st...@iseran.com>.
have you tried compiling with all your debug info left in your app? it
should pick up names. Types normally come for free.
----- Original Message -----
From: "Bahman Kalali" <bk...@csg.uwaterloo.ca>
To: <ax...@xml.apache.org>
Sent: Tuesday, October 29, 2002 3:52 PM
Subject: getting the same parameter types after exposing a Java app as a Web
Service
Hi,
I am new into the world of Web Services and I have some questions
1) I am trying to expose a Java notification system as a Web Service.
(snip)
For example, in the following, the parameters to the publish method are
(Event eventType, Filter filter, Subscriber sub), but I am getting anyType.
<wsdl:message name="subscribeRequest">
<wsdl:part name="in0" type="xsd:anyType" />
<wsdl:part name="in1" type="xsd:anyType" />
<wsdl:part name="in2" type="tns1:Subscriber" />
</wsdl:message>
(snip)
How can I get the same parameter types like what I had in my original
publish method (i.e, Event eventType, Filter filter, Subscriber sub) ? I
want to get the same paramter types for my client stubs.
Thank you very much in advance,
--Bahman