using http://localhost:8080/test/webservices/Calculator?wsdl (my webapp is
called test) works.
here is my code:
@Test
public void test() throws Exception {
Service calculatorService = Service.create(
new URL("
http://localhost:8080/test/webservices/Calculator?wsdl"),
new QName("http://superbiz.org/wsdl", "CalculatorService"));
assertNotNull(calculatorService);
CalculatorWs calculator =
calculatorService.getPort(CalculatorWs.class);
assertEquals(10, calculator.sum(4, 6));
assertEquals(12, calculator.multiply(3, 4));
}
- Romain
2012/3/1 slawek <s.wojciechowski@gmail.com>
> Hello,
>
> Unfortunetly bellow links are incorrect. I think problem is connected with
> information:
>
> ...
> Caused by: org.apache.cxf.service.factory.ServiceConstructionException:
> Failed to create service.
> ...
> Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR:
> com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
> ...
>
> This message was generated by junit test. But when I try to see wsdl file
> via browser, errors aren't generate.
>
> Thank for help.
>
> Best Regards
> sw
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/simple-webservice-on-eclise-tp4432643p4434759.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
|