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 :

probleme generation du wsdl avec xfire


Sujet :

Services Web Java

  1. #1
    Membre à l'essai
    Inscrit en
    Juin 2005
    Messages
    14
    Détails du profil
    Informations forums :
    Inscription : Juin 2005
    Messages : 14
    Points : 12
    Points
    12
    Par défaut probleme generation du wsdl avec xfire
    slt, voilà je travaille sur une app web service et j'utilise le xfire, comme debutante, j'ai suivi un exemple sur le lien http://www.logemann.org/blojsom/blog...nd-jsr181.html
    j'ai juste modifié l'annotation @WebService(name="Hello",
    serviceName="HelloService", targetNamespace="http://Hello.webservice.domain.netversys.logentis.de/",
    endpointInterface="de.logentis.netversys.domain.webservice.Hello")

    pour indiquer le endpoint dans le fichier HelloImpl.java.
    maintenant, quand j'execute le client, j'ai le message suivant
    Exception in thread "main" org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Couldn't send message.
    org.codehaus.xfire.fault.XFireFault: Couldn't send message.
    at org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89)
    at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:30)
    at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
    at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:75)
    at org.codehaus.xfire.client.Client.invoke(Client.java:335)
    at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
    at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
    at $Proxy5.sayHelloNawal(Unknown Source)
    at de.logentis.netversys.domain.webservice.HelloClient.main(HelloClient.java:136)
    Caused by: org.codehaus.xfire.XFireException: Couldn't send message.
    at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:145)
    at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
    at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
    ... 7 more
    Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(Unknown Source)
    at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:79)
    at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:121)
    at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
    at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321)
    at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
    at org.codehaus.xfire.transport.http.CommonsHttpMessageSender.send(CommonsHttpMessageSender.java:260)
    at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:123)
    ... 9 more

    donc le wsdl ne se genere pas je sais pa si g un probleme dans le chemin ou autre chose

  2. #2
    Membre à l'essai
    Inscrit en
    Juin 2005
    Messages
    14
    Détails du profil
    Informations forums :
    Inscription : Juin 2005
    Messages : 14
    Points : 12
    Points
    12
    Par défaut
    voilà mon client java

    package de.logentis.netversys.domain.webservice;
    import org.codehaus.xfire.service.Service;
    import org.codehaus.xfire.service.binding.ObjectServiceFactory;
    import org.codehaus.xfire.client.XFireProxyFactory;
    import org.codehaus.xfire.annotations.AnnotationServiceFactory;
    import de.logentis.netversys.domain.webservice.Hello;
    import de.logentis.netversys.domain.webservice.HelloImpl;
    import java.net.MalformedURLException;

    public class HelloClient {

    public static void main(String[] args) {
    Service serviceModel = new AnnotationServiceFactory().create( HelloImpl.class);
    try { Hello service = (Hello)new XFireProxyFactory().create( serviceModel, "http://localhost:8080/TestWS/services/HelloService");
    String s = service.sayHelloNawal();
    System.out.println(s); }
    catch (MalformedURLException e) { e.printStackTrace(); }

    }

    P.S : le TestWS est mon le nom de mon projet

  3. #3
    Membre à l'essai
    Inscrit en
    Juin 2005
    Messages
    14
    Détails du profil
    Informations forums :
    Inscription : Juin 2005
    Messages : 14
    Points : 12
    Points
    12
    Par défaut
    voilà, j'ai trouvé un peu l'erreur, au fait, j'ai installé le servicemix et je crois k g un prob avec la configuration avec jboss.

Discussions similaires

  1. axis1 et generation de wsdl avec type de donne perso
    Par pcouas dans le forum Services Web
    Réponses: 1
    Dernier message: 10/02/2010, 18h42
  2. Probleme de generation de rapport avec jasper
    Par mazbaz dans le forum Jasper
    Réponses: 5
    Dernier message: 28/04/2008, 20h30
  3. Probleme avec xfire
    Par allexdu21 dans le forum Autres Logiciels
    Réponses: 0
    Dernier message: 04/02/2008, 20h57
  4. Probleme de generation de jar avec Netbean
    Par JMLLB dans le forum NetBeans
    Réponses: 4
    Dernier message: 27/09/2007, 11h04

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