Comments (6)
Thank you for submitting this issue.
We will look into it and get back to you with a solution.
from basyx-java-server-sdk.
Hi @inowshin19 ,
the invokable operation is developed by the Basyx SDK, it is not included in the AAS4j or AAS standard, so you cannot create an invokable operation using a Json file. Here is an example to create an invokable operation
From your provided information I understand that you want to upload an AAS defined in the opc2aasServiceAAS.json.
The best way to upload an AAS ist to use the follow HTTP REST API:
POST {server-url}/shells
body: serialized AAS as Json
see here
from basyx-java-server-sdk.
Hello @zhangzai123, thank you for the clarification!
from basyx-java-server-sdk.
Hi @inowshin19,
I have tested your settings in a Junit test. The test runs through without error. It may because of the usage of the Postman that you got the 415 error.
from basyx-java-server-sdk.
I also came cross a problem regarding invokable operation. I create a submodel using createSubmodelWithAllSubmodelElements and create the submodel in SubmodelRepository with the createSubmodel method. After this I got error when I execute the operation, no matter via web-ui (got 405 Error) or via invoke
API (got NotInvokableException
).
![](https://private-user-images.githubusercontent.com/130363962/348528538-8d385f97-1302-4e3b-a68d-553ad3714f70.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIyNzY1NzUsIm5iZiI6MTcyMjI3NjI3NSwicGF0aCI6Ii8xMzAzNjM5NjIvMzQ4NTI4NTM4LThkMzg1Zjk3LTEzMDItNGUzYi1hNjhkLTU1M2FkMzcxNGY3MC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzI5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyOVQxODA0MzVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05ZmRlZmYyOWZkNTg4OTYwYmQyMTFkYWRjZGJiODY3YWQ2NzY3ODRkZGFkNjJiMjQ4NGNmZTNlZTUwNDdmYWE2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.pjHW7-Hv6NxuAdPD6uQB-i5u19fF0NAKtVtOKLnNcu8)
However, if i create the submodel via the SubmodelRepository instance which returned from appContext.getBean(SubmodelRepository.class)
, it works indeed.
Hi @inowshin19 , the invokable operation is developed by the Basyx SDK, it is not included in the AAS4j or AAS standard, so you cannot create an invokable operation using a Json file.
Is it now possible to create a submodel in submodelrepository component which supports invokable operation directly, rather than through operation delegation? Please let me know if I'm missing something. Much appreciated!
from basyx-java-server-sdk.
Hi @gongzhq136,
invoking operations directly without the operation delegation feature is currently not supported.
I'll add your suggestion to the backlog for future consideration 👍
from basyx-java-server-sdk.
Related Issues (20)
- No MQTT Events send when changing MLPs HOT 6
- No MQTT events for PUT-Requests? HOT 7
- Unable to retrieve list of AAS Identifiers from MongoDB in Discovery HOT 3
- cant connect my aasx file to the registry HOT 1
- Bug: basyx.aasenvironment+MongoDB stores binaries in Memory anyways (and by extension basyx.aassubmodelregitry as well i guess) HOT 3
- Issue : Unexpected Error 500 Occurred After using Blob input HOT 1
- Discovery service startup error when starting with MongoDB instead of InMemory HOT 2
- Invoking /shells?cursor=x returns 500 HOT 2
- Invoking /shells/$reference returns 400 HOT 2
- Problem with Adding DataBridge to Docker-Compose File HOT 5
- Submodel Repository returns empty embeddedDataSpecificatios for SubmodelElements HOT 1
- Dependency to license-tool-plugin:1.1.1-SNAPSHOT makes it hard to build out-of-the-box HOT 6
- move org.eclipse.digitaltwin.basyx.core.LoggingPropertySourceLoader to new artifact basyx.springcore - would help to reduce dependencies to basyx.core HOT 2
- SubmodelRepository Test Suite - AAS Instances non Conform HOT 1
- aas-discovery: Changing server.port in application.properties has no effect HOT 2
- Microsoft Entra AD Support HOT 1
- Operation Delegation missing inoutputVariables HOT 4
- [BUG] Serialization endpoint and createAASXAASEnvironmentSerialization mathods unable to download and include files HOT 3
- [BUG] Wrong HTTP-Statuscode On Thumbnail Upload HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from basyx-java-server-sdk.