3 Replies Latest reply on Jan 12, 2005 7:12 PM by hasegawa

    Second WS parameter set to null

    isabored

      I have a webservice that takes two string parameters. I am calling the webservice from a DII client and the second parameter seems to be getting lost.

      I have set the org.apache.axis is DEBUG level reporting and this is part of what I get:

      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.message.BodyBuilder] Exit: BodyBuilder::onStartChild()
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.i18n.ProjectResourceBundle] org.apache.axis.i18n.resource::handleGetObject(pushHandler00)
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Pushing handler org.apache.axis.message.RPCElementHandler@4e9bea
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Pushing element in0
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.message.SOAPElementAxisImpl] Adding child: ns1:in0
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.message.SOAPEnvelopeAxisImpl] setModifiedAfterSerialization: true
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Exit: DeserializationContextImpl::startElement()
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] addTextNode: 'isabored'
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.message.SOAPElementAxisImpl] Adding child: #text [isabored]
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.message.SOAPEnvelopeAxisImpl] setModifiedAfterSerialization: true
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Enter: DeserializationContextImpl::endElement(http://4testApp.dyndns.org/ws4ee, in0)
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.i18n.ProjectResourceBundle] org.apache.axis.i18n.resource::handleGetObject(popHandler00)
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Popping handler org.apache.axis.message.RPCElementHandler@4e9bea
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Popped element stack to org.apache.axis.message.SOAPBodyAxisImpl:Body
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Exit: DeserializationContextImpl::endElement()
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Enter: DeserializationContextImpl::endPrefixMapping(ns1)
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Exit: DeserializationContextImpl::endPrefixMapping()
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Enter: DeserializationContextImpl::startPrefixMapping(ns2, http://4testApp.dyndns.org/ws4ee)
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Exit: DeserializationContextImpl::startPrefixMapping()
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Enter: DeserializationContextImpl::startElement(http://4testApp.dyndns.org/ws4ee, in1)
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.message.BodyBuilder] Enter: BodyBuilder::onStartChild()
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.utils.DOM2Utils] createElement {http://4testApp.dyndns.org/ws4ee}ns2:in1
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.i18n.ProjectResourceBundle] org.apache.axis.i18n.resource::handleGetObject(newElem00)
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.message.SOAPElementAxisImpl] New MessageElement (org.apache.axis.message.SOAPBodyElementAxisImpl@3522b5[[ns2:in1: null]]) named {ns2}in1
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.message.BodyBuilder] Exit: BodyBuilder::onStartChild()
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.i18n.ProjectResourceBundle] org.apache.axis.i18n.resource::handleGetObject(pushHandler00)
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Pushing handler org.apache.axis.message.SOAPHandler@79cf8c
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Pushing element in1
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.message.SOAPElementAxisImpl] Adding child: ns2:in1
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.message.SOAPEnvelopeAxisImpl] setModifiedAfterSerialization: true
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Exit: DeserializationContextImpl::startElement()
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] addTextNode: 'testField'
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.message.SOAPElementAxisImpl] Adding child: #text [testField]
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.message.SOAPEnvelopeAxisImpl] setModifiedAfterSerialization: true
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Enter: DeserializationContextImpl::endElement(http://4testApp.dyndns.org/ws4ee, in1)
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.i18n.ProjectResourceBundle] org.apache.axis.i18n.resource::handleGetObject(popHandler00)
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Popping handler org.apache.axis.message.SOAPHandler@79cf8c
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Popped element stack to org.apache.axis.message.SOAPBodyAxisImpl:Body
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Exit: DeserializationContextImpl::endElement()
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Enter: DeserializationContextImpl::endPrefixMapping(ns2)
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Exit: DeserializationContextImpl::endPrefixMapping()
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Enter: DeserializationContextImpl::endElement(http://schemas.xmlsoap.org/soap/envelope/, Body)
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.i18n.ProjectResourceBundle] org.apache.axis.i18n.resource::handleGetObject(popHandler00)
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Popping handler org.apache.axis.message.BodyBuilder@1fe8714
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Popped element stack to org.apache.axis.message.SOAPEnvelopeAxisImpl:Envelope
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Exit: DeserializationContextImpl::endElement()
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Enter: DeserializationContextImpl::endElement(http://schemas.xmlsoap.org/soap/envelope/, Envelope)
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.i18n.ProjectResourceBundle] org.apache.axis.i18n.resource::handleGetObject(popHandler00)
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Popping handler org.apache.axis.message.EnvelopeBuilder@f8db08
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Popped element stack to null
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Exit: DeserializationContextImpl::endElement()
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Enter: DeserializationContextImpl::endPrefixMapping(soapenv)
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Exit: DeserializationContextImpl::endPrefixMapping()
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Enter: DeserializationContextImpl::endPrefixMapping(xsd)
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Exit: DeserializationContextImpl::endPrefixMapping()
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Enter: DeserializationContextImpl::endPrefixMapping(xsi)
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Exit: DeserializationContextImpl::endPrefixMapping()
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Enter: DeserializationContextImpl::endDocument()
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Exit: DeserializationContextImpl::endDocument()
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.MessagePart] Setting current message form to: FORM_SOAPENVELOPE
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.MessagePart] Exit: SOAPPart::getAsSOAPEnvelope
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.TIME] Get SOAPEnvelope in 109ms
      2004-12-17 17:27:46,978 DEBUG [org.jboss.webservice.server.ServerEngine] invoke: org.apache.axis.MessageContext@ee9f13
      2004-12-17 17:27:46,978 DEBUG [org.jboss.webservice.server.ServerEngine] TransportHandler: http
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.SimpleChain] Enter: SimpleChain::invoke
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.handlers.http.URLMapper] Enter: URLMapper::invoke
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.handlers.http.URLMapper] Exit: URLMapper::invoke
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.handlers.http.HTTPAuthHandler] Enter: HTTPAuthHandler::invoke
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.handlers.http.HTTPAuthHandler] Exit: HTTPAuthHandler::invoke
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.SimpleChain] Exit: SimpleChain::invoke
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.SimpleChain] Enter: SimpleChain::invoke
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.MessagePart] Enter: SOAPPart::getAsSOAPEnvelope()
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.i18n.ProjectResourceBundle] org.apache.axis.i18n.resource::handleGetObject(currForm)
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.MessagePart] current form is FORM_SOAPENVELOPE
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.SimpleChain] Exit: SimpleChain::invoke
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.SimpleChain] Enter: SimpleChain::invoke
      2004-12-17 17:27:46,978 DEBUG [org.apache.axis.providers.java.JavaProvider] Enter: JavaProvider::invoke (org.jboss.webservice.server.InvokerProviderJSE@1291479)
      2004-12-17 17:27:46,994 DEBUG [org.jboss.webservice.server.InvokerProviderJSE] makeNewServiceObject: class=org.testApp.webServices.IntestApp
      2004-12-17 17:27:46,994 DEBUG [org.apache.axis.providers.java.JavaProvider] makeNewServiceObject for name: org.testApp.webServices.IntestApp_Impl
      2004-12-17 17:27:46,994 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
      2004-12-17 17:27:46,994 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1bfeb82, cl=org.jboss.mx.loading.UnifiedClassLoader3@9dc8f2{ url=null ,addedOrder=0}
      2004-12-17 17:27:46,994 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
      2004-12-17 17:27:46,994 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1bfeb82, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@13bcbc8{ url=null ,addedOrder=0}
      2004-12-17 17:27:46,994 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
      2004-12-17 17:27:46,994 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1bfeb82, cl=org.jboss.mx.loading.UnifiedClassLoader3@bfc25c{ url=null ,addedOrder=0}
      2004-12-17 17:27:46,994 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
      2004-12-17 17:27:46,994 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1bfeb82, cl=org.jboss.mx.loading.UnifiedClassLoader3@9d6d87{ url=null ,addedOrder=0}
      2004-12-17 17:27:46,994 DEBUG [org.apache.axis.utils.DOM2Utils] createElement {http://schemas.xmlsoap.org/soap/envelope/}soapenv:Envelope
      2004-12-17 17:27:46,994 DEBUG [org.apache.axis.utils.DOM2Utils] createElement {http://schemas.xmlsoap.org/soap/envelope/}soapenv:Header
      2004-12-17 17:27:46,994 DEBUG [org.apache.axis.message.SOAPElementAxisImpl] Adding child: soapenv:Header
      2004-12-17 17:27:46,994 DEBUG [org.apache.axis.message.SOAPEnvelopeAxisImpl] setModifiedAfterSerialization: true
      2004-12-17 17:27:46,994 DEBUG [org.apache.axis.utils.DOM2Utils] createElement {http://schemas.xmlsoap.org/soap/envelope/}Body
      2004-12-17 17:27:46,994 DEBUG [org.apache.axis.message.SOAPElementAxisImpl] Adding child: Body
      2004-12-17 17:27:46,994 DEBUG [org.apache.axis.message.SOAPEnvelopeAxisImpl] setModifiedAfterSerialization: true
      2004-12-17 17:27:47,009 DEBUG [org.apache.axis.MessagePart] Enter: SOAPPart ctor(FORM_SOAPENVELOPE)
      2004-12-17 17:27:47,009 DEBUG [org.apache.axis.MessagePart] Setting current message form to: FORM_SOAPENVELOPE
      2004-12-17 17:27:47,009 DEBUG [org.apache.axis.MessagePart] Exit: SOAPPart ctor()
      2004-12-17 17:27:47,009 DEBUG [org.apache.axis.MessagePart] Enter: SOAPPart::getAsSOAPEnvelope()
      2004-12-17 17:27:47,009 DEBUG [org.apache.axis.i18n.ProjectResourceBundle] org.apache.axis.i18n.resource::handleGetObject(currForm)
      2004-12-17 17:27:47,009 DEBUG [org.apache.axis.MessagePart] current form is FORM_SOAPENVELOPE
      2004-12-17 17:27:47,009 DEBUG [org.apache.axis.providers.java.RPCProvider] Enter: RPCProvider.processMessage()
      2004-12-17 17:27:47,009 DEBUG [org.apache.axis.providers.java.RPCInvocation] Enter: prepareFromRequestEnvelope
      org.apache.axis.message.SOAPEnvelopeAxisImpl@1649a55[[soapenv:Envelope: null]]
      2004-12-17 17:27:47,009 DEBUG [org.apache.axis.i18n.ProjectResourceBundle] org.apache.axis.i18n.resource::handleGetObject(bodyElems00)
      2004-12-17 17:27:47,009 DEBUG [org.apache.axis.providers.java.RPCInvocation] There are 2 body elements.
      2004-12-17 17:27:47,009 DEBUG [org.apache.axis.i18n.ProjectResourceBundle] org.apache.axis.i18n.resource::handleGetObject(bodyIs00)
      2004-12-17 17:27:47,009 DEBUG [org.apache.axis.providers.java.RPCInvocation] body is org.apache.axis.message.RPCElement@16d8a64[[ns1:in0: null]]
      2004-12-17 17:27:47,009 DEBUG [org.apache.axis.i18n.ProjectResourceBundle] org.apache.axis.i18n.resource::handleGetObject(pushHandler00)
      2004-12-17 17:27:47,009 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Pushing handler org.apache.axis.message.RPCHandler@1d063fd
      2004-12-17 17:27:47,009 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Enter: DeserializationContextImpl::startPrefixMapping(ns1, http://4testApp.dyndns.org/ws4ee)
      2004-12-17 17:27:47,009 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Exit: DeserializationContextImpl::startPrefixMapping()
      2004-12-17 17:27:47,009 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Enter: DeserializationContextImpl::startElement(http://4testApp.dyndns.org/ws4ee, in0)
      2004-12-17 17:27:47,009 DEBUG [org.apache.axis.message.RPCHandler] Enter: RPCHandler.onStartChild()
      2004-12-17 17:27:47,025 DEBUG [org.apache.axis.i18n.ProjectResourceBundle] org.apache.axis.i18n.resource::handleGetObject(typeFromAttr00)
      2004-12-17 17:27:47,025 DEBUG [org.apache.axis.message.RPCHandler] Type from attributes is: null
      2004-12-17 17:27:47,025 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Enter:getDeserializer: [class=class java.lang.String,xmlType={http://4testApp.dyndns.org/ws4ee}in0]
      2004-12-17 17:27:47,025 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
      2004-12-17 17:27:47,025 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1bfeb82, cl=org.jboss.mx.loading.UnifiedClassLoader3@1d46259{ url=null ,addedOrder=0}
      2004-12-17 17:27:47,025 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Exit:getDeserializer: org.apache.axis.encoding.ser.SimpleDeserializer@5476a7
      2004-12-17 17:27:47,025 DEBUG [org.apache.axis.message.RPCHandler] Exit: RPCHandler.onStartChild()
      2004-12-17 17:27:47,025 DEBUG [org.apache.axis.i18n.ProjectResourceBundle] org.apache.axis.i18n.resource::handleGetObject(pushHandler00)
      2004-12-17 17:27:47,025 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Pushing handler org.apache.axis.encoding.ser.SimpleDeserializer@5476a7
      2004-12-17 17:27:47,025 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Exit: DeserializationContextImpl::startElement()
      2004-12-17 17:27:47,025 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Enter: DeserializationContextImpl::endElement(http://4testApp.dyndns.org/ws4ee, in0)
      2004-12-17 17:27:47,025 DEBUG [org.apache.axis.i18n.ProjectResourceBundle] org.apache.axis.i18n.resource::handleGetObject(popHandler00)
      2004-12-17 17:27:47,025 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Popping handler org.apache.axis.encoding.ser.SimpleDeserializer@5476a7
      2004-12-17 17:27:47,025 DEBUG [org.apache.axis.encoding.ser.SimpleDeserializer] Making value [isabored] for javaType: class java.lang.String
      2004-12-17 17:27:47,025 DEBUG [org.apache.axis.i18n.ProjectResourceBundle] org.apache.axis.i18n.resource::handleGetObject(setValueInTarget00)
      2004-12-17 17:27:47,025 DEBUG [org.apache.axis.encoding.DeserializerImpl] Set value isabored in target org.apache.axis.encoding.MethodTarget@1abb81e
      2004-12-17 17:27:47,025 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Popped element stack to org.apache.axis.message.SOAPBodyAxisImpl:Body
      2004-12-17 17:27:47,025 DEBUG [org.apache.axis.encoding.DeserializationContextImpl] Exit: DeserializationContextImpl::endElement()
      2004-12-17 17:27:47,025 DEBUG [org.apache.axis.i18n.ProjectResourceBundle] org.apache.axis.i18n.resource::handleGetObject(value00)
      2004-12-17 17:27:47,025 DEBUG [org.apache.axis.providers.java.RPCInvocation] value: isabored
      2004-12-17 17:27:47,025 DEBUG [org.apache.axis.providers.java.RPCInvocation] Exit: prepareFromRequestEnvelope
      RPCInvocation:
      TargetObject=org.testApp.webServices.IntestApp_Impl@c4d412
      Operation=name: getReferences
      returnQName: {http://4testApp.dyndns.org/ws4ee}getReferencesReturn
      returnType: {http://4testApp.dyndns.org/ws4ee}getReferencesReturn
      returnClass: class java.lang.String
      elementQName:{http://4testApp.dyndns.org/ws4ee}getReferences
      soapAction: null
      style: document
      use: literal
      numInParams: 2
      method:public abstract java.lang.String org.testApp.webServices.IntestApp.getReferences(java.lang.String,java.lang.String) throws java.rmi.RemoteException
       ParameterDesc[0]:
       name: {http://4testApp.dyndns.org/ws4ee}in0
       typeEntry: null
       mode: IN
       isReturn: false
       typeQName: {http://4testApp.dyndns.org/ws4ee}in0
       javaType: class java.lang.String
       inHeader: false
       outHeader: false
      
       ParameterDesc[1]:
       name: {http://4testApp.dyndns.org/ws4ee}in1
       typeEntry: null
       mode: IN
       isReturn: false
       typeQName: {http://4testApp.dyndns.org/ws4ee}in1
       javaType: class java.lang.String
       inHeader: false
       outHeader: false
      
      ArgValues=[isabored, null]
      ReturnValue=null
      
      
      


      That seems to be the part where the parameter gets lost. The parameter is called testField .

      Regards

      isabored