Thanks for your response Amila. The SOAP response looks correct when
validating against the wsdl. The issue seems to be in the generated stub
code when a check is done comparing the QName of the element. The WSDL
targetnamespace http://helper.webservice.soap.test.com/xsd
<http://helper.webservice.soap.test.com/xsd>  is used to compare against
an element that has http://www.w3.org/2001/XMLSchema
<http://www.w3.org/2001/XMLSchema>  as it's namespace so they don't
match up and consequently the "java.lang.RuntimeException: Unexpected
subelement value" exception is thrown.
 
Here is the line I am referring to:
 
if (reader.isStartElement() && new
javax.xml.namespace.QName("http://helper.webservice.soap.test.com/xsd",";
value").equals(reader.getName
<http://helper.webservice.soap.test.com/xsd","value";).equals(reader.getN
ame> ())){
 
Is this a limitation of ADB, an error in the stub generation, an error
in the wsdl generation, or something I can control in my stub
generation?
 
Thanks for any insight you can offer.
 
Ted

________________________________

From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 29, 2007 11:48 PM
To: axis-user@ws.apache.org
Subject: Re: [Axix2] java.lang.RuntimeException: Unexpected subelement
value


we have discussed this senario in many times.

First thing you have to do is to check the received soap message using
the tcp mon.
then validate the that received response message with the generated wsdl
(wsdl you used to generate the code) 

Amila.


On 3/30/07, Ted Jones <[EMAIL PROTECTED]> wrote: 

        I am receiving the following exception in my ADB generated stub
while processing my soap response: java.lang.RuntimeException:
Unexpected subelement value 
         
        The WSDL used to generate my stub is auto generated (Axis2
1.1.1).
         
        Any ideas?
         
        TIA,
        Ted




-- 
Amila Suriarachchi,
WSO2 Inc. 

Reply via email to