NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
danny5
Joined: 27 Apr 2010 Posts: 3
|
Posted: Tue Apr 27, 2010 8:27 pm Post subject: JAX-RPC vs. JAX-WS web service client |
|
|
Using NB 6.8
jdk 1.6
I have a j2se application, I am trying to add a web service client from an existing wsdl.
I added this as a JAX-WS client, it is not working, blows up with error
Web Service Client can not be created by JAXWS:wsimport utility
Reason: A class/interface with the same name "xxxxxxxxxxxxx" is already in use. Use a class customization to resolve this conflict.
I am new at web service clients and was attempting to delete the web service reference from my project so I could start over because perhaps I set something wrong in the add wizard. I cannot seem to figure out how to delete the web service reference, right click delete gives me a confirmation of delete box, click ok and the reference is not removed. How do I remove it?
Then, in doing some reading, some information seems to suggest that JAX-WS is a Java EE only way to consume web services.
Is only JAX-RPC available for j2se apps? If that is the case, then how can I remove the JAX-WS reference in my project?
Can anyone nudge me in the right direction?
A little more information. I had to delete the project in order to get rid of the web service reference. I created a new project and attempted to add a new web service client in the following manner:
Right click my project node - New - Web Service Client
In the wizard screen:
- Local File - pointed at a wsdl that I generated from salesforce.com
- No package specified
- Client Style - JAX-WS Style
- Generate Dispatch code - UNchecked
- Click Finish
I get the error in the attachment, looks like a generated class has a conflict, the class is com.sforce.soap.enterprise.DescribeLayout, if I look in the wsdl I only see one complextype descriptor for DescribeLayout. Not sure what I am doing wrong.
Thanks
| Description: |
|
| Filesize: |
10.49 KB |
| Viewed: |
6651 Time(s) |

|
|
|
| Back to top |
|
 |
dlmerryweather
Joined: 10 Feb 2010 Posts: 7
|
Posted: Wed Apr 28, 2010 4:18 pm Post subject: Re: JAX-RPC vs. JAX-WS web service client |
|
|
Danny,
I don't have an answer but I will give you some feedback on your statements to help clarify.
Java SE is a client software.
|
|
| Back to top |
|
 |
danny5
Joined: 27 Apr 2010 Posts: 3
|
Posted: Wed Apr 28, 2010 6:15 pm Post subject: Imported wsdl |
|
|
I was able to import the wsdl in netbeans successfully using JAX-WS, I had to edit the wsdl file before importing.
I expected to see the generated stubs now in my project. I don't see them.
I can see the available methods from the wsdl (wsdl methods.gif)
But I do not see any source files that were generated by the wizard (source.gif)
Not like in the netbeans tutorial (nb tutorial.gif)
http://netbeans.org/kb/docs/websvc/client.html
Any idea what I'm missing, not understanding?
Thanks
| Description: |
|
| Filesize: |
7.8 KB |
| Viewed: |
6640 Time(s) |

|
| Description: |
|
| Filesize: |
3.53 KB |
| Viewed: |
6640 Time(s) |

|
| Description: |
|
| Filesize: |
8.45 KB |
| Viewed: |
6640 Time(s) |

|
|
|
| Back to top |
|
 |
danny5
Joined: 27 Apr 2010 Posts: 3
|
Posted: Wed Apr 28, 2010 6:44 pm Post subject: generated classes |
|
|
a clean and build on the project creates the generated classes, my assumption was that the wizard would create them.
Assumptions = bad
|
|
| Back to top |
|
 |
dlmerryweather
Joined: 10 Feb 2010 Posts: 7
|
Posted: Wed Apr 28, 2010 7:56 pm Post subject: Re: JAX-RPC vs. JAX-WS web service client |
|
|
| Check the "files" tab and look under build:generated-sources.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|