com.genexus.specific.java.GXXMLSerializable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gxclassR Show documentation
Show all versions of gxclassR Show documentation
Core classes for the runtime used by Java and Android apps generated with GeneXus
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