You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Caroline Maynard (JIRA)" <tu...@ws.apache.org> on 2007/04/26 03:23:15 UTC
[jira] Closed: (TUSCANY-962) Incorrect namespace for open content
[ https://issues.apache.org/jira/browse/TUSCANY-962?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Caroline Maynard closed TUSCANY-962.
------------------------------------
> Incorrect namespace for open content
> ------------------------------------
>
> Key: TUSCANY-962
> URL: https://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.
-
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