Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » how to read a WSDL file without using internal classes?
how to read a WSDL file without using internal classes? [message #179529] Thu, 21 September 2006 07:49 Go to next message
Michael Haeberlen is currently offline Michael Haeberlen
Messages: 52
Registered: July 2009
Member
Hello,

I want to use WST to analyse WSDL files. The only way I found to read a WSDL file was adding
org.eclipse.wst.wsdl.internal.util.WSDLResourceFactoryImpl to the ResourceSet's Resource.Factory.Registry.

Since this is an internal package name I was wondering if there are other ways to get it done.

Thanks,
Michael
Re: how to read a WSDL file without using internal classes? [message #179536 is a reply to message #179529] Thu, 21 September 2006 07:57 Go to previous messageGo to next message
Eclipse User
Originally posted by: merks.ca.ibm.com

Michael,

I assume you are running standalone, because I'm pretty sure this
factory is registered to handle *.wsdl via a plugin.xml registration. If
you are running standalone, you need to do such registrations
explicitly, since plugin.xml registration won't take place. In that
case, there might not be any other way than to use this directly. It
seems odd to make something like this internal; I didn't make the
XSDResourceFactoryImpl internal for the XSD model and you'll likely need
that too if your WSDLs imports schemas.


Michael Haeberlen wrote:
> Hello,
>
> I want to use WST to analyse WSDL files. The only way I found to read
> a WSDL file was adding
> org.eclipse.wst.wsdl.internal.util.WSDLResourceFactoryImpl to the
> ResourceSet's Resource.Factory.Registry.
>
> Since this is an internal package name I was wondering if there are
> other ways to get it done.
>
> Thanks,
> Michael
newbie: where default Tomcat web page gone? [message #179654 is a reply to message #179536] Fri, 22 September 2006 05:30 Go to previous messageGo to next message
Mirza Hadzic is currently offline Mirza Hadzic
Messages: 19
Registered: July 2009
Junior Member
Hello,

I started developing Web services (Eclipse 3.2/Tomcat 5.0) using wst
plugin. Problem:

When I start Tomcat from windows startup menu, I can admin Tomcat using
browser on:

http://localhost:8080/

But, if I start server from "servers view" in eclipse, web services I
created work fine, but browser pointed to http://localhost:8080/ shows
only "Directory Listing For /" page. Where is Tomcat admin page?

Regards,

Mirza
Re: newbie: where default Tomcat web page gone? [message #179664 is a reply to message #179654] Fri, 22 September 2006 07:57 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1298
Registered: July 2009
Senior Member
I believe the following recent post ("Re: problem loading localhost:8080
in eclipse" on 9/20) would answer your question:

http://dev.eclipse.org/newslists/news.eclipse.webtools/msg12 103.html

Cheers,
Larry

mirza wrote:
> Hello,
>
> I started developing Web services (Eclipse 3.2/Tomcat 5.0) using wst
> plugin. Problem:
>
> When I start Tomcat from windows startup menu, I can admin Tomcat using
> browser on:
>
> http://localhost:8080/
>
> But, if I start server from "servers view" in eclipse, web services I
> created work fine, but browser pointed to http://localhost:8080/ shows
> only "Directory Listing For /" page. Where is Tomcat admin page?
>
> Regards,
>
> Mirza
Re: newbie: where default Tomcat web page gone? [message #179688 is a reply to message #179664] Fri, 22 September 2006 10:23 Go to previous messageGo to next message
Mirza Hadzic is currently offline Mirza Hadzic
Messages: 19
Registered: July 2009
Junior Member
Yeah that solved it, thanks! perhaps default web page of Eclipse local
Tomcat instance should be text explaining the fact that it is separate
instance and what to un-check if you want to work with main Tomcat instance.

Regards,

Mirza

Larry Isaacs wrote:
> I believe the following recent post ("Re: problem loading localhost:8080
> in eclipse" on 9/20) would answer your question:
>
> http://dev.eclipse.org/newslists/news.eclipse.webtools/msg12 103.html
>
> Cheers,
> Larry
>
> mirza wrote:
>> Hello,
>>
>> I started developing Web services (Eclipse 3.2/Tomcat 5.0) using wst
>> plugin. Problem:
>>
>> When I start Tomcat from windows startup menu, I can admin Tomcat
>> using browser on:
>>
>> http://localhost:8080/
>>
>> But, if I start server from "servers view" in eclipse, web services I
>> created work fine, but browser pointed to http://localhost:8080/ shows
>> only "Directory Listing For /" page. Where is Tomcat admin page?
>>
>> Regards,
>>
>> Mirza
Re: how to read a WSDL file without using internal classes? [message #182209 is a reply to message #179536] Sat, 04 November 2006 03:17 Go to previous messageGo to next message
Saurabh Dravid is currently offline Saurabh Dravid
Messages: 20
Registered: July 2009
Junior Member
Hi Ed,

I also needed to load the WSDL file using WTP plugins, but my plugin works
within eclipse environment. I don't want to use Internal
WSDLResoruceFactoryImpl class directly, so is there any way to use this
class by using any kind of plugin.xml registration. Where can I find more
details for this registraion part. Any help in this regards will be much
appreciated.

Thanks
Re: how to read a WSDL file without using internal classes? [message #182214 is a reply to message #182209] Sat, 04 November 2006 07:49 Go to previous message
Eclipse User
Originally posted by: merks.ca.ibm.com

Saurabh,

Looking at the plugin.xml for org.eclipse.wst.wsdl I can see that it
already registered a parser for *.wsdl files:

<extension point="org.eclipse.emf.ecore.extension_parser">
<parser
type="wsdl"

class="org.eclipse.wst.wsdl.internal.util.WSDLResourceFactoryImpl ">
</parser>
</extension>

So loading a *.wsdl resource should use that registered factory
automatically and you can just use EMF's generic resource APIs to access
it once loaded, i.e., using resource.getContents().get(0) to access to
root object in the resource.


Saurabh Dravid wrote:
> Hi Ed,
>
> I also needed to load the WSDL file using WTP plugins, but my plugin
> works within eclipse environment. I don't want to use Internal
> WSDLResoruceFactoryImpl class directly, so is there any way to use
> this class by using any kind of plugin.xml registration. Where can I
> find more details for this registraion part. Any help in this regards
> will be much appreciated.
>
> Thanks
>
Previous Topic:Restart Tomcat when change tag in JSP
Next Topic:update site for WTP 2.0 milestones and dev builds
Goto Forum:
  


Current Time: Fri Jul 25 09:45:13 EDT 2014

Powered by FUDForum. Page generated in 0.01792 seconds