Hi,
I'm new to
Java EE and web services and am trying to follow the Java EE 5 Tutorial. I'm using NetBeans 6.0.1. Working from the examples, I want to run the helloservice web service and simpleclient.
Using NetBeans I can deploy the service and
test it. This seems to be working fine and
http://localhost:8080/helloservice/HelloService?wsdl and
http://localhost:8080/helloservice/HelloService?Tester both show the desired pages.
However, there are errors with the simpleclient. I get an error (posted at the end) when I try and run simpleclient. The errors occur because of the import statements:
import helloservice.endpoint.HelloService;
import helloservice.endpoint.Hello;
The error "package helloservice.endpoint does not exist" is present in the code. I guess it's configuration errors and something to do with wsimport, but shouldn't this be done automatically by NetBeans?
I have created another web services client using the 'new' -> 'web services client' NetBeans option, which works fine with the helloservice. It contains no import statements and the resultant project layout and client classes look very different to the simpleclient example.
I would appreciate any clarification or pointers in the right direction,
Thanks
Deborah
[code]
init:
deps-clean:
Deleting directory C:\Documents and Settings\debgre\My Documents\NetBeansProjects\examples\jaxws\simpleclient\build
clean:
init:
deps-jar:
wsimport-init:
Created dir: C:\Documents and Settings\debgre\My Documents\NetBeansProjects\examples\jaxws\simpleclient\build\generated\wsimport\client
Created dir: C:\Documents and Settings\debgre\My Documents\NetBeansProjects\examples\jaxws\simpleclient\build\generated\wsimport\binaries
wsimport-client-check-HelloService:
wsimport-client-HelloService:
Consider using <depends>/<produces> so that wsimport won't do unnecessary compilation
parsing WSDL...
[WARNING] s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs

ocumentation'. Saw 'Web Services'.
line 3 of
http://127.0.0.1:8080/helloservice/HelloService/__container$publishing$subctx/WEB-INF/wsdl/HelloService_schema1.xsd [WARNING] s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs

ocumentation'. Saw 'Web Services'.
line 6 of
http://127.0.0.1:8080/helloservice/HelloService/__container$publishing$subctx/WEB-INF/wsdl/HelloService_schema1.xsd [WARNING] s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs

ocumentation'. Saw 'Endpoint
'.
line 11 of
http://127.0.0.1:8080/helloservice/HelloService/__container$publishing$subctx/WEB-INF/wsdl/HelloService_schema1.xsd [WARNING] s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs

ocumentation'. Saw 'Information
'.
line 14 of
http://127.0.0.1:8080/helloservice/HelloService/__container$publishing$subctx/WEB-INF/wsdl/HelloService_schema1.xsd [WARNING] s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs

ocumentation'. Saw 'Service Name:'.
line 18 of
http://127.0.0.1:8080/helloservice/HelloService/__container$publishing$subctx/WEB-INF/wsdl/HelloService_schema1.xsd [WARNING] s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs

