String serviceName = serviceAnnotationParser.getServiceName();
// Setting Axis Parameters given in serviceParameters annotation
Object serviceParametersObject = serviceAnnotationParser.getServiceParameters();
if (serviceParametersObject instanceof NativeObject) {
NativeObject nativeObject = (NativeObject) serviceParametersObject;
Object[] propertyNames = nativeObject.getIds();
for (Object propertyNameObject : propertyNames) {
if (propertyNameObject instanceof String) {
String propertyName = (String) propertyNameObject;
Object propertyValueObject = nativeObject.get(propertyName, nativeObject);
if (propertyValueObject instanceof String) {
try {
OMFactory factory = OMAbstractFactory.getOMFactory();
OMElement parameterElement = factory.createOMElement("parameter", null);
parameterElement.addAttribute("name", propertyName, null);