简体   繁体   English

stubby4j 处理 SOAP 请求

[英]stubby4j handling SOAP request

I like to serve a default response form stubby4j for a SOAP request with the same value I am receiving in request.我喜欢为 SOAP 请求提供默认响应表单 stubby4j,其值与我在请求中收到的值相同。

post: "[\\s\\S]*param1.([^<]+)[\\s\\S]*param2.([0-9]+)[\\s\\S]*param3.([^<]+)[\\s\\S]*param4.([^<]+)[\\s\\S]*"

Now the problem is, I can't ensure the sequence of input parameters coming in the request.现在的问题是,我无法确保请求中输入参数的顺序。 So there is a chance that param2 comes first.所以有可能 param2 排在第一位。

How can we handle this?我们该如何处理?

I really dint need it. 我真的很需要它。 I noticed that requests coming from the same client maintains the sequence of input field. 我注意到,来自同一客户端的请求将保持输入字段的顺序。 So I need not to worry to compare or capture them with different patterns. 因此,我不必担心以不同的模式比较或捕获它们。

However due to some limitations of stubby4j, I have made my own utility and switched to stubby-db now. 但是,由于stubby4j的某些限制,我制作了自己的实用程序并立即切换到stubby-db

Hi @Amit Kumar Gupta,嗨@Amit Kumar Gupta,

Thank you for using stubby4j and thank you for your question and I am really sorry for replying late.感谢您使用 stubby4j 并感谢您的问题,我真的很抱歉回复晚了。 You are welcomed to have a look at stubby4j library now https://github.com/azagniotov/stubby4j , as it has undergone many changes and improvements since 2016. I hope you can find features needed, if not, please raise an issue or a feature request.欢迎您现在查看 stubby4j 库https://github.com/azagniotov/stubby4j ,因为它自 2016 年以来经历了许多变化和改进。我希望您能找到需要的功能,如果没有,请提出问题或一个功能请求。

In addition to HTTP/1.1, it also supports behavior stubbing over HTTP/2 and WebSockets (over HTTP/1.1) protocols.除了 HTTP/1.1,它还支持基于 HTTP/2 和 WebSockets(基于 HTTP/1.1)协议的行为存根。 In the near future it will support WebSockets bootstrapping over HTTP/2在不久的将来,它将支持基于 HTTP/2 的 WebSockets 引导

Plus, stubby4j has been Dockerized with the official images stored at https://hub.docker.com/r/azagniotov/stubby4j此外,stubby4j 已使用存储在https://hub.docker.com/r/azagniotov/stubby4j的官方镜像进行 Docker 化

Thank you.谢谢你。

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

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