Confidential client, name withheld under NDA

How Bacancy Technology Built an Integration Layer to Connect an AI Agent to a Legacy SOAP-Based ERP

Quick answer: An integration layer can turn AI agent requests into validated SOAP transactions, queue calls within a legacy ERP's limits and return clean, typed data. Bacancy Technology built this for a US logistics enterprise running a SOAP-based ERP.

Outcomes deliveredDelivered September 2025 to January 2026 by a team of 4
100%

ERP writes validated before running

Schema checks on every request

0

Corrupt transactions reaching the ERP

Invalid payloads stopped at the gateway

3

ERP workflows run in plain language

With 0 manual data entry

24/7

Agent access to live ERP data

100% of transactions logged for audit

Client name withheld under NDA. To honour our non-disclosure agreement and compliance obligations, we describe this client by industry and region only. The project scope, technology and outcomes are shared without details that could identify them.

About the Client

The client is a US logistics enterprise that runs core operations on a legacy SOAP-based ERP. Inventory, order and shipment data sat behind aging XML web services. The client wanted an AI agent so staff could query records and trigger updates in plain language. The agent could not call the ERP safely.

Bacancy Technology built an integration layer between the agent and the ERP. It validates every request, respects the ERP's limits and returns clean, auditable data the agent can act on.

Industry
Logistics
Location
USA
Team
4 team members
Timeline
September 2025 to January 2026
Project size
Non-disclosable

Challenges & Solutions

Our AI engineers placed a controlled layer between the agent and the ERP so neither had to change.

Challenge 1: Translating agent requests into SOAP and XML

The AI agent could not produce the well-formed SOAP and XML payloads the ERP required.

Solution: Through our AI integration services, we built a WSDL-driven translation layer with Zeep. It converts JSON requests into SOAP messages and XML responses into structured, agent-ready data.

Challenge 2: Stopping unpredictable outputs from corrupting data

Non-deterministic agent outputs risked corrupting transactions inside the fragile ERP.

Solution: Our AI agent experts added a validation gateway that schema-checks every request. It enforces field types, value ranges and required inputs, so only well-formed payloads reach the ERP.

Challenge 3: Working within limited ERP concurrency

The ERP had limited concurrency, slow responses and fragile session-based authentication.

Solution: Our team placed the ERP behind a RabbitMQ queue with retry and backoff logic. A managed session-token pool refreshes credentials automatically, so the agent never hits those limits directly.

Challenge 4: Normalizing inconsistent ERP data

Inconsistent ERP data structures resisted mapping into clean schemas the agent could use.

Solution: Our engineers profiled the ERP's inconsistent fields and built normalized schema mappings for naming, types and structure. The agent now receives predictable, typed objects on every call.

Agent workflow

How the ERP integration layer works

Each agent request passes through translation, validation and a managed queue before it touches the ERP.

  1. The client's AI agent system
    1. Request
      Plain-language requestStaff ask the AI agent
      Agent tool callLangChain tool interface
    2. Translate
      JSON to SOAPWSDL-driven layer with Zeep
    3. Validate
      Validation gatewaySchema, types, ranges, inputs
    4. Queue
      RabbitMQ queueRetry and backoff
      Session token poolAutomatic credential refresh
    5. Execute
      ERP transactionSOAP call to the legacy ERP
    6. Return
      Normalized responseTyped objects for the agent
      Audit logEvery transaction recorded

No write reaches the ERP until it passes the validation gateway.

How the Platform Works

The client AI agent ERP integration dashboard

Core Features

  • WSDL-driven SOAP and XML layerJSON in, SOAP out, and clean structured data back.
  • Schema validation engineEvery agent request checked before any ERP write.
  • Session token managerERP credentials refreshed automatically.
  • Automatic retry handlingQueued calls with backoff that respect ERP limits.
  • Transaction audit logging100% of ERP transactions captured for audit.

The stack behind the integration layer

Backend
Python | FastAPI | Pydantic | Zeep
AI agent
LangChain
Messaging
RabbitMQ | AMQP
Database
PostgreSQL | Redis
APIs
REST APIs | SOAP/XML
Cloud and DevOps
AWS ECS | AWS CloudWatch | Docker
Architecture
Event-driven microservices | Containerized

Ready to start?

2500+ projects delivered by Bacancy Technology

Get access to an experienced team of developers and engineers from Bacancy Technology, handpicked to ace your goals. Kickstart within 48 hours, no-risk trial.

Book A 30 Min Call
14+Years of business experience
1458+Happy customers
30+Countries with happy customers
1050+Agile-enabled employees

More Case Studies

View All Case Studies