Hi,
I'm developing a service that generates an EndpointReference and returns it
to the client to address future requests.
I have done this:
Document doc =
DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
DOMResult result = new DOMResult(doc);
jaxb.createMarshaller().marshal(id, result);
return (W3CEndpointReference)
endpoint.getEndpointReference(doc.getDocumentElement());
Where the endpoint object is the Endpoint created via:
<jaxws:endpoint xmlns:counter="http://counter.com/service"
id="counter"
implementor="#counterService"
address="/counter"
serviceName="counter:CounterService"
implementorClass="com.counter.CounterPortType"/>
in Spring.
My problem is that when I deploy my service in a servlet, the address in the
EndpointReference is just "/counter" instead of the full url. Am I misusing
the getEndpointReference() method? Is there another way that I can create
an appropriate epr (short of explicitly passing in the fully address)?
Thanks,
Tom
--
Tom Howe
Senior Software Engineer
Distributed Systems Lab
University of Chicago/Argonne National Laboratory
Sent from Chicago, Illinois, United States