[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:
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:
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:
http://localhost:8080/WebServiceProject1/services/ProvisioningPort
Target namespace:
Code:
http://soapa.service.applicationsnet.com/
est ce que l'erreur est relatif au package utilisé? (
Code:
package com.applicationsnet.service.soapa;
)
si quelqu'un a une idée du probleme , je suis preneuse
merci infiniment
:roll: