You have to add this before call.invoke(:
call.setReturnType( org.apache.axis.encoding.XMLType.XSD_STRING ); I am having trouble running example 3 and 4. After I deploy it using the AdminClient, when I try to acess the service using the client programs, in example 3, I get: java.lang.ClassNotFoundException: samples.userguide.example3.MyService on the client even thought the class files are there under classes in the WEB-INF directory. Same problem with example 4: The AXIS engine could not find a target service to invoke! targetService is null Tell me if you see the same behavior. >From: "Chris Haddad" <[EMAIL PROTECTED]> >Reply-To: <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Subject: example2 glitch >Date: Wed, 13 Mar 2002 01:14:03 -0500 > >Axis-user > >In the 03/12 snapshot, I'm getting a strange result for >/userguide/example2 > >The CalcClient sample program is stating that the return value is null, >even though TCPMon reports that a valid response was received. > >Is anyone else experiencing this? > >/Chris > >---- REQUEST ------ > >POST /axis/Calculator.jws HTTP/1.0 >Content-Length: 485 >Host: localhost >Content-Type: text/xml; charset=utf-8 >SOAPAction: "" > > ><?xml version="1.0" encoding="UTF-8"?> ><SOAP-ENV:Envelope >SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" >xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" >xmlns:xsd="http://www.w3.org/2001/XMLSchema" >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> > <SOAP-ENV:Body> > <add> > <op1 xsi:type="xsd:int">2</op1> > <op2 xsi:type="xsd:int">5</op2> > </add> > </SOAP-ENV:Body> ></SOAP-ENV:Envelope> > >---- RESPONSE ----- > ><SOAP-ENV:Envelope >xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" >xmlns:xsd="http://www.w3.org/2001/XMLSchema" >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > <SOAP-ENV:Body> > <addResponse >SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> > <addResult xsi:type="xsd:int">7</addResult> > </addResponse> > </SOAP-ENV:Body> ></SOAP-ENV:Envelope> >--- --- > > > >---------- >Chris Haddad >Cobia Communications - XML and Web Service Solutions >678 431 1656 >mailto:[EMAIL PROTECTED] > _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.