Register / Login
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Java Micro Edition
J2ME & Web Service: more than one part in input message
posted 12 years ago
I have a method in a web sevice that get two
objects and returns a String object.
String send(String to, String msg);
My wsdl.xml specified the method like this:
<wsdl :-o peration name =" send " parameterOrder =" to msg " > <wsdl:input message =" impl:sendRequest " name =" sendRequest " /> <wsdl :-o utput message =" impl:sendResponse " name =" sendResponse " /> </wsdl :-o peration >
I tried to generate the stubs throught J2ME WTK 2.1, but I got two warnings:
warning: ignoring operation "send": more than one part in input message warning: Port "SmsInterface" does not contain any usable operations
The generated stub does not have the send implementation.
If I change my method in my Web Service to get an array of String, the stub is generated with successful.
The method newInstance() from class javax.microedition.xml.rpc.Operation get only one element as input par�meter.
How can I do to invoke a method with two or more input params?
Thanks a lot.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
Boost this thread!
SOAP1.1 vs SOAP1.2 vs SOAPHTTP using Axis2
adding new operation in web service interface
Sending a Complex element through the Header.
Question on Java to WSDL mapping
question on client side soap binding stub on wsdl complext type element