[
https://issues.jboss.org/browse/TEIIDDES-1992?page=com.atlassian.jira.plu...
]
Ted Jones resolved TEIIDDES-1992.
---------------------------------
Resolution: Done
While some of the code was missing from the original PR in master (perhaps due to the
merging of client code to handle multiple Teiid versions), there were still additional
changes that needed to be made for handling ns with child elements in the request. Also,
while adding a DEFAULT ns might "fix" the issue, this is dangerous in cases
where there are other namespaces used in the schema. The country info schema has a target
namespace, but only one ns in total, so DEFAULT worked. The change made for this fix was
to use the ns for the element (which is the tns in this case).
Country info WSDL used for dev and test:
http://webservices.oorsprong.org/websamples.countryinfo/CountryInfoServic...
Designer generates wrong view model transformations for some
services
---------------------------------------------------------------------
Key: TEIIDDES-1992
URL:
https://issues.jboss.org/browse/TEIIDDES-1992
Project: Teiid Designer
Issue Type: Bug
Components: Web Services Support
Affects Versions: 8.3
Reporter: Van Halbert
Assignee: Ted Jones
Priority: Critical
Fix For: 8.5, 8.4, 8.3.1
When generating web service view from WSDL, the designer incorrectly adds the namespace
to the request. The request [1] declares the "tns" prefix but since the
namespace is not added to the actual request it generates [2].
User can workaround this by directly modifying the request [3].
[1]
CREATE VIRTUAL PROCEDURE
BEGIN
SELECT XMLELEMENT(NAME getPeopleByName,
XMLNAMESPACES('http://www.jboss.org/jbossas/dv/PeopleJaxws' AS tns)) AS xml_out;
END
[2] Caused by: javax.xml.ws.ProtocolException: Remote
javax.xml.ws.soap.SOAPFaultException: Unexpected wrapper element getPeopleByName found.
Expected {http://www.jboss.org/jbossas/dv/PeopleJaxws}getPeopleByName.
[3]
CREATE VIRTUAL PROCEDURE
BEGIN
SELECT XMLELEMENT(NAME getPeopleByName, XMLNAMESPACES(DEFAULT
'http://www.jboss.org/jbossas/dv/PeopleJaxws')) AS xml_out;
END
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira