source: TI01-discovery/trunk/ws-Discovery/README @ 204

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI01-discovery/trunk/ws-Discovery/README@5256
Revision 204, 4.2 KB checked in by mguiterr, 14 years ago (diff)

Installation and config notes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1#Web services extensions to run in top of the eXist database.
2 
3- To compile the sources
4 
5  ant compile
6
7- To generate ws-Discovery.jar and the documentation
8
9  ant dist
10
11
12
13Discovery Web Service Deployment.
14
15Manual deployment
16
17Requirements:
18   -  eXist running under Tomcat
19   -  Postgres + PGSphere
20
21Web service is customize to work with the present  discovery schema : difv9.4.xsd  and the ndg_spatial database in postgres
22 
23
24See Admin guide at BSCW: Discovery Package (For an extended version on installation of exist +ws-Discovery extensions)
25
26
271 Copy the the ws-Discovery.jar  into the /home/tomcat/exist/WEB-INF/lib
282 Edit the server-config.wsdd at  /home/tomcat/exist/WEB-INF/server-config.wsdd
29
303 Add the follwing service tag , within the deployment tag  and restart Tomcat
31
32  <!-- Services from DiscoveryService WSDL service -->
33
34  <service name="Discovery" provider="java:RPC" style="rpc" use="encoded">
35      <parameter name="wsdlTargetNamespace" value="urn:exist"/>
36      <parameter name="wsdlServiceElement" value="DiscoveryService"/>
37      <parameter name="schemaUnqualified" value="urn:exist,http://soap.exist.org"/>
38      <parameter name="wsdlServicePort" value="Discovery"/>
39      <parameter name="className" value="uk.ac.cclrc.ndg.discovery.DiscoverySoapBindingSkeleton"/>
40      <parameter name="wsdlPortType" value="Discovery"/>
41      <parameter name="typeMappingVersion" value="1.2"/>
42      <parameter name="allowedMethods" value="*"/>
43      <parameter name="scope" value="Session"/>
44
45      <typeMapping
46        xmlns:ns="urn:exist"
47        qname="ns:Collection"
48        type="java:uk.ac.cclrc.ndg.discovery.Collection"
49        serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
50        deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
51        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
52      />
53      <arrayMapping
54        xmlns:ns="urn:exist"
55        qname="ns:ArrayOf_tns2_QueryResponseDocument"
56        type="java:uk.ac.cclrc.ndg.discovery.QueryResponseDocument[]"
57        innerType="cmp-ns:QueryResponseDocument" xmlns:cmp-ns="http://soap.exist.org"
58        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
59      />
60      <arrayMapping
61        xmlns:ns="urn:exist"
62        qname="ns:ArrayOf_soapenc_base64Binary"
63        type="java:byte[][]"
64        innerType="cmp-ns:byte" xmlns:cmp-ns="http://www.w3.org/2001/XMLSchema"
65        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
66      />
67      <arrayMapping
68        xmlns:ns="urn:exist"
69        qname="ns:ArrayOf_soapenc_string"
70        type="java:java.lang.String[]"
71        innerType="cmp-ns:string" xmlns:cmp-ns="http://schemas.xmlsoap.org/soap/encoding/"
72        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
73      />
74      <typeMapping
75        xmlns:ns="http://soap.exist.org"
76        qname="ns:QueryResponse"
77        type="java:uk.ac.cclrc.ndg.discovery.QueryResponse"
78        serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
79        deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
80        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
81      />
82      <typeMapping
83        xmlns:ns="http://soap.exist.org"
84        qname="ns:QueryResponseDocument"
85        type="java:uk.ac.cclrc.ndg.discovery.QueryResponseDocument"
86        serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
87        deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
88        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
89      />
90      <typeMapping
91        xmlns:ns="http://soap.exist.org"
92        qname="ns:QueryResponseCollection"
93        type="java:uk.ac.cclrc.ndg.discovery.QueryResponseCollection"
94        serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
95        deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
96        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
97      />
98      <arrayMapping
99        xmlns:ns="urn:exist"
100        qname="ns:ArrayOf_tns2_QueryResponseCollection"
101        type="java:uk.ac.cclrc.ndg.discovery.QueryResponseCollection[]"
102        innerType="cmp-ns:QueryResponseCollection" xmlns:cmp-ns="http://soap.exist.org"
103        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
104      />
105  </service>
106
107
108
Note: See TracBrowser for help on using the repository browser.