header
header
Main Menu
Home
Eviware Store
Downloads
Products
News
Forum
Eviware Blog
Search
FAQs
Customer Area
Support
Documentation
Tutorials
CookBook
Downloads
Forum
Login Form
Welcome, Guest. Please login or register.
January 09, 2009, 07:45:02 am
Username: Password:
Login with username, password and session length

Forgot your password?
 
generate the MockResponse content from the schema through java program
Welcome, Guest. Please login or register.
January 09, 2009, 07:45:02 am
Home Help Search Login Register
News: The Forums are up! Welcome to eviware.

+  Eviware Forum
|-+  soapUI
| |-+  soapUI
| | |-+  generate the MockResponse content from the schema through java program
« previous next »
Pages: [1] Print
Author Topic: generate the MockResponse content from the schema through java program  (Read 373 times)
apoorva
Newbie
*
Posts: 16


« on: July 21, 2008, 07:21:58 pm »

Hi All,

I am writing script which will generate MockResponse for each MockOperation through java program. I successfully  genertated default MockResponse but  I want to generate the MockResponse content from the schema.. so it will contain optional element as well. I followed following steps to generate mockresponse.

) create a new WsdlProject
2) added  WSDL to the project with the WsdlImporter class
3) added a new WsdlMockService to the project with project.addNewMockService
4) add the desired mockOperation/mockResponses( Here I want MockResponse generated from schema)
5) save the project with project.save(..)

I will appreciate if any suggestion will be available.

Thanks,
Jim
Logged
apoorva
Newbie
*
Posts: 16


« Reply #1 on: July 21, 2008, 10:27:43 pm »

Hi All,

I found one of the approach and its working..

Just set the value of following property to true and its working..

SoapUI.getSettings().setBoolean(WsdlSettings.XML_GENERATION_ALWAYS_INCLUDE_OPTIONAL_ELEMENTS ,true);

Thanks,
Jim
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
header header
header
header