wsimport « wsdl « Java Enterprise Q&A

1. Either WSDL or wsimport and wsdl (mono) are horribly broken

EDIT I started off with the example given below, but I have now:

  • Tried the example from the W3C spec. After fixing another error (binding was called StockQuoteSoapBinding in one place, StockQuoteBinding ...

2. wsimport "Cannot resolve the name..."

I've been trying to import the following web service: with ${JAVA_HOME}/bin/wsimport:

wsimport -version
JAX-WS RI 2.1.6 in JDK 6
but I got the following error:
parsing WSDL...

[WARNING] src-resolve: Cannot resolve the name ...

3. How to generate a web service from a WSDL

I know this question has been asked a few times, but I checked the stackoverflow history/questions and it does not quite answer what I am trying to do. I have a ...

4. WSDL with soap-rpc-style does not compile

I'm using this wsdl-file to describe my webservice:

<?xml version="1.0" encoding="UTF-8" ?>
<wsdl:definitions targetNamespace="" name="Knowledgebase"
    xmlns:wsdl="" xmlns:wsp="" xmlns:tns=""
    xmlns:xsd="" xmlns:soap=""
    xmlns:http="" xmlns:soapenc=""

5. wsimport problem with Exception in thread "main" java.lang.NullPointerException

I am generating a web service client using wsimport but I get an error like this Exception in thread "main" java.lang.NullPointerException at ...

6. wsimport not writing code

I've setup a basic web service, I can see it running by typing in the local host url, and can see it using wcftestclient. I'm trying to use wsimport to generate code ...