Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Extracted WSDL Fails Validation #387

Closed
bcvantage opened this issue Sep 19, 2023 · 8 comments
Closed

[BUG] Extracted WSDL Fails Validation #387

bcvantage opened this issue Sep 19, 2023 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@bcvantage
Copy link

Release version

APIOps Toolkit for Azure APIM v4.6.0

Describe the bug

APIOps successfully extracts WSDL but then run-publisher.yaml is unable to validate the extracted WSDL. Affected SOAP APIs are working in development and production environment and were able to be extracted and deployed successfully using the previous extractor of https://github.com/Azure/azure-api-management-devops-resource-kit.

Pipeline log is attached and WSDL.

dev.azure.com_vbtx_f1ea0352-831b-49ac-bd4a-c268ba747183__apis_build_builds_24538_logs_11.txt
specification-wsdl.txt

Expected behavior

  • APIOps extracts WSDL
  • APIOps validates WSDL
  • APIOps publishes WSDL

Actual behavior

  • APIOps extracts WSDL
  • APIOps fails validation of WSDL

Reproduction Steps

  • run-extractor.yaml pointing against APIM instance with SOAP api.
  • run-publisher.yaml pointing against test APIM instance using artifacts extracted by run-extractor.yaml
@github-actions
Copy link

🎉 Thank you for opening this issue! Please be patient while we will look into it and get back to you as this is an open source project. In the meantime make sure you take a look at the closed issues in case your question has already been answered. Don't forget to provide any additional information if needed (e.g. scrubbed logs, detailed feature requests,etc.).
Whenever it's feasible, please don't hesitate to send a Pull Request (PR) our way. We'd greatly appreciate it, and we'll gladly assess and incorporate your changes. 🎉

@waelkdouh waelkdouh added the bug Something isn't working label Sep 20, 2023
@waelkdouh
Copy link
Contributor

Are you able to successfully upload the files to apim using the portal?

@bcvantage
Copy link
Author

bcvantage commented Sep 20, 2023 via email

@waelkdouh
Copy link
Contributor

So this means that the issue is not in the publisher as it's failing when you are using the portal.

Can you try to extract using extractor and compare it to an export from the portal and share with us your findings?

@bcvantage
Copy link
Author

bcvantage commented Sep 20, 2023 via email

@bcvantage
Copy link
Author

[Merged] XferSvc_v9_0.txt

This is the original WSDL that was imported into APIM. I reconfirmed that this can be imported successfully just now. The extractor created the artifact that is having validation issues from that imported WSDL which is an API that is currently used in Production. This API was deployed successfully using the previous Azure API Management Devops Resource Kit found here https://github.com/Azure/azure-api-management-devops-resource-kit albeit with many bugs we had to work around to get deployments working.

@guythetechie
Copy link
Contributor

@bcvantage - I was able to replicate your issue, but unfortunately it's an APIM issue, not an ApiOps one. Here's what I did:

  1. Took your .txt file above and imported it into my APIM instance through the Azure portal. No issues.
  2. From the portal, selected the API and clicked on Export. Selected WSDL as my desired format. Again, no issues.
    image
  3. Repeated step 1 using the exported file. I received a validation error message.

ApiOps can't help you here, as all we do is make REST API calls to Azure API Management. I would suggest raising a support ticket to see why APIM cannot reimport the file it just exported from the portal.

@waelkdouh
Copy link
Contributor

closing due to inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants