Hi !

Is it possible to have the return type for a soap service as Object and
the service may return any of the primitive and primitive arrays ?

i.e.,
public Object processRequest( String UserName, String password)

When I tried to deploy a service like this and return a string from the
method it gave the following exception.
Any help will be greatly appreciated.

**********************************************
Type not correct: "string", expect: "anyType.
        at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.
java:134)
        at
org.apache.axis.encoding.DeserializationContext.endElement(Deserializ
ationContext.java:671)
        at
org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
        at
org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLVa
lidator.java:1480)
        at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.disp
atch(XMLDocumentScanner.java:1204)
        at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
canner.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.DeserializationContext.parse(Deserialization
Context.java:204)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:378)

        at org.apache.axis.client.Call.invoke(Call.java:1279)
        at org.apache.axis.client.Call.invoke(Call.java:1124)
        at org.apache.axis.client.Call.invoke(Call.java:1054)
        at org.apache.axis.client.Call.invoke(Call.java:1080)
        at ARHClient.main(ARHClient.java:40)
**********************************************************

Thanks in advance
Kumar Raj

Reply via email to