DO NOT REPLY [Bug 21437] New: - byte[] type is not handled/mapped properly

[email protected]
Newsgroups gmane.comp.apache.webservices.wsif.devel
Message-ID <[email protected]>
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21437>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21437

byte[] type is not handled/mapped properly

           Summary: byte[] type is not handled/mapped properly
           Product: Axis-WSIF
           Version: 2.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Basic Architecture
        AssignedTo: [email protected]
        ReportedBy: bsnyder-/[email protected]


When a web service method takes a byte[] as a parameter or returns one, the 
method is not found by the WSIF due to what seems to be a mapping error. When 
the method is queried for it's parameter and return types by WSIF, if it is a 
byte array, then the type string returned is "[B", which doesn't match the 
mapping within the Schema2Java class constructor:

public Schema2Java(String schemaURI)
.....
(registry.put(new QName(schemaURI, "base64Binary"), "byte[]");
......

 When specifying the type in the wsdl as base64binary it is mapped by the 
Schema2Java tool to the type string "byte[]". Then later a comparison between 
the mapping string "byte[]" and the actual param type string "class [B" are 
made and the match fails which causes byte[] params to not work.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.