在soapUI中创建MockService而不使用wsdl
是否可以在没有 wsdl 文件的情况下在soapUI中创建模拟服务?我所拥有的只是示例请求和响应。 我认为应该可以使用soapUI 从请求和响应示例生成WSDL,但我找不到任何有关它的教程。
Is it somehow possible to create mock service in soapUI without having wsdl file? All I have is sample request and responses.
I think that should be possible to generate WSDL from request and response examples with soapUI but I'm not able to find any tutorials about it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用一些虚拟 WSDL 来欺骗 SOAPUi,至少使用单个请求/响应定义!只需将其生成的请求替换为您想要的 XML 文档即可。您还可以通过复制和粘贴添加具有完全不同的请求/响应的其他请求!
You can just trick SOAPUi with some dummy WSDL, at least with a single request/response definition! Just replace the requests it generates with the XML document you wanted. You an also add additional requests with entirely different request/responses by copy and pasting!
仅通过请求/响应您可能无法构建 WSDL。如果您有端点 URL,请将“?wsdl”附加到端点 URL,在浏览器中打开它,您应该获得 WSDL。
另外,如果您有架构,您可以尝试从此处生成 WSDL 文件
Just with request/response you may not be able to construct the WSDL. If you have the end point URL, append '?wsdl' to the end point URL,open it in a browser, you should get the WSDL.
Also if you have the schema with you, you can try generating WSDL file from here