Hi Marty,

You can get access to the ServiceInfo object, which provides all sorts of
metadata about your service. Think of it like a reflection api for web
services:

Client c = new Client(new URL(".../wsdl");
ServiceInfo si = c.getService().getServiceInfo();

Collection ops = si.getOperations();

OperationInfo op = si.getOperation("echo");
List parts = op.getInputMessage().getMessageParts();
System.out.println("Number of parameters: " + parts.size());
MessagePartInfo part = (MessagePartInfo) parts.get(0);
System.out.println("Part name: " + part.getName());

Hope that helps. Regards,
- Dan

On 11/28/06, Marty Henderson <[EMAIL PROTECTED]> wrote:

Hi folks,

Is there any way to get a count (or info even) of the parameters that are
expected by the dynamic client?

I have a class that pretty much has to be able to invoke anything on any
wsdl
(not including complex types at the mo... ) and hence I need to figure out
how
many input parameters there are to a service...

Hope you can help

Marty


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email




--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com | http://netzooid.com/blog

Reply via email to