soap-mock | Example on how to mock a SOAP API in Node.js | SOAP library
kandi X-RAY | soap-mock Summary
kandi X-RAY | soap-mock Summary
Example repository on how to mock calls to a soap client in Node.js using nock and soap packages.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of soap-mock
soap-mock Key Features
soap-mock Examples and Code Snippets
Community Discussions
Trending Discussions on soap-mock
QUESTION
I have multiple WSDLs that describe different parts of the same service. To create a Mock for the service, I imported these into SoapUI, created a Mock Service for each, with the same port and path, and started them up.
The documentation suggests this should work, but I get
Missing operation for soapAction [http://www.example.com/my/action] and body element [null] with SOAP Version [SOAP 1.1]
when I try to use them - one of the started mocks always works, but the others don't.
Do I need specific settings for this to work? Can I somehow circumvent the problem?
Related: soapUI combine more mock services.
While their question is about exporting a war
running multiple mocks, I try to run the mock services from SoapUI directly
ANSWER
Answered 2021-Mar-17 at 10:32I found it possible to avoid this problem by combining the multiple mocks into one. This can be done as follows:
- Import all WSDLs into the same project. You can right-click a project, and choose "Add WSDL"
- Generate a Mock service from one of the WSDLs.
- For each request of the other WSDLs that you need to mock, right click the created Mock Service and create a "New Mock Operation".
This is tedious, especially when you have many requests, however, this is the only way I could get this to work.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install soap-mock
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page