MCPcopy
hub / github.com/vpulim/node-soap / postProcess

Method postProcess

src/wsdl/elements.ts:887–913  ·  view source on GitHub ↗
(definitions: DefinitionsElement, tag: string)

Source from the content-addressed store, hash-verified

885 }
886
887 public postProcess(definitions: DefinitionsElement, tag: string) {
888 const children = this.children;
889 for (let i = 0; i < children.length; i++) {
890 const child = children[i] as any;
891 if (child.name !== 'input' && child.name !== 'output') {
892 continue;
893 }
894 if (tag === 'binding') {
895 this[child.name] = child;
896 children.splice(i--, 1);
897 continue;
898 }
899 const messageName = splitQName(child.$message).name;
900 const message = definitions.messages[messageName];
901 if (message) {
902 message.postProcess(definitions);
903 if (message.element) {
904 definitions.messages[message.element.$name] = message;
905 this[child.name] = message.element;
906 } else {
907 this[child.name] = message;
908 }
909 children.splice(i--, 1);
910 }
911 }
912 this.deleteFixedAttrs();
913 }
914
915 public description(definitions: DefinitionsElement) {
916 const inputDesc = this.input ? this.input.description(definitions) : null;

Callers

nothing calls this directly

Calls 3

splitQNameFunction · 0.90
deleteFixedAttrsMethod · 0.80
postProcessMethod · 0.65

Tested by

no test coverage detected