Reputation: 85
I have been trying without success so far.... Any help is appropriated.
Any help is appreciated as I am sort of stuck here.
Thanks,
private static String NAMESPACE = "http://server.tna.scan.com/";
// Webservice URL - WSDL File location
//private static String URL = "http://192.168.2.5:8080/TNAService/services/TNAService?WSDL";
private static String URL = "http://myapp-mydemain.rhcloud.com:8000/TNAService/services/TNAService?WSDL";
// SOAP Action URI again Namespace + Web method name
private static String SOAP_ACTION = "";
########HERE IS THE ERROR
06-04 20:01:43.406: W/System.err(26086): org.ksoap2.transport.HttpResponseException: HTTP request failed, HTTP status: 404 06-04 20:01:43.406: W/System.err(26086): at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:237) 06-04 20:01:43.406: W/System.err(26086): at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:118) 06-04 20:01:43.406: W/System.err(26086): at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:113) 06-04 20:01:43.406: W/System.err(26086): at com.scan.tna.service.WService.invokeHelloWorldWS(WService.java:43) 06-04 20:01:43.406: W/System.err(26086): at com.scan.tna.MainActivity$PlaceholderFragment$AsyncCallWS.doInBackground(MainActivity.java:162) 06-04 20:01:43.406: W/System.err(26086): at com.scan.tna.MainActivity$PlaceholderFragment$AsyncCallWS.doInBackground(MainActivity.java:1) 06-04 20:01:43.406: W/System.err(26086): at android.os.AsyncTask$2.call(AsyncTask.java:288) 06-04 20:01:43.406: W/System.err(26086): at java.util.concurrent.FutureTask.run(FutureTask.java:237) 06-04 20:01:43.406: W/System.err(26086): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) 06-04 20:01:43.406: W/System.err(26086): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 06-04 20:01:43.406: W/System.err(26086): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 06-04 20:01:43.406: W/System.err(26086): at java.lang.Thread.run(Thread.java:841) 06-04 20:01:43.416: I/System.out(26086): Yes Received
#Upvotes: 2
Views: 1195
Reputation: 85
The URL I used in the local machine is
http://localhost.mydomain/TNAService/services/TNAService?WSDL
and the URL in the rhc is
http://myapp-mydomain.rhcloud.com/services/TNAService?WSDL
No idea why different URLs on different machines but like mentioned above you have to either correct your web.xml or use different URLs.
Upvotes: 1
Reputation: 899
You should Check pom.xml and web.xml.. Don't built your jar files in Built path it occurs 503 error.. It is a maven format so built your jar in pom.xml. For maven check this url. http://mvnrepository.com/artifact/mysql/mysql-connector-java/5.1.30
And check the mapping in web.xml. i think this is the problem. because it only make 404 error. check and tell
Upvotes: 5