NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

JAX-RPC vs. JAX-WS web service client

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
danny5



Joined: 27 Apr 2010
Posts: 3

PostPosted: Tue Apr 27, 2010 8:27 pm    Post subject: JAX-RPC vs. JAX-WS web service client Reply with quote

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



NB - WS Client error.gif
 Description:
 Filesize:  10.49 KB
 Viewed:  6849 Time(s)

NB - WS Client error.gif


Back to top
dlmerryweather



Joined: 10 Feb 2010
Posts: 7

PostPosted: Wed Apr 28, 2010 4:18 pm    Post subject: Re: JAX-RPC vs. JAX-WS web service client Reply with quote

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

PostPosted: Wed Apr 28, 2010 6:15 pm    Post subject: Imported wsdl Reply with quote

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



wsdl methods.gif
 Description:
 Filesize:  7.8 KB
 Viewed:  6838 Time(s)

wsdl methods.gif



source.gif
 Description:
 Filesize:  3.53 KB
 Viewed:  6838 Time(s)

source.gif



nb tutorial.gif
 Description:
 Filesize:  8.45 KB
 Viewed:  6838 Time(s)

nb tutorial.gif


Back to top
danny5



Joined: 27 Apr 2010
Posts: 3

PostPosted: Wed Apr 28, 2010 6:44 pm    Post subject: generated classes Reply with quote

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

PostPosted: Wed Apr 28, 2010 7:56 pm    Post subject: Re: JAX-RPC vs. JAX-WS web service client Reply with quote

Check the "files" tab and look under build:generated-sources.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo