JBOSS fuse接口方法参数上的可选标记

JBOSS fuse接口方法参数上的可选标记,jboss,cxf,jbossfuse,javax,Jboss,Cxf,Jbossfuse,Javax,接口方法有两个参数 我有以下代码 package com.pk.testAtrifact.incident; public interface ServiceCountry { /** * Operation to country */ OutCountry getCountry(Header header,InputCountry input); } 当它出现在WSDL中时,它是这样的 <soapenv:Envelope xmlns:s

接口方法有两个参数 我有以下代码

package com.pk.testAtrifact.incident;

public interface ServiceCountry   {
     /**
     * Operation to country
     */

    OutCountry getCountry(Header header,InputCountry input);


}
当它出现在WSDL中时,它是这样的

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
   <soapenv:Header/>
   <soapenv:Body>
      <mpos:getCountry>
         <!--Optional:-->
         <v1:RequestHeader>

            <!--Optional:-->


RequestHeader上有可选标记。我不想让标题保持可选。如何执行此操作

尝试添加
@xmlement(required=true)
OutCountry getCountry(@xmlement(required=true)Header,InputCountry input)它不工作。它在WSDL中仍然是可选的