[ 
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 - [EMAIL PROTECTED]


> 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 - [EMAIL PROTECTED]

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to