Raymond,

I am using node-soap package for my calls to the real SOAP server.
How can I use this package to mock a server, I do not understand.



On Wednesday, May 7, 2014 10:50:43 AM UTC-7, Raymond Feng wrote:
>
> https://github.com/vpulim/node-soap has the server support to mock a 
> service in node.
>
> On Wednesday, May 7, 2014 10:08:22 AM UTC-7, Reza Razavipour wrote:
>>
>> Right now my soap calls are so deeply nested into my REST routes, I think 
>> I have to start pulling those out, and make them more accessible directly. 
>> Only then I can mock the specific calls.
>> I was really hoping for a SOAP mock server that I can add the call 
>> supports to them but like you said I can simulate that will timeouts and 
>> something that returns some fake data.
>>
>> It is not trivial and it is tedious...
>>
>>
>>
>> On Wednesday, May 7, 2014 9:43:19 AM UTC-7, Paul Ciorogar wrote:
>>>
>>> I would make a mock object that pretends to have the functions and 
>>> callbacks of the SOAP server so that I can control what data I can get from 
>>> it.
>>> And if you have to wait for multiple asynchronous calls to finish so 
>>> that you can reach a conclusion or build a page I would simulate that with 
>>> a setTimeout on each callback.
>>> What did you have in mind?
>>>
>>> On Wednesday, May 7, 2014 4:11:03 AM UTC+4, Reza Razavipour wrote:
>>>>
>>>> I am writing a web server in node and express and most of the routes 
>>>> make SOAP calls.
>>>> I want to write test cases for my routes. I have enough for my non SOAP 
>>>> call features.
>>>>
>>>> So I need to have a mock SOAP server? How would that look? 
>>>>
>>>> What are the suggestions for this problem?
>>>>
>>>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/47b9905f-18cc-4e1d-82c6-7f87fb89cb23%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to