Reputation: 189
I'm developing a new web service at my company. We have a POJO application server communicating with the wxternal clients through CORBA and RMI. Just to make things easier for myself I decided to test a possibility to expose the web service without a servlet container.
Here's the essential code
public class ServiceLauncher {
private Endpoint endpoint;
public ServiceLauncher(){
endpoint = Endpoint.create(new ServiceServer());
endpoint.publish("http://0.0.0.0:1234/Service");
}
}
Connecting to http://localhost
:1234/Service?wsdl works fine. Web Service works also. However, testing it through soapUI fails due to unavailable schemas at certain addresses imported in the wsdl file. The error I face is
404 Not Found No context found for request
Is there a way to make those xsd files accessible to clients?
Upvotes: 0
Views: 1786
Reputation: 189
That was a big mistake on my part. I was too much focused on how files reside in the project and how they are accessible within an already implemented service (we're making a copy of something existing) that I completely overlooked the generated wsdl (i've seen too much of it lately). All xsd files are accessible but with different url.
I was expecting (tested on the existing service) something like http://foo:1234/xsd/Entity.xsd
instead I got http://foo:1234/Service?xsd=1
Upvotes: 1