Newbie needs help generating WS Consumer Stubs
Hi
I am new to Java and Web Services and need to generate consumer stubs for a system that will consume a Web Service. The service provider has sent me a wsdl and about 80 supporting xsd files.
I am using wscompile on Windows and Linux, with a config.xml file specifying the WSDL and package name. I also tried a <namespaceMappingRegistry> in the config.xml, with the same result.
When I run wscompile I get the error messages:
warning: encountered 375 unrecognized type(s)
error: modeler error: model error: undeclared namespace prefix: ""
I have run wscompile successfully on a wsdl that was associated with one xsd. Is there something I need to do to have it handle multiple XSD's with (possibly) nested definitions?
Thanks in advance
John Schroeder
john.schroeder@marriott.com
[849 byte] By [
John0623a] at [2007-11-27 6:44:39]

# 1
If the WSDLs are document/literal or rpc/literal, I would strongly suggest using JAX-WS. It is much more robust and faster than JAX-RPC. JAX-WS is the next generation Web Services API replacing the older JAX-RPC api.
You can download JAX-WS from http://jax-ws.dev.java.net.Once you download it you can simply run wsimport on the wsdl file, no need for a config.xml file etc.
# 2
> If the WSDLs are document/literal or rpc/literal, I
> would strongly suggest using JAX-WS. It is much more
> robust and faster than JAX-RPC. JAX-WS is the next
> generation Web Services API replacing the older
> JAX-RPC api.
>
> You can download JAX-WS from
> http://jax-ws.dev.java.net.Once you download it
> you can simply run wsimport on the wsdl file, no
> need for a config.xml file etc.
I will get the JAX-WS tools. is there anything special I need to do with them to be sure the nested XSD's are included?
Thanks
John
# 4
> If the WSDL includes them with an import using a
> relative path you should be fine. If not, you will
> have to modify the imports to be relative.
I will give that a shot. thanks. if it works you get 5 Stars!:)if not I will ask some more questions :)
Thanks again
John