0 Replies Latest reply on Nov 17, 2006 3:04 PM by Michael Rother

    Error With Runtime generation of WSDL With Headers

    Michael Rother Newbie

      I have tried this with jboss 4.0.5 native and with jbossws 1.0.4. I have successfully used an annotated stateless ejb for web services with document / literal / bare configuration. I am now attempting to add a header to each web service request.

      Here is the class :

      @WebService(name = "test", targetNamespace = "http://com.test", serviceName = "test")
      @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.BARE)
      public class TestService {

      public void logout(@WebParam(name="header", header=true) String value, @WebParam(name="parameters", header=false) String request){

      public void logout2(@WebParam(name="header2", header=true) String value, @WebParam(name="test", header=false) String request){

      Note that web service logout works fine. logout2 has problems. As I interpret the problem is with the messages

      The code generation always names the body element "parameters". So the only way to get it to work is to name the body element "parameters".

      Is there a work around for now>