I am new in Blackberry. I am making a application to call a webservice. A simple webservice I made that is running perfectly ok...
I want to same for our client but I am getting this error:
The endpoint reference (EPR) for the Operation not found is /icontent/services/IRServiceV3_1 and the WSA Action = null
But that service is running a soap UI tool,
My request dump is like this:
<v:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
xmlns:d="http://www.w3.org/2001/XMLSchema"
xmlns:c="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:v="http://schemas.xmlsoap.org/soap/envelope/">
<v:Header />
<v:Body>
<n0:add id="o0" c:root="1" xmlns:n0="Soap Action">
<userName i:type="d:string">*****</userName>
<password i:type="d:string">*****</password>
<dateFrom i:type="d:string">*****</dateFrom>
<dateTo i:type="d:string">*****</dateTo>
</n0:add></v:Body>
</v:Envelope>
and from which its running SoapUI toll request Dump is:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:ns="Soap Action">
<soap:Header/>
<soap:Body>
<ns:getTechnologies>
>
<ns:techRequest>
<ns:constraints>
<ns:dateFrom>******</ns:dateFrom>
<!--Optional:-->
<ns:dateTo>******</ns:dateTo>
</ns:constraints>
<ns:credentials>
<ns:userName>******</ns:userName>
<ns:password>******</ns:password>
</ns:credentials>
</ns:techRequest>
</ns:getTechnologies>
</soap:Body>
</soap:Envelope>
How can I manage that......my code in Ksoap is....simple that was running in a simple webservice but not in this....sorry I can not give all constraints.
String serviceNamespace = "namespace";
String serviceURL = "serviceURL;deviceside=true";
String serviceMethod = "getTechnologies";
String soapAction = serviceNamespace + serviceMethod;
String soapAction= "Soap action";
SoapObject request = new SoapObject(serviceNamespace, serviceMethod);
request.newInstance();
request.addProperty("userName","********");
request.addProperty("password","********");
request.addProperty("dateFrom","********");
request.addProperty("dateTo","********");
// serialize the envelope
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER12);
envelope.bodyOut = request;
envelope.setOutputSoapObject(request);
envelope.encodingStyle = "utf-8";
envelope.enc = SoapSerializationEnvelope.ENC2001;
envelope.xsd = SoapEnvelope.XSD;
envelope.xsi = SoapEnvelope.XSI;
// set up the transport
ht = new HttpTransport(serviceURL);
ht.debug = true;
envelope.dotNet = true;
//this.HttpCall();
//make the call
ht.call(soapAction,envelope);
System.out.println("Add Result is.........."+envelope.getResponse());
}
catch (XmlPullParserException ex) {
ex.printStackTrace();
}
catch (Exception ex) {
System.out.println("Exception is can be here........" + ex.toString());
ex.printStackTrace();
}
any help is appreciated