How to Use Web Services on Provisioned IM Instances

Since IM version of 4.10.0 web services are accessible via the standard port. If you want to call web services, there are certain prerequisites and configurations.

Configuration

Set properties for your provisioned IM instance in application-app_BRANCH.properties.

integration.webservices.enabled=true integration.webservices.username=secretusername integration.webservices.password={ENC}sdfr324234234 integration.webservices.publishedEndpointUrlPrefix=https:///use_your_instance_name.use_your_cluster_name/api/webservices/ #example integration.webservices.publishedEndpointUrlPrefix=https://pim-vich-40-dev.dev1.pricefx.io/api/webservices/ # connection to web services target partition integration.pfx.url=https://test.pricefx.eu/pricefx integration.pfx.partition=your_partition integration.pfx.username=username integration.pfx.password={ENC}Z5YvPfEaPUcTw2tPdUbSH7C+QrTAp/lxwTJdcN3+cyDsqaSkrQ8HJupGlnJ+bFzT

How to Call It

The public URL format is https://im-instance-name.cluster-name/api/webservices. In our example, it is https://pim-vich-40-dev.dev1.pricefx.io/api/webservices/ + service name

This call will return WSDL.

GET https://pim-vich-40-dev.dev1.pricefx.io/api/webservices/productExtension?wsdl

This call will create two Product Extensions named LifecycleMonitor on a partition.

POST https://pim-vich-40-dev.dev1.pricefx.io/api/webservices/productExtension <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <Loaddata xmlns="http://webservices.pricefx.eu/ProductExtensionService"> <ProductExtension> <sku>122</sku> <name>LifecycleMonitor</name> <attribute1>1</attribute1> </ProductExtension> <ProductExtension> <sku>111</sku> <name>LifecycleMonitor</name> <attribute1>10</attribute1> </ProductExtension> </Loaddata> </soap:Body> </soap:Envelope>

 

 

IntegrationManager version 5.8.0