Testing WSDL in Visual Studio

We received WSDL from our client, which we use to communicate with our service. I made a link to the service in our project and developed code for interacting with it. I used SoapUI to configure the mock service from my wsdl and successfully tested my code.

My question is: is there a way to test WSDL only in visual studio? I am new to SoapUI and some of my problems are as follows:

  • There is no confirmation of the input - I don’t think it really cares what I pass on to him. I would like to build a more reliable test that will confirm that I am sending and sending ...
  • Dynamic response messages. As far as I understand, you can define a set of response messages in SoapUI, and one will be chosen randomly. I really need to be able to parse the input and send a response specific to some of this data. It should not have been fully developed, but it would be a big step in actually emulating the customer service.

Is there a better way I should do this testing? Is there a Visual Studio tool that I don't know about? Should I try to create my own testing service, which serves the same endpoints as the client service, and implements special code for testing? Should I better study SoapUI and maybe solve some of my problems?

Please let me know, my colleague suggests microsoft has a better way to test this scenario. Thank!

+3
source share
1 answer

We are creating a fake wsdl-based web service to test this type of scenario.

For one way to do this, see: how to create a web service from wsdl

(The answer from marc_s is the one that works)

+3
source

All Articles