Ask a Question

Soap UI java API to load wadl from a file ??

Yodlee_Infotech
Not applicable

Soap UI java API to load wadl from a file ??

Hi,

I am trying to build a java tool for rest services testing which internally uses SoapUI Java API.

The testcases are authored through SoapUI and then the testcase and WADL are exported into corresponding files.
The tool creates a SoapUI project dynamically using soapUI api and loads the WADL and testcase and then executes the same.

I am unable to figure the API that i need to use for importing the WADL from a file.


-regards
Pushpendra
4 REPLIES 4

Re: Soap UI java API to load wadl from a file ??

Hi,

Take a look at the WadlImporter class (http://www.soapui.org/apidocs/com/eviwa ... orter.html).

Basic usage would be something like this:


WsdlProject project = new WsdlProject();

RestService service = ( RestService )project.addNewInterface( "REST Service", RestServiceFactory.REST_TYPE );

WadlImporter importer = new WadlImporter( service );
importer.initFromWadl( "URL to your WADL" );


I hope that helps,
Anders
SmartBear Sweden

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
sat1989
New Contributor

Re: Soap UI java API to load wadl from a file ??

 
sat1989
New Contributor

Re: Soap UI java API to load wadl from a file ??

can you please provide more details , how i can call rest services from java api.

JKambli
Staff

Re: Soap UI java API to load wadl from a file ??

This can be done from the Product Ready API UI, 

https://www.soapui.org/rest-testing/getting-started.html

 

Is there a reason to do with JAVA API? This forum is mainly for Ready API product users.

 

 

 


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: