Newsgroup: it.comp.java
Titolo: AxisFault Interrogando un Webservices da Client Java

Salve,
ho deployato un WebServices scritto in Java su Tomcat 4.1 utilizzando AXIS.
Il WebServices è stato deployato
correttamente e risco a vedere il WSDL se vado sulla pagina di
amministrazione di TOMCAT (
http://localhost:8000/axis/services/QUERY?wsdl
)
quando però provo ad interrogare il WebServices utilizzando il seguente
client
Java :
package wsQuery;
public class TestClient
{
  public static void main (String argv[]) throws Exception {
 ResultError_info errore = new ResultError_info();
 wsQuery.EsecuzioneQryService service = new
wsQuery.EsecuzioneQryServiceLocator();
 wsQuery.EsecuzioneQry qry = service.getQUERY();
 Result Stringa =
qry.eseguiQuery("LETTURE_PER_PUNTO_PRESA","01","6108067","1");
 errore = Stringa.getError_info();
 if (errore.getId().equals("0"))
  System.out.println("XML Generato = " + Stringa.getInfo());
    else
  System.out.println("Si e' verificato un errore : Nr. " + errore.getId() +
" - " + errore.getDescr());
  }
}
ottengo il seguente errore :
Exception in thread "main" AxisFault
 faultCode: {
http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: java.lang.reflect.InvocationTargetException
 faultActor:
 faultNode:
 faultDetail:
        {
http://xml.apache.org/axis/}stackTrace
: AxisFault
 faultCode: {
http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: java.lang.reflect.InvocationTargetException
 faultActor:
 faultNode:
 faultDetail:
java.lang.reflect.InvocationTargetException
        at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:2
60)
        at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:16
9)
        at
org.apache.axis.encoding.DeserializationContextImpl.endElement(Deserializati
onContextImpl.java:1015)
        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(XM
LDocumentScanner.java:1260)
        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:345)
        at
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationCon
textImpl.java:242)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
        at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
        at org.apache.axis.client.Call.invoke(Call.java:2553)
        at org.apache.axis.client.Call.invoke(Call.java:2248)
        at org.apache.axis.client.Call.invoke(Call.java:2171)
        at org.apache.axis.client.Call.invoke(Call.java:1691)
        at
wsQuery.QUERYSoapBindingStub.eseguiQuery(QUERYSoapBindingStub.java:146)
        at wsQuery.TestClient.main(TestClient.java:14)
java.lang.reflect.InvocationTargetException
        at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:2
60)
        at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:16
9)
        at
org.apache.axis.encoding.DeserializationContextImpl.endElement(Deserializati
onContextImpl.java:1015)
        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(XM
LDocumentScanner.java:1260)
        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:345)
        at
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationCon
textImpl.java:242)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
        at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
        at org.apache.axis.client.Call.invoke(Call.java:2553)
        at org.apache.axis.client.Call.invoke(Call.java:2248)
        at org.apache.axis.client.Call.invoke(Call.java:2171)
        at org.apache.axis.client.Call.invoke(Call.java:1691)
        at
wsQuery.QUERYSoapBindingStub.eseguiQuery(QUERYSoapBindingStub.java:146)
        at wsQuery.TestClient.main(TestClient.java:14)
qualcuno sa indicarmi dove posso orientare le mie ricerche per risolvere il
problema?
Grazie.
Angelo.

 wrote in message
news:cg4cre$2a10$1...@stargate1.inet.it...


 risolto
[GNAM GNAM]
Ciao, puoi postare la soluzione? thanks ;-)
-- 
Ciao e buon lavoro,
  Renato
---- 
Renato Eschini
   Inera srl
   Via Vespucci 41
   56100 Pisa
   Tel:         (+39) (0)50 2201218
   WWW:         
http://www.inera.it