问题标签 [ballerina]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
ballerina - 运行 Ballerina 代码时找不到包
我已将所有必需的 jar 文件复制到 /bre/lib/ 中。
jar 文件从这里下载,https://github.com/wso2-ballerina/package-mongodb/releases/download/v0.5.5/wso2-mongodb-0.5.5.zip
只是简单地在代码顶部导入,仍然遇到错误“找不到包wso2/mongodb:*”
ballerina - 如何从芭蕾舞演员的 http 请求中获取远程客户端 IP 地址
调用服务的实际客户端位于内部属性“REMOTE_ADDRESS”中。但是我们无法从芭蕾舞演员 http:Request 中检索到它。有没有办法我们可以从芭蕾舞演员的 http 请求中获取客户端的远程 IP
芭蕾舞女演员版本 0.97.1
ballerina - 是否可以为 Ballerina 服务定义默认资源?
试图查看我是否可以公开 curl http://localhost:9090/studentinfo?schoolId=12341324,其中“studentinfo”是服务路径。
ballerina - 我可以访问 Ballerina 程序中的资源路径吗?
我正在寻找在“getStudentById”资源中动态访问资源的路径。例如,如果服务被称为“ http://localhost:9090/studentfinder/student/0989898 ”。我想要 '/student/0989898' 部分。
ballerina - 如何在 Ballerina 中将 json 转换为字符串?
在芭蕾舞女演员中,我有一个这样的 JSON 对象
我想从这个对象中获取一个字符串,例如:
这会产生运行时错误:
我正在尝试获取 JSON 对象的字符串表示形式,这就是我尝试按上述方式转换它的原因。在 Ballerina 中获取 JSON 对象的字符串表示最合适的方法是什么?
ballerina - 在 Ballerina 服务中调用后端时传递动态请求路径
我正在尝试动态传递我的后端请求的路径。但是路径变量是敏感参数,因此不允许我传递传入路径或任何字符串,例如 studentInfoEP->get("/student" + studentId);
知道我们该怎么做吗?
ballerina - 在 Ballerina 中将 XML 转换为字符串
我可以在 println() 中打印 XML,但日志不接受 xml 类型。我还可以使用xml.getTextValue()
.
在以下示例日志语句中,如何获取完整的 XML<test>myval</test>
作为输出字符串?
ballerina - Ballerina 支持消息 ID?
芭蕾舞演员是否提供唯一的识别 ID?这应该有助于识别消息流。如果是支持,那个uuid的范围是什么?
ballerina - 芭蕾舞演员是否支持轮班操作员?
Ballerina 支持哪些按位操作?而且似乎不支持班次运营商。有助于轻松编写一些复杂的逻辑。
ballerina - Ballerina 启用或禁用 JMS 连接
在芭蕾舞女演员中,JMS 是一项服务,因此如果我们只想在特定条件下启动 JMS 连接,我们将无法实现。那么有没有可能实现呢?如果没有,有没有办法根据条件启动 JMS 服务?