ocumentation'. Saw '{http://endpoint.helloservice/}HelloService'.
line 18 of
http://127.0.0.1:8080/helloservice/HelloService/__container$publishing$subctx/WEB-INF/wsdl/HelloService_schema1.xsd [WARNING] s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs

ocumentation'. Saw 'Port Name:'.
line 18 of
http://127.0.0.1:8080/helloservice/HelloService/__container$publishing$subctx/WEB-INF/wsdl/HelloService_schema1.xsd [WARNING] s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs

ocumentation'. Saw '{http://endpoint.helloservice/}HelloPort'.
line 18 of
http://127.0.0.1:8080/helloservice/HelloService/__container$publishing$subctx/WEB-INF/wsdl/HelloService_schema1.xsd [WARNING] s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs

ocumentation'. Saw 'Address:'.
line 21 of
http://127.0.0.1:8080/helloservice/HelloService/__container$publishing$subctx/WEB-INF/wsdl/HelloService_schema1.xsd [WARNING] s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs

ocumentation'. Saw 'http://127.0.0.1:8080/helloservice/HelloService'.
line 21 of
http://127.0.0.1:8080/helloservice/HelloService/__container$publishing$subctx/WEB-INF/wsdl/HelloService_schema1.xsd [WARNING] s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs

ocumentation'. Saw 'WSDL:'.
line 21 of
http://127.0.0.1:8080/helloservice/HelloService/__container$publishing$subctx/WEB-INF/wsdl/HelloService_schema1.xsd [WARNING] s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs

ocumentation'. Saw 'http://127.0.0.1:8080/helloservice/HelloService?wsdl'.
line 21 of
http://127.0.0.1:8080/helloservice/HelloService/__container$publishing$subctx/WEB-INF/wsdl/HelloService_schema1.xsd [WARNING] s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs

ocumentation'. Saw 'Implementation class:'.
line 21 of
http://127.0.0.1:8080/helloservice/HelloService/__container$publishing$subctx/WEB-INF/wsdl/HelloService_schema1.xsd [WARNING] s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs

ocumentation'. Saw 'helloservice.endpoint.Hello'.
line 21 of
http://127.0.0.1:8080/helloservice/HelloService/__container$publishing$subctx/WEB-INF/wsdl/HelloService_schema1.xsd [WARNING] s4s-elt-schema-ns: The namespace of element 'html' must be from the schema namespace, 'http://www.w3.org/2001/XMLSchema'.
line 1 of
http://127.0.0.1:8080/helloservice/HelloService/__container$publishing$subctx/WEB-INF/wsdl/HelloService_schema1.xsd [WARNING] s4s-elt-invalid: Element 'html' is not a valid element in a schema document.
line 1 of
http://127.0.0.1:8080/helloservice/HelloService/__container$publishing$subctx/WEB-INF/wsdl/HelloService_schema1.xsd [WARNING] src-import.2: The root element of document 'http://127.0.0.1:8080/helloservice/HelloService/__container$publishing$subctx/WEB-INF/wsdl/HelloService_schema1.xsd' has to have the namespace name 'http://www.w3.org/2001/XMLSchema' and the local name 'schema'.
line 1 of
http://127.0.0.1:8080/helloservice/HelloService/__container$publishing$subctx/WEB-INF/wsdl/HelloService_schema1.xsd [ERROR] Unexpected <html> appears at line 1 column 7
line 1 of
http://127.0.0.1:8080/helloservice/HelloService/__container$publishing$subctx/WEB-INF/wsdl/HelloService_schema1.xsd wsimport-client-generate:
Created dir: C:\Documents and Settings\debgre\My Documents\NetBeansProjects\examples\jaxws\simpleclient\build\jar
Copying 3 files to C:\Documents and Settings\debgre\My Documents\NetBeansProjects\examples\jaxws\simpleclient\build\jar\META-INF
wsimport-client-compile:
Compiling 1 source file to C:\Documents and Settings\debgre\My Documents\NetBeansProjects\examples\jaxws\simpleclient\build\jar
C:\Documents and Settings\debgre\My Documents\NetBeansProjects\examples\jaxws\simpleclient\src\java\simpleclient\HelloClient.java:13: package helloservice.endpoint does not exist
import helloservice.endpoint.HelloService;
C:\Documents and Settings\debgre\My Documents\NetBeansProjects\examples\jaxws\simpleclient\src\java\simpleclient\HelloClient.java:14: package helloservice.endpoint does not exist
import helloservice.endpoint.Hello;
C:\Documents and Settings\debgre\My Documents\NetBeansProjects\examples\jaxws\simpleclient\src\java\simpleclient\HelloClient.java:19: cannot find symbol
symbol : class HelloService
location: class simpleclient.HelloClient
static HelloService service;
C:\Documents and Settings\debgre\My Documents\NetBeansProjects\examples\jaxws\simpleclient\src\java\simpleclient\HelloClient.java:39: cannot find symbol
symbol : class Hello
location: class simpleclient.HelloClient
Hello port = service.getHelloPort();
4 errors
BUILD FAILED (total time: 1 second)
[]/code