I thought I knew how this works, but I guess I don't.

If I have a "GreeterImpl.java" that says:

@WebService(
        targetNamespace="http://apache.org/hello_world_soap_http";
        serviceName="SOAPService",
        endpointInterface="org.apache.hello_world_soap_http.Greeter",
        )
public class GreeterImpl implements Greeter {

          // blah blah

}

and I do a :

javax.xml.ws.Endpoint.publish("http://localhost:9000";, new GreeterImpl());

How do I figure out what to name the "<http:destination id=****>??

As in some of the examples:
I have a "<http:destination id="{http://apache.org/hello_world_soap_http}SoapPort.http-destination";>

I can see in logging that Spring "pre-instantiates" it as a singleton along with a boatload of other stuff.

And from the log I see:

INFO: Creating Service {http://apache.org/hello_world_soap_http}SOAPService from class demo.hw.server.GreeterImpl

So, my big question is where is "SoapPort" is supposed to come from?

Okay, So, if I change the WebService annotation to 'serviceName="SoapPort"' I see

INFO: Creating Service {http://apache.org/hello_world_soap_http}SoapPort from class demo.hw.server.GreeterImpl

but the implementation still doesn't get "spring" configured.

What am I missing or not getting about this?

Cheers,
-Polar
other than it being in the hello_world.wsdl file. But the server side doesn't appear to use this wsdl file at all (unless it's magic).

I

Reply via email to