Hi!

I'm having trouble with accessing my Axis service that's running on Tomcat
4.0.3. I've successfully deployed a simple service (Java class with a
method that returns a String). I've tested it with the
org.apache.axis.client.AdminClient list -command and it returns the
service:
...<service name="TestService">
  <parameter name="methodName" value="getText "/>
  <parameter name="className" value="com.sysline.mca.axis.Test"/>
 </service>...


But when I try to invoke the service with a Java client the following
exception occurs:

"The AXIS engine could not find a target service to invoke!  targetService
is null
      at org.apache.axis.message.SOAPFaultBuilder.endElement(Unknown
Source)
      at
org.apache.axis.encoding.DeserializationContextImpl.endElement(Unknown
Source)
      at
org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)..."

The client looks like this (I'm using Axis beta1-rc2).

package com.sysline.mca.axis;

import java.io.*;
import java.net.URL;
import org.apache.axis.client.*;
import javax.xml.rpc.namespace.QName;

public class TestClient
{
     private static final String endpoint
= "http://localhost:8080/axis/servlet/AxisServlet";;

     public TestClient()
     {
          try
          {

               Service service = new Service();
               Call call = (org.apache.axis.client.Call)service.createCall
();
               URL endPointURL =  new URL(endpoint);
               call.setTargetEndpointAddress(endPointURL);
               call.invoke
("http://localhost:8080/axis/services/TestService";, "getText", new Object[]
{"Test"});
          }
          catch (Exception e)     { e.printStackTrace();   }
     }

     public static void main(String[] args)
     {
          TestClient testClient1 = new TestClient();
     }
}



Thanks for any help!

-Sebastian-

Reply via email to