users@jax-rpc.java.net

Re: Problem parsing Amazon AWSE web services

From: Dennis Piccioni <DennisPiccioni_at_gmail.com>
Date: Wed, 19 Sep 2007 17:23:57 -0500

Hi Doug,

thanks for your reply. This got me thinking in another direction. It
turns out that the reason I could not select JAX-WS was because
JAX-RPC was already added as a library to the project. Apparently this
makes JAX-RPC the default and does not let you switch. So I removed
the library and sure enough I was able to use JAX-WS instead.

However, now the compilation did not complete due to something else:
    wscompile-init:
    C:\java\projects\NetBeans\books\nbproject\build-impl.xml:338:
taskdef class com.sun.xml.rpc.tools.ant.Wscompile cannot be found
    BUILD FAILED (total time: 0 seconds)

The line the error report points to is:
    <taskdef classname="com.sun.xml.rpc.tools.ant.Wscompile"
classpath="${wscompile.classpath}" name="wscompile"/>




On Wed, 19 Sep 2007 14:34:30 -0700, Doug Kohlert
<Doug.Kohlert_at_Sun.COM> wrote:

>This WSDL is uses the document/literal style. You would be much better
>off using JAX-WS. I am not sure why NetBeans 6 is not allowing you to
>choose JAX-WS, unless you have specified Java EE 4. I have successfully
>imported the WSDL with NetBeans 5.5.1.
>
>Dennis Piccioni wrote:
>> Using Netbeans 6 beta 1 Java SE edition. I also installed the plugins
>> for XML, WSDL and Web Services.
>>
>> When I add a Web Service Client from this WSDL, using JAX-RPC (the
>> only choice, it is the default in the 'JAX Version' combo box, which
>> is disabled:
>> http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl,
>> building always generates these errors:
>>
>> Copying 1 file to
>> C:\java\projects\NetBeans\books\build\generated\wsclient\wsdl
>> error: the following naming conflicts occurred:
>> amazon.ListType_Enumeration
>> ...
>> wscompile failed
>> BUILD FAILED (total time: 1 second)
>>
>> where 'amazon' is the package name.
>>
>>
>> I Googled this and found this reply in a Sun forum:
>> WSDL:
>>
>> http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl
>> Is not intended for current version of Java ME web services
>> (JSR172) due to unsupported data types.
>>
>> but I'm using Java SE, not ME.
>>
>> Regards,
>> Dennis
>>
>> Regards,
>> Dennis
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
>> For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>>
>>

Regards,
Dennis