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://localhos
t: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("serv
iceName") +
"Request");
WSIFMessage output =
operation.createOutputMessage(request.getParameter("ser
viceName") +
"Response");
Thanks in advance for any help,
William
--
View this message in context: http://www.nabble.com/Retrieving-inpu
t-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
|