You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Jayakumar <ja...@gmail.com> on 2007/12/16 15:02:53 UTC
Aegis + Jaxws- "argument type mismatch "using wsdl with soap
header
The Endpoint Interface with method include header information both for
request and response. (@WebParam header="true", mode=Mode.INOUT). The
generate wsdl is proper with aegis binding, but when i try to make a soap
client request to service, it throws with exception " argument type
mismatch".
because the Client request for the method which have the signature like this
Holder object for header parameter
like this " getExample(String, String, Holder)" instead of
getExample(string,string, string). Is there any work around for this to
resolve using Aegis binding.
package com.example;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebParam.Mode;
import javax.jws.WebResult;
import javax.jws.soap.SOAPBinding;
import javax.xml.ws.Holder;
@javax.jws.WebService (targetNamespace="http://example.com/")
@javax.xml.ws.BindingType(value =
"http://www.w3.org/2003/05/soap/bindings/HTTP/")
@SOAPBinding(style=SOAPBinding.Style.DOCUMENT, use=SOAPBinding.Use.LITERAL,
parameterStyle=SOAPBinding.ParameterStyle.WRAPPED)
public interface IExample {
@WebMethod
@WebResult ( name="output")
public abstract String c(@WebParam(name = "A")
String a, @WebParam(name = "B")
String b, @WebParam(name = "C", header="true", mode=Mode.INOUT)
String c);
}
--
View this message in context: http://www.nabble.com/Aegis-%2B-Jaxws---%22argument-type-mismatch-%22using-wsdl-with-soap-header-tp14361847p14361847.html
Sent from the cxf-user mailing list archive at Nabble.com.