Skip to content

Commit 63be4f1

Browse files
committed
Merge pull request vpulim#508 from strongloop-forks/sl
Allow `<wsdl:documentation>` element under `<wsdl:message>` when processing RPC style WSDL
2 parents d1c8448 + 409dccd commit 63be4f1

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

lib/wsdl.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,10 @@ MessageElement.prototype.postProcess = function(definitions) {
543543
this.parts = {};
544544
delete this.element;
545545
for (i = 0; part = this.children[i]; i++) {
546+
if (part.name === 'documentation') {
547+
// <wsdl:documentation can be present under <wsdl:message>
548+
continue;
549+
}
546550
assert(part.name === 'part', 'Expected part element');
547551
nsName = splitNSName(part.$type);
548552
ns = definitions.xmlns[nsName.namespace];

test/wsdl/rpcexample.wsdl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@
120120
</schema>
121121
</types>
122122
<message name="pullFileRequest">
123+
<documentation>This is doc</documentation>
123124
<part name="params" type="RpcExample:pullFileParams"/>
124125
</message>
125126
<message name="pullFileResponse">

0 commit comments

Comments
 (0)