Using method= the parameters appear in random order to the impl method
----------------------------------------------------------------------

         Key: AXIS-2237
         URL: http://issues.apache.org/jira/browse/AXIS-2237
     Project: Apache Axis
        Type: Bug
    Versions: 1.2.1    
 Environment: Fedora Core 4, x86 Tomcat 5.0.28, JDK1.5, Axis 1.2.1
    Reporter: Colin Ruthven


I have a web service derived from a functioning WSDL for .Net using wsdl2java.
I am calling this using ?method=fetchProducts&mn=1&pn=345&ProductsWanted=a
The Impl method is invoked with these in varying orders. I can use different 
parameter names and it will not complain, just put the parameters in yet more 
orders.
I turned on debugging at DEBUG. The following log extract shows it SAX parsing 
the parameters with the correct names and values and then the "body is" line 
shows the values scrambled -
- body is 
<fetchProducts><PN>345</PN><PRODUCTSWANTED>a</PRODUCTSWANTED><MN>1</MN></fetchProducts>

The fetchProducts method fails depending on this randomness.

Extract begins -
- Enter: RPCProvider.processMessage()
- org.apache.axis.i18n.resource::handleGetObject(bodyElems00)
- There are 1 body elements.
- SAXOutputter.startElement ['' fetchProducts]
- org.apache.axis.i18n.resource::handleGetObject(startElem00)
- Start element []:fetchProducts
- NSPush (32)
- SAXOutputter.startElement ['' PN]
- org.apache.axis.i18n.resource::handleGetObject(startElem00)
- Start element []:PN
- NSPush (32)
- SAXOutputter.characters ['345']
- SAXOutputter.endElement ['' PN]
- org.apache.axis.i18n.resource::handleGetObject(endElem00)
- End element PN
- NSPop (32)
- SAXOutputter.startElement ['' PRODUCTSWANTED]
- org.apache.axis.i18n.resource::handleGetObject(startElem00)
- Start element []:PRODUCTSWANTED
- NSPush (32)
- SAXOutputter.characters ['a']
- SAXOutputter.endElement ['' PRODUCTSWANTED]
- org.apache.axis.i18n.resource::handleGetObject(endElem00)
- End element PRODUCTSWANTED
- NSPop (32)
- SAXOutputter.startElement ['' MN]
- org.apache.axis.i18n.resource::handleGetObject(startElem00)
- Start element []:MN
- NSPush (32)
- SAXOutputter.characters ['1']
- SAXOutputter.endElement ['' MN]
- org.apache.axis.i18n.resource::handleGetObject(endElem00)
- End element MN
- NSPop (32)
- SAXOutputter.endElement ['' fetchProducts]
- org.apache.axis.i18n.resource::handleGetObject(endElem00)
- End element fetchProducts
- org.apache.axis.i18n.resource::handleGetObject(empty00)
- NSPop (empty)
- org.apache.axis.i18n.resource::handleGetObject(bodyIs00)
- body is 
<fetchProducts><PN>345</PN><PRODUCTSWANTED>a</PRODUCTSWANTED><MN>1</MN></fetchProducts>



-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to