Code Monkey home page Code Monkey logo

lab09-server-heroku's Introduction

lab09-server-heroku

To deploy on Heroku:

heroku login
heroku create --stack cedar --buildpack https://github.com/IntroSDE/heroku-buildpack-ant.git
git push heroku master
heroku open

Check WSDL, open in your browser:

https://{YOUR_APP_NAME}.herokuapp.com/ws/people?wsdl

Test it works via POSTMAN:

POST /ws/people HTTP/1.1
Host: {YOUR_APP_NAME}.herokuapp.com
Accept: text/xml
Content-Type: text/xml
Cache-Control: no-cache

<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">
  <soap:Body xmlns:m="http://ws.document.introsde/">
  <m:getPeopleList>
  </m:getPeopleList>
</soap:Body>
</soap:Envelope>

Expected response (might contain different / more / less people):

<?xml version='1.0' encoding='UTF-8'?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
    <S:Body>
        <ns2:getPeopleListResponse xmlns:ns2="http://ws.document.introsde/">
            <people>
                <birthdate>1978-09-01T22:00:00Z</birthdate>
                <email>[email protected]</email>
                <idPerson>1</idPerson>
                <lastname>Chan</lastname>
                <Measurements>
                    <lifeStatus>
                        <idMeasure>1</idMeasure>
                        <measureDefinition>
                            <idMeasureDef>1</idMeasureDef>
                            <measureName>weight</measureName>
                            <measureType>double</measureType>
                        </measureDefinition>
                        <value>72.3</value>
                    </lifeStatus>
                    <lifeStatus>
                        <idMeasure>352</idMeasure>
                        <measureDefinition>
                            <idMeasureDef>1</idMeasureDef>
                            <measureName>weight</measureName>
                            <measureType>double</measureType>
                        </measureDefinition>
                        <value>86</value>
                    </lifeStatus>
                </Measurements>
                <name>Jecky</name>
                <username>chuck.norris</username>
            </people>
            <people>
                <birthdate>1978-09-01T22:00:00Z</birthdate>
                <email>[email protected]</email>
                <idPerson>2</idPerson>
                <lastname>Norris</lastname>
                <Measurements/>
                <name>Chuck</name>
                <username>pinco</username>
            </people>
        </ns2:getPeopleListResponse>
    </S:Body>
</S:Envelope>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.