It sounds like you have a complex setup and you're encountering issues with the custom SOAP connector in Azure Logic Apps. Here are some detailed steps and suggestions to help you troubleshoot and resolve the issue:
Step-by-Step Troubleshooting:
- Check the Base URL Configuration:
- Ensure that the base URL is correctly configured in the custom connector. Since your URL includes a specific path (e.g.,
/order/abc/data/200/abc123
), you need to ensure that the WSDL's service address is correctly specified. - You mentioned that the basePath gets set up as
/
instead of the whole relative path. Make sure to adjust this in the connector configuration.
- Ensure that the base URL is correctly configured in the custom connector. Since your URL includes a specific path (e.g.,
- Modify the Swagger Definition:
- You can manually edit the Swagger (OpenAPI) definition to ensure that the paths and operations are correctly defined. Use the Swagger Editor to load your definition and ensure that the paths are accurate.
- For example:
paths: /order/abc/data/200/abc123: post: ...
- Authentication Configuration:
- Since your service uses basic authentication, double-check that the credentials are correctly configured in the custom connector.
- Verify that the authentication headers are being correctly sent in the request.
- Enable Detailed Logging:
- Unfortunately, Logic Apps do not have a built-in feature for verbose logging for custom connectors. However, you can add logging within your workflow to log request and response details.
- Consider using an HTTP connector before and after the SOAP connector to log request and response details.
- Test with HTTP Connector:
- Since you mentioned that the HTTP connector works, compare the request details (headers, body, URL) between the HTTP connector and the SOAP connector.
- Ensure that the SOAP connector is sending the request in the same format as the HTTP connector.
- Use Postman for Testing:
- Continue to use Postman to test your SOAP requests. Verify the exact request details and compare them with what is being sent by the Logic Apps custom connector.
- Review Network Configuration:
- Ensure that all necessary network configurations, such as VNET and firewall rules, are correctly set up and that there are no network issues preventing the Logic App from reaching the service.
Example of Swagger Definition for Custom Connector:
Here is an example of how you might define the path in your Swagger definition:
swagger: '2.0'
info:
title: Your Connector
description: SOAP Custom Connector
version: '1.0'
host: xyz.abc.az:1443
basePath: /order/abc/data/200
schemes:
- https
paths:
/abc123:
post:
summary: Your Operation
description: Operation description
operationId: SubmitDetails
consumes:
- application/soap+xml
produces:
- application/soap+xml
parameters:
- name: body
in: body
required: true
schema:
$ref: '#/definitions/RequestBodySchema'
responses:
'200':
description: Successful response
schema:
$ref: '#/definitions/ResponseBodySchema'
definitions:
RequestBodySchema:
type: object
properties:
# Define your request body schema
ResponseBodySchema:
type: object
properties:
# Define your response body schema
Additional Resources:
Contact Microsoft Support:
If you continue to experience issues, consider reaching out to Microsoft support for more detailed assistance. Provide them with the exact error messages, logs, and configuration details you have.
By carefully reviewing and adjusting the configuration, you should be able to resolve the issue with the SOAP connector in Azure Logic Apps.