Hi all !
I've been baking my noodle over this for some time now!

I'm using: 
jdk 1.4.2_02
jakarta-tomcat 3.3.1a
soap 2.3.1
(java xml pack winter 01)

I have a java class (e.g. World.java) that is ready and uses soap2.3.1 to
communicate with the world.

I have another java class (e.g. Start.java)that is merely a wrapper that
fires
up a communication function in World (World.Communicate).

When I run Start from command line, all is good, the SOAP communication 
works and I get a proper response.

Then I set up Axis 1.1 to publish my Start class as a webservice. The test
functions (wich don't use SOAP2.3.1)
in the Start class work fine which tells me that the webservice is working
but when I call a method that
invokes World.Communicate the webservice returns an exception:
  <soapenv:Fault>
  <faultcode>soapenv:Server.userException</faultcode> 
  <faultstring>java.lang.reflect.InvocationTargetException</faultstring> 
  <detail /> 
  </soapenv:Fault>

I have traced the exception down to the creation of a
org.apache.soap.messaging.Message
in the World.Communicate method:
"Message msg = new Message();"

I think that Axis uses javax.xml.soap.* ... is there a possibility that Axis
is refusing
another version of SOAP running in it's context as running the same code
from command line
works fine?

I cannot use a different soap package for the World class, it must use
org.apache.SOAP

Any ideas ?

Best regards,
Hlynur Ingi Runarsson.

Reply via email to