public SOAPBindingAnnotation getSOAPBindingAnnotation(Class clazz)
{
SOAPBinding binding = (SOAPBinding) clazz.getAnnotation(SOAPBinding.class);
SOAPBindingAnnotation annot = null;
if (binding != null)
{
annot = new SOAPBindingAnnotation();
if (binding.parameterStyle() == SOAPBinding.ParameterStyle.BARE)
{
annot.setParameterStyle(SOAPBindingAnnotation.PARAMETER_STYLE_BARE);
}
else if (binding.parameterStyle() == SOAPBinding.ParameterStyle.WRAPPED)
{
annot.setParameterStyle(SOAPBindingAnnotation.PARAMETER_STYLE_WRAPPED);
}
if (binding.style() == SOAPBinding.Style.DOCUMENT)
{
annot.setStyle(SOAPBindingAnnotation.STYLE_DOCUMENT);
}
else if (binding.style() == SOAPBinding.Style.RPC)
{
annot.setStyle(SOAPBindingAnnotation.STYLE_RPC);
}
if (binding.use() == SOAPBinding.Use.ENCODED)
{
annot.setUse(SOAPBindingAnnotation.USE_ENCODED);
}
else if (binding.use() == SOAPBinding.Use.LITERAL)
{
annot.setUse(SOAPBindingAnnotation.USE_LITERAL);
}
}
return annot;
}