Retrieving input/output types
TriggerHappy <kingwilliam1-/[email protected]> Sat, 3 Mar 2007 05:43:06 -0800 (PST)
| Newsgroups | gmane.comp.apache.webservices.wsif.user |
|---|---|
| Message-ID | <[email protected]> |
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.