Js-code from lib/model.js gets included in SOAP-request causing SOAP-fault
Maintainer antworten meist innerhalb von 1 Tag
@rashmihunt arbeitet bereits daran.
Seit 05.7.2017.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
Steps to reproduce
- bug
I have auto discovered a SOAP 1.1 Webservice with lb soap and Loobback created models as expected. However when using the StrongLoop API explorer, the SOAP requests fail as they are not properly formatted.
Stack trace
"Error: faultcode: soap:Client faultstring: Unmarshalling Error: cvc-complex-type.2.4.a: Invalid content was found starting with element '__cachedRelations'. One of '{xxx, xxx}' is expected.
at XMLHandler.xmlToJson (testapp\node_modules\strong-soap\src\parser\xmlHandler.js:635:23)
at testapp\node_modules\strong-soap\src\client.js:279:28
at testapp\node_modules\loopback\node_modules\loopback-datasource-juggler\lib\observer.js:172:22
at doNotify (testapp\node_modules\loopback\node_modules\loopback-datasource-juggler\lib\observer.js:99:49)
at SOAPConnector.ObserverMixin._notifyBaseObservers (testapp\node_modules\loopback\node_modules\loopback-datasource-juggler\lib\observer.js:122:5)
at SOAPConnector.ObserverMixin.notifyObserversOf (testapp\node_modules\loopback\node_modules\loopback-datasource-juggler\lib\observer.js:97:8)
at cbForWork (testapp\node_modules\loopback\node_modules\loopback-datasource-juggler\lib\observer.js:162:14)
at Request._callback (testapp\node_modules\loopback-connector-soap\lib\http.js:98:9)
at Request.self.callback (testapp\node_modules\request\request.js:188:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request.<anonymous> (testapp\node_modules\request\request.js:1171:10)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at IncomingMessage.<anonymous> (testapp\node_modules\request\request.js:1091:12)\
at IncomingMessage.g (events.js:292:16)"
When enabling the debug on loopback:persisted-model I can see the SOAP xml is cluttered by code originating from strongloop/loopback-datasource-juggler as is mentioned in issue 77 from loopback-connecter-soap by @liudonghua123. Since the code is in this repo I thought it would be best to open an issue here.
Expected result
I would expect the SOAP request to be properly formatted. And a SOAP response without an error.
Additional information
win32 x64 6.11.0
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
- Vorherrschende Sprache
- JavaScript
- Sterne
- 279
- Forks
- 362
- Ø Merge
- 21 Std. 14 Min.
- Gemergte PRs (30 T.)
- 16
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus loopbackio/loopback-datasource-juggler
-
Breaking changes for `loopback-datasource-juggler@7` not listed anywhereEvtl. wieder frei @dhmlau hat das vor 158 Tagen übernommen, und es ist kein Pull Request offen. Offenbug
loopbackio/loopback-datasource-juggler#2548 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Replace deprecated util._extend with Object.assign to ensure compatibility with modern Node.jsOffen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 68/100
loopbackio/loopback-datasource-juggler#2530 ·
Maintainer antworten meist innerhalb von 1 Tag
-
allow empty array in createAllEvtl. vergeben @ajay-prajapati07 hat das vor 533 Tagen übernommen. Offenfeature
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
loopbackio/loopback-datasource-juggler#2409 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
loopbackio/loopback-datasource-juggler#2319 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 55/100
loopbackio/loopback-datasource-juggler#1968 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in loopbackio/loopback-datasource-juggler
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
ipfs/ipfs-webui#2507 ·
-
Environments table lists page size 5 after 30Evtl. vergeben @raus7n hat das heute übernommen. Offen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
litmuschaos/litmus#5743 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 63/100
anothaDev/luci-theme-vantage#143 ·
Maintainer antworten meist innerhalb von 1 Tag
-
desktop grp:admin-donors type:graphics-bug ui-admin
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
kingcharleslzy-ai/dsh-purge#282 ·
Maintainer antworten meist innerhalb von 1 Tag