wlapi 0.8.6 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
- ---
2
- SHA512:
3
- metadata.gz: e2f0476621333078c51f8e5d667abc569c2758722275ac71e270cbfe907bd71b6acb6b286f2a34f3a5a68adcf5550a274049f15a3b6ed1db763d97a4e0eb41a7
4
- data.tar.gz: a5e7e2ee5ab134d66e4bf6c1eccb2f82d15dca88eecd41d6a4ba72c206944a2428f1c70323c90a9a3659fb32a97f4822fea80351f1f977a39d34b7bd74813ce0
5
- SHA1:
6
- metadata.gz: 86a7c749c0a11a43db762d4a0c12e7e27c17e4c4
7
- data.tar.gz: a21efd91f6f886e704361bb2a6b8fce968081213
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 61feab9a317f1f737117faa2850e74af893d6234
4
+ data.tar.gz: 55316770a7b65ce8b5f7eb0fea4c95da19333714
5
+ SHA512:
6
+ metadata.gz: ca582801a3830c311fcdd01791a44cdf042f097122cabc340627dba61f5b8976c80900d266f20a9960015677878003c02d2cd53b2780a25c1f5f9ea879c00788
7
+ data.tar.gz: a13b4d893046a1454a15f9a19c2c5449e13e878e0874f35193f84375479738937108bc4310a85e9ea64f25068b57515dc2b3c54245032663c34164f392d2ba10
Binary file
Binary file
data/.yardopts CHANGED
@@ -2,5 +2,5 @@
2
2
  --protected
3
3
  --title 'WLAPI - Ruby based API for Wortschatz Leipzig web services'
4
4
  -
5
- CHANGELOG.rdoc
5
+ CHANGELOG.md
6
6
  LICENSE.rdoc
@@ -1,4 +1,6 @@
1
1
  ## COMPLETED
2
+ ### 0.9.0
3
+ Dropped support for `1.8.7`.
2
4
  ### 0.8.6
3
5
  Implemented <tt>ngrams</tt> and <tt>ngram_references</tt>.
4
6
  ### 0.8.5
@@ -25,18 +27,3 @@ Fixed the bug with a wrong dependency on the latest version of savon.
25
27
  Due to interface changes it depends now on <tt>0.7.9</tt>.
26
28
  ### 0.0.3
27
29
  Initial release of the lib.
