Skip to content

Commit 89afa87

Browse files
iroquetaggallotti
andauthored
I was not compiling a proc with native soap with SOAP call protocol a… (#484)
* 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 * 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 * 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 Co-authored-by: Gonzalo <gonzalogallotti@gmail.com>
1 parent ca2ace5 commit 89afa87

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

java/src/main/java/com/genexus/webpanels/GXWebObjectStub.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,27 @@ public abstract class GXWebObjectStub extends HttpServlet
2828
protected abstract String IntegratedSecurityPermissionPrefix();
2929
protected abstract String EncryptURLParameters();
3030

31+
protected ModelContext context;
32+
protected int remoteHandle = -1;
33+
protected transient LocalUtil localUtil;
34+
3135
protected static final int SECURITY_GXOBJECT = 3;
3236
protected static final int SECURITY_HIGH = 2;
3337
protected static final int SECURITY_LOW = 1;
3438

3539
private static final int HTTP_RESPONSE_BUFFER_SIZE = 131072;
3640

41+
public GXWebObjectStub()
42+
{
43+
}
44+
45+
public GXWebObjectStub(int remoteHandle , ModelContext context)
46+
{
47+
this.remoteHandle = remoteHandle;
48+
this.context = context;
49+
localUtil = Application.getConnectionManager().createUserInformation(Namespace.getNamespace(context.getNAME_SPACE())).getLocalUtil();
50+
}
51+
3752
private void dumpRequestInfo(HttpContext httpContext)
3853
{
3954
IHttpServletRequest request = httpContext.getRequest();

java/src/main/java/com/genexus/webpanels/GXWebProcedure.java

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
public abstract class GXWebProcedure extends GXWebObjectBase
2222
{
2323
private static final ILogger logger = LogManager.getLogger(GXWebProcedure.class);
24+
25+
public static final int IN_NEW_UTL = -2;
2426

2527
protected abstract void initialize();
2628

@@ -47,11 +49,19 @@ public GXWebProcedure(WebServiceContext wsContext)
4749
logger.error("Could not initialize Web Service", e);
4850
}
4951
}
50-
52+
5153
public GXWebProcedure(int remoteHandle , ModelContext context)
5254
{
55+
this(false, remoteHandle ,context);
56+
}
57+
58+
public GXWebProcedure(boolean inNewUTL, int remoteHandle , ModelContext context) {
5359
super(remoteHandle ,context);
54-
}
60+
61+
if(inNewUTL) {
62+
this.remoteHandle = IN_NEW_UTL;
63+
}
64+
}
5565

5666
protected void initState(ModelContext context, UserInformation ui)
5767
{

0 commit comments

Comments
 (0)