Unable to consume web service from web query save agent

I am able to consume a web service from a scheduled agent, but when I try from a web query save agent I get the error shown below. I have the same issue for both Java and Lotus script consumers. I this case the web service is on the same server that is running the application. The agent security level is 3. Does anyone have any hints as to what may be the problem?

Thanks,

05/15/2009 10:35:02 AM HTTP JVM: WebServiceEngineFault

05/15/2009 10:35:02 AM HTTP JVM: faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException

05/15/2009 10:35:02 AM HTTP JVM: faultSubcode:

05/15/2009 10:35:02 AM HTTP JVM: faultString: Error while reading data from server, Network operation did not complete in a reasonable amount of time; please retry

05/15/2009 10:35:02 AM HTTP JVM: faultActor:

05/15/2009 10:35:02 AM HTTP JVM: faultNode:

05/15/2009 10:35:02 AM HTTP JVM: faultDetail:

05/15/2009 10:35:02 AM HTTP JVM: Error while reading data from server, Network operation did not complete in a reasonable amount of time; please retry

05/15/2009 10:35:02 AM HTTP JVM: at lotus.domino.axis.InternalFault.makeFault(Unknown Source)

05/15/2009 10:35:02 AM HTTP JVM: at lotus.domino.axis.transport.http.HTTPSender.invoke(Unknown Source)

05/15/2009 10:35:02 AM HTTP JVM: at lotus.domino.axis.strategies.InvocationStrategy.visit(Unknown Source)

05/15/2009 10:35:02 AM HTTP JVM: at lotus.domino.axis.SimpleChain.doVisiting(Unknown Source)

05/15/2009 10:35:02 AM HTTP JVM: at lotus.domino.axis.SimpleChain.invoke(Unknown Source)

05/15/2009 10:35:02 AM HTTP JVM: at lotus.domino.axis.client.AxisClient.invoke(Unknown Source)

05/15/2009 10:35:02 AM HTTP JVM: at lotus.domino.axis.client.Call.invokeEngine(Unknown Source)

05/15/2009 10:35:02 AM HTTP JVM: at lotus.domino.axis.client.Call.invoke(Unknown Source)

05/15/2009 10:35:02 AM HTTP JVM: at lotus.domino.axis.client.Call.invoke(Unknown Source)

05/15/2009 10:35:02 AM HTTP JVM: at lotus.domino.axis.client.Call.invoke(Unknown Source)

05/15/2009 10:35:02 AM HTTP JVM: at lotus.domino.axis.client.Call.invoke(Unknown Source)

05/15/2009 10:35:02 AM HTTP JVM: at lotus.domino.websvc.client.Call.invoke(Unknown Source)

05/15/2009 10:35:02 AM HTTP JVM: at accesscare.AcWebServiceSOAP11BindingStub.query(Unknown Source)

05/15/2009 10:35:02 AM HTTP JVM: at JavaAgent.NotesMain(JavaAgent.java:130)

05/15/2009 10:35:02 AM HTTP JVM: at lotus.domino.AgentBase.runNotes(Unknown Source)

05/15/2009 10:35:02 AM HTTP JVM: at lotus.domino.NotesThread.run(Unknown Source)

05/15/2009 10:35:02 AM HTTP JVM: Caused by:

05/15/2009 10:35:02 AM HTTP JVM: Error while reading data from server, Network operation did not complete in a reasonable amount of time; please retry

05/15/2009 10:35:02 AM HTTP JVM: at lotus.domino.axis.transport.http.NotesSocket.access$200(Unknown Source)

05/15/2009 10:35:02 AM HTTP JVM: at lotus.domino.axis.transport.http.NotesSocket$IS.read(Unknown Source)

05/15/2009 10:35:02 AM HTTP JVM: at java.io.BufferedInputStream.fill(BufferedInputStream.java:231)

05/15/2009 10:35:02 AM HTTP JVM: at java.io.BufferedInputStream.read(BufferedInputStream.java:250)

05/15/2009 10:35:02 AM HTTP JVM: at lotus.domino.axis.transport.http.HTTPSender.readHeadersFromSocket(Unknown Source)

05/15/2009 10:35:02 AM HTTP JVM: … 15 more

Subject: Eventually I figured it out - credentials

I’m not sure why I was able to do this in the scheduled agent, but in the end I determined that I need to set creditials to reach the web service…

acwebservice._queryRequest request;

request = new acwebservice._queryRequest();

accesscare.AcWebServicePortType AcWs;

AcWs = new accesscare.AcWebServiceLocator().getAcWebServiceSOAP11port();

AcWs.setCredentials(“UserId”,“Password”);

//set all the values to be passed…

request.setTnCkt(doc.getItemValueString(“PhoneNumber”)); …

//Create the response object

acwebservice._queryResponse resp;

//initiate the web service

try {

resp = AcWs.query(request);

//get status code

int stat = resp.getStatusCode();

//handle soap faults

} catch (Exception q) {

//error handling - not really sure how to access the faults yet…