You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Pete Robbins (JIRA)" <tu...@ws.apache.org> on 2006/12/01 21:15:24 UTC
[jira] Resolved: (TUSCANY-962) Incorrect namespace for open content
[ http://issues.apache.org/jira/browse/TUSCANY-962?page=all ]
Pete Robbins resolved TUSCANY-962.
----------------------------------
Fix Version/s: Cpp-current
Resolution: Fixed
> Incorrect namespace for open content
> ------------------------------------
>
> Key: TUSCANY-962
> URL: http://issues.apache.org/jira/browse/TUSCANY-962
> Project: Tuscany
> Issue Type: Bug
> Components: C++ SDO
> Affects Versions: Cpp-current
> Reporter: Caroline Maynard
> Priority: Blocker
> Fix For: Cpp-current
>
>
> I use XSDHelper::defineFile() to load the two schemas at http://schemas.xmlsoap.org/wsdl/ and http://schemas.xmlsoap.org/wsdl/soap/.
> I then build up an XML Document using that factory. I create an empty document and get the root data object. Then
> - create a <service> child object (type http://schemas.xmlsoap.org/wsdl/#tService) on the root
> - create a <port> child object (type http://schemas.xmlsoap.org/wsdl/#tPort) on the service
> - create an <address> child object (type http://schemas.xmlsoap.org/wsdl/soap/#tAddress) on the port, as an open type
> At this point I can introspect my port object, and I see:
> object(SDO_Model_ReflectionDataObject)#9 {
> - Instance of {port}
> - Type <open> <dataObject> http://schemas.xmlsoap.org/wsdl/:tPort
> - Instance Properties[4] {
> http://schemas.xmlsoap.org/wsdl/:tDocumentation $documentation {
> }
> commonj.sdo:String $name;
> commonj.sdo:URI $binding;
> http://schemas.xmlsoap.org/wsdl/soap/:tAddress $address {
> commonj.sdo:Boolean $required;
> commonj.sdo:URI $location;
> }
> }
> }
> This looks correct to me.
> Now we get to the problem. I save the XML document to a string. and it comes out like this:
> <?xml version="1.0" encoding="UTF-8"?>
> <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns2="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <service>
> <port>
> <address xsi:type="tns2:tAddress" location="http://example.com"/>
> </port>
> </service>
> </definitions>
> You'll notice that address has no namespace, and so is in the wsdl namespace by default, not the soap namespace where it belongs.
> This is using revision 478193.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org