Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Scout/SDK/JAXWS-SDK/Create webservice consumer"

< Scout‎ | SDK‎ | JAXWS-SDK
Line 1: Line 1:
 
{{ScoutPage|cat=JAXWS-SDK}}
 
{{ScoutPage|cat=JAXWS-SDK}}
On server node, go to the node 'Webservices (JAX-WS RI 2.1.6)' | 'Consumer' | 'Services'. Right-click on that node to create a new webservice consumer [1].
+
On server node, go to the node 'Webservices (JAX-WS RI 2.1.6)' | 'Consumer' | 'Services'. Right-click on that node to create a new webservice consumer [http://wiki.eclipse.org/Image:OOrg.eclipse.scout.jaxws.CreateConsumer_20.png].
  
 
== Choose WSDL file ==
 
== Choose WSDL file ==
[[Image:Org.eclipse.scout.tutorial.jaxws.JaxWsDependency_1.png|left|300px|Choose WSDL file]]
+
First, you are asked for a [http://en.wikipedia.org/wiki/Web_Services_Description_Language WSDL file] to build the webservice stub for that webservice. Thereto, you have 2 options: Either choose a file from local filesystem or by specifying a URL to download the file. If the WSDL file consists of multiple files such as separate files for service and binding definition, separate files for PortType definition and/or separate files for [http://en.wikipedia.org/wiki/XML_Schema_%28W3C%29 XML schema definitions, use the first option to specify those files over the link 'Add related files'.
  
 
 
In the first wizard step, choose the 2nd option WSDL FROM URL and enter the URL to the WSDL file of the stock quote service provider [2]. In the course of this tutorial this would be http://services.nexus6studio.com/StockQuoteService.asmx?wsdl. By pressing TAB or clicking somewhere outside the URL field, the WSDL file is evaluated. If this is about a valid WSDL file, click Finish to create the webservice consumer. Click here to learn more about webservice consumer creation.
 
 
 
 
 
* Open plugin.xml of your server Plug-In. Go the the 'Dependencies' tab and add <code>org.eclipse.scout.jaxws216</code> as required Plug-In. [http://wiki.eclipse.org/Image:Org.eclipse.scout.tutorial.jaxws.JaxWsDependency_1.png]
 
* In Scout perspective, go to the server node and open the product files listed in Scout Property View. Go the the 'Dependencies' tab and add <code>org.eclipse.scout.jaxws216</code> as required Plug-In [http://wiki.eclipse.org/Image:Org.eclipse.scout.tutorial.jaxws.JaxWsDependency_2.png]. Do that for all product files of server node.
 
* In Scout Explorer, you finally should see the node <code>Webservices (JAX-WS RI 2.1.6)</code>[http://wiki.eclipse.org/Image:Org.eclipse.scout.tutorial.jaxws.JaxWsDependency_3.png] as child of the server node. If not, refresh the server node with "SHIFT+F5" or if it does not help, restart the Eclipse IDE.
 
 
[[Image:Org.eclipse.scout.tutorial.jaxws.JaxWsDependency_1.png|thumb|Add org.eclipse.scout.jaxws216 as required Plug-In in plugin.xml]]
 
[[Image:Org.eclipse.scout.tutorial.jaxws.JaxWsDependency_1.png|thumb|Add org.eclipse.scout.jaxws216 as required Plug-In in plugin.xml]]
 
[[Image:Org.eclipse.scout.tutorial.jaxws.JaxWsDependency_2.png|thumb|Add org.eclipse.scout.jaxws216 as required Plug-In in product files]]
 
[[Image:Org.eclipse.scout.tutorial.jaxws.JaxWsDependency_2.png|thumb|Add org.eclipse.scout.jaxws216 as required Plug-In in product files]]
 
[[Image:Org.eclipse.scout.tutorial.jaxws.JaxWsDependency_3.png|thumb|'Webservices (JAX-WS RI 2.1.6)' node in Scout SDK]]
 
[[Image:Org.eclipse.scout.tutorial.jaxws.JaxWsDependency_3.png|thumb|'Webservices (JAX-WS RI 2.1.6)' node in Scout SDK]]

Revision as of 09:46, 9 November 2011

The Scout documentation has been moved to https://eclipsescout.github.io/. On server node, go to the node 'Webservices (JAX-WS RI 2.1.6)' | 'Consumer' | 'Services'. Right-click on that node to create a new webservice consumer [1].

Choose WSDL file

First, you are asked for a WSDL file to build the webservice stub for that webservice. Thereto, you have 2 options: Either choose a file from local filesystem or by specifying a URL to download the file. If the WSDL file consists of multiple files such as separate files for service and binding definition, separate files for PortType definition and/or separate files for [http://en.wikipedia.org/wiki/XML_Schema_%28W3C%29 XML schema definitions, use the first option to specify those files over the link 'Add related files'.

Add org.eclipse.scout.jaxws216 as required Plug-In in plugin.xml
Add org.eclipse.scout.jaxws216 as required Plug-In in product files
'Webservices (JAX-WS RI 2.1.6)' node in Scout SDK

Back to the top