Table of contents

Introduction

Development Environment

Web Development and Improvements in user experience

(Productivity and Enterprise-level Application Development Features)

Ajax Overview, [[21759|GeneXus' target='_blank'>Ajax' target='_blank'>Ajax Overview, [[21759|GeneXus and Ajax]]

Business Components

Business Component - Publication as an Enterprise Java Bean

Practical course: Bluesky Charters
 

Application Localization

Application Localization
Demo
Translation Tool
Help "in any language"
Practical course: Bluesky Charters
 

Patterns

About this topic
Patterns based development
Description
Built in Patterns
Work With Pattern
Demo: Work With Pattern
Practical course: Patterns
 

Better data model

Null handling optimizes navigations
Nulls property

 

User experience

New options on rightclick in win
 

Reverse Engineering

Database Reverse Engineering Tool
 

New Platforms

MySQL
.Net Mobile Generator
More J2EE support than ever
 

Data Types and Methods

Message Queue handling data types

DirectoryDataType
LDAP Data Type

URL access Property
New IIF function
New byte count function
New Methods for attributes, variables and enumerated domains!
XSLTApply Method
Procedures can now call web objects
Web Services: Grouping Locations
News about model, object, and control properties


Unofficial Content
  • This documentation is valid for:

This feature does it easier consuming many webservices from the same location.

Description

As from GeneXus 9.0 version, references to webservices in the location.xml or location datatype, which have same host and BaseURL, can be grouped together.
The Name of the group consists of the HOST and BaseURL of the webservices, with the following syntax: 'LOC:'<Host><BaseURL>.

In the case the reference is specified twice, as a single service and grouped, the first one preceedes.

Example


Three services are imported from: HOST: localhost, BaseURL: /services/ :
http://localhost/services/aWbSrv1.aspx?Wsdl
http://localhost/services/aWbSrv2.aspx?Wsdl
http://localhost/services/aWbSrv3.aspx?Wsdl


Suppose that the webservices in the Production environment are published under the following Url "http://www.genexus.com/Main/"
The consumers can changed the host and base Url of all services using just one entry (and not Three!), programming:

 &Location = Getlocation('LOC:localhost/services/')
 &location.Host = 'www.genexus.com'
 &location.Port = 80
 &location.BaseURL = '/Main/'

Where &location is based on Location Data Type


The same sample, with location.xml, would be:

<GXLocation name="LOC:localhost/services/">
      <HTTP>
          <Host>www.genexus.com</Host>
          <Port>80</Port>
          <BaseURL>/Main/</BaseURL>
      </HTTP>
</GXLocation>


The same sample, but without grouping would be:

<GXLocation name="<namespace>_<aWbSrv1>">
      <HTTP>
          <Host>www.genexus.com</Host>
          <Port>80</Port>
          <BaseURL>/Main/</BaseURL>
      </HTTP>
</GXLocation>
<GXLocation name="<namespace>_<aWbSrv2>">
      <HTTP>
          <Host>www.genexus.com</Host>
          <Port>80</Port>
          <BaseURL>/Main/</BaseURL>
      </HTTP>
</GXLocation>
<GXLocation name="<namespace>_<aWbSrv3>">
      <HTTP>
          <Host>www.genexus.com</Host>
          <Port>80</Port>
          <BaseURL>/Main/</BaseURL>
      </HTTP>
</GXLocation>

Scope

Languages: Java, .NET
Interfaces: Web, Win

See Also

Location datatype



 

 

Last update: November 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant