Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 7428 invoked from network); 12 Sep 2007 14:14:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Sep 2007 14:14:00 -0000 Received: (qmail 14001 invoked by uid 500); 12 Sep 2007 14:13:50 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 13951 invoked by uid 500); 12 Sep 2007 14:13:50 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 13940 invoked by uid 99); 12 Sep 2007 14:13:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Sep 2007 07:13:50 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Sep 2007 14:15:31 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 657E571420D for ; Wed, 12 Sep 2007 07:13:32 -0700 (PDT) Message-ID: <32820916.1189606412413.JavaMail.jira@brutus> Date: Wed, 12 Sep 2007 07:13:32 -0700 (PDT) From: "Mike Hao (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Created: (AXIS-2697) Wrong SOAP message element returned when multiple elements have the same "id" value MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Wrong SOAP message element returned when multiple elements have the same "id" value ----------------------------------------------------------------------------------- Key: AXIS-2697 URL: https://issues.apache.org/jira/browse/AXIS-2697 Project: Axis Issue Type: Bug Components: Serialization/Deserialization Affects Versions: 1.4 Environment: Window XP, JDK1.5 Reporter: Mike Hao Priority: Critical Below is a response SOAP message returned from a third party web service. This message was caught by using TCPMon, and it looks pretty good based on WSDL. The Java code was generated using WSDL2Java Ant task against Axis 1.4. The request was sent to web service using the generated stub code. The expected result is Axis should return an object of type ResponseRecord, but what I got is ClassCastException. It complains the casting from StreetData to ResponseRecord. After doing some debugging against the Axis 1.4 source code, I found that the reason for this problem is there are three elements with "id" attributes: 1. ResponseRecord: id = 1 2. StreetData: id = 1 3. StreetData: id = 2 Somehow, Axis uses this id" as the key to Map. After finishing processing, the StreetData record with id = 1 overwrite the ResponseRecord data, which also has id = 1. Therefore, the actual returned object is StreetData, not the expected ResponseRecord. There is no any problem with the seconde SOAP message below. Thanks, Mike 114004255 OK;
OK 9 (U.S.) The address was fully coded. Street S 1675 Ursula St C001 75 8 Aurora Aurora Adams 08001 Colorado CO 80045 7402 Ursula 1675 St
                     
                     
                        
                        
                     
                     
                        
                        
                     
                     
                  
                  
                     US
                     United States of America
                  
               
OK S B URSULA CT C034 07 08005 Z11053
S
0000001699 0000001600 B 80012 5347 5347
S B URSULA ST C001 07 08001 Z11053
                     
                     
                        0000001699
                        0000001601
                        O
                     
                     
                        80045
                        
                           7402
                           7402
                        
                     
                  
               
               
                  
               
               
                  
               
            
         
      
   

Axis working fine with this response SOAP message:

?xml version="1.0" encoding="utf-8"?>
   
      
         
            
               
                  114004255
               
               
                  900
                  OK;GENERAL_ERROR::Address was not coded. #1;
               
               
R Range Error X Address was not coded. RIVER ROAD North Bergen North Bergen Hudson 34017 New Jersey NJ 07047 River Rd
                     
                     
                        
                        
                     
                     
                        
                        
                     
                     
                  
                  
                     US
                     United States of America
                  
               
-- 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