axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [jira] Closed: (AXIS-1590) Not consuming SOAP messages according to WSDL
Date Tue, 05 Oct 2004 19:10:32 GMT

   The following issue has been closed.

   Resolver: Davanum Srinivas
       Date: Tue, 5 Oct 2004 12:09 PM

closing as per Greg's request.

-- dims
View the issue:

Here is an overview of the issue:
        Key: AXIS-1590
    Summary: Not consuming SOAP messages according to WSDL
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: FIXED

    Project: Axis
             WSDL processing

   Reporter: Greg Michalopoulos

    Created: Tue, 5 Oct 2004 11:47 AM
    Updated: Tue, 5 Oct 2004 12:09 PM
Environment: Apache Axis 1.2 RC1
Jrun Server 4.0 SP3
Windows XP Pro

Even though I have defined an element (in the WSDL) in my request to be optional, Axis 1.2
RC1 complains that it is an "invalid element" when it is included undefined.  If the <param2></param2>
portion of the request is removed and resent (using tcpmon) the request is consumed as it
should.  Same exact source code worked fine on 1.2 Beta.  Process was to create the WSDL,
use WSDL2Java to create base classes, and then custom program the Impl class.

         <Object1 xmlns="">
            <param1 xmlns="" xsi:type="xsd:string">12345</param1>
            <param2 xmlns=""></param2>

         <faultstring>org.xml.sax.SAXException: Invalid element in org.apache.xml.axis.wsdd._Object1
- param2</faultstring>
            <ns1:hostname xmlns:ns1="">hostname</ns1:hostname>

Element <param2> is described in and is properly defined int he WSDD file.

Here is the relevant portion of the WSDL.
  <schema targetNamespace="" xmlns="">
    <element name="param3">
	  <element maxOccurs="1" minOccurs="0" name="var1" type="xsd:int" />
    <element name="param2">
	  <element maxOccurs="unbounded" minOccurs="0" ref="impl:param3"/>
    <element name="Object1">
	  <element maxOccurs="1" minOccurs="1" name="param1" type="xsd:string"/>
	  <element maxOccurs="1" minOccurs="0" ref="impl:param2"/>

This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:

If you want more information on JIRA, or have a bug to report see:

View raw message