cancel
Showing results for 
Search instead for 
Did you mean: 

How to mock an asmx service

Highlighted
Occasional Contributor

How to mock an asmx service

I have an asmx service and want to mock that.

I tried that url by adding wsdl at the end but still its not getting mocked in ReadyAPI.

For Example I have a URL like http://www.sample.com/Test.asmx

and If I add WSDL at the end like http://www.sample.com/Test.asmx?wsdl .

The mock should be done but thats not working.

Can Anyone suggest on this???

@Rama16 

 

3 REPLIES 3
Highlighted
Community Hero

Re: How to mock an asmx service

Hi,

 

Considering that you are mentioning wsdl file, you need to virtualize SOAP web service.

Have you read the https://support.smartbear.com/readyapi/docs/servicev/virts/soap.html help article?

Does it help?

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
Highlighted
Occasional Contributor

Re: How to mock an asmx service

I tried to do it as mentioned in the article and its asking for authentication.

I entered the NTLM Credentials but its not going further.


image.png

After Entering my credentials its repeatedly asking for credentials.

My co-employee(Who has access and permissions to all the services and roles) tried with his credential too but still it shows the same error.

Its not going further from the above step.

 

@AlexKaras 

@Rama16 

Highlighted
Community Hero

Re: How to mock an asmx service

Hi,

 

You need to consult with the developer of this web service what authentication is required for it.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
New Here?
Join us and watch the welcome video:
Announcements
Script Wanted
Let's start July with new challenges!

Create a script to change request body before sending it to the server for the TechCorner tag!


Scripts created in June:
- A script to generate a request body based on data from Datasource
- A script to go through all response nodes and check the value of the required field
- A Dispatching script to get responses based on the values in Request Body
- A script to add a new tag and assign it to all TestCases in a TestSuite