You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Brecht Yperman (JIRA)" <ji...@apache.org> on 2006/11/14 17:00:37 UTC

[jira] Created: (AXIS2-1704) Schema imports without namespaces

Schema imports without namespaces
---------------------------------

                 Key: AXIS2-1704
                 URL: http://issues.apache.org/jira/browse/AXIS2-1704
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: wsdl
    Affects Versions: 1.1
         Environment: JRE 1.5
            Reporter: Brecht Yperman


Hi,

I'm trying to connect to a webservice, deployed on Axis2, that has a wsdl with several imported XMLschemas.

The result.xsd schema imports all elements from KlantDeleteID.xsd, which has no namespace.
<xs:import schemaLocation="KlantDeleteID.xsd" />

After deploying on Axis2, the generated XmlSchema (isbeurscentrumService?xsd=xsd*), states an empty string as the namespace.
<xs:import namespace="" schemaLocation="isbeurscentrumService?xsd=xsd*"
/>

I don't know if (no namespace) == (namespace with empty url), but according to this document: http://www.w3.org/TR/xml-names/ the empty string cannot be used as a namespace declaration (it's a very new document though).

The fact that this "empty" namespace is declared seems to cause problems for .NET-clients...

http://www.invenso.com/downloads/isbeurscentrumService.aar

-- 
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-1704) Schema imports without namespaces

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-1704?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe resolved AXIS2-1704.
--------------------------------------

    Resolution: Fixed

issue is fixed in the current SVN

> Schema imports without namespaces
> ---------------------------------
>
>                 Key: AXIS2-1704
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1704
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.1
>         Environment: JRE 1.5
>            Reporter: Brecht Yperman
>         Assigned To: Deepal Jayasinghe
>
> Hi,
> I'm trying to connect to a webservice, deployed on Axis2, that has a wsdl with several imported XMLschemas.
> The result.xsd schema imports all elements from KlantDeleteID.xsd, which has no namespace.
> <xs:import schemaLocation="KlantDeleteID.xsd" />
> After deploying on Axis2, the generated XmlSchema (isbeurscentrumService?xsd=xsd*), states an empty string as the namespace.
> <xs:import namespace="" schemaLocation="isbeurscentrumService?xsd=xsd*"
> />
> I don't know if (no namespace) == (namespace with empty url), but according to this document: http://www.w3.org/TR/xml-names/ the empty string cannot be used as a namespace declaration (it's a very new document though).
> The fact that this "empty" namespace is declared seems to cause problems for .NET-clients...
> http://www.invenso.com/downloads/isbeurscentrumService.aar

-- 
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-1704) Schema imports without namespaces

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-1704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12471237 ] 

Deepal Jayasinghe commented on AXIS2-1704:
------------------------------------------

Try now , I chcked and got the following wsdl. And that seems corrcet to me


