Thanx for qucik response I will reiterate the problem.
I have installed the AXIS version 1.0 and ran the HappyAxisClient
successfully. Just had an optional .jar file missing for XML security.
Now I have put the Calcuator.java as Calculator.jws under my web application
root to run as http://localhost:8080/axis/Calulator.jws?wsdl
This gives me a wsdl file when I run this URL.
Now I have the CalcClient.java which I invoke with follwoing parameters
-p 8080 add 2 5 amnd I get the follwoing exception stack trace
AxisFault
faultCode: {http://xml.apache.org/axis/}Server.generalException
faultString: Tried to invoke method public int Calculator.add(int,int) with
arguments java.lang.Integer,java.lang.Integer. The arguments do not match
the signature.
faultActor: null
faultDetail:
stackTrace: AxisFault
faultCode: {http://xml.apache.org/axis/}Server.generalException
faultString: Tried to invoke method public int Calculator.add(int,int) with
arguments java.lang.Integer,java.lang.Integer. The arguments do not match
the signature.
faultActor: null
faultDetail:
Tried to invoke method public int Calculator.add(int,int) with arguments
java.lang.Integer,java.lang.Integer. The arguments do not match the
signature.
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:135)
at
org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:942)
at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
at
org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1480)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1204)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:374)
at
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:232)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:546)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:377)
at org.apache.axis.client.Call.invokeEngine(Call.java:2132)
at org.apache.axis.client.Call.invoke(Call.java:2102)
at org.apache.axis.client.Call.invoke(Call.java:1851)
at org.apache.axis.client.Call.invoke(Call.java:1777)
at org.apache.axis.client.Call.invoke(Call.java:1315)
at samples.userguide.example2.CalcClient.main(CalcClient.java:98)
Tried to invoke method public int Calculator.add(int,int) with arguments
java.lang.Integer,java.lang.Integer. The arguments do not match the
signature.
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:135)
at
org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:942)
at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
at
org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1480)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1204)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:374)
at
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:232)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:546)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:377)
at org.apache.axis.client.Call.invokeEngine(Call.java:2132)
at org.apache.axis.client.Call.invoke(Call.java:2102)
at org.apache.axis.client.Call.invoke(Call.java:1851)
at org.apache.axis.client.Call.invoke(Call.java:1777)
at org.apache.axis.client.Call.invoke(Call.java:1315)
at samples.userguide.example2.CalcClient.main(CalcClient.java:98)
Exception in thread "main"
Then I tried to change the code of Calculator.java in the add method I made
it
public Integer add(Integer i1,Integer i2){
}
But this also does not work and gives me error similar to the above.
May be I have something wrong setup in my enviromnent which is not parsing
the files correctly or something but I am really stuck.
Please help for the same.
Thanx in advance.
BP
_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
- Error running Calculator.jws dumdum 420
- Re: Error running Calculator.jws David . Pool
- Re: Error running Calculator.jws dumdum 420
- Re: Error running Calculator.jws David . Pool
- Re: Error running Calculator.jws dumdum 420
- Re: Error running Calculator.jws Alex Dovlecel
- dumdum 420
