IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Services Web Java Discussion :

Récuperer le résultat d'un web service


Sujet :

Services Web Java

  1. #1
    Membre à l'essai
    Femme Profil pro
    Étudiant
    Inscrit en
    Novembre 2012
    Messages
    42
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Matériel informatique

    Informations forums :
    Inscription : Novembre 2012
    Messages : 42
    Points : 22
    Points
    22
    Par défaut Récuperer le résultat d'un web service
    Bonjour ,

    Je voudrais savoir si il y a quelqu'un parmi vous qui sait comment récupérer la réponse d'une requête web service .

    Merci

  2. #2
    Membre confirmé Avatar de freddou17
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2013
    Messages
    341
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 35
    Localisation : France, Sarthe (Pays de la Loire)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : Service public

    Informations forums :
    Inscription : Avril 2013
    Messages : 341
    Points : 566
    Points
    566
    Par défaut
    Slt,
    Peux tu nous dire quel type de WS?
    API REST, WS SOAP...
    De toute façon un WS c'est toujours client serveur, donc la réponse est contenu dans un objet, fichier venant du serveur à la suite d'un appel client

    ++
    "Aucun de nous ne sait ce que nous savons tous, ensemble."
    Lien vers mon appli Funcash n'hésitez pas à donner votre avis

  3. #3
    Membre à l'essai
    Femme Profil pro
    Étudiant
    Inscrit en
    Novembre 2012
    Messages
    42
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Matériel informatique

    Informations forums :
    Inscription : Novembre 2012
    Messages : 42
    Points : 22
    Points
    22
    Par défaut
    Bonjour,

    Tout d'abord je te remercie pour ta réponse , mes web services sont de types Soap .

    et enfaite j'ai une requette web service qui s'appel ( GetRaws) qui permet de me retourner le résultat d'un décodage d'une trame .

    Maintenant je veux récuperer ce résultat qui se trouve dans la réponse de ma requete web service .
    Merci

  4. #4
    Expert éminent sénior
    Avatar de tchize_
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    25 481
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 44
    Localisation : Belgique

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2007
    Messages : 25 481
    Points : 48 806
    Points
    48 806
    Par défaut
    si tu commençais par nous montrer le code que t'as déjà?

  5. #5
    Membre à l'essai
    Femme Profil pro
    Étudiant
    Inscrit en
    Novembre 2012
    Messages
    42
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Matériel informatique

    Informations forums :
    Inscription : Novembre 2012
    Messages : 42
    Points : 22
    Points
    22
    Par défaut
    Bonjour,

    Alors voici ma requête:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
     
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "getRAWs", propOrder = {
        "jobID",
        "pageNumber"
    })
    public class GetRAWs {
     
        @XmlElement(required = true)
        protected String jobID;
        protected int pageNumber;
     
        /**
         * Gets the value of the jobID property.
         * 
         * @return
         *     possible object is
         *     {@link String }
         *     
         */
        public String getJobID() {
            return jobID;
        }
     
        /**
         * Sets the value of the jobID property.
         * 
         * @param value
         *     allowed object is
         *     {@link String }
         *     
         */
        public void setJobID(String value) {
            this.jobID = value;
        }
     
        /**
         * Gets the value of the pageNumber property.
         * 
         */
        public int getPageNumber() {
            return pageNumber;
        }
     
        /**
         * Sets the value of the pageNumber property.
         * 
         */
        public void setPageNumber(int value) {
            this.pageNumber = value;
        }
     
        /**
         * Generates a String representation of the contents of this type.
         * This is an extension method, produced by the 'ts' xjc plugin
         * 
         */
        @Override
        public String toString() {
            return ToStringBuilder.reflectionToString(this, JAXBToStringStyle.DEFAULT_STYLE);
        }
     
    }

  6. #6
    Expert éminent sénior
    Avatar de tchize_
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    25 481
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 44
    Localisation : Belgique

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2007
    Messages : 25 481
    Points : 48 806
    Points
    48 806
    Par défaut
    ça c'est pas une requête, c'est juste un champ

  7. #7
    Membre à l'essai
    Femme Profil pro
    Étudiant
    Inscrit en
    Novembre 2012
    Messages
    42
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Matériel informatique

    Informations forums :
    Inscription : Novembre 2012
    Messages : 42
    Points : 22
    Points
    22
    Par défaut
    Voici ma requete soap:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
     
    POST http://127.0.0.1/nd-application/services/TraRawServices
     
    POST data:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:intf="http://intf.services.decoder.astellia.com/">
       <soapenv:Header/>
       <soapenv:Body>
          <intf:getRAWs>
             <jobID>961a55b2-cc34-4c23-a90a-688c0d134e43</jobID>
             <pageNumber>1</pageNumber>
          </intf:getRAWs>
       </soapenv:Body>
    </soapenv:Envelope>

Discussions similaires

  1. problème de résultat d'un web service
    Par aymen8219 dans le forum Services Web
    Réponses: 11
    Dernier message: 18/12/2012, 09h08
  2. Résultat de mon web service dans une JSP
    Par lolilola dans le forum Servlets/JSP
    Réponses: 1
    Dernier message: 25/06/2010, 22h53
  3. Document XML comme résultat d'un web service
    Par nassim12 dans le forum Services Web
    Réponses: 2
    Dernier message: 10/12/2008, 09h07
  4. résultat d'un web service
    Par sydius dans le forum Services Web
    Réponses: 5
    Dernier message: 01/07/2008, 13h58
  5. Réponses: 2
    Dernier message: 26/09/2006, 08h56

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo