Problem with Web Services

Hello Lotus Professionals,

I am testing with web services, trying to find out a way to consume a web service from a Domino application with no success.

I find some Java Agent samples and I am using SOAPConnect for LS’s JAR Files (soap.jar, xercesImpl.jar, mail.jar, activation.jar, xmlParsersAPI.jar) and the original Notes RNext xml4J.jar (the one in SOAP Connect doesn’t have the org.w3c.dom package). But when i try to run the agents it throws a Java exception at the line where I do the invocation of the web service.

Response resp = call.invoke (url, “”)

The Java exception is the following:

java.lang.NoSuchMethodError: org.w3c.dom.Node: method getNamespaceURI()Ljava/lang/String; not found

at org.apache.soap.util.xml.QName.(QName.java:80)

at org.apache.soap.util.xml.QName.matches(QName.java:146)

at org.apache.soap.Envelope.unmarshall(Envelope.java:237)

at org.apache.soap.rpc.Call.invoke(Call.java:273)

at TemperatureAgent.getTemperature(TemperatureAgent.java:69)

at TemperatureAgent.NotesMain(TemperatureAgent.java:27)

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

at lotus.domino.NotesThread.run(NotesThread.java:215)

At first it seemed that the org.w3c.dom.Node class didn’t have the getNamespaceURI method. But when I typed

javap org.w3c.dom.Node

the method getNamespaceURI does appear.

I don’t know which can be the problem maybe a conflict between the JAR Files or something. It is really annoying and I starting to get crazy MY MIND IS GONNA BLOW OFF.

Can anyone get me some lights on how to solve this issue and avoid my suicide (LOL just kidding, but I REALLY NEED HELP PLZ).

Thanks in advance,

Oscar A. Ibarra S.

Programmer

IT Brokers Corp.

Panama

Subject: Problem with Web Services

Nevermind I found the solution already.

The original xml4J.jar does contains the org.w3c.dom.Node class but the SOAPConnect’s xmlParserAPIs.jar too, so there was the conflict and thats why the SOAPConnect’s xml4J.jar doesn’t have de org.w3c.dom package.

What I did is to replace the original xml4J.jar with the SOAPConnect’s one and problem solved.

Subject: RE: Problem with Web Services

I am facing problem when calling webservice in lotus notes. Getting errors

error message: java.lang.NoSuchMethodError: org.w3c.dom.Node: method getNamespaceURI()Ljava/lang/String; not found

at org.apache.soap.util.xml.QName.<init>(QName.java:78)

at org.apache.soap.util.xml.QName.matches(QName.java:146)

at org.apache.soap.Envelope.unmarshall(Envelope.java:237)

at org.apache.soap.rpc.Call.invoke(Call.java:273)

at SOAPCall.NotesMain(SOAPCall.java:43)

at lotus.domino.AgentBase.runNotes(AgentBase.java:169)

at lotus.domino.NotesThread.run(NotesThread.java:204)

It would be great if i could help from anyone

Subject: RE: Problem with Web Services

Which version of Notes client are you using?Using SOAPConnect?

You followed the installation proc. for it, of course? (Renamed XML4j.jar, put soap.jar, xercesImpl.jar, mail.jar, activation.jar, xmlParsersAPI.jar from the toolkit in both dirs).

You have to implement it on the client, no matter if your db is on server the client’s virtual machine is used.

Hope this helps,

Marko