Skip to main content
Version: 4.2.5

Web service client

note

Modifying this entity requires certain user authorization. For more information, see User Groups.

A Web service client contains client implementations for an imported web service. It supports two types of Web service clients: SOAP and REST.

  • SOAP: Supported import format is WSDL. Contains client activities for consuming the web service in Adapterflows and Workflows, as well as client code for consuming the web service in Web API definitions.
  • REST: Supported import format is OpenAPI specification. Contains client activities for consuming the web service in Workflows, as well as client code for consuming the web service in Web API definitions.

Properties

NameTypeDescription
CreatedDateTimeDate and time when the Web service client was created. Automatically generated by the system.
DescriptionStringUser supplied description of the Web service(s).
Definition typeWebServiceDefinitionTypeThis is a non-public type.
Specifies the type of the web service. Available types are SOAP and REST. SOAP is used for imported WSDLs and REST for imported OpenApi descriptions.
Entity typeEntityTypeSpecifies the entity type. The property is Read-only and is only displayed in filter listings to identify the entity type. It can be used for example when filtering on entities with a filter containing an 'All' part. For more information, see Entity filters.
Last build activeBooleanSpecifies whether service runtime is running the latest compiled version of the Web service client.
When a system is started, the property is set to True for all compiled Component definitions, Web service clients or Web APIs. However, if any such definition is recompiled the property will be set to False until a system restart occurs.
Last compiledDateTimeSpecifies when the Web service client was last compiled. If the Web service client has not been compiled, this value is empty.
ModifiedDateTimeDate and time of the latest modification of the client.
NamespaceStringThe namespace used in the generated consumer activities. This namespace is supplied by the user when adding a new Web service client.
Needs compilingBooleanSpecifies whether the Web service client needs to be compiled. One possible reason for this is that the Web service was imported and has not yet been compiled.
UriUriThe original Uri from which the web service client is imported to the iCore system.
For REST-based web services: The URI should point to the OpenAPI json-document.
VersionVersionThe version of web service client. Supplied by the user when adding a new Web service client.
TitleString
  • For SOAP based web services, this is the target namespace defined in the WSDL.
  • For REST based web services, this is the title defined by the imported service description.
Enable schema generationsBooleanEnables/disables generation of XML schemas.

Soap specific properties

NameTypeDescription
Generation optionsSoapWebServiceGenerationOptionsThis is a non-public type.

Specifies the option to use for generation of client activities and schemas. For more information, see Adding a web service client.

Rest specific properties

NameTypeDescription
API versionStringThe version of the API as defined in the OpenAPI specification.
Generation modeGenerationModeThis is a non-public type.

Specifies how to generate client(s).
For more information, see Adding a web service client.
Custom client prefix class nameStringThe prefix for the client class name (optional).
Custom client suffix class nameStringThe suffix for the client class name (optional).
Schema target namespaceStringNamespace to use when the generator is decorating types with XmlRootAttribute (optional).

Remarks

XML schemas

When importing a description file (WSDL) to generate a Web service client, one or more XML schemas are also imported. The imported XML schemas contain XML definitions for the types presented by the WSDL. Separate sets of XML schemas are imported for Adapterflows and Workflows respectively.

The XML schema can be imported by iCore Developer and used in order to serialize or deserialize Web service types.

Some XML schema features are not supported when importing an XML schema from a WSDL and there are certain restrictions. The tables below list these restrictions. Features not supported are marked as forbidden.

In some scenarios, import or generation of XML schemas may fail due to the restrictions mentioned below. If schemas are required for processing the data sent to or received from the web service, the following procedure can be used to manually create XML schemas:

  1. Create a new Workflow.
  2. Reference the Web service client that you want to create XML schemas for.
  3. For each class that requires a schema:
    • Create a new instance of the class.
    • Assign values to all relevant properties on the created instance.
    • Serialize the created instance to XML.
    • Save the XML data to a file or the iCore log.
    • Use a tool that can create an XML schema from sample data that is created in the previous step.

Restrictions in Web service XML schemas

Complex Types – <xs:complexType>

<xs:complexType>: attributes

AttributeSchema
abstractMust be false (default).
blockForbidden
mixedMust be false (default).

<xs:complexType>: contents

ContentsSchema

simpleContent

Extensions are forbidden.

Restriction is allowed only from anySimpleType.

group

Forbidden

all

Forbidden

choice

Forbidden

attribute

Forbidden

anyAttribute

Forbidden

<xs:sequence> in a complex type: attributes

AttributeSchema
maxOccursMust be 1 (default).
minOccursMust be 1 (default).

<xs:sequence> in a complex type: contents

ContentsSchema
groupForbidden
choiceForbidden
sequenceForbidden
anyForbidden

Elements – <xs:element>

<xs:element> with maxOccurs=1 within an <xs:sequence> (Data Members)

AttributeSchema
refForbidden
defaultForbidden
fixedForbidden

Simple Types - <xs:simpleType>

<xs:simpleType>: contents

ContentsSchema
unionForbidden

Enumeration

<xs:restriction> for enumerations: contents

ContentsSchema
lengthForbidden
minLengthForbidden
maxLengthForbidden
whiteSpaceForbidden
patternForbidden

See Also

Reference

Adapterflow activities

Administrator

Web service details

Adding a web service client

Entities

Web API