Discussion:
Delete web service client in NetBeans
Julie
2010-06-21 17:34:25 UTC
Permalink
Hi,

I followed the lab instruction to create web service client in
NetBeans in a few of the examples. It's fairly easy to do that and the
code are generated based on the WSDL provided. However, after I
created a web service client to a wrong project, I didn't find a way
to get rid of the wrong code. Does any one know how to do it? Thanks!

Thanks,
Julie
--
You received this message because you are subscribed to the Google Groups "Web Services and SOA Programming Online Training Course by Sang Shin" group.
To post to this group, send email to webservicesprogramming-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to webservicesprogramming+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/webservicesprogramming?hl=en.
Michèle Garoche
2010-06-22 06:06:30 UTC
Permalink
Post by Julie
Hi,
I followed the lab instruction to create web service client in
NetBeans in a few of the examples. It's fairly easy to do that and the
code are generated based on the WSDL provided. However, after I
created a web service client to a wrong project, I didn't find a way
to get rid of the wrong code. Does any one know how to do it? Thanks!
I've taken the example of fromjavase6 client, but it should apply more
or less to any web services client.

1 - From outside Netbeans, go to your project directory and delete:
build folder
catalog.xml file
xml-resources folder
nbproject/jax-ws.xml file
nbproject/jaxws-build.xml file
src/META-INF folder

2 - Close the project

3 - Reopen it - Very important, NetBeans will clean up as much as it
can here

4 - Right click on META-INF.wsdl inside Source packages and choose
Delete

5 - Right click on AdNumbersImplService inside Web Service References
and choose Delete

6 - Right click on jax-ws-catalog.xml inside Source Packages/META-INF
and choose Delete

7 - Right click on META-INF inside Source Packages and choose Delete


Now you should have retrieved a normal java client application

Obviously if you have another good web services inside the
application, you should be more cautious and examine all the files to
delete only the offending parts.

The best way to see what is to be removed is to make another project
with all the same files as the offending ones except the part where
you add the bad web services and use a merge/diff program to see the
differences.

Now, in production, always backup the project in another place before
adding a web services, this way you will save you some troubles.

Michèle Garoche
--
You received this message because you are subscribed to the Google Groups "Web Services and SOA Programming Online Training Course by Sang Shin" group.
To post to this group, send email to webservicesprogramming-/***@public.gmane.orgm.
To unsubscribe from this group, send email to webservicesprogramming+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/webservicesprogramming?hl=en.
Julie
2010-06-24 00:48:43 UTC
Permalink
Hi Michele,

It's quite a lot of steps. But I did successfully remove the generated web
service client. I couldn't imagine how you figure this out :). Your
suggestion is important too. Thanks very much for your help!

Thanks,
Julie
Hi,
Post by Julie
I followed the lab instruction to create web service client in
NetBeans in a few of the examples. It's fairly easy to do that and the
code are generated based on the WSDL provided. However, after I
created a web service client to a wrong project, I didn't find a way
to get rid of the wrong code. Does any one know how to do it? Thanks!
I've taken the example of fromjavase6 client, but it should apply more or
less to any web services client.
build folder
catalog.xml file
xml-resources folder
nbproject/jax-ws.xml file
nbproject/jaxws-build.xml file
src/META-INF folder
2 - Close the project
3 - Reopen it - Very important, NetBeans will clean up as much as it can
here
4 - Right click on META-INF.wsdl inside Source packages and choose Delete
5 - Right click on AdNumbersImplService inside Web Service References and
choose Delete
6 - Right click on jax-ws-catalog.xml inside Source Packages/META-INF and
choose Delete
7 - Right click on META-INF inside Source Packages and choose Delete
Now you should have retrieved a normal java client application
Obviously if you have another good web services inside the application, you
should be more cautious and examine all the files to delete only the
offending parts.
The best way to see what is to be removed is to make another project with
all the same files as the offending ones except the part where you add the
bad web services and use a merge/diff program to see the differences.
Now, in production, always backup the project in another place before
adding a web services, this way you will save you some troubles.
Michèle Garoche
--
You received this message because you are subscribed to the Google Groups "Web Services and SOA Programming Online Training Course by Sang Shin" group.
To post to this group, send email to webservicesprogramming-/***@public.gmane.orgm.
To unsubscribe from this group, send email to webservicesprogramming+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/webservicesprogramming?hl=en.
Loading...