> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apigene.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Spec Create From Wsdl

> Install a SOAP 1.1 or 1.2 service by converting one document/literal WSDL port into an OpenAPI spec, then running the normal spec install. Send JSON with a url, or multipart form data with a file and/or url. When the WSDL has more than one SOAP port, pass port (the port id service/port or the port name). Auth records the scheme only; the secret is set later on the application Security tab.



## OpenAPI

````yaml post /api/spec_from_wsdl/
openapi: 3.1.0
info:
  title: Apigene
  description: Apigene API
  version: 1.0.0
  contact:
    name: Apigene Support
    url: https://app.apigene.ai
    email: support@apigene.ai
servers:
  - url: https://app.apigene.ai
security:
  - BearerAuth: []
paths:
  /api/spec_from_wsdl/:
    post:
      tags:
        - Spec
      summary: Spec Create From Wsdl
      description: >-
        Install a SOAP 1.1 or 1.2 service by converting one document/literal
        WSDL port into an OpenAPI spec, then running the normal spec install.
        Send JSON with a url, or multipart form data with a file and/or url.
        When the WSDL has more than one SOAP port, pass port (the port id
        service/port or the port name). Auth records the scheme only; the secret
        is set later on the application Security tab.
      operationId: spec_create_from_wsdl
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SpecFromWsdlData'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_spec_create_from_wsdl'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '400':
          description: >-
            WSDL could not be converted. detail.code SOAP_PORT_REQUIRED means
            the WSDL has more than one port and port was omitted.
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
components:
  schemas:
    SpecFromWsdlData:
      properties:
        url:
          anyOf:
            - type: string
            - type: 'null'
          title: Url
        port:
          anyOf:
            - type: string
            - type: 'null'
          title: Port
          description: >-
            SOAP port id (service/port) or port name. Required when the WSDL has
            more than one SOAP port.
        auth:
          $ref: '#/components/schemas/SoapAuthData'
        global_spec:
          type: boolean
          title: Global Spec
          default: false
        shared_security_info:
          type: boolean
          title: Shared Security Info
          default: false
        create_mcp:
          type: boolean
          title: Create Mcp
          default: false
        generate_llm_summary:
          type: boolean
          title: Generate Llm Summary
          default: true
      type: object
      title: SpecFromWsdlData
      description: >-
        Create a spec from a WSDL URL. File uploads use multipart on the same
        route.
    Body_spec_create_from_wsdl:
      properties:
        file:
          type: string
          contentMediaType: application/octet-stream
          title: File
          description: WSDL file (.wsdl or .xml). Omit when url is set.
        url:
          type: string
          title: Url
          description: WSDL URL. Ignored when file is set.
        port:
          type: string
          title: Port
          description: >-
            SOAP port id (service/port) or port name. Required when the WSDL has
            more than one SOAP port.
        auth_type:
          type: string
          title: Auth Type
          default: none
          enum:
            - none
            - basic
            - bearer
            - apiKey
        header_name:
          type: string
          title: Header Name
          description: Header name when auth_type is apiKey.
        global_spec:
          type: boolean
          title: Global Spec
          default: false
        shared_security_info:
          type: boolean
          title: Shared Security Info
          default: false
        create_mcp:
          type: boolean
          title: Create Mcp
          default: false
        generate_llm_summary:
          type: boolean
          title: Generate Llm Summary
          default: true
      type: object
      title: Body_spec_create_from_wsdl
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SoapAuthData:
      properties:
        type:
          type: string
          title: Type
          default: none
          enum:
            - none
            - basic
            - bearer
            - apiKey
        header_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Header Name
      type: object
      title: SoapAuthData
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT Authorization header using the Bearer scheme. Example:
        'Authorization: Bearer {token}'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.