axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christoph Ludwig (JIRA)" <>
Subject [jira] Commented: (AXIS-2682) wsdl2Java generates invalid empty striung namespaces
Date Sun, 22 Jul 2007 19:57:06 GMT


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

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.



> wsdl2Java generates invalid empty striung namespaces
> ----------------------------------------------------
>                 Key: AXIS-2682
>                 URL:
>             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="" xmlns:xsd=""
>         <soapenv:Body>
>            <AcceptBase64 xmlns="">
>               <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" ( 

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:
For additional commands, e-mail:

View raw message