Search code examples
soapwso2wsdlbasic-authenticationwso2-api-manager

in WSO2 publisher, I get error when I import wsdl with basic authentication. Is there any solution?


in WSO2 publisher, I get error when I import wsdl with basic authentication. Is there any solution? wso2 wsdl validator cannot validate this wsdl file. but it is valid! I guess it has schema in its types that has basic authentication too. Is there any way to import this .wsdl file and soap API to WSO2? I got error when adding wsdl file that have basic Authentication


Solution

  • If the WSDL file is basic auth protected, API Publisher is not able to retrieve the WSDL file. You have following options.

    1. Download the WSDL file and provide the file to the API publisher
    2. Host the WSDL file in a public location(Github) and provide the URL to the API Publisher

    As WSDL file is basic auth protected I recommend to go with option 1 as you only download the file to your local machine and you don't share the file with the others.