gpt4 book ai didi

java - SOAP UI Restful : An error occurred [Illegal character in path at index

转载 作者:行者123 更新时间:2023-11-28 21:19:31 26 4
gpt4 key购买 nike

我目前正在开发一个 RESTFUL 网络服务。为了测试 Web 服务,我使用了 SOAP UI。

在执行测试时,我收到错误 Illegal character in path。我可以知道错误的原因是什么吗?如何解决这个问题?以下是问题的详细信息。

错误日志:

Wed Nov 28 17:05:26 SGT 2018:ERROR:java.net.URISyntaxException: Illegal character in path at index 62: http://127.0.0.1:8080/AdaptiveAuthWSApps/rest/AdaptiveService/{uuid}/{browserinfo}/{ipint}/{lat}/{longitude}/{sessionid}/{spid}/{tr}/{jsnum}/{fingerprint}/{methodset}
java.net.URISyntaxException: Illegal character in path at index 62: http://127.0.0.1:8080/AdaptiveAuthWSApps/rest/AdaptiveService/{uuid}/{browserinfo}/{ipint}/{lat}/{longitude}/{sessionid}/{spid}/{tr}/{jsnum}/{fingerprint}/{methodset}

SOAP 用户界面日志:

Wed Nov 28 17:05:26 SGT 2018:ERROR:An error occurred [Illegal character in path at index 62: http://127.0.0.1:8080/AdaptiveAuthWSApps/rest/AdaptiveService/{uuid}/{browserinfo}/{ipint}/{lat}/{longitude}/{sessionid}/{spid}/{tr}/{jsnum}/{fingerprint}/{methodset}], see error log for details
Wed Nov 28 17:05:26 SGT 2018:DEBUG:Attempt 1 to execute request
Wed Nov 28 17:05:26 SGT 2018:DEBUG:Sending request: POST /?uuid=iz23456&browserinfo=Mozilla%2F8.0%20%28Windows%20NT%206.1%29%20AppleWebKit%2F537.36%20%28KHTML%2C%20like%20Gecko%29%20Chrome%2F49.0.2623.112%20Safari%2F537.36&ipint=16885247&lat=1&longitude=0&sessionid=12w3e4&spid=https%3A%2F%2Fuap%2Fowa&tr=10&jsnum=2&fingerprint=yh8u87&methodset=1%2C1 HTTP/1.1
Wed Nov 28 17:05:26 SGT 2018:DEBUG:Receiving response: HTTP/1.1 200
Wed Nov 28 17:05:26 SGT 2018:DEBUG:Connection can be kept alive indefinitely

下面是我在 SOAP UI 中创建测试套件时使用的 WADL。

http://127.0.0.1:8080/AdaptiveAuthWSApps/rest/application.wadl

SOAP UI 参数初始化:

enter image description here

最佳答案

我认为问题出在您的 uuid 参数的值上。

uuid 应该只包含十六进制字符。即 0-9 和 a-f(当然还有“-”)

您写了 iz123456,“i”或“z”均无效。

如果 uuid 也应该是一个实际的 uuid,那么它应该看起来像这样:13a1a079-4a39-4625-91a4-ddbf09c2c324

尝试将此 uuid 复制/粘贴到您的 uuid 参数中,然后再次运行。

关于java - SOAP UI Restful : An error occurred [Illegal character in path at index,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53515965/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com