You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrp4j-dev@portals.apache.org by ji...@apache.org on 2004/06/16 11:28:09 UTC

[jira] Reopened: (WSRP4J-21) Property, ResourceValue, and LocalizedString need to specify 'xml:lang' for the 'lang' attribute field of the Elements

Message:

   The following issue has been reopened.

   Reopener: Richard Jacob
       Date: Wed, 16 Jun 2004 2:27 AM

I just reopened so it doesn't get lost on my ToDo list.
The key point here is:
there is a bug in Axis 1.1 which prevents the code generator to emmit code for attributes of type xml:lang.
We circumvented it by changing the attribs in wsdl to string, generating the code and patching the bean serializer/deserializer.
Therefor the types should be correct for our producer (the class files are in the producer war).

Unfortunatly this isn't fixed in Axis 1.2 so we still need to patch.
I'll took the migration to Axis, therefor I will provide the workaround
here, too.

The clean way would be to patch Axis to correctly gen' the code and the serializers/deserializers.
Feel free to go ahead here.
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/WSRP4J-21

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: WSRP4J-21
    Summary: Property, ResourceValue, and LocalizedString need to specify 'xml:lang' for the 'lang' attribute field of the Elements
       Type: Bug

     Status: Reopened
   Priority: Major

    Project: WSRP4J
 Components: 
             Other

   Assignee: Richard Jacob
   Reporter: Christopher Coco

    Created: Thu, 10 Jun 2004 10:17 AM
    Updated: Wed, 16 Jun 2004 2:27 AM
Environment: Windows 2000/Weblogic 8.1sp2/Apache Axis 1.1

Description:
These three objects, have type descriptions which are used to serialize and deserialize the objects to and from XML. The problem is that the attribute "lang" is not correctly namespaced and strict parsers fail on the attribute. It should be namespaced as "xml:lang".

Currently, the code looks like the following for (as an example) ResourceValue:
....
org.apache.axis.description.AttributeDesc attrField = new org.apache.axis.description.AttributeDesc();
attrField.setFieldName("lang");
attrField.setXmlName(new javax.xml.namespace.QName("", "lang"));
...

but should be:
...
org.apache.axis.description.AttributeDesc attrField = new org.apache.axis.description.AttributeDesc();
attrField.setFieldName("lang");
attrField.setXmlName(new javax.xml.namespace.QName("", "xml:lang"));

...


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira