cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ive...@apache.org
Subject cvs commit: xml-cocoon2/src/webapp/samples/hello-world/webservice HelloWorld.wsdl
Date Sun, 28 Jul 2002 14:49:25 GMT
ivelin      2002/07/28 07:49:25

  Modified:    src/webapp/samples/hello-world sitemap.xmap
  Added:       src/webapp/samples/hello-world/webservice HelloWorld.wsdl
  Log:
  added WSDL and REST style Web Service support for the Hello World sample
  
  Revision  Changes    Path
  1.7       +10 -0     xml-cocoon2/src/webapp/samples/hello-world/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/webapp/samples/hello-world/sitemap.xmap,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- sitemap.xmap	23 Jul 2002 19:38:00 -0000	1.6
  +++ sitemap.xmap	28 Jul 2002 14:49:25 -0000	1.7
  @@ -103,7 +103,17 @@
       <map:generate src="content/xml/hello-page.xml"/>
       <map:serialize type="text"/>
      </map:match>
  +
  +   <map:match pattern="hello.service">
  +    <map:generate src="content/xml/hello-page.xml"/>
  +    <map:serialize type="xml"/>
  +   </map:match>
      
  +   <map:match pattern="hello.service/WSDL">
  +    <map:generate src="webservice/HelloWorld.wsdl"/>
  +    <map:serialize type="xml"/>
  +   </map:match>
  +
      <map:match pattern="hello.xhtml">
       <map:generate src="content/xml/hello-page.xml"/>
       <map:transform src="style/xsl/simple-page2html.xsl"/>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/hello-world/webservice/HelloWorld.wsdl
  
  Index: HelloWorld.wsdl
  ===================================================================
  <?xml version="1.0" encoding="utf-8"?>
  <definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:s0="http://www.cocoonhive.org/cocoonbook/2002/"
xmlns:html="http://www.w3.org/1999/xhtml" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
targetNamespace="http://www.cocoonhive.org/cocoonbook/2002/" xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.xmlsoap.org/wsdl/
  http://schemas.xmlsoap.org/wsdl/">
    <message name="HelloWorldHttpGetIn"/>
    <message name="HelloWorldHttpGetOut">
      <part name="Body" element="html:html"/>
    </message>
    <portType name="HelloWorldHttpGet">
      <operation name="HelloWorld">
        <documentation>
          Returns "Hello World" in XHTML format.  
        </documentation>
        <input message="s0:HelloWorldHttpGetIn"/>
        <output message="s0:HelloWorldHttpGetOut"/>
      </operation>
    </portType>
    <binding name="HelloWorldHttpGet" type="s0:HelloWorldHttpGet">
      <http:binding verb="GET"/>
      <operation name="HelloWorld">
        <http:operation location="hello.service"/>
        <input>
          <http:urlEncoded/>
        </input>
        <output>
          <mime:mimeXml part="Body"/>
        </output>
      </operation>
    </binding>
    <service name="HelloWorld">
      <port name="HelloWorldHttpGet" binding="s0:HelloWorldHttpGet">
        <http:address location="http://localhost:8080/samples/hello-world/"/>
      </port>
    </service>
  </definitions>
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message