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]
 

-----Original Message-----
From: Brady Johnson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 26, 2007 2:01 PM
To: [email protected]
Subject: [SCA Native] WSDL Message Types stored incorrectly in the SDO
DataFactory

I created a JIRA for this and am currently working on localizing where
the problem is.
 
https://issues.apache.org/jira/browse/TUSCANY-1813
 
Basically, it appears that the types are being stored in the SDO
DataFactory as follows (copied from Utils::printTypes() ):
URI= http://www.bigbank.com/AccountService
<http://www.bigbank.com/AccountService>
Type=http://www.bigbank.com/AccountService#getAccountReport
<http://www.bigbank.com/AccountService#getAccountReport> 
 
Its not necessary to store the namespace for the type name.
 
--------------------
Brady Johnson
Lead Software Developer - HydraSCA
Rogue Wave Software - [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to