[
https://issues.jboss.org/browse/TEIIDDES-1415?page=com.atlassian.jira.plu...
]
Ted Jones commented on TEIIDDES-1415:
-------------------------------------
For cases where there is a message level namespace and no element namespace, we need to
add an empty default namspace for the element. So the request transformation in this case
should look like this:
SELECT XMLELEMENT(NAME GetStateInfo, XMLNAMESPACES(DEFAULT
'http://www.teiid.org/stateService/''), XMLELEMENT(NAME stateCode,
XMLNAMESPACES(DEFAULT ''), stateServiceView.GetStateInfo_request.stateCode)) AS
xml_out;
Request Procedure Generated Namespace Is Incorrect For Element
--------------------------------------------------------------
Key: TEIIDDES-1415
URL:
https://issues.jboss.org/browse/TEIIDDES-1415
Project: Teiid Designer
Issue Type: Bug
Affects Versions: 7.7.1
Reporter: Dan Florian
Assignee: Ted Jones
Fix For: 8.0
Attachments: StateService.war
I ran the "WSDL to Source and View Model (SOAP)" importer using the US States
WSDL. The importer generated the source and view models. Running a preview data on the
GetStateInfo procedure fails.
The GetStateInfo_request generated code is this:
SELECT XMLELEMENT(NAME GetStateInfo, XMLNAMESPACES(DEFAULT
'http://www.teiid.org/stateService/'), XMLELEMENT(NAME stateCode,
stateServiceView.GetStateInfo_request.stateCode)) AS xml_out;
Changing to this corrected the problem:
SELECT XMLELEMENT(NAME GetStateInfo, XMLNAMESPACES(DEFAULT ''), XMLELEMENT(NAME
stateCode, stateServiceView.GetStateInfo_request.stateCode)) AS xml_out;
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira