unexpected element type: QName vs. string

From: Robert Lowe <rmlowe_at_RMLOWE.COM>
Date: Wed, 12 Mar 2003 02:25:39 +0800

As a learning exercise, I'm trying to invoke the Web services
using JAX-RPC. I have the Web Service Developers Kit version 1.1, with
JAX-RPC 1.0.3.

I have run the wscompile command against the WSDL descriptor, using the
attached config.xml file, with a command line of the form:

wscompile -d classes -gen -keep -s src -verbose config.xml

This works fine; I generate javadocs from the generated source files, and
package the classes in a JAR file. I then try to invoke the service using
the attached Java client ( I get the exception shown
below. It looks as though some element or attribute name can't be converted
to a QName, but I cannot tell why.

Obviously it would be easier to debug this if I could intercept the actual
SOAP message. I'm wondering what would be the easiest way to do this--would
I need to write a handler?

Thanks in advance for any help.


java.rmi.RemoteException: Runtime exception; nested exception is:
 unexpected element type: expected={}QName,

unexpected element type: expected={}QName,






 at com.sun.xml.rpc.client.StreamingSender._send(


 at amazon.AmazonClient.doKeywordSearch(

 at amazon.AmazonClient.main(

Robert Lowe

+852 9520 4722