WSO2 API Manager 1.6.0:通过REST注册服务器不起作用

马克

我的注册服务请求有什么问题?我无法正常工作。

登录(确定)

curl -k -s -c cookies.txt -b cookies.txt -X POST https://my.server.com/publisher/site/blocks/user/login/ajax/login.jag -d 'action=login&username=admin&password=admin'

注册/发布服务失败

curl -k -s -c cookies.txt -b cookies.txt -X POST https://my.server.com/publisher/site/blocks/item-add/ajax/add.jag -d 'action=addAPI&name=GetLand&context=GetLand&version=1.0&tier=Unlimited&transports=http&http_checked=http&transports=https&https_checked=https&description=Dummy Description&visibility=public%20API&tags=Mondriaan&resourceCount=0&resourceMethod-0=GET,POST&resourceMethodAuthType-0=None&uriTemplate=/*&resourceMethodThrottlingTier-0=Unlimited&tiersCollection=Unlimited' -d 'endpoint_config={"production_endpoints":{"url":">http://mgm-fon-web.nl.rsg/orawsv/SNL_OWNER/SOAP_TEST_GET_LAND","config":null},"endpoint_type":"http"}'

我只收到以下错误:

{"error" : true, "message" : " null"}

并在日志中:

 ERROR {JAGGERY.site.blocks.item-add.ajax.add:jag} -  java.lang.NullPointerException: null {JAGGERY.site.blocks.item-add.ajax.add:jag}
萨布吉·哈桑(Sabuj Hasan)

为post参数制作urlencoded数据。这可能会改善您的问题。

同样,>http:从您的参数也可能会伤害您。在我的Windows中,>签名期望它具有有效的文件名。不知道它在Linux或Mac上如何反应。因此,再次尝试发布urlencoded数据。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章