You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsif-user@ws.apache.org by TriggerHappy <ki...@yahoo.com> on 2007/03/03 14:43:06 UTC

Retrieving input/output types

Hi

I am developing Java web services using Axis. I need to know, prior to
invocation, what types each of my methods in the service will take as a
parameter.

For example if I have a 'public int something(int x)' signature which is
mapped to WSDL using the Java2WSDL function, how to I used WSIF to extract
the fact that in needs an int parameter input and the output type is int?

As far as I can see from the WSIF supplied samples, what I have written so
far (below) seems to be in the right direction but I am lost where to go
from here to extract the 'type="xsd:int"' definitions from the WSDL.

WSIFServiceFactory factory = WSIFServiceFactory.newInstance();
String wsdl = "http://localhost:8080/services/" + serviceName);
WSIFService service = factory.getService(wsdl, null, null, null, null);
WSIFPort port = service.getPort();
WSIFOperation operation = port.createOperation(serviceName);
WSIFMessage input =
operation.createInputMessage(request.getParameter("serviceName") +
"Request");
WSIFMessage output =
operation.createOutputMessage(request.getParameter("serviceName") +
"Response");

Thanks in advance for any help,
William
-- 
View this message in context: http://www.nabble.com/Retrieving-input-output-types-tf3338583.html#a9285177
Sent from the WSIF - User mailing list archive at Nabble.com.


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