AxisFault exception - Parameter xxxx doesn't exist!


XML & Web services: AxisFault exception - Parameter xxxx doesn't exist!

  1. AxisFault exception - Parameter xxxx doesn't exist! (1 messages)

    Hi, I'm not sure if this is the right place to ask this but just giving it a try. I was trying to play with Web Services and Apache Axis. What I did was I grabbed the WSDL file of a web service built using XFire and tried to generate client side stubs and interfaces. I was successful in that. Then, I developed a client class for this, a simple java app. Until this point, everything seems fine. Then started the hurdles. I ran the client and it threw me an Axis Fault exception. Its throwing the erro when I invoke the service. This is what I did in the client: StockSoapBindingStub stub = new StockSoapBindingStub( new URL("http://------------"), new Stock_ServiceLocator()); String stock = stub.testStock(); AxisFault faultCode: {}Client faultSubcode: faultString: Parameter testStockAttributes does not exist! faultActor: faultNode: faultDetail: {}stackTrace:Parameter testStockAttributes does not exist! at org.apache.axis.message.SOAPFaultBuilder.createFault( at org.apache.axis.message.SOAPFaultBuilder.endElement( at org.apache.axis.encoding.DeserializationContext.endElement( at at at$FragmentContentDispatcher.dispatch( at at at at at at javax.xml.parsers.SAXParser.parse( at org.apache.axis.encoding.DeserializationContext.parse( at org.apache.axis.SOAPPart.getAsSOAPEnvelope( at org.apache.axis.Message.getSOAPEnvelope( at org.apache.axis.transport.http.HTTPSender.readFromSocket( at org.apache.axis.transport.http.HTTPSender.invoke( at org.apache.axis.strategies.InvocationStrategy.visit( at org.apache.axis.SimpleChain.doVisiting( at org.apache.axis.SimpleChain.invoke( at org.apache.axis.client.AxisClient.invoke( at org.apache.axis.client.Call.invokeEngine( at org.apache.axis.client.Call.invoke( at org.apache.axis.client.Call.invoke( at org.apache.axis.client.Call.invoke( at org.apache.axis.client.Call.invoke( Does anyone have an idea why this exception has to show up? Thanks in advance.
  2. I guess its due to some missing parameter in the SOAP message generated, when you sent a web service request. Check if the required parameters, as per the message description in WSDL, are passed correctly.