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 "Christoph Ludwig (JIRA)" <ax...@ws.apache.org> on 2007/07/22 21:46:06 UTC

[jira] Created: (AXIS-2682) wsdl2Java generates invalid empty striung namespaces

wsdl2Java generates invalid empty striung namespaces
----------------------------------------------------

                 Key: AXIS-2682
                 URL: https://issues.apache.org/jira/browse/AXIS-2682
             Project: Axis
          Issue Type: Bug
          Components: WSDL processing
    Affects Versions: 1.4
         Environment: Eclipse 3.2 on Mac OS 10.4.10 (Intel)
            Reporter: Christoph Ludwig


I generated with WSDL2Java a service skeleton and client stubs for the attached WSDL which I used for interoperability tests. When I investigated errors, I found the following in the generated SOAP request:

  <?xml version="1.0" encoding="UTF-8"?>
     <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <soapenv:Body>
           <AcceptBase64 xmlns="http://www.textgrid.de/tests/bytearray/">
              <data xmlns="">SGVsbG8gV29ybGQh</data>
              <length xmlns="">12</length>
           </AcceptBase64>
        </soapenv:Body>
     </soapenv:Envelope>

Note the empty namespaces in the data and length elements. The W3C recommendation "Namespaces in XML 1.0" states explicitly: "The empty string, though it is a legal URI reference, cannot be used as a namespace name" (http://www.w3.org/TR/xml-names/#iri-use). 


-- 
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: (AXIS-2682) wsdl2Java generates invalid empty string namespaces

Posted by "Christoph Ludwig (JIRA)" <ax...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS-2682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christoph Ludwig updated AXIS-2682:
-----------------------------------

    Summary: wsdl2Java generates invalid empty string namespaces  (was: wsdl2Java generates invalid empty striung namespaces)

> wsdl2Java generates invalid empty string namespaces
> ---------------------------------------------------
>
>                 Key: AXIS-2682
>                 URL: https://issues.apache.org/jira/browse/AXIS-2682
>             Project: Axis
>          Issue Type: Bug
>          Components: WSDL processing
>    Affects Versions: 1.4
>         Environment: Eclipse 3.2 on Mac OS 10.4.10 (Intel)
>            Reporter: Christoph Ludwig
>         Attachments: bytearray.wsdl
>
>
> I generated with WSDL2Java a service skeleton and client stubs for the attached WSDL which I used for interoperability tests. When I investigated errors, I found the following in the generated SOAP request:
>   <?xml version="1.0" encoding="UTF-8"?>
>      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>         <soapenv:Body>
>            <AcceptBase64 xmlns="http://www.textgrid.de/tests/bytearray/">
>               <data xmlns="">SGVsbG8gV29ybGQh</data>
>               <length xmlns="">12</length>
>            </AcceptBase64>
>         </soapenv:Body>
>      </soapenv:Envelope>
> Note the empty namespaces in the data and length elements. The W3C recommendation "Namespaces in XML 1.0" states explicitly: "The empty string, though it is a legal URI reference, cannot be used as a namespace name" (http://www.w3.org/TR/xml-names/#iri-use). 

-- 
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: (AXIS-2682) wsdl2Java generates invalid empty string namespaces

Posted by "Christoph Ludwig (JIRA)" <ax...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS-2682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12515612 ] 

Christoph Ludwig commented on AXIS-2682:
----------------------------------------

I realized after submitting the issue report that the attribute xmlns="" is used to bring the elements back into the global namespace in case an outer element changed the default namespace and can be certainly valid. Thus, the first part of my report was in fact misleading, sorry.

The real problem is, though, that in my example both the data and the length element do not belong to the global  namespace but to "http://www.textgrid.de/tests/bytearray/". (By accident, I submitted the report before I was finished, therefore this is mentioned in the first comment only.)

So the subject of this issue should rather read "WSDL2Java spuriously puts complex type members in the global namespace". And that *is* a bug, I think... 

> wsdl2Java generates invalid empty string namespaces
> ---------------------------------------------------
>
>                 Key: AXIS-2682
>                 URL: https://issues.apache.org/jira/browse/AXIS-2682
>             Project: Axis
>          Issue Type: Bug
>          Components: WSDL processing
>    Affects Versions: 1.4
>         Environment: Eclipse 3.2 on Mac OS 10.4.10 (Intel)
>            Reporter: Christoph Ludwig
>         Attachments: bytearray.wsdl
>
>
> I generated with WSDL2Java a service skeleton and client stubs for the attached WSDL which I used for interoperability tests. When I investigated errors, I found the following in the generated SOAP request:
>   <?xml version="1.0" encoding="UTF-8"?>
>      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>         <soapenv:Body>
>            <AcceptBase64 xmlns="http://www.textgrid.de/tests/bytearray/">
>               <data xmlns="">SGVsbG8gV29ybGQh</data>
>               <length xmlns="">12</length>
>            </AcceptBase64>
>         </soapenv:Body>
>      </soapenv:Envelope>
> Note the empty namespaces in the data and length elements. The W3C recommendation "Namespaces in XML 1.0" states explicitly: "The empty string, though it is a legal URI reference, cannot be used as a namespace name" (http://www.w3.org/TR/xml-names/#iri-use). 

-- 
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] Closed: (AXIS-2682) wsdl2Java generates invalid empty string namespaces

Posted by "Christoph Ludwig (JIRA)" <ax...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS-2682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christoph Ludwig closed AXIS-2682.
----------------------------------

    Resolution: Invalid

The mistake was on my side, I think.

> wsdl2Java generates invalid empty string namespaces
> ---------------------------------------------------
>
>                 Key: AXIS-2682
>                 URL: https://issues.apache.org/jira/browse/AXIS-2682
>             Project: Axis
>          Issue Type: Bug
>          Components: WSDL processing
>    Affects Versions: 1.4
>         Environment: Eclipse 3.2 on Mac OS 10.4.10 (Intel)
>            Reporter: Christoph Ludwig
>         Attachments: bytearray.wsdl
>
>
> I generated with WSDL2Java a service skeleton and client stubs for the attached WSDL which I used for interoperability tests. When I investigated errors, I found the following in the generated SOAP request:
>   <?xml version="1.0" encoding="UTF-8"?>
>      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>         <soapenv:Body>
>            <AcceptBase64 xmlns="http://www.textgrid.de/tests/bytearray/">
>               <data xmlns="">SGVsbG8gV29ybGQh</data>
>               <length xmlns="">12</length>
>            </AcceptBase64>
>         </soapenv:Body>
>      </soapenv:Envelope>
> Note the empty namespaces in the data and length elements. The W3C recommendation "Namespaces in XML 1.0" states explicitly: "The empty string, though it is a legal URI reference, cannot be used as a namespace name" (http://www.w3.org/TR/xml-names/#iri-use). 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AXIS-2682) wsdl2Java generates invalid empty string namespaces

Posted by "Tom Jordahl (JIRA)" <ax...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS-2682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12515379 ] 

Tom Jordahl commented on AXIS-2682:
-----------------------------------

The construct
  <data xmlns="">foo</data>
Is to make the <data> element unqualified.  Since the element above (<AcceptBase64>) defined a default namespace, in order to remove the data element from that default namespace, Axis emits the xmlns="".  This is perfectly legal.

See http://www.w3.org/TR/xml-names/#defaulting - Section 6.2 Namespace defaulting.

I don't think there is a bug here...


> wsdl2Java generates invalid empty string namespaces
> ---------------------------------------------------
>
>                 Key: AXIS-2682
>                 URL: https://issues.apache.org/jira/browse/AXIS-2682
>             Project: Axis
>          Issue Type: Bug
>          Components: WSDL processing
>    Affects Versions: 1.4
>         Environment: Eclipse 3.2 on Mac OS 10.4.10 (Intel)
>            Reporter: Christoph Ludwig
>         Attachments: bytearray.wsdl
>
>
> I generated with WSDL2Java a service skeleton and client stubs for the attached WSDL which I used for interoperability tests. When I investigated errors, I found the following in the generated SOAP request:
>   <?xml version="1.0" encoding="UTF-8"?>
>      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>         <soapenv:Body>
>            <AcceptBase64 xmlns="http://www.textgrid.de/tests/bytearray/">
>               <data xmlns="">SGVsbG8gV29ybGQh</data>
>               <length xmlns="">12</length>
>            </AcceptBase64>
>         </soapenv:Body>
>      </soapenv:Envelope>
> Note the empty namespaces in the data and length elements. The W3C recommendation "Namespaces in XML 1.0" states explicitly: "The empty string, though it is a legal URI reference, cannot be used as a namespace name" (http://www.w3.org/TR/xml-names/#iri-use). 

-- 
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: (AXIS-2682) wsdl2Java generates invalid empty striung namespaces

Posted by "Christoph Ludwig (JIRA)" <ax...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS-2682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12514500 ] 

Christoph Ludwig commented on AXIS-2682:
----------------------------------------

Sorry, I accidentally submitted the issue before I was finished...

Even if the empty string vas a valid namespace name, the generated SOAP does not correspond to the WSDL that puts both data and length in "http://www.textgrid.de/tests/bytearray/".

This issue seems related to issue AXIS-443. There James Snell claims this happens only if the WSDL does not define a targetNamespace for the xsd:schema tag. However, my WSDL file *does* define the targetNamespace attribute for both the schema and the WSDL, so this is not the cause in my case.

I can fix this manually in the generated stub and skeleton, of course, but I think WSDL2Java should generate the correct QNames in the first place.

Regards

Christoph

> wsdl2Java generates invalid empty striung namespaces
> ----------------------------------------------------
>
>                 Key: AXIS-2682
>                 URL: https://issues.apache.org/jira/browse/AXIS-2682
>             Project: Axis
>          Issue Type: Bug
>          Components: WSDL processing
>    Affects Versions: 1.4
>         Environment: Eclipse 3.2 on Mac OS 10.4.10 (Intel)
>            Reporter: Christoph Ludwig
>
> I generated with WSDL2Java a service skeleton and client stubs for the attached WSDL which I used for interoperability tests. When I investigated errors, I found the following in the generated SOAP request:
>   <?xml version="1.0" encoding="UTF-8"?>
>      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>         <soapenv:Body>
>            <AcceptBase64 xmlns="http://www.textgrid.de/tests/bytearray/">
>               <data xmlns="">SGVsbG8gV29ybGQh</data>
>               <length xmlns="">12</length>
>            </AcceptBase64>
>         </soapenv:Body>
>      </soapenv:Envelope>
> Note the empty namespaces in the data and length elements. The W3C recommendation "Namespaces in XML 1.0" states explicitly: "The empty string, though it is a legal URI reference, cannot be used as a namespace name" (http://www.w3.org/TR/xml-names/#iri-use). 

-- 
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: (AXIS-2682) wsdl2Java generates invalid empty striung namespaces

Posted by "Christoph Ludwig (JIRA)" <ax...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS-2682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christoph Ludwig updated AXIS-2682:
-----------------------------------

    Attachment: bytearray.wsdl

> wsdl2Java generates invalid empty striung namespaces
> ----------------------------------------------------
>
>                 Key: AXIS-2682
>                 URL: https://issues.apache.org/jira/browse/AXIS-2682
>             Project: Axis
>          Issue Type: Bug
>          Components: WSDL processing
>    Affects Versions: 1.4
>         Environment: Eclipse 3.2 on Mac OS 10.4.10 (Intel)
>            Reporter: Christoph Ludwig
>         Attachments: bytearray.wsdl
>
>
> I generated with WSDL2Java a service skeleton and client stubs for the attached WSDL which I used for interoperability tests. When I investigated errors, I found the following in the generated SOAP request:
>   <?xml version="1.0" encoding="UTF-8"?>
>      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>         <soapenv:Body>
>            <AcceptBase64 xmlns="http://www.textgrid.de/tests/bytearray/">
>               <data xmlns="">SGVsbG8gV29ybGQh</data>
>               <length xmlns="">12</length>
>            </AcceptBase64>
>         </soapenv:Body>
>      </soapenv:Envelope>
> Note the empty namespaces in the data and length elements. The W3C recommendation "Namespaces in XML 1.0" states explicitly: "The empty string, though it is a legal URI reference, cannot be used as a namespace name" (http://www.w3.org/TR/xml-names/#iri-use). 

-- 
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