Problem parsing Amazon AWSE web services

View: New views
5 Messages — Rating Filter:   Alert me  

Problem parsing Amazon AWSE web services

by dens :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
For additional commands, e-mail: users-help@...


Re: Problem parsing Amazon AWSE web services

by Doug Kohlert :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
> For additional commands, e-mail: users-help@...
>
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Problem parsing Amazon AWSE web services

by dens :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...> 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@...
>> For additional commands, e-mail: users-help@...
>>
>>  

Regards,
Dennis

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Problem parsing Amazon AWSE web services

by Doug Kohlert :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dennis,
wscompile is a JAX-RPC tools, I wonder if NBs didn't clean up the build
file properly.  Perhaps you can just comment it out.

Dennis Piccioni wrote:

> 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@...> 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@...
>>> For additional commands, e-mail: users-help@...
>>>
>>>  
>>>      
>
> Regards,
> Dennis
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Problem parsing Amazon AWSE web services

by dens :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Doug,

yes, I created a brand new project and now it compiles.

I now have some other issues with the code that is inserted from the
web reference, but I need to fiddle with that. I'm getting close.
Thanks for the help! It definitely got me going in the right
direction.


On Wed, 19 Sep 2007 15:59:15 -0700, Doug Kohlert
<Doug.Kohlert@...> wrote:

>Dennis,
>wscompile is a JAX-RPC tools, I wonder if NBs didn't clean up the build
>file properly.  Perhaps you can just comment it out.
>

Regards,
Dennis

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...