From f4141da1ebd77a565184af4ce6a432ae59f76be7 Mon Sep 17 00:00:00 2001 From: iroqueta Date: Mon, 29 Nov 2021 12:18:08 -0300 Subject: [PATCH 1/3] I was not compiling a proc with native soap with SOAP call protocol and REST Protocol set to True. In that case it was generating the inerface rest but not the native soap interface Issue: 92182 --- .../java/com/genexus/webpanels/GXWebObjectStub.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/java/src/main/java/com/genexus/webpanels/GXWebObjectStub.java b/java/src/main/java/com/genexus/webpanels/GXWebObjectStub.java index a6169d94f..e47cc6a9d 100644 --- a/java/src/main/java/com/genexus/webpanels/GXWebObjectStub.java +++ b/java/src/main/java/com/genexus/webpanels/GXWebObjectStub.java @@ -28,12 +28,25 @@ public abstract class GXWebObjectStub extends HttpServlet protected abstract String IntegratedSecurityPermissionPrefix(); protected abstract String EncryptURLParameters(); + protected ModelContext context; + protected int remoteHandle = -1; + protected static final int SECURITY_GXOBJECT = 3; protected static final int SECURITY_HIGH = 2; protected static final int SECURITY_LOW = 1; private static final int HTTP_RESPONSE_BUFFER_SIZE = 131072; + public GXWebObjectStub() + { + } + + public GXWebObjectStub(int remoteHandle , ModelContext context) + { + this.remoteHandle = remoteHandle; + this.context = context; + } + private void dumpRequestInfo(HttpContext httpContext) { IHttpServletRequest request = httpContext.getRequest(); From eec8221dcd6aba2b5ee54d79d1802c9afb45326a Mon Sep 17 00:00:00 2001 From: iroqueta Date: Wed, 15 Dec 2021 12:01:53 -0300 Subject: [PATCH 2/3] I was not compiling a proc with native soap with SOAP call protocol and REST Protocol set to True. In that case it was generating the inerface rest but not the native soap interface Issue: 92182 --- .../java/com/genexus/webpanels/GXWebProcedure.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/java/src/main/java/com/genexus/webpanels/GXWebProcedure.java b/java/src/main/java/com/genexus/webpanels/GXWebProcedure.java index d07de2a39..c83646266 100644 --- a/java/src/main/java/com/genexus/webpanels/GXWebProcedure.java +++ b/java/src/main/java/com/genexus/webpanels/GXWebProcedure.java @@ -21,6 +21,8 @@ public abstract class GXWebProcedure extends GXWebObjectBase { private static final ILogger logger = LogManager.getLogger(GXWebProcedure.class); + + public static final int IN_NEW_UTL = -2; protected abstract void initialize(); @@ -47,11 +49,19 @@ public GXWebProcedure(WebServiceContext wsContext) logger.error("Could not initialize Web Service", e); } } - + public GXWebProcedure(int remoteHandle , ModelContext context) { + this(false, remoteHandle ,context); + } + + public GXWebProcedure(boolean inNewUTL, int remoteHandle , ModelContext context) { super(remoteHandle ,context); - } + + if(inNewUTL) { + this.remoteHandle = IN_NEW_UTL; + } + } protected void initState(ModelContext context, UserInformation ui) { From bd3e25aa79c53b9abe2330fed482bfdc9e1a7b02 Mon Sep 17 00:00:00 2001 From: iroqueta Date: Mon, 20 Dec 2021 10:47:50 -0300 Subject: [PATCH 3/3] I was not compiling a proc with native soap with SOAP call protocol and REST Protocol set to True. In that case it was generating the inerface rest but not the native soap interface Issue: 92182 --- java/src/main/java/com/genexus/webpanels/GXWebObjectStub.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/java/src/main/java/com/genexus/webpanels/GXWebObjectStub.java b/java/src/main/java/com/genexus/webpanels/GXWebObjectStub.java index e47cc6a9d..3b1e16bf7 100644 --- a/java/src/main/java/com/genexus/webpanels/GXWebObjectStub.java +++ b/java/src/main/java/com/genexus/webpanels/GXWebObjectStub.java @@ -30,6 +30,7 @@ public abstract class GXWebObjectStub extends HttpServlet protected ModelContext context; protected int remoteHandle = -1; + protected transient LocalUtil localUtil; protected static final int SECURITY_GXOBJECT = 3; protected static final int SECURITY_HIGH = 2; @@ -44,7 +45,8 @@ public GXWebObjectStub() public GXWebObjectStub(int remoteHandle , ModelContext context) { this.remoteHandle = remoteHandle; - this.context = context; + this.context = context; + localUtil = Application.getConnectionManager().createUserInformation(Namespace.getNamespace(context.getNAME_SPACE())).getLocalUtil(); } private void dumpRequestInfo(HttpContext httpContext)