Sounds like there is a problem trying to convert the result of your
method call to an int.  Try just printing the value of the Object
returned before casting it and see what that gets you.

             Object ret = call.invoke( new Object[] {
appID,actionCode,remarks } );

             System.out.println("You typed : " + ret);

On 11/15/05, giribabu venugopal <[EMAIL PROTECTED]> wrote:
> Hi
>
>
>
>      am running my service in
> http://locahost:port/services/Myservice
>
> my method returns   integer value
>
> when i am running the command this cmd
>
>
> java -classpath
> C:\axis-1_2_1\lib\axis.jar;C:\axis-1_2_1\lib\commons-logging-1.0.4.jar;C:\axis-1_2_1\lib\commons-discovery-0.2.jar;C:\axis-1_2_1\lib\saaj.jar;C:\axis-1_2_1\lib\jaxrpc.jar;C:\axis-1_2_1\lib\xerces.jar;C:\axis-1_2_1\lib\activation.jar;C:\axis-1_2_1\lib\mail.jar;C:\axis-1_2_1\lib\wsdl4j-
> 1.5.1.jar;  com.awpl.DS.imwf.Client5
> -lhttp://localhost:8080/axis/services/GetData "12345" 04
> "The Documents contains Business Error"
>
>
> my client program is
>
> =================
>
>
>    call.setTargetEndpointAddress( new java.net.URL(endpointURL) );
>    call.setOperationName( new QName("http://imwf.DS.awpl.com";, "checkIn") );
>     call.addParameter ( "arg1", XMLType.XSD_STRING, ParameterMode.IN);
>     call.addParameter( "arg2", XMLType.XSD_INT, ParameterMode.IN);
>     call.addParameter( "arg3", XMLType.XSD_STRING, ParameterMode.IN);
>
>              call.setReturnType(
> org.apache.axis.encoding.XMLType.XSD_INT );
>
>              int ret = Integer.parseInt((String) call.invoke( new Object[] {
> appID,actionCode,remarks } ));
>
>              System.out.println("You typed : " + ret);
>
>
>
> error is
>
>
> .awpl.DS.imwf.Client5
> -lhttp://localhost:8080/axis/services/GetData "12345" 04
> "The Documents contains Business Error"
> AxisFault
>   faultCode:
> {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>  faultSubcode:
>  faultString: org.xml.sax.SAXException: Bad types (class java.lang.String
> -&gt;
> int)
>  faultActor:
>  faultNode:
>  faultDetail:
>
> {http://xml.apache.org/axis/}hostname:pli2004cpu07208
>
> org.xml.sax.SAXException: Bad types (class java.lang.String -> int)
>         at
> org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder
> .java:221)
>         at
> org.apache.axis.message.SOAPFaultBuilder.endElement
> (SOAPFaultBuilder.
> java:128)
>         at
> org.apache.axis.encoding.DeserializationContext.endElement(Deserializ
> ationContext.java:1087)
>         at
> org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
>         at
> org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLVa
> lidator.java:1550)
>         at
> org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.disp
> atch(XMLDocumentScanner.java :1149)
>         at
> org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
> canner.java:381)
>         at
> org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
>         at javax.xml.parsers.SAXParser.parse (Unknown
> Source)
>         at
> org.apache.axis.encoding.DeserializationContext.parse(Deserialization
> Context.java:227)
>         at
> org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
>         at org.apache.axis.Message.getSOAPEnvelope
> (Message.java:424)
>         at
> org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnders
> tandChecker.java:62)
>         at
> org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
>         at org.apache.axis.client.Call.invokeEngine
> (Call.java:2765)
>         at
> org.apache.axis.client.Call.invoke(Call.java:2748)
>         at
> org.apache.axis.client.Call.invoke(Call.java:2424)
>         at
> org.apache.axis.client.Call.invoke(Call.java:2347)
>         at
> org.apache.axis.client.Call.invoke(Call.java:1804)
>         at com.awpl.DS.imwf.Client5.main(Client5.java:53)
> org.xml.sax.SAXException: Bad types (class java.lang.String -> int)
>
>
>
>
>
>
>

Reply via email to