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 TriggerHappy <ki...@yahoo.com> on 2007/02/24 17:24:49 UTC

Getting method input/output types

Hi

I'm trying to create a generic class which will invoke any service (provided
it knows the service name and WSDL URL).

Hypothetically speaking, if I had a 'Car' class with methods:
- int getMaxSpeed()
- String getModel(String saloonOrEstate)

How would these map onto the Axis API? I ideally want a list of methods
available, each with their respective input and output types. Is a mechanism
to do this?

Many thanks
William
-- 
View this message in context: http://www.nabble.com/Getting-method-input-output-types-tf3284218.html#a9135324
Sent from the Axis - User mailing list archive at Nabble.com.


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


[ANN]VTD-XML 2.0

Posted by Jimmy Zhang <cr...@comcast.net>.
 The VTD-XML project team is proud to announce the release of 
version 2.0 of VTD-XML, the next generation XML parser/indexer.
The new features introduced in this version are:

* VTD+XML version 1.0: the world's first true native XML index 
that is simple, general-purpose and back-compatible with XML. 
* NodeRecorder Class that saves VTDNav's cursor location for 
later sequential access.
* Overwrite capability
* Lexically comparisons between VTD and strings

 To download the software, please go to 
http://sourceforge.net/project/showfiles.php?group_id=110612

 To read the latest benchmark report please go to
http://vtd-xml.sf.net/benchmark1.html

 To get the latest API overview
http://www.ximpleware.com/vtd-xml_intro.pdf



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


Re: [Axis2] Getting method input/output types

Posted by Alexander Veit <li...@nezwerg.de>.
TriggerHappy wrote:
> Anne, thanks for your quick reply.
> 
> How does WSDL4J give me access to method parameter types (xsd:String,
> xsd:int etc..)?
> The most I seem to be able to get out of it is the element name (e.g.
> "getNameRequest") and not the actual parameter types.

Within the WSDL navigate from service, port, binding, operation to the 
input, output and fault messages of the operation. The parts of the 
messages provide links to elements and types defined in the types 
section of the WSDL, or to built-in XML Schema types.


-- 
-Alex

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


Re: [Axis2] Getting method input/output types

Posted by Davanum Srinivas <da...@gmail.com>.
See DynamicInvoker sample
(http://svn.apache.org/viewvc/webservices/axis/trunk/java/samples/client/)

-- dims

On 2/25/07, TriggerHappy <ki...@yahoo.com> wrote:
>
> Anne, thanks for your quick reply.
>
> How does WSDL4J give me access to method parameter types (xsd:String,
> xsd:int etc..)?
> The most I seem to be able to get out of it is the element name (e.g.
> "getNameRequest") and not the actual parameter types.
>
> Thanks in advance,
> William
>
>
>
> Anne Thomas Manes wrote:
> >
> > Keep in mind that SOAP is service-oriented rather than object-oriented.
> > Although plenty of people do it, you should not assume that a service
> > exposes getter and setter methods on each of its attributes. The better
> > way to design services is to expose higher order operations.
> >
> > The JAX-RPC DII (the Call API) provides an API to dynamically invoke
> > a service. You use WSDL4J to parse the WSDL and identify the
> > supported operations and their message formats.
> >
> > Anne
> >
> > On 2/24/07, TriggerHappy <ki...@yahoo.com> wrote:
> >>
> >> Hi
> >>
> >> I'm trying to create a generic class which will invoke any service
> >> (provided
> >> it knows the service name and WSDL URL).
> >>
> >> Hypothetically speaking, if I had a 'Car' class with methods:
> >> - int getMaxSpeed()
> >> - String getModel(String saloonOrEstate)
> >>
> >> How would these map onto the Axis API? I ideally want a list of methods
> >> available, each with their respective input and output types. Is a
> >> mechanism
> >> to do this?
> >>
> >> Many thanks
> >> William
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Getting-method-input-output-types-tf3284218.html#a9135324
> >> Sent from the Axis - User mailing list archive at Nabble.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
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Getting-method-input-output-types-tf3284218.html#a9144919
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers

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


Re: [Axis2] Getting method input/output types

Posted by TriggerHappy <ki...@yahoo.com>.
Anne, thanks for your quick reply.

How does WSDL4J give me access to method parameter types (xsd:String,
xsd:int etc..)?
The most I seem to be able to get out of it is the element name (e.g.
"getNameRequest") and not the actual parameter types.

Thanks in advance,
William



Anne Thomas Manes wrote:
> 
> Keep in mind that SOAP is service-oriented rather than object-oriented.
> Although plenty of people do it, you should not assume that a service
> exposes getter and setter methods on each of its attributes. The better
> way to design services is to expose higher order operations.
> 
> The JAX-RPC DII (the Call API) provides an API to dynamically invoke
> a service. You use WSDL4J to parse the WSDL and identify the
> supported operations and their message formats.
> 
> Anne
> 
> On 2/24/07, TriggerHappy <ki...@yahoo.com> wrote:
>>
>> Hi
>>
>> I'm trying to create a generic class which will invoke any service
>> (provided
>> it knows the service name and WSDL URL).
>>
>> Hypothetically speaking, if I had a 'Car' class with methods:
>> - int getMaxSpeed()
>> - String getModel(String saloonOrEstate)
>>
>> How would these map onto the Axis API? I ideally want a list of methods
>> available, each with their respective input and output types. Is a
>> mechanism
>> to do this?
>>
>> Many thanks
>> William
>> --
>> View this message in context:
>> http://www.nabble.com/Getting-method-input-output-types-tf3284218.html#a9135324
>> Sent from the Axis - User mailing list archive at Nabble.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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Getting-method-input-output-types-tf3284218.html#a9144919
Sent from the Axis - User mailing list archive at Nabble.com.


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


Re: Getting method input/output types

Posted by Anne Thomas Manes <at...@gmail.com>.
Keep in mind that SOAP is service-oriented rather than object-oriented.
Although plenty of people do it, you should not assume that a service
exposes getter and setter methods on each of its attributes. The better
way to design services is to expose higher order operations.

The JAX-RPC DII (the Call API) provides an API to dynamically invoke
a service. You use WSDL4J to parse the WSDL and identify the
supported operations and their message formats.

Anne

On 2/24/07, TriggerHappy <ki...@yahoo.com> wrote:
>
> Hi
>
> I'm trying to create a generic class which will invoke any service (provided
> it knows the service name and WSDL URL).
>
> Hypothetically speaking, if I had a 'Car' class with methods:
> - int getMaxSpeed()
> - String getModel(String saloonOrEstate)
>
> How would these map onto the Axis API? I ideally want a list of methods
> available, each with their respective input and output types. Is a mechanism
> to do this?
>
> Many thanks
> William
> --
> View this message in context: http://www.nabble.com/Getting-method-input-output-types-tf3284218.html#a9135324
> Sent from the Axis - User mailing list archive at Nabble.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