<wsdl:definitions xmlns:tns="http://www.vanos.be/webservices/iseries/isbeurscentrum" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:import0="vanos:iseries:beurscentra" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://www.vanos.be/webservices/iseries/isbeurscentrum"><wsdl:documentation>isbeurscentrumService</wsdl:documentation><wsdl:types><xsd:schema attributeFormDefault="unqualified" elementFormDefault="unqualified">
<xsd:import namespace="vanos:iseries:beurscentra" schemaLocation="isbeurscentrumService?xsd=xsd0" />
</xsd:schema></wsdl:types><wsdl:message name="updateIn"><wsdl:part name="part1" element="import0:update" /></wsdl:message><wsdl:message name="updateOut"><wsdl:part name="part1" element="import0:updateResponse" /></wsdl:message><wsdl:message name="insertIn"><wsdl:part name="part1" element="import0:insert" /></wsdl:message><wsdl:message name="insertOut"><wsdl:part name="part1" element="import0:insertResponse" /></wsdl:message><wsdl:portType name="isbeurscentrumServicePortType"><wsdl:operation name="update"><wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:updateIn" wsaw:Action="http://www.vanos.be/webservices/iseries/isbeurscentrum:updateIn" /><wsdl:output xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:updateOut" wsaw:Action="http://www.vanos.be/webservices/iseries/isbeurscentrum/isbeurscentrumInterface/updateResponse" /></wsdl:operation><wsdl:operation name="insert"><wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:insertIn" wsaw:Action="http://www.vanos.be/webservices/iseries/isbeurscentrum:insertIn" /><wsdl:output xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:insertOut" wsaw:Action="http://www.vanos.be/webservices/iseries/isbeurscentrum/isbeurscentrumInterface/insertResponse" /></wsdl:operation></wsdl:portType><wsdl:binding name="isbeurscentrumServiceSOAP11Binding" type="tns:isbeurscentrumServicePortType"><soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="update"><soap:operation soapAction="http://www.vanos.be/webservices/iseries/isbeurscentrum:updateIn" style="document" /><wsdl:input><soap:body use="literal" /></wsdl:input><wsdl:output><soap:body use="literal" /></wsdl:output></wsdl:operation><wsdl:operation name="insert"><soap:operation soapAction="http://www.vanos.be/webservices/iseries/isbeurscentrum:insertIn" style="document" /><wsdl:input><soap:body use="literal" /></wsdl:input><wsdl:output><soap:body use="literal" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:binding name="isbeurscentrumServiceSOAP12Binding" type="tns:isbeurscentrumServicePortType"><soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="update"><soap12:operation soapAction="http://www.vanos.be/webservices/iseries/isbeurscentrum:updateIn" style="document" /><wsdl:input><soap12:body use="literal" /></wsdl:input><wsdl:output><soap12:body use="literal" /></wsdl:output></wsdl:operation><wsdl:operation name="insert"><soap12:operation soapAction="http://www.vanos.be/webservices/iseries/isbeurscentrum:insertIn" style="document" /><wsdl:input><soap12:body use="literal" /></wsdl:input><wsdl:output><soap12:body use="literal" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:binding name="isbeurscentrumServiceHttpBinding" type="tns:isbeurscentrumServicePortType"><http:binding verb="POST" /><wsdl:operation name="update"><http:operation location="update" /><wsdl:input><mime:content type="text/xml" /></wsdl:input><wsdl:output><mime:content type="text/xml" /></wsdl:output></wsdl:operation><wsdl:operation name="insert"><http:operation location="insert" /><wsdl:input><mime:content type="text/xml" /></wsdl:input><wsdl:output><mime:content type="text/xml" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:service name="isbeurscentrumService"><wsdl:port name="isbeurscentrumServiceSOAP11port_http" binding="tns:isbeurscentrumServiceSOAP11Binding"><soap:address location="http://localhost:8080/axis2/services/isbeurscentrumService" /></wsdl:port><wsdl:port name="isbeurscentrumServiceSOAP12port_http" binding="tns:isbeurscentrumServiceSOAP12Binding"><soap12:address location="http://localhost:8080/axis2/services/isbeurscentrumService" /></wsdl:port><wsdl:port name="isbeurscentrumServiceHttpport1" binding="tns:isbeurscentrumServiceHttpBinding"><http:address location="http://localhost:8080/axis2/rest/isbeurscentrumService" /></wsdl:port></wsdl:service></wsdl:definitions>

> Schema imports without namespaces
> ---------------------------------
>
>                 Key: AXIS2-1704
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1704
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.1
>         Environment: JRE 1.5
>            Reporter: Brecht Yperman
>         Assigned To: Deepal Jayasinghe
>
> Hi,
> I'm trying to connect to a webservice, deployed on Axis2, that has a wsdl with several imported XMLschemas.
> The result.xsd schema imports all elements from KlantDeleteID.xsd, which has no namespace.
> <xs:import schemaLocation="KlantDeleteID.xsd" />
> After deploying on Axis2, the generated XmlSchema (isbeurscentrumService?xsd=xsd*), states an empty string as the namespace.
> <xs:import namespace="" schemaLocation="isbeurscentrumService?xsd=xsd*"
> />
> I don't know if (no namespace) == (namespace with empty url), but according to this document: http://www.w3.org/TR/xml-names/ the empty string cannot be used as a namespace declaration (it's a very new document though).
> The fact that this "empty" namespace is declared seems to cause problems for .NET-clients...
> http://www.invenso.com/downloads/isbeurscentrumService.aar

