I did a quick interview with DZone about my new company, InfraDNA, which they published on their website. Thank you DZone for the opportunity!
I did a quick interview with DZone about my new company, InfraDNA, which they published on their website. Thank you DZone for the opportunity!
Hallo,
I can not use an application server and so I have to use JAX-WS 2.2 standalone.
In my project I have compiled an given wsdl file an created the java-classes with jax-ws.
Then I wrote a very simple server an client for testing the communication.
I have tried two possibilities for publish the endpoint.
a) direct publish is OK ( Endpoint.publish(“http://localhost:9090/NewWebService”, new NewWebService()); )
b) publish with use of a Web Context :
…
Endpoint endpoint = Endpoint.create(new NewWebService());
HttpContext context = server.createContext(“/NewWebService”);
endpoint.publish(context);
..
with this server I can connect, but I can not call any operation:
com.sun.xml.ws.client.ClientTransportException: The server sent HTTP status code 404: Not Found
http://localhost:9090/NewWebService (this page):
Address: http://localhost:9090
WSDL: http://localhost:9090?wsdl
and the generated wsdl is wrong:
http://localhost:9090/NewWebService?wsdl:
…
schemaLocation=”http://localhost:9090?xsd=1″
…
…
What can be wrong with my code?
ps.
(code with JAX-WS 2.1.7 library is OK, with JAX-WS 2.2 is wrong)
I’m sorry, but please ask JAX-WS questions in http://jax-ws.dev.java.net/
wondering to how update “Build other projects” -> “Projects to build”
on the fly. have parent job that creates children. need children
to be built by parent.