Forum Discussion
apoorva
16 years agoOccasional Contributor
Hi Ole,
I am able to generate MockResponse from schema now.. Just need to set one property WsdlSettings.XML_GENERATION_ALWAYS_INCLUDE_OPTIONAL_ELEMENTS to true
SoapUI.getSettings().setBoolean(WsdlSettings.XML_GENERATION_ALWAYS_INCLUDE_OPTIONAL_ELEMENTS ,true);
But I have another concern,
When I am trying to save project.xml file using Save() method it gives me null pointer excption
The problem is
public boolean save() {
// this give me error because i m not saving project using soapui GUI
file = UISupport.getFileDialogs().saveAs(this, "Save project " + getName(), ".xml", "XML Files (*.xml)", new File( path ));
........
//and i cant even call saveIn to bypass save() because saveIn is private method
return saveIn(projectFile);
}
right now i just change the source code and make saveIn to public .. Is there any alternative way to save project?
Looking forward to here from you.
Thanks,
Jim
I am able to generate MockResponse from schema now.. Just need to set one property WsdlSettings.XML_GENERATION_ALWAYS_INCLUDE_OPTIONAL_ELEMENTS to true
SoapUI.getSettings().setBoolean(WsdlSettings.XML_GENERATION_ALWAYS_INCLUDE_OPTIONAL_ELEMENTS ,true);
But I have another concern,
When I am trying to save project.xml file using Save() method it gives me null pointer excption
The problem is
public boolean save() {
// this give me error because i m not saving project using soapui GUI
file = UISupport.getFileDialogs().saveAs(this, "Save project " + getName(), ".xml", "XML Files (*.xml)", new File( path ));
........
//and i cant even call saveIn to bypass save() because saveIn is private method
return saveIn(projectFile);
}
right now i just change the source code and make saveIn to public .. Is there any alternative way to save project?
Looking forward to here from you.
Thanks,
Jim
Related Content
- 8 years agominoseah629
- 9 years agoKnowledge
Recent Discussions
- 6 days agoemoya