Prima Solutions provide multi-channel enterprise resource planning software including order management, stock control, product development, retail & eCommerce.
When adding connector instances for Prima Solutions, the following authentication methods are supported:
When a user chooses to using Prima No Auth authentication, the credentials below are prompted:
The Prima Solutions connector has some specific behaviour that must be considered when you work with this connection in process flows. For further information please see our page.
Instance URL
Enter the URL provided to you by Prima Solutions, excluding the final /wsdl section. For example: http://websvc2.dubarry.com:8080/wsadevtest/wsadevtest/wsdl would be entered as:
http://websvc2.dubarry.com:8080/wsadevtest/wsadevtest
Company ID
Your Prima Solutions company ID is only required if you will be using the COMWSOMHANDLER endpoint - it is not required if you are only using the WSOMHANDLER endpoint.
Typically, connectors are defined with endpoints which determine exactly what data is being requested (pull customer records, post product details, etc.). However, the Prima Solutions connector works in a different way, with two generic endpoints:
comwsomhandler
wsomhandler
The actual data required for a request must be passed into the Prima Solutions connection shape, as part of your process flow. You do this via a shape.
Finally - once a successful connection is made - the response must be converted from XML to JSON, ready for onward processing.
With this in mind, a process flow that needs to pull data from Prima Solutions will usually require three shapes in the following sequence:
Manual payload shape, which includes the required in an XML string
Connection shape, configured with a Prima Solutions endpoint
Script shape, configured with an
For example:
Request data to be passed into a Prima Solutions connection shape must be based on the Prima Web Services XML Schema Definition. Some examples are shown below.
Before the response from a Prima Solutions request can be be processed, it must be converted to a JSON payload. To do this, you should create an XML to JSON conversion script and add this to a in your process flow.
<?xml version="1.0" encoding="ISO-8859-1"?>
<Request RequestType="NewOrder">
<Data Customer="""" CustDef="""" VatInclusive="""" TPGUID="""" CustomerRef="""" CustomerForename="""" CustomerSurname="""" CustomerPhone="""" CustomerEmail="""" AddrLine1="""" AddrLine2="""" AddrLine3="""" AddrLine4="""" AddrLine5="""" AddrLine6="""" Country="""" PostCode="""">
<OrderInvoiceData InvoiceTitle="""" InvoiceForename="""" InvoiceSurname="""" InvoicePhone="""" InvoiceEmail="""" InvoiceAddrLine1="""" InvoiceAddrLine2="""" InvoiceAddrLine3="""" InvoiceAddrLine4="""" InvoiceAddrLine5="""" InvoiceAddrLine6="""" InvoiceCountry="""" InvoicePostCode=""""/>
<OrderHeaderData Currency="""" OrderEmail="""" OrderStatus="""" OrderCategory="""" OrderDate="""" SendToApproval="""" SourceMedia="""" Carrier="""" CarrServ=""""/>
<OrderChargeData Charge="""" ChargeValue=""""/>
<OrderPaymentData TranAmount="""" PayMethod="""" SubPayMethod="""" PayAuthRef="""" AuthRef="""" AuthDate="""" AuthTime=""""/>
<OrderLineData Product="""" Quantity="""" Price="""" MtrxCode1="""" MtrxCode2=""""/>
</Data>
</Request><?xml version="1.0" encoding="ISO-8859-1"?>
<Request RequestType="NewOrder">
<Data Customer="" CustDef="" VatInclusive="" TPGUID="" CustomerRef="" CustomerForename="" CustomerSurname="" CustomerPhone="" CustomerEmail="" AddrLine1="" AddrLine2="" AddrLine3="" AddrLine4="" AddrLine5="" AddrLine6="" Country="" PostCode="">
<OrderInvoiceData InvoiceTitle="" InvoiceForename="" InvoiceSurname="" InvoicePhone="" InvoiceEmail="" InvoiceAddrLine1="" InvoiceAddrLine2="" InvoiceAddrLine3="" InvoiceAddrLine4="" InvoiceAddrLine5="" InvoiceAddrLine6="" InvoiceCountry="" InvoicePostCode=""/>
<OrderHeaderData Currency="" OrderEmail="" OrderStatus="" OrderCategory="" OrderDate="" SendToApproval="" SourceMedia="" Carrier="" CarrServ=""/>
<OrderChargeData Charge="" ChargeValue=""/>
<OrderPaymentData TranAmount="" PayMethod="" SubPayMethod="" PayAuthRef="" AuthRef="" AuthDate="" AuthTime=""/>
<OrderLineData Product="" Quantity="" Price="" MtrxCode1="" MtrxCode2=""/>
</Data>
</Request><?xml version="1.0" encoding="ISO-8859-1"?>
<Request RequestType="ProductAvailableToSell">
<Data ProductFrom="" ProductTo="" WareHouse="" IncludeDisallowed="" IncludeProhibited=""/>
</Request><?xml version="1.0" encoding="ISO-8859-1"?>
<Request RequestType="ProductAvailableToSell">
<Data ProductFrom="" ProductTo="" WareHouse="" IncludeDisallowed="" IncludeProhibited=""/>
</Request>
<?xml version="1.0" encoding="ISO-8859-1" ?> <Result Company="1" RequestStatus="OK" RequestType="ProductAvailableToSell"><Data><sku AvailableDate="" AvailableQuantity="0" FTSQty="0" MtrxCode1="" MtrxCode2="" MtrxCode3="" MtrxCode4="" Product="1000"/><sku AvailableDate="" AvailableQuantity="0" FTSQty="0" MtrxCode1="" MtrxCode2="" MtrxCode3="" MtrxCode4="" Product="1001"/></Data></Result>