Domanda

Ho provato senza successo finora ... qualsiasi aiuto è appropriato.

    .
  1. Ho creato un campione di webservice e distribuito localmente e funziona bene.
  2. Ho un account OpenShift con Tomcat e dispiegato il pacco tramite Eclipse. La costruzione è buona e la distribuzione ha successo.
  3. Le mie chiamate al WebService stanno tornando con un errore 503 .
  4. La pagina di stato haproxy mostra l'ingranaggio locale è diminuito. Dopo la ricerca per quasi un giorno, ho rimosso la linea " opzione httpchk get / " da haproxy / conf / haproxy.cfg . Ora l'ingranaggio locale è attivo e funzionante.
  5. Ora le mie richieste stanno tornando con 404 codice di errore.
  6. Qualsiasi aiuto è apprezzato come sto bloccando qui.

    Grazie,

    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 = "";
    
    . ######## qui è l'errore

    06-04 20: 01: 43.406: w / system.err (26086): org.ksoap2.transport.httpresport.httpresportException: richiesta http non riuscita, Stato HTTP: 404 06-04 20: 01: 43.406: w / system.err (26086): su org.ksoap2.transport.httptransportse.call (httptransportse.java:237) 06-04 20: 01: 43.406: w / system.err (26086): su org.ksoap2.transport.httptransportse.call (httptransportse.java:118) 06-04 20: 01: 43.406: w / system.err (26086): su org.ksoap2.transport.httptransportse.call (httptransportse.java:113) 06-04 20: 01: 43.406: w / system.err (26086): al com.scan.tna.service.wservice.invokehelloworldws (wservice.java:43) 06-04 20: 01: 43.406: w / system.err (26086): a com.scan.tna.maattivactity $ Poldidhedholderfragment $ asynccallws.doinbackground (mainactity.java:162) 06-04 20: 01: 43.406: w / system.err (26086): a com.scan.tna.maattivactity $ Poldicefragment $ asynccallws.doinbackground (mainactity.java:1) 06-04 20: 01: 43.406: w / system.err (26086): su Android.os.asynctask $ 2.Call (asynctask.java:288) 06-04 20: 01: 43.406: w / system.err (26086): su java.util.concurrent.futuretask.run (futuretask.java:237) 06-04 20: 01: 43.406: w / system.err (26086): su Android.os.asynctask $ Serialexecutor $ 1.Run (asynctask.java:231) 06-04 20: 01: 43.406: w / system.err (26086): su java.util.concurrent.threadpoolexecutor.runworkworker (threadpoolexecutor.java:1112) 06-04 20: 01: 43.406: w / system.err (26086): su java.util.concurrent.threadpoolexecutor $ worker.run (threadpoolexecutor.java:587) 06-04 20: 01: 43.406: w / system.err (26086): su java.lang.thread.run (discussione.java:841) 06-04 20: 01: 43.416: i / system.out (26086): Sì ricevuto

    #

È stato utile?

Soluzione

Dovresti controllare Pom.xml e Web.xml .. Non costruito i file JAR in percorso integrato, si verifica 503 Errore .. è un formato MAVENCosì costruito il tuo barattolo in Pom.xml . Per Maven Controlla questo URL. http://mvnrepository.com/artifact/mysql/mysql-connector-java/5.1.30

e controlla la mappatura in Web.xml .Penso che questo sia il problema.Perché fa solo un errore 404.Controlla e racconta

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top