0

私は周りを検索しましたが、使用しなければならない残りのサービスの wadl ファイルを解釈する方法がよくわかりません。(ワドルは下部に含まれています..)

私が思ったように、このような単純な GET リクエストが機能するはずです:

http://<IP HERE>:8080/RestZone-it/resources/be.zonit.rest.data?plaats=<SOME LOCATION>

(オランダ語 -> 英語) plaats = 場所

しかし、それは機能しません。私はまだすべてのデータを取得しています..誰かがサービスの使用方法を説明できますか? (この単一の要求を行う方法を単純に教えていただければ幸いです ^^ )

<application xmlns="http://research.sun.com/wadl/2006/10">
    <doc xmlns:jersey="http://jersey.java.net/" jersey:generatedBy="Jersey: 1.8 06/24/2011 12:17 PM"/>
    <resources base="http://<IP-HERE>:8080/RestZone-it/resources/">
        <resource path="be.zonit.rest.data">
            <method id="create" name="POST">
                <request>
                    <representation mediaType="application/xml"/>
                    <representation mediaType="application/json"/>
                </request>
            </method>
            <method id="findAll" name="GET">
                <response>
                    <representation mediaType="application/xml"/>
                    <representation mediaType="application/json"/>
                </response>
            </method>
            <method id="edit" name="PUT">
                <request>
                <representation mediaType="application/xml"/>
                <representation mediaType="application/json"/>
                </request>
            </method>
            <resource path="{id}">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="find" name="GET">
                    <response>
                        <representation mediaType="application/xml"/>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
                <method id="remove" name="DELETE"/>
            </resource>
            <resource path="count">
                <method id="countREST" name="GET">
                    <response>
                        <representation mediaType="text/plain"/>
                    </response>
                </method>
            </resource>
            <resource path="{from}/{to}">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="to" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="from" style="template" type="xs:int"/>
                <method id="findRange" name="GET">
                    <response>
                        <representation mediaType="application/xml"/>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
        </resource>
    </resources>
</application>

対応例

<data>
    <aantalDeelnemers>50</aantalDeelnemers>
    <begin>15:30</begin>
    <datum>5/07/2012</datum>
    <einde>1:00</einde>
    <gemeente>Gent</gemeente>
    <huisnr>2</huisnr>
    <id>1</id>
    <indoor>0</indoor>
    <omschrijving>
    Gent Jazz Festival vindt dit jaar plaats van 5 t.e.m. 14 juli in de tuinen van De Bijloke in Gent.
    </omschrijving>
    <ownerID>1</ownerID>
    <plaats>Bijlokesite</plaats>
    <straat>Godshuizenlaan</straat>
    <titel>Gent Jazz Festival</titel>
</data>
4

1 に答える 1

0

この URL を試してください:

 http://<IP HERE>:8080/RestZone-it/resources/be.zonit.rest.data/<SOME LOCATION>
于 2012-07-17T11:26:31.753 に答える