-- 
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-1704) Schema imports without namespaces

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-1704?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas updated AXIS2-1704:
------------------------------------

    Assignee: Deepal Jayasinghe

> Schema imports without namespaces
> ---------------------------------
>
>                 Key: AXIS2-1704
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1704
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.1
>         Environment: JRE 1.5
>            Reporter: Brecht Yperman
>         Assigned To: Deepal Jayasinghe
>
> Hi,
> I'm trying to connect to a webservice, deployed on Axis2, that has a wsdl with several imported XMLschemas.
> The result.xsd schema imports all elements from KlantDeleteID.xsd, which has no namespace.
> <xs:import schemaLocation="KlantDeleteID.xsd" />
> After deploying on Axis2, the generated XmlSchema (isbeurscentrumService?xsd=xsd*), states an empty string as the namespace.
> <xs:import namespace="" schemaLocation="isbeurscentrumService?xsd=xsd*"
> />
> I don't know if (no namespace) == (namespace with empty url), but according to this document: http://www.w3.org/TR/xml-names/ the empty string cannot be used as a namespace declaration (it's a very new document though).
> The fact that this "empty" namespace is declared seems to cause problems for .NET-clients...
> http://www.invenso.com/downloads/isbeurscentrumService.aar

-- 
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-1704) Schema imports without namespaces

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1704?page=comments#action_12449929 ] 
            
Deepal Jayasinghe commented on AXIS2-1704:
------------------------------------------

There is definitely a bug in Axis2 code , but as I can see there are couple of xsd in the archive file without having a targetNamespace so that might be one of the reason to have import with empty string namespace


> Schema imports without namespaces
> ---------------------------------
>
>                 Key: AXIS2-1704
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1704
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.1
>         Environment: JRE 1.5
>            Reporter: Brecht Yperman
>
> Hi,
> I'm trying to connect to a webservice, deployed on Axis2, that has a wsdl with several imported XMLschemas.
> The result.xsd schema imports all elements from KlantDeleteID.xsd, which has no namespace.
> <xs:import schemaLocation="KlantDeleteID.xsd" />
> After deploying on Axis2, the generated XmlSchema (isbeurscentrumService?xsd=xsd*), states an empty string as the namespace.
> <xs:import namespace="" schemaLocation="isbeurscentrumService?xsd=xsd*"
> />
> I don't know if (no namespace) == (namespace with empty url), but according to this document: http://www.w3.org/TR/xml-names/ the empty string cannot be used as a namespace declaration (it's a very new document though).
> The fact that this "empty" namespace is declared seems to cause problems for .NET-clients...
> http://www.invenso.com/downloads/isbeurscentrumService.aar

-- 
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-1704) Schema imports without namespaces

Posted by "Brecht Yperman (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1704?page=comments#action_12449943 ] 
            
Brecht Yperman commented on AXIS2-1704:
---------------------------------------

Ok, but it is perfectly legal not to use a targetNamespace, and to import without a namespace. I am however unsure about the difference between "no namespace" and "a namespace, being the empty string"...

> Schema imports without namespaces
> ---------------------------------
>
>                 Key: AXIS2-1704
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1704
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.1
>         Environment: JRE 1.5
>            Reporter: Brecht Yperman
>
> Hi,
> I'm trying to connect to a webservice, deployed on Axis2, that has a wsdl with several imported XMLschemas.
> The result.xsd schema imports all elements from KlantDeleteID.xsd, which has no namespace.
> <xs:import schemaLocation="KlantDeleteID.xsd" />
> After deploying on Axis2, the generated XmlSchema (isbeurscentrumService?xsd=xsd*), states an empty string as the namespace.
> <xs:import namespace="" schemaLocation="isbeurscentrumService?xsd=xsd*"
> />
> I don't know if (no namespace) == (namespace with empty url), but according to this document: http://www.w3.org/TR/xml-names/ the empty string cannot be used as a namespace declaration (it's a very new document though).
> The fact that this "empty" namespace is declared seems to cause problems for .NET-clients...
> http://www.invenso.com/downloads/isbeurscentrumService.aar

-- 
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org