Java Webservice

Hi all

I’m having a bit of a headache, trying to call a Webservice from an agent. I have all the classes in place and everything compiles fine. When I run the agent,however I’m getting this error in the console

javax.xml.ws.WebServiceException: java.net.SocketException: socket closed

at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:176)

at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:95)

at com.sun.xml.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:105)

at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:629)

at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:588)

at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:573)

at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:470)

at com.sun.xml.ws.client.Stub.process(Stub.java:319)

at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:157)

at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:109)

at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)

at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:140)

at $Proxy31.uploadFile(Unknown Source)

at dk.bording.doc2mail.WebserviceImpl.upLoad(WebserviceImpl.java:73)

at FileUploader.NotesMain(FileUploader.java:144)

at lotus.domino.AgentBase.runNotes(Unknown Source)

at lotus.domino.NotesThread.run(Unknown Source)

Caused by: java.net.SocketException: socket closed

at java.net.SocketInputStream.read(SocketInputStream.java:140)

at java.io.BufferedInputStream.fill(BufferedInputStream.java:229)

at java.io.BufferedInputStream.read1(BufferedInputStream.java:269)

at java.io.BufferedInputStream.read(BufferedInputStream.java:328)

at java.io.FilterInputStream.read(FilterInputStream.java:101)

at com.sun.xml.ws.transport.http.client.HttpClientTransport$1.close(HttpClientTransport.java:202)

at com.sun.xml.ws.transport.http.client.HttpTransportPipe.createResponsePacket(HttpTransportPipe.java:204)

at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:172)

... 16 more

And I’m not anywhere near setting a socket, so I’m a little in the dark with this one.

And the “funny” thing is, if I configure my Eclipse to run with the Notes JRE and the same jars on the classpath everything works as a charm.

Any ideas will be greatly appreciated…

Regards

kim

Subject: Any Update

I know this is quite old, but I am in the exact same situation. Can run in IBM RAD environment, but not from a Domino agent.

Subject: What do mean classes?

I take it your using a third party solution for connecting to the webservice?

You should not need to have any extra classes to consume a web service from a notes agent. Only the Web service consumer library you created by the WSDL file.