Register / Login
Win a copy of
Classic Computer Science Problems in Swift
this week in the
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 13 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.
It is sorta covered in the
JavaRanch Style Guide
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