Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Testing of the web services

Posted on 2017-03-08
1
Medium Priority
?
135 Views
Last Modified: 2017-03-12
I have  a method which insert record into the database using entity framework.
 We are build a Soap based web services. I would like to know how we are going to test
this web service as  project object  as a parameter. Any tool or any way to do that.


public IHttpActionResult PostProject(ProjectDTO project)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            Project entity = new Project()
            {
                ProjectNumber = project.ProjectNumber,
                ProjectDescription = project.ProjectDescription,
                CreateDate = DateTime.Now,
                CreateUser = project.CreateUser,
                Latitude = project.Latitude,
                Longitude = project.Longitude,
                ProjectStatus = project.ProjectStatus,
                HoursPerShift = project.HoursPerShift,
                TimeZone = project.TimeZone,
                StandByWBSElementNumber = project.StandByWBSElementNumber,
            };

            db.Projects.Add(entity);

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateException)
            {
                if (ProjectExists(project.ProjectNumber))
                {
                    return Conflict();
                }
                else
                {
                    throw;
                }
            }

Open in new window

0
Comment
Question by:roy_sanu
1 Comment
 
LVL 20

Accepted Solution

by:
Rikin Shah earned 2000 total points
ID: 42039009
Hi,

Try SoapUI.

It gives you the option to call your method from the custom UI and gives you the result.
0

Featured Post

[Webinar] Cloud Security

In this webinar you will learn:

-Why existing firewall and DMZ architectures are not suited for securing cloud applications
-How to make your enterprise “Cloud Ready”, and fix your aging DMZ architecture
-How to transform your enterprise and become a Cloud Enabler

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For some reason Google Apps has decided to reserve 'www' for your new domain which results in an error when trying to map the web address 'www' to a certain site in your Google Sites. The error is 'this address is already being used' and after some …
The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question