You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Brady Johnson (JIRA)" <tu...@ws.apache.org> on 2007/09/27 00:38:51 UTC
[jira] Commented: (TUSCANY-1813) WSDL Message Types stored in SDO
DataFactory incorrectly
[ https://issues.apache.org/jira/browse/TUSCANY-1813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12530578 ]
Brady Johnson commented on TUSCANY-1813:
----------------------------------------
I figured out the problem. It's a matter of how DataFactory::create() is called, since the type in question is an anonymous type.
Calling like this does not work:
DataFactory::create( "http://www.bigbank.com/AccountService", "getAccountReport" )
But this does:
DataFactory::create( "http://www.bigbank.com/AccountService", "http://www.bigbank.com/AccountService#getAccountReport" )
The best way to get the DataObject is like this:
const Property &prop =
XSDHelperPtr->getGlobalProperty( "http://www.bigbank.com/AccountService", "getAccountReport", true );
DataObjectPtr sdoObj = dataFactory->create( prop.getType() );
I'll close the JIRA.
--------------------
Brady Johnson
Lead Software Developer - HydraSCA
Rogue Wave Software - brady.johnson@roguewave.com
> WSDL Message Types stored in SDO DataFactory incorrectly
> --------------------------------------------------------
>
> Key: TUSCANY-1813
> URL: https://issues.apache.org/jira/browse/TUSCANY-1813
> Project: Tuscany
> Issue Type: Bug
> Components: C++ SCA
> Affects Versions: Cpp-M3
> Environment: All platforms
> Reporter: Brady Johnson
> Fix For: Cpp-Next
>
>
> Once all of the WSLDs, Composites, etc have been parsed for a particular service, the WSDL types are incorrectly stored
> in the SDO DataFactory. I found this by loading the CppBigBank service in a container and trying to use/create data types
> that should have been loaded when the wsdls were parsed, but the types were not found. I then called Utils::printTypes()
> to see what exactly was in the SDO DataFactory and saw the following excerpt:
> ...
> Type: http://www.bigbank.com/AccountService#http://www.bigbank.com/AccountService#getAccountReport
> Property: customerID type: commonj.sdo#String
> Type: http://www.bigbank.com/AccountService#http://www.bigbank.com/AccountService#getAccountReportResponse
> Property: result type: http://www.bigbank.com/AccountService#AccountReport
> ...
> It appears as though the type is being stored as follows:
> URI = http://www.bigbank.com/AccountService
> Type=http://www.bigbank.com/AccountService#getAccountReport
> Its not necessary to store the namespace in the type name.
> I'm working on localizing the problem now.
> --------------------
> Brady Johnson
> Lead Software Developer - HydraSCA
> Rogue Wave Software - brady.johnson@roguewave.com
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org