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 :

applicatifs java pour tests web services


Sujet :

Services Web Java

  1. #1
    Nouveau Candidat au Club
    Profil pro
    Inscrit en
    Janvier 2008
    Messages
    1
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2008
    Messages : 1
    Points : 1
    Points
    1
    Par défaut applicatifs java pour tests web services
    bonjour,

    je suis testeur, en l'occurence, sur de web services.
    j'ai développé un client php et ça plante.
    Fatal error: Uncaught SoapFault exception: [HTTP] Erreur Interne de Servlet in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\ots\sptest\register.php:46 Stack trace: #0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'http://10.194.6...', 'http://install....', 2, 0) #1 C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\ots\sptest\register.php(46): SoapClient->__soapCall('subscribeOnline', Array) #2 {main} thrown in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\ots\sptest\register.php on line 46
    on m'a conseillé d'utiliser web services studio pour tester l'accès aux webservices, or cela me renvoie l'erreur suivante
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
    at WebServiceStudio.MessageTracer.ReadMessage(Stream from, Int32 len, String contentType)
    at WebServiceStudio.WSSWebRequest.GetResponse()
    at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
    at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
    at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
    at OrangeTokenServer.subscribeOnline(subscribeOnlineType subscribeOnline1)
    --- End of inner exception stack trace ---
    at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
    at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    at WebServiceStudio.MainForm.InvokeWebMethod()
    at WebServiceStudio.MainForm.buttonInvoke_Click(Object sender, EventArgs e)
    at System.Windows.Forms.Control.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ButtonBase.WndProc(Message& m)
    at System.Windows.Forms.Button.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    le problème c'est qu'on m'avance comme argument que visual studio c'est du .NET et donc, qu'on veut pas le prendre en compte et donc me voila arrivé à ma question,
    existe-t-il un applicatif style webservicestudio mais en java?
    siouplé

  2. #2
    Membre habitué

    Profil pro
    Inscrit en
    Décembre 2005
    Messages
    105
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2005
    Messages : 105
    Points : 134
    Points
    134
    Par défaut
    Bonjour

    Je ne connais pas les produit MS, mais si tu veux tester des services web avec assertion, et autres, le tout sans developper du code, je te conseille soapui: http://www.soapui.org/
    Cdlt
    Willy78

  3. #3
    Membre éclairé
    Avatar de gerald2545
    Profil pro
    Inscrit en
    Février 2003
    Messages
    744
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2003
    Messages : 744
    Points : 773
    Points
    773
    Par défaut
    je crois aussi avoir vu un truc qui s'appelle xmlunit sur le site d'IBM.
    si tu as plus d'infos, reviens vers nous
    a+

  4. #4
    Membre émérite
    Avatar de alexismp
    Homme Profil pro
    Inscrit en
    Janvier 2005
    Messages
    1 503
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Janvier 2005
    Messages : 1 503
    Points : 2 777
    Points
    2 777
    Par défaut
    Avec JAX-WS et le JDK 6, déployer un web service, c'est aussi simple que ça:

    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
     
    package example;
    import javax.jws.WebService;
    import javax.jws.WebService;
    import javax.xml.ws.Endpoint;
     
    @WebService
    public class Calculator {
        @WebMethod
        public int add(int a, int b) {
            return a+b;
        }
     
        public static void main(String[] args){
            // create and publish an endpoint
            Calculator calculator = new Calculator();
            Endpoint endpoint = Endpoint.publish("http://localhost:8080/calculator", calculator);        
        }
    }

Discussions similaires

  1. Création d'un client java pour un web service
    Par legna986 dans le forum Services Web
    Réponses: 2
    Dernier message: 19/03/2013, 10h18
  2. Client Java pour un Web Service PHP
    Par jof8dev dans le forum Services Web
    Réponses: 7
    Dernier message: 03/08/2012, 12h21
  3. API java pour amazon web services(amazon E-commerce Service)
    Par mehdiing dans le forum Services Web
    Réponses: 1
    Dernier message: 03/04/2008, 08h34
  4. Réponses: 2
    Dernier message: 20/11/2007, 16h00
  5. Réponses: 1
    Dernier message: 12/02/2007, 15h22

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