good,,
I have yet 2 problems
I want to get connected to a web service that contains a simple class that calculates the sum of two numbers by a method calculate (int a, int b) with two arguments
I had sent by the soap.
Here is the code I used:
if you see any errors please let me specify.
Code:
try {
int a=1;int b=2;
SoapObject request = new SoapObject(url, "add");
HttpTransport ht = new HttpTransport(url);
request.setProperty(a, "PARAMETER_ID");
request.setProperty(b, "PARAMETER_ID");
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.setOutputSoapObject(request);
ht.call("", envelope);
SoapObject result = (SoapObject)envelope.getResponse();
Object x=result.getProperty("");
Dialog.alert("i am here in tray");
}
catch (Exception e) {
Dialog.alert("i am here in catch"+ e.getMessage());
}
The second thing is when I run the program I have an exception that says "error starting: httpd module soap j2me-core-2.1.2 not found"
so I'm stuck at this stage and I can solve the pad problems please help me or suggest another solution because I need to connect to web service and I made simple test but I can't
pleaz help