You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Jason Reilly <jd...@gmail.com> on 2012/08/30 17:35:36 UTC
exclude request parameters from response
Hi all,
Is there a way to remove/exclude the request parameters from the response
in the wsdl? Using JAX-WS, Java first with annotations.
Here is the service interface:
@WebService(targetNamespace = "http://ws.mapseq.unc.edu", serviceName =
"FileDataService", portName = "FileDataPort")
@SOAPBinding(style = Style.DOCUMENT, use = Use.LITERAL, parameterStyle =
SOAPBinding.ParameterStyle.WRAPPED)
public interface FileDataService {
@WebMethod
public Long uploadSampleSheet(@WebParam(name = "data")
Holder<DataHandler> data,
@WebParam(name = "flowcellName") Holder<String> flowcellName);
}
Thanks,
--
Jason Reilly
Re: exclude request parameters from response
Posted by Daniel Kulp <dk...@apache.org>.
If you don't want them in the response message, why are you using Holder objects? The holder objects are specifically there to allow them to be in/out parameters. If they are intended only be in parameters, remove the holders: @WebParam(..) DataHandler data
Dan
On Aug 30, 2012, at 11:35 AM, Jason Reilly <jd...@gmail.com> wrote:
> Hi all,
>
> Is there a way to remove/exclude the request parameters from the response
> in the wsdl? Using JAX-WS, Java first with annotations.
>
> Here is the service interface:
>
> @WebService(targetNamespace = "http://ws.mapseq.unc.edu", serviceName =
> "FileDataService", portName = "FileDataPort")
> @SOAPBinding(style = Style.DOCUMENT, use = Use.LITERAL, parameterStyle =
> SOAPBinding.ParameterStyle.WRAPPED)
> public interface FileDataService {
>
> @WebMethod
> public Long uploadSampleSheet(@WebParam(name = "data")
> Holder<DataHandler> data,
> @WebParam(name = "flowcellName") Holder<String> flowcellName);
>
> }
>
> Thanks,
>
> --
> Jason Reilly
--
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com