Skip to content
Snippets Groups Projects
Commit 59c7d7b8 authored by boulouk's avatar boulouk
Browse files

creating BC for wp4 weather service

parent e8aac774
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0" encoding="UTF-8"?>
<gidl:GIDLModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gidl="http://eu.chorevolution/modelingnotations/gidl" hostAddress="http://jinx.viktoria.chalmers.se:3002/" protocol="REST">
<hasInterfaces role="provider">
<hasOperations name="getWeather" type="two_way_sync" qos="reliable">
<hasScope name="getWeather" verb="POST" uri="getWeather"/>
<inputData name="request" context="body">
<hasDataType xsi:type="gidl:ComplexType" name="weatherInformationRequest" occurences="one">
<hasDataType xsi:type="gidl:SimpleType" name="lat" occurences="one" type="string"/>
<hasDataType xsi:type="gidl:SimpleType" name="lon" occurences="one" type="string"/>
</hasDataType>
</inputData>
<outputData name="response" context="body">
<hasDataType xsi:type="gidl:ComplexType" name="weatherInformationResponse" occurences="one">
<hasDataType xsi:type="gidl:SimpleType" name="roadTemperature" occurences="one" type="string"/>
<hasDataType xsi:type="gidl:SimpleType" name="airTemperature" occurences="one" type="string"/>
<hasDataType xsi:type="gidl:SimpleType" name="airRelativeHumidity" occurences="one" type="string"/>
<hasDataType xsi:type="gidl:SimpleType" name="windForce" occurences="one" type="string"/>
</hasDataType>
</outputData>
</hasOperations>
</hasInterfaces>
</gidl:GIDLModel>
...@@ -14,7 +14,9 @@ public class VsbManagerTest{ ...@@ -14,7 +14,9 @@ public class VsbManagerTest{
public static void main(String[] args) { public static void main(String[] args) {
String interfaceDescriptionPath = "/home/pntumba/inria_code/repositories/evolution-service-bus/bc-manager/target/classes/weather.gidl"; // String interfaceDescriptionPath = "D:\\inria\\code\\repositories\\chorevolution\\evolution-service-bus\\bc-manager\\src\\main\\resources\\weather.gidl";
String interfaceDescriptionPath = "D:\\inria\\code\\repositories\\chorevolution\\evolution-service-bus\\bc-manager\\src\\main\\resources\\weather_wp4.gidl";
generateWarFile(interfaceDescriptionPath); generateWarFile(interfaceDescriptionPath);
// generateWarBytes(interfaceDescriptionPath); // generateWarBytes(interfaceDescriptionPath);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment