forward with correct subject prefix

Thanks,
Deepal
................................................................
~Future is Open~

----- Original Message ----- From: "Jean-Claude Moissinac" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, November 28, 2005 10:03 PM
Subject: Problem invoking web service


I always get the following AxisFault when I use
OMElement result = call.invokeBlocking("getQuote", payload);
and I doesn't find where is the error.

org.apache.axis2.AxisFault: Input stream is null while reading for incomming message at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:45) at org.apache.axis2.clientapi.TwoWayTransportBasedSender.send(TwoWayTransportBasedSender.java:53) at org.apache.axis2.clientapi.InOutMEPClient.invokeBlocking(InOutMEPClient.java:177)
at org.apache.axis2.clientapi.Call.invokeBlocking(Call.java:89)
at StockQuote.stock.StockQuoteService.main(StockQuoteService.java:101)

For example, I'm testing the code in the good article at
http://www-128.ibm.com/developerworks/webservices/library/ws-webaxis1/
and the code form listing 4

try {

  EndpointReference targetEPR = new EndpointReference(
      "http://localhost:8080/axis2/services/StockQuoteService";);

  // Create request message
  OMFactory fac = OMAbstractFactory.getOMFactory();
  OMNamespace omNs = fac.createOMNamespace(
      "http://www.developerworks.com/example";, "example");
    OMElement payload = fac.createOMElement("getQuote",omNs);
  payload.setText("IBM");

  // Create the call
  Call call = new Call();
  call.setTo(targetEPR);

  call.setTransportInfo(Constants.TRANSPORT_HTTP,
    Constants.TRANSPORT_HTTP, false);
  // Invoke blocking
  OMElement result = call.invokeBlocking("getQuote", payload);

  System.out.println("Quote ="+result.getText());
}catch (AxisFault axisFault) {
    axisFault.printStackTrace();
}

Can someone help me.

Thank you in adavance
--
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm



Reply via email to