Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 172616

Summary: Code Generation failed for MRT when it uses custom capability which is created by importing existing WSDL file
Product: z_Archived Reporter: Bhanu Prathap V <bhanu.prathap>
Component: TPTP.monitoringAssignee: Andrew Eberbach <aeberbac>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P1 CC: aeberbac, bhanu.prathap, sadravid
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Bhanu Prathap V CLA 2007-02-02 00:24:49 EST
Build ID: TPTP-4.4.0-200701310100

Steps To Reproduce:
1. Created new project called PROJECT1
2. Created new default Capability in PROJECT1
3. Added new default Operation in the Capability
4. I renamed the new_file.mcap to new_file.wsdl
5. Again created one more new project PROJECT2
6. Created new capability by importing new_file.wsdl file
7. Created new MRT and added the capability which created by importing new_file.wsdl file
8. Code generation fails for the MRT. Check below error log

Build: TPTP-4.4.0-200701310100

java.lang.reflect.InvocationTargetException
	at org.eclipse.tptp.wsdm.tooling.wizard.mrt.internal.NewProjectWizard.performFinish(NewProjectWizard.java:122)
	at org.eclipse.tptp.wsdm.tooling.wizard.mrt.internal.NewProjectWizard.access$0(NewProjectWizard.java:92)
	at org.eclipse.tptp.wsdm.tooling.wizard.mrt.internal.NewProjectWizard$1.run(NewProjectWizard.java:143)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Caused by: java.lang.Exception: Code generation failed, see Error Log
	... 4 more
Caused by: java.lang.RuntimeException: [ID = 'NotDocLiteral'] The WSDL operation 'operation1' is not doc-literal because it defines a message with more than one message part for its SOAP Body. The SOAP Body of a doc-literal message should contain one root request element (with the operation name) with zero or more child elements (the parameters).
	at org.apache.muse.tools.inspector.ResourceInspector.getInputName(ResourceInspector.java:482)
	at org.apache.muse.tools.inspector.ResourceInspector.createJavaMethod(ResourceInspector.java:326)
	at org.apache.muse.tools.inspector.ResourceInspector.getOperations(ResourceInspector.java:532)
	at org.apache.muse.tools.inspector.ResourceInspector.run(ResourceInspector.java:849)
	at org.apache.muse.tools.generator.analyzer.SimpleAnalyzer.inspect(SimpleAnalyzer.java:367)
	at org.apache.muse.tools.generator.analyzer.SimpleAnalyzer.analyze(SimpleAnalyzer.java:313)
	at org.eclipse.tptp.wsdm.tooling.wizard.mrt.internal.NewProjectWizard.runProjectizer(NewProjectWizard.java:192)
	at org.eclipse.tptp.wsdm.tooling.wizard.mrt.internal.NewProjectWizard.performFinish(NewProjectWizard.java:119)
	... 3 more
Comment 1 Balan Subramanian CLA 2007-02-07 21:06:45 EST
This needs to be caught by validation when importing the WSDL
Comment 2 Bhanu Prathap V CLA 2007-03-14 02:53:49 EDT
Verified - fixed
Build: tptpaide-2007-03-09-05-00-00
Comment 3 Balan Subramanian CLA 2007-03-29 08:25:25 EDT
fixed and verified
Comment 4 Balan Subramanian CLA 2007-03-29 08:25:35 EDT
fixed and verified