28
-
29
-
30
- ## PLANNED
31
- ### 0.8.7
32
- - Rewrite tests using <tt>Minitest</tt>.
33
- - Test the lib against mri, rbx, jruby, win rubies.
34
- - Introduce <tt>nokogiri</tt> for parsing responses.
35
- - Refine semantic checks for two parameter methods.
36
- ### 0.8.8
37
- ### 0.8.9
38
-
39
- ### 0.9.0
40
- Add a command line tool to work with Wortschatz Lepzip. Package the lib, the cmd tool, and all the dependencies. Nokogiri is packaged by Lucas Nussbaumer.
41
- ### 1.0.0
42
-
@@ -9,9 +9,26 @@
9
9
  {<img src="https://codeclimate.com/github/arbox/wlapi.png" alt="Code Climate" />}[https://codeclimate.com/github/arbox/wlapi]
10
10
 
11
11
  == DESCRIPTION
12
- WLAPI is a programmatic API for web services provided by the project {Wortschatz}[http://wortschatz.uni-leipzig.de/], University of Leipzig. These services are a great source of linguistic knowledge for morphological, syntactic and semantic analysis of German both for traditional and Computational Linguistics (CL).
12
+ WLAPI is a programmatic API for web services provided by the project
13
+ {Wortschatz}[http://wortschatz.uni-leipzig.de/], University of Leipzig. These
14
+ services are a great source of linguistic knowledge for morphological, syntactic
15
+ and semantic analysis of German both for traditional and Computational
16
+ Linguistics (CL).
13
17
 
14
- Use this API to gain data on word frequencies, left and right neighbours, collocations and semantic similarity. Check it out if you are interested in Natural Language Processing (NLP) and Human Language Technology (HLT).
18
+ Use this API to gain data on word frequencies, left and right neighbours,
19
+ collocations and semantic similarity. Check it out if you are interested
20
+ in Natural Language Processing (NLP) and Human Language Technology (HLT).
21
+
22
+ This library is a set of Ruby bindings for the following featuren. You may also
23
+ be interested in other language specific bindings:
24
+
25
+ * {Perl}[http://search.cpan.org/~schroeer/Lingua-DE-Wortschatz/]
26
+ * {Python}[https://github.com/lehmannro/libleipzig-python]
27
+ * {PHP}[http://web.archive.org/web/20090418233940/http://blog.klassifikator.de/2009/03/php-implementierung-des-wortschatz-webservice-der-uni-leipzig/]
28
+ * {C#}[http://code-bude.net/2013/07/22/csharp-api-fuer-den-wortschatz-leipzig-thesaurus-webservic/]
29
+
30
+ The original Java based clients with many examples can be found on the
31
+ {project overview page}[http://wortschatz.uni-leipzig.de/axis/servlet/ServiceOverviewServlet].
15
32
 
16
33
  === Implemented Features
17
34
  You can use the following search methods:
@@ -34,19 +51,28 @@ You can use the following search methods:
34
51
  * <tt>#ngrams</tt>;
35
52
  * <tt>#ngram_references</tt>;
36
53
 
37
- The services <tt>NGrams</tt> and <tt>NGramReferences</tt> are under development and will be available soon. Both methods throw an <tt>NotImplementedError</tt> for now.
54
+ The services <tt>NGrams</tt> and <tt>NGramReferences</tt> are under development
55
+ and will be available soon. Both methods throw an <tt>NotImplementedError</tt>
56
+ for now.
38
57
 
39
- The interface will be slightly changed in the version <tt>1.0</tt> to be more readable. For example, <tt>#cooccurrences_all</tt> will become <tt>#all_cooccurrences</tt>.
58
+ The interface will be slightly changed in the version <tt>1.0</tt> to be more
59
+ readable. For example, <tt>#cooccurrences_all</tt> may become
60
+ <tt>#all_cooccurrences</tt>.
40
61
 
41
- There are two additional services by Wortschatz Leipzig: MARS and Kookurrenzschnitt. They will not be implemented due to internal restrictions of the service provider.
62
+ There are two additional services by Wortschatz Leipzig: MARS and
63
+ Kookurrenzschnitt. They will not be implemented due to internal restrictions of
64
+ the service provider.
42
65
 
43
66
  == INSTALLATION
44
- WLAPI is provided as a .gem package. Simply install it via {RubyGems}[http://rubygems.org/gems/wlapi].
67
+ WLAPI is provided as a <tt>.gem</tt> package. Simply install it via
68
+ {RubyGems}[http://rubygems.org/gems/wlapi].
45
69
 
46
70
  To install WLAPI ussue the following command:
47
71
  $ gem install wlapi
48
72
 
49
- The current version of WLAPI works with the second {Savon}[http://savonrb.com/version2/] generation. You might want to install versions prior to +0.8.0+, if you are bound on the old implementations of {savon}[http://savonrb.com/]:
73
+ The current version of WLAPI works with the second {Savon}[http://savonrb.com/version2/]
74
+ generation. You might want to install versions prior to +0.8.0+, if you are bound
75
+ on the old implementations of {savon}[http://savonrb.com/]:
50
76
  $ gem install wlapi -v 0.7.4
51
77
 
52
78
  If you want to do a system wide installation, do this as root (possibly using +sudo+).
@@ -98,7 +124,18 @@ If you want to intercept any and every exception thrown by WLAPI simply rescue
98
124
  If you have question, bug reports or any suggestions, please drop me an email :)
99
125
  Any help is deeply appreciated!
100
126
 
101
- If you need some new functionality please contact me or provide a pull request. You code should be complete and tested. Please use <tt>local_*</tt> and <tt>remote_*</tt> naming convention for your tests.
127
+ If you need some new functionality please contact me or provide a pull request.
128
+ You code should be complete and tested. Please use <tt>local_*</tt> and
129
+ <tt>remote_*</tt> naming convention for your tests.
130
+
131
+ === Supported Ruby Versions
132
+ The library is testend on the following Ruby interpreters:
133
+ * MRI 1.8.7
134
+ * MRI 1.9.3
135
+ * MRI 2.0.x
136
+ * MRI 2.1.x
137
+ * JRuby (both 1.8 and 1.9 modes)
138
+ * Rubinius
102
139
 
103
140
  == CHANGELOG
104
141
  For details on future plan and working progress see CHANGELOG.
@@ -112,4 +149,5 @@ Please contact me with your suggestions, bug reports and feature requests.
112
149
 
113
150
  WLAPI is a copyrighted software by Andrei Beliankou, 2010-2014
114
151
 
115
- You may use, redistribute and change it under the terms provided in the LICENSE file.
152
+ You may use, redistribute and change it under the terms provided
153
+ in the LICENSE file.
@@ -1,5 +1,6 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  # 2010-2014, Andrei Beliankou
3
+ # @author Andrei Beliankou
3
4
 
4
5
  # :title: Ruby based API for Wortschatz Leipzig web services
5
6
  # :main: README.rdoc
@@ -11,9 +12,8 @@ require 'wlapi/error'
11
12
  # But we consider using Nokogiri since Savon depends on it
12
13
  # and we won't introduce additional dependencies.
13
14
  require 'rexml/document'
14
- include REXML
15
15
 
16
- # Top level namespace wrapper for WLAPI
16
+
17
17
  module WLAPI
18
18
 
19
19
  # This class represents an interface to the linguistic web services
@@ -21,17 +21,22 @@ module WLAPI
21
21
  #
22
22
  # See the project 'Wortschatz Leipzig' for more details.
23
23
  class API
24
+ include REXML
24
25
 
25
26
  # SOAP Services Endpoint.
26
27
  ENDPOINT = 'http://wortschatz.uni-leipzig.de/axis/services'
27
28
 
28
29
  # The list of accessible services, the MARSService is excluded due
29
30
  # to its internal authorization.
30
- SERVICES = [:Thesaurus, :Baseform, :Similarity, :Synonyms, :Sachgebiet, :Frequencies,
31
- :Kookurrenzschnitt, :ExperimentalSynonyms, :RightCollocationFinder,
32
- :LeftCollocationFinder, :Wordforms, :CooccurrencesAll, :LeftNeighbours,
33
- :RightNeighbours, :Sentences, :Cooccurrences, :Kreuzwortraetsel,
34
- :NGrams, :NGramReferences]
31
+ SERVICES = [
32
+ :Baseform, :Cooccurrences, :CooccurrencesAll,
33
+ :ExperimentalSynonyms, :Frequencies,
34
+ :Kookurrenzschnitt, :Kreuzwortraetsel,
35
+ :LeftCollocationFinder, :LeftNeighbours, :NGrams,
36
+ :NGramReferences, :RightCollocationFinder,
37
+ :RightNeighbours, :Sachgebiet, :Sentences,
38
+ :Similarity, :Synonyms, :Thesaurus, :Wordforms
39
+ ]
35
40
 
36
41
  # At the creation point clients for all services are being instantiated.
37
42
  # You can also set the login and the password (it defaults to 'anonymous').
@@ -39,32 +44,31 @@ module WLAPI
39
44
  def initialize(login = 'anonymous', pass = 'anonymous')
40
45
 
41
46
  # This hash contains the URLs to the single services.
42
- @services = {}
47
+ services = {}
43
48
 
44
- SERVICES.each { |service| @services[service] = "#{ENDPOINT}/#{service}"}
49
+ SERVICES.each { |service| services[service] = "#{ENDPOINT}/#{service}"}
45
50
 
46
51
  # cl short for client.
47
52
  # Dynamically create all the clients and set access credentials.
48
53
  # It can be a very bad idea to instantiate all the clients at once,
49
54
  # we should investigate the typical user behaviour.
50
55
  # If only one service is used in the separate session => rewrite the class!
51
- @services.each do |key, val|
52
- cl_name = '@cl_' + key.to_s
56
+ services.each do |key, val|
57
+ cl_name = "@cl_#{key}"
53
58
 
54
- options = {:wsdl => val + "?wsdl",
59
+ options = {:wsdl => val + '?wsdl',
55
60
  :namespaces => {'xmlns:dat' => 'http://datatypes.webservice.wortschatz.uni_leipzig.de',
56
61
  'xmlns:urn' => val},
57
62
  :basic_auth => ['anonymous', 'anonymous'],
58
63
  :log => $DEBUG
59
64
  }
65
+
60
66
  client = Savon.client(options)
67
+
61
68
  eval("#{cl_name} = client")
62
69
  end
63
70
 
64
71
  # Savon creates very verbose logs, switching off.
65
- # Savon.configure do |config|
66
- # config.log = false unless $DEBUG
67
- # end
68
72
  HTTPI.log = false unless $DEBUG
69
73
  end
70
74
 
@@ -74,15 +78,16 @@ module WLAPI
74
78
  # If you want to get all the results, you should provide a number,
75
79
  # which would be greater than the result set since we cannot
76
80
  # predict how many answers the server will give us.
77
- #############################################################################
81
+ ############################################################################
78
82
 
79
83
  ## One parameter methods.
80
- #############################################################################
84
+ ############################################################################
81
85
 
82
86
  # Returns the frequency and frequency class of the input word.
83
87
  # Frequency class is computed in relation to the most frequent word
84
88
  # in the corpus. The higher the class, the rarer the word:
85
89
  # api.frequencies("Autos") => ["40614", "9"]
90
+ # @return [Array] a list
86
91
  def frequencies(word)
87
92
  check_params(word)
88
93
 
@@ -96,6 +101,7 @@ module WLAPI
96
101
  # Returns the lemmatized (base) form of the input word
97
102
  # and the POS tag in an array:
98
103
  # api.baseform("Auto") => ["Auto", "N"]
104
+ # @return [Array] a list
99
105
  def baseform(word)
100
106
  check_params(word)
101
107
 
@@ -120,10 +126,11 @@ module WLAPI
120
126
  end
121
127
 
122
128
  ## Two parameter methods.
123
- #############################################################################
129
+ ############################################################################
124
130
 
125
131
  # Returns all other word forms of the same lemma for a given word form.
126
132
  # api.wordforms("Auto") => ["Auto", "Autos"]
133
+ # @return [Array] a list
127
134
  def wordforms(word, limit = 10)
128
135
  check_params(word, limit)
129
136
 
@@ -139,6 +146,7 @@ module WLAPI
139
146
  # However, this first builds a lemma of the input word
140
147
  # and thus returns more synonyms:
141
148
  # api.thesaurus("Auto") => ["Auto", "Bahn", "Wagen", "Zug", "Schiff", ...]
149
+ # @return [Array] a list
142
150
  def thesaurus(word, limit = 10)
143
151
  check_params(word, limit)
144
152
 
@@ -152,6 +160,7 @@ module WLAPI
152
160
  # This method searches for synonyms.
153
161
  # Returns synonyms of the input word. In other words, this is a thesaurus.
154
162
  # api.synonyms("Auto") => ["Kraftwagen", "Automobil", "Benzinkutsche", ...]
163
+ # @return [Array] a list
155
164
  def synonyms(word, limit = 10)
156
165
  check_params(word, limit)
157
166
 
@@ -170,7 +179,7 @@ module WLAPI
170
179
  # und drittens die hinreißend gestylten 16-Zoll-Felgen,
171
180
  # die es leider nur für dieses Auto gibt.", ...]
172
181
  #--
173
- # ok, but results should be filtered
182
+ # @todo ok, but results should be filtered
174
183
  def sentences(word, limit = 10)
175
184
  check_params(word, limit)
176
185
 
@@ -185,7 +194,7 @@ module WLAPI
185
194
  # (words co-occurring immediately to the left of the input word).
186
195
  # api.left_neighbours("Auto") => ["geparktes", "Auto", "561", ...]
187
196
  #--
188
- # ok, but results should be filtered
197
+ # @todo ok, but results should be filtered
189
198
  def left_neighbours(word, limit = 10)
190
199
  check_params(word, limit)
191
200
 
@@ -200,7 +209,7 @@ module WLAPI
200
209
  # (words co-occurring immediately to the right of the input word).
201
210
  # api.right_neighbours("Auto") => ["Auto", "erfaßt", "575", ...]
202
211
  #--
203
- # ok, but results should be filtered
212
+ # @todo ok, but results should be filtered
204
213
  def right_neighbours(word, limit = 10)
205
214
  check_params(word, limit)
206
215
 
@@ -242,25 +251,24 @@ module WLAPI
242
251
  get_answer(answer)
243
252
  end
244
253
 
245
- # @todo
254
+ # @todo Define the syntax for the pattern, fix the corpus.
246
255
  def ngrams(pattern, limit = 10)
247
-
248
256
  arg1 = ['Pattern', pattern]
249
257
  arg2 = ['Limit', limit]
250
258
  answer = query(@cl_NGrams, arg1, arg2)
251
- #raise(NotImplementedError, 'This method will be implemented in the next release.')
259
+ # raise(NotImplementedError, 'This method will be implemented in the next release.')
252
260
  end
253
261
 
254
- #
262
+ # @todo Define the syntax for the pattern, fix the corpus.
255
263
  def ngram_references(pattern, limit = 10)
256
264
  arg1 = ['Pattern', pattern]
257
265
  arg2 = ['Limit', limit]
258
266
  answer = query(@cl_NGramReferences, arg1, arg2)
259
- #raise(NotImplementedError, 'This method will be implemented in the next release.')
267
+ # raise(NotImplementedError, 'This method will be implemented in the next release.')
260
268
  end
261
269
 
262
270
  ## Three parameter methods.
263
- #############################################################################
271
+ ############################################################################
264
272
 
265
273
  # Attempts to find linguistic collocations that occur to the right
266
274
  # of the given input word.
@@ -377,8 +385,6 @@ module WLAPI
377
385
  # with keys and values for the soap query.
378
386
  def query(cl, *args)
379
387
  # WSDL is disabled since calling the server for wsdl can last too long.
380
-
381
-
382
388
  v = []
383
389
  body = {
384
390
  'urn:objRequestParameters' => {
@@ -389,29 +395,18 @@ module WLAPI
389
395
  }
390
396
  }
391
397
 
398
+ # _args_ is an Array of arrays with keys and values
392
399
  # Setting the first argument (usually 'Wort').
393
- v << {'dat:dataRow'=>[
394
- args[0][0],
395
- args[0][1]
396
- ]
397
- } if args[0]
398
400
  # Setting the second argument (usually 'Limit').
399
- v << {'dat:dataRow'=>[
400
- args[1][0],
401
- args[1][1]
402
- ]
403
- } if args[1]
404
- # Setting the third argument (no common value)
405
- v << {'dat:dataRow'=>[
406
- args[2][0],
407
- args[2][1]
408
- ]
409
- } if args[2]
401
+ # Setting the third argument (no common value).
402
+ args.each do |key, val|
403
+ v << {'dat:dataRow' => [key, val]}
404
+ end
410
405
 
411
406
  begin
412
407
  resp = cl.call(:execute, {:message => body})
413
408
  rescue => e
414
- fail(WLAPI::ExternalError, e)
409
+ raise(WLAPI::ExternalError, e)
415
410
  end
416
411
 
417
412
  doc = Document.new(resp.to_xml)
@@ -462,8 +457,8 @@ module WLAPI
462
457
  end
463
458
 
464
459
  def msg(arg, meth, cls)
465
- "Argument <#{arg}> for the method <#{meth}> should be a <#{cls}>, " +
466
- "not <#{arg.class}>!"
460
+ "Argument <#{arg}> for the method <#{meth}> should be a <#{cls}>, "\
461
+ "not <#{arg.class}>!"
467
462
  end
468
- end # class
469
- end # module
463
+ end # class API
464
+ end # module WLAPI
@@ -1,3 +1,3 @@
1
1
  module WLAPI
2
- VERSION = '0.8.6'
2
+ VERSION = '0.9.0'
3
3
  end
@@ -0,0 +1,221 @@
1
+ ---
2
+ recorded_with: VCR 2.9.2
3
+ http_interactions:
4
+ - request:
5
+ method: get
6
+ uri: http://anonymous:anonymous@wortschatz.uni-leipzig.de/axis/services/Baseform?wsdl
7
+ body:
8
+ string: ""
9
+ headers:
10
+ Accept:
11
+ - "*/*"
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ Server:
18
+ - Apache-Coyote/1.1
19
+ Transfer-Encoding:
20
+ - chunked
21
+ X-Cache:
22
+ - MISS from wortschatz.uni-leipzig.de
23
+ Date:
24
+ - Tue, 29 Jul 2014 10:25:29 GMT
25
+ Content-Type:
26
+ - text/xml;charset=utf-8
27
+ body:
28
+ string: |
29
+ <?xml version="1.0" encoding="UTF-8"?>
30
+ <wsdl:definitions targetNamespace="urn:Baseform" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="urn:Baseform" xmlns:intf="urn:Baseform" xmlns:tns1="http://datatypes.webservice.wortschatz.uni_leipzig.de" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
31
+ <!--WSDL created by Apache Axis version: 1.2RC3
32
+ Built on Mar 28, 2005 (10:34:47 CEST)-->
33
+ <wsdl:types>
34
+ <schema elementFormDefault="qualified" targetNamespace="urn:Baseform" xmlns="http://www.w3.org/2001/XMLSchema">
35
+ <import namespace="http://datatypes.webservice.wortschatz.uni_leipzig.de"/>
36
+ <element name="execute">
37
+ <complexType>
38
+ <sequence>
39
+ <element name="objRequestParameters" type="impl:RequestParameter"/>
40
+ </sequence>
41
+ </complexType>
42
+ </element>
43
+ <complexType name="DataMatrix">
44
+ <sequence>
45
+ <element maxOccurs="unbounded" name="dataVectors" type="tns1:DataVector"/>
46
+ </sequence>
47
+ </complexType>
48
+ <complexType name="RequestParameter">
49
+ <sequence>
50
+ <element name="corpus" nillable="true" type="xsd:string"/>
51
+ <element name="parameters" nillable="true" type="impl:DataMatrix"/>
52
+ </sequence>
53
+ </complexType>
54
+ <element name="executeResponse">
55
+ <complexType>
56
+ <sequence>
57
+ <element name="executeReturn" type="impl:ResponseParameter"/>
58
+ </sequence>
59
+ </complexType>
60
+ </element>
61
+ <complexType name="ResponseParameter">
62
+ <sequence>
63
+ <element name="executionTime" nillable="true" type="xsd:string"/>
64
+ <element name="result" nillable="true" type="impl:DataMatrix"/>
65
+ <element name="serviceMagnitude" type="xsd:int"/>
66
+ <element name="userAmount" type="xsd:int"/>
67
+ <element name="userMaxLimit" type="xsd:int"/>
68
+ </sequence>
69
+ </complexType>
70
+ <element name="ping">
71
+ <complexType/>
72
+ </element>
73
+ <element name="pingResponse">
74
+ <complexType>
75
+ <sequence>
76
+ <element name="pingReturn" type="xsd:string"/>
77
+ </sequence>
78
+ </complexType>
79
+ </element>
80
+ </schema>
81
+ <schema elementFormDefault="qualified" targetNamespace="http://datatypes.webservice.wortschatz.uni_leipzig.de" xmlns="http://www.w3.org/2001/XMLSchema">
82
+ <import namespace="urn:Baseform"/>
83
+ <complexType name="DataVector">
84
+ <sequence>
85
+ <element maxOccurs="unbounded" name="dataRow" type="xsd:string"/>
86
+ </sequence>
87
+ </complexType>
88
+ </schema>
89
+ </wsdl:types>
90
+
91
+ <wsdl:message name="pingResponse">
92
+
93
+ <wsdl:part element="impl:pingResponse" name="parameters"/>
94
+
95
+ </wsdl:message>
96
+
97
+ <wsdl:message name="executeRequest">
98
+
99
+ <wsdl:part element="impl:execute" name="parameters"/>
100
+
101
+ </wsdl:message>
102
+
103
+ <wsdl:message name="pingRequest">
104
+
105
+ <wsdl:part element="impl:ping" name="parameters"/>
106
+
107
+ </wsdl:message>
108
+
109
+ <wsdl:message name="executeResponse">
110
+
111
+ <wsdl:part element="impl:executeResponse" name="parameters"/>
112
+
113
+ </wsdl:message>
114
+
115
+ <wsdl:portType name="Baseform">
116
+
117
+ <wsdl:operation name="execute">
118
+
119
+ <wsdl:input message="impl:executeRequest" name="executeRequest"/>
120
+
121
+ <wsdl:output message="impl:executeResponse" name="executeResponse"/>
122
+
123
+ </wsdl:operation>
124
+
125
+ <wsdl:operation name="ping">
126
+
127
+ <wsdl:input message="impl:pingRequest" name="pingRequest"/>
128
+
129
+ <wsdl:output message="impl:pingResponse" name="pingResponse"/>
130
+
131
+ </wsdl:operation>
132
+
133
+ </wsdl:portType>
134
+
135
+ <wsdl:binding name="BaseformSoapBinding" type="impl:Baseform">
136
+
137
+ <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
138
+
139
+ <wsdl:operation name="execute">
140
+
141
+ <wsdlsoap:operation soapAction=""/>
142
+
143
+ <wsdl:input name="executeRequest">
144
+
145
+ <wsdlsoap:body use="literal"/>
146
+
147
+ </wsdl:input>
148
+
149
+ <wsdl:output name="executeResponse">
150
+
151
+ <wsdlsoap:body use="literal"/>
152
+
153
+ </wsdl:output>
154
+
155
+ </wsdl:operation>
156
+
157
+ <wsdl:operation name="ping">
158
+
159
+ <wsdlsoap:operation soapAction=""/>
160
+
161
+ <wsdl:input name="pingRequest">
162
+
163
+ <wsdlsoap:body use="literal"/>
164
+
165
+ </wsdl:input>
166
+
167
+ <wsdl:output name="pingResponse">
168
+
169
+ <wsdlsoap:body use="literal"/>
170
+
171
+ </wsdl:output>
172
+
173
+ </wsdl:operation>
174
+
175
+ </wsdl:binding>
176
+
177
+ <wsdl:service name="BaseformService">
178
+
179
+ <wsdl:port binding="impl:BaseformSoapBinding" name="Baseform">
180
+
181
+ <wsdlsoap:address location="http://wortschatz.uni-leipzig.de:8100/axis/services/Baseform"/>
182
+
183
+ </wsdl:port>
184
+
185
+ </wsdl:service>
186
+
187
+ </wsdl:definitions>
188
+
189
+ http_version:
190
+ recorded_at: Tue, 29 Jul 2014 10:25:29 GMT
191
+ - request:
192
+ method: post
193
+ uri: http://anonymous:anonymous@wortschatz.uni-leipzig.de:8100/axis/services/Baseform
194
+ body:
195
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:dat="http://datatypes.webservice.wortschatz.uni_leipzig.de" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ins0="http://datatypes.webservice.wortschatz.uni_leipzig.de" xmlns:urn="http://wortschatz.uni-leipzig.de/axis/services/Baseform" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:impl="urn:Baseform"><env:Body><impl:execute><urn:objRequestParameters><urn:corpus>de</urn:corpus><urn:parameters><urn:dataVectors><dat:dataRow>Wort</dat:dataRow><dat:dataRow>Autos</dat:dataRow></urn:dataVectors></urn:parameters></urn:objRequestParameters></impl:execute></env:Body></env:Envelope>
196
+ headers:
197
+ Soapaction:
198
+ - "\"execute\""
199
+ Content-Length:
200
+ - "708"
201
+ Content-Type:
202
+ - text/xml;charset=UTF-8
203
+ Accept:
204
+ - "*/*"
205
+ response:
206
+ status:
207
+ code: 200
208
+ message: OK
209
+ headers:
210
+ Server:
211
+ - Apache-Coyote/1.1
212
+ Transfer-Encoding:
213
+ - chunked
214
+ Date:
215
+ - Tue, 29 Jul 2014 10:25:29 GMT
216
+ Content-Type:
217
+ - text/xml;charset=utf-8
218
+ body:
219
+ string: <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><executeResponse xmlns="urn:Baseform"><executeReturn><executionTime>0.013 s</executionTime><result><ns1:dataVectors xsi:type="ns2:DataVector" xmlns:ns1="http://datatypes.webservice.wortschatz.uni_leipzig.de" xmlns:ns2="urn:Baseform"><ns1:dataRow>Auto</ns1:dataRow><ns1:dataRow>N</ns1:dataRow></ns1:dataVectors></result><serviceMagnitude>0</serviceMagnitude><userAmount>1999241783</userAmount><userMaxLimit>-100</userMaxLimit></executeReturn></executeResponse></soapenv:Body></soapenv:Envelope>
220
+ http_version:
221
+ recorded_at: Tue, 29 Jul 2014 10:25:29 GMT