All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.genexus.specific.java.GXXMLSerializable Maven / Gradle / Ivy

Go to download

Core classes for the runtime used by Java and Android apps generated with GeneXus

There is a newer version: 4.7.3
Show newest version
package com.genexus.specific.java;

import java.lang.reflect.Method;

import com.genexus.ModelContext;
import com.genexus.PrivateUtilities;
import com.genexus.common.interfaces.IExtensionGXXMLSerializable;

public class GXXMLSerializable implements IExtensionGXXMLSerializable {
	String externalHandlerManager = "com.genexus.util.GXSoapHandler";
	

	@Override
	public void addExternalSoapHandler(int remoteHandle, Object context, String serviceName, Object objProvider) {

			com.genexus.xml.ws.BindingProvider bProvider = new com.genexus.xml.ws.BindingProvider(objProvider);

			if (PrivateUtilities.isClassPresent(externalHandlerManager))
			{			
				try
				{
					Class c = Class.forName(externalHandlerManager);
					Method m = c.getMethod("setHandlers", new Class[]{Integer.class, ModelContext.class, String.class, bProvider.getBindingClass()});
					m.invoke(null, new Object[]{remoteHandle, context, serviceName, bProvider.getWrappedClass()});
				}
				catch(Exception e)
				{
					System.err.println(e.toString());
				}				
			}		

	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy