Forum Discussion

rakeshium's avatar
rakeshium
New Member
7 years ago

How to select specific methods of wsdl to be part of soap ui project?

1 Reply

  • JHunt's avatar
    JHunt
    Community Hero

    You have to import all of the Operations when you add a WSDL to your project, but that doesn't mean you have to create TestRequests or MockOperations for all of them. Can you give some more detail about why you don't want to import all of the operations?

     

    One solution might be to make a copy of the WSDL and just edit it to remove the parts you don't need, then add the copy to your project. WSDL is only a type of XML.

     

    Another way would be to remove one or more Operations via a script:

     

    Create a new Test Suite. Then edit its Setup Script.

    testSuite.project.interfaces["some interface name"].deleteOperation("some operation") 

    Press the play button nearest to the script to run it. You can delete the Test Suite when done.