Service Systems Modelling

  1. Web Service application: Shopping Cart
    • Client application
      • Download the binary

        The ready-to-use executable for the client application can be run from the command line using one of the three options, which invoke a different Web Service operation: $ ./awsclient [url]:[port] create [username] $ ./awsclient [url]:[port] add [cart] [item] $ ./awsclient [url]:[port] clear [cart] Our deployed Web Service, can be invoked by the client, as follows: $ ./awsclient http://155.207.131.79:8090 [operation] [parameter-s]

      • Download the source code

        In order to build an executable Web Service from the source code in LINUX (we used an Ubuntu 12.04 x64 machine) follow the steps 1-3:
        1. First you unzip the folder to some location <root_loc>
        $ unzip AWSClient.zip -d <root_loc> 2. Then you compile with g++ $ cd <root_loc>
        $ g++ -o awsclient -I mine_service -I gsoap awsclient.cpp gsoap/stdsoap2.cpp mine_service/soapC.cpp mine_service/soapAWSProxy.cpp
        3. Finally, you run the generated executable in the same way as the ready-to-use executable

    • Server application
      • Download the binary

        First, you need to create the mysql database using this schema $ mysql CartsFinal2 < schema.sql Then, the ready-to-use executable for the server application can be run from the command line by specifying the port that it will listen to: $ ./awsservice [port]

        Download sample requests for the Web Service executable

        Instead of using a client program, you can invoke the Web service executable using XML files. Each of these files can be provided as input to the executable web service via the command line and the output will be shown in the console: $ ./awsservice < AWS.CartAdd.req.xml

      • Download the source code

        In order to build an executable Web Service from the source code in LINUX (we used an Ubuntu 12.04 x64 machine) follow the steps 1-6:
        1. First you unzip the folder to some location <root_loc>
        $ unzip AWSService.zip -d <root_loc> 2. You create a mysql database using this schema $ mysql < schema.sql 3. You update the username and the password used in the <root_loc>/awsservice.cpp

        4. Then you install the required libmysqlclient-dev package, if it is not installed. $ sudo apt-get install libmysqlclient-dev 5. Then you compile with g++ $ cd <root_loc>
        $ g++ -o awsservice awsservice.cpp mine_service/soapC.cpp mine_service/soapAWSService.cpp gsoap/stdsoap2.cpp -I mine_service/ -I gsoap -I/usr/include/mysql -lmysqlclient
        6. Finally, you run the generated executable in the same way as the ready-to-use executable

  2. BIP executable for SOAP-based shopping Cart
    • BIP executable
      • Download the BIP executable

        The ready-to-use Web Service BIP executable can be run from the command line and will listen to the 9098 port: $ ./bipawssservice Our deployed model-driven Web Service, can be invoked by the client, as follows: $ ./awsclient http://155.207.131.79:9098 [operation] [parameter-s]

    • BIP source code
      • Download the source code
        In order to compile an executable Web Service from BIP source code, you must fullfil the following prerequisites:

        You must follow the steps 1-3:
        1. First you unzip the folder to some location <root_loc>
        $ unzip BIPAWSService.zip -d <root_loc> 2. Then you run the build.sh $ cd <root_loc>
        $ ./build.sh
        3. Finally, you run the generated executable in the same way as the ready-to-use executable $ ./build/system

  3. BIP model for RESTful Shopping Cart
    • BIP executable
      • Download the BIP executable

        The ready-to-use executable for the BIP model including sample clients and the service can be run from the command line using interactive execution, where at each point the available interactions are shown, in order for you to choose which one will be realized: $ ./restmodel -i

    • BIP source code
      • Download the source code
        In order to compile an executable for the BIP model from BIP source code, you must fullfil the following prerequisites:

        You must follow the steps 1-3:
        1. First you unzip the folder to some location <root_loc>
        $ unzip BIPrest.zip -d <root_loc> 2. Then you run the build.sh $ cd <root_loc>
        $ ./build.sh
        3. Finally, you run the generated executable in the same way as the ready-to-use executable $ ./build/system -i



Home | Projects | Publications | Partners | Related Links | News | People | Contact copyright � 2012 DSG group