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 :

[CXF] Erreur "Unexpected wrapper element found"


Sujet :

Services Web Java

  1. #1
    Membre régulier
    Profil pro
    informatique
    Inscrit en
    Novembre 2009
    Messages
    167
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations professionnelles :
    Activité : informatique

    Informations forums :
    Inscription : Novembre 2009
    Messages : 167
    Points : 88
    Points
    88
    Par défaut [CXF] Erreur "Unexpected wrapper element found"
    Bonjour à tous ,
    j'ai crée un web service en utilisant apache cxf 2.7.11 ,seulement lors du test du web service dans un platforme client j'a cette erreur:
    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
     
    An exception has been thrown during processing: Unexpected wrapper element {http://service.applicationsnet.com/soap/}insertUser found.   Expected {http://soapa.service.applicationsnet.com/}insertUser.
    Stacktrace: 
    Server stack trace: 
       at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
       at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
     
    Exception rethrown at [0]: 
       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       at MKP.Services.SR_Provisioning.ProvisionServicePortType.InsertUser(InsertUserRequest request)
       at MKP.Services.SR_Provisioning.ProvisionServicePortTypeClient.SR_Provisioning_ProvisionServicePortType_InsertUser(InsertUserRequest request)
       at MKP.Services.SR_Provisioning.ProvisionServicePortTypeClient.InsertUser(InsertUserInput insertUser1)
       at checkerWS_ISV.checkerWS_ISV.ProvisionIU_Click(Object sender, EventArgs e)

    voici les annotation generé lors de la creation du web service:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
     
    @WebService(targetNamespace = "http://soapa.service.applicationsnet.com/", portName = "ProvisioningPort", serviceName = "ProvisioningService")
    public class Provisioning implements ProvisionService_PortType {
     
    	static int NbrInsertUser=0;
    		@WebMethod(operationName = "insertUser", action = "urn:InsertUser")
    		@RequestWrapper(className = "com.applicationsnet.service.soapa.jaxws.InsertUser", localName = "insertUser", targetNamespace = "http://soapa.service.applicationsnet.com/")
    		@ResponseWrapper(className = "com.applicationsnet.service.soapa.jaxws.InsertUserResponse", localName = "insertUserResponse", targetNamespace = "http://soapa.service.applicationsnet.com/")
    		@WebResult(name = "return")
    		public void insertUser(@WebParam(name = "arg0") Calendar Timestamp,@WebParam(name = "arg1") String AdminUserName,@WebParam(name = "arg2") String AdminPassWord,@WebParam(name = "arg3") String FirstName, @WebParam(name = "arg4") String LastName,@WebParam(name = "arg5") String Email,@WebParam(name = "arg6") String RoleName,@WebParam(name = "arg7") String RealmName,@WebParam(name = "arg8") String UserName,@WebParam(name = "arg9") String PassWord,@WebParam(name = "arg10") CustomField[] CustomFields) throws XmlRpcException, SecurityException, IOException,  SQLException
    le end point address est :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    http://localhost:8080/WebServiceProject1/services/ProvisioningPort
    Target namespace:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    http://soapa.service.applicationsnet.com/

    est ce que l'erreur est relatif au package utilisé? (
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    package com.applicationsnet.service.soapa;
    )
    si quelqu'un a une idée du probleme , je suis preneuse
    merci infiniment

  2. #2
    Membre régulier
    Profil pro
    informatique
    Inscrit en
    Novembre 2009
    Messages
    167
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations professionnelles :
    Activité : informatique

    Informations forums :
    Inscription : Novembre 2009
    Messages : 167
    Points : 88
    Points
    88
    Par défaut
    resolue : l'erreur provenait du client , mon webservice fonctionnent correctement , seulement pour le tester j'avais a faire a un client qui demandé a namespace different du mien d'oû l'erreur .

+ Répondre à la discussion
Cette discussion est résolue.

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