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

WSO2 API管理器1.6.0:通过REST注册服务器不起作用,api,rest,curl,wso2,publish,Api,Rest,Curl,Wso2,Publish,我申请注册服务有什么问题?我不能让它工作 登录(ok) 注册/发布服务失败 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&tra

我申请注册服务有什么问题?我不能让它工作

登录(ok)

注册/发布服务失败

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}

为post参数生成urlencoded数据。这可能会改善你的问题


此外,参数中的http:也可能会对您造成伤害。在“我的windows”中,在
签名后,它希望有一个有效的文件名。不确定它在linux或mac上的反应。因此,再次尝试发布URL编码的数据。

这是我的URL中的一个打字错误;除了“>”之外,我没有设置正确的方法值,并且在属性名中犯了一个打字错误。我希望下一个版本,当传递不存在的参数时,WSO2 AM应该显示语法错误。

curl-k-s-b cookies.txt-X POST-d'操作%3DaddAPI%26name%3DGetLand%26context%3DGetLand%26版本%3D1.0%26tier%3DUnlimited%26传输%3Dhttp%26http检查%3Dhttp%26传输%3Dhttps%26https检查%3Dhttps%26描述%3DDummy%20描述%26可见性%3Dpublic%2520API%26标记%3DMondriaan%26resourceCount%3D0%26resourceMethod-0%3DGET%2CPOST%26ResourceAuthType-0%3DNone%26uriTemplate%3D%2F*%26resourceMethodThrottlingTier-0%3DUnlimited%26tiersCollection%3DUnlimited'-d'端点配置%3D%7B%22production'端点%22%3A%7B%22url%22%3A%3Ehttp%3A%2F%2foother.server.com%2Forawsv%2FSNL所有者%2fsnoap\u测试获取地%22%2C%22config%22%3Anull%7D%2C%22endpoint\u类型%22%3A%22http%22%7D':“错误”,消息“超时”{}有什么想法吗?哈哈,你把所有的值都编码好了。在参数中有两个部分,键和值。在您的情况下,只需对值执行urlencode。假设这部分
action=addAPI&name=GetLand
。在这里,您需要在
addAPI
GetLand
上执行urlencode。
 ERROR {JAGGERY.site.blocks.item-add.ajax.add:jag} -  java.lang.NullPointerException: null {JAGGERY.site.blocks.item-add.ajax.add:jag}