简体   繁体   English

如何在WSO2 API管理器中使用Swagger发布SOAP请求?

[英]How to post a SOAP request using Swagger in WSO2 API Manager?

I am trying to configure the try-it swagger ui utility with a SOAP web service. 我正在尝试使用SOAP Web服务配置try-it swagger ui实用程序。 I tried to set the SOAPAction header property and as soon as I set it it won't work. 我试图设置SOAPAction标头属性,但是一旦设置,它就无法工作。

Is there a way to do that? 有没有办法做到这一点?

I believe that you had created an API from your SOAPService and trying to invoke it using swagger. 我相信您已经从SOAPService创建了一个API,并尝试使用swagger调用它。

Change the swagger path with SOAPAction. 使用SOAPAction更改swagger路径。 Then invoke the method by sending the SOAP body in the Payload. 然后通过在有效负载中发送SOAP正文来调用该方法。 For example if your SOAPAction is AddStudent , 例如,如果您的SOAPAction是AddStudent

        "path": "/studentapi/1.0/AddStudent",
        "description": "",
        "operations": [
            {
                "httpMethod": "POST",
                "summary": "",
                "nickname": "",
                "parameters": [
                         "name": "Payload",
                        "description": "Request Payload",
                        "paramType": "body",
                        "required": false,
                        "allowMultiple": false,
                        "dataType": "String"
                    } 

在此处输入图片说明

Please refer the below post, which explains how to send additional headers in swagger requests. 请参考以下文章,该文章说明了如何在摇摇欲坠的请求中发送其他标头。

http://blog.lakmali.com/2013/10/how-to-add-additional-headers-to-wso2.html http://blog.lakmali.com/2013/10/how-to-add-additional-headers-to-wso2.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM