Hello,

I'm trying to develop a web service from the top down (wsdl first) and
then deploy the service in a war file containing a server-config.wsdd.

I'm only guessing at how to construct a war that contains a hardcoded
wsdl, as all the documentation and examples I find assume that the
wsdl is generated.

Below is an outline of what I am attempting to do.  I realize that the
"targetService is null" failure I ultimately get is a general indication
that I don't have things configured right.  I'm looking for guidance on
what I might be missing.

Thanks,

Dale

1. I am using JDK 1.5.0, Axis 1.2.1 and the Axistools-maven-plugin for
  maven2.

2. I wrote a wsdl by hand and used wsdl2java to generate client stubs
  and "deploy.wsdd" file.

3. Built a war file containing Axis jars in the WEB-INF/lib and:

  a. server-config.wsdd
     i.(This file I copied from deploy.wsdd)
     ii.(To this file I added <wsdlFile>/MyService.wsdl</wsdlFile>

  b. MyService.wsdl in WEB-INF/classes
     i. This wsdl contains the following in the service declaration:
        <wsdlsoap:address
        location="http://localhost:8080/mywar/services/MyService"/>

  c. web.xml
     i. Apache-Axis Servlet + Mapping
     ii. Axis Admin Servlet + Mapping
     iii. SOAPMonitorService + Mapping

4. Deploy the war on jboss-4.0.5.GA.

  a. If I point a browser at the endpoint url shown in 3.b.i above, I
     get the "Hi there, this is an AXIS service!" message.

5. From the Java client side:

  a. Create an instance of the generated ServiceLocator class using the
     default constructor.

  b. Use the locator to get an instance of the service.

  c. When I try to invoke a method on the service I get: "The Axis engine
     could not find a target service to invoke!  targetService is null"

6. Start all over with Axis 1.4 and get the same results.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to