You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-dev@ws.apache.org by wi...@apache.org on 2005/08/12 22:45:46 UTC

svn commit: r232376 [96/112] - in /webservices/muse/trunk/src/examples/client: ./ bin/ bin/axis/ bin/axis/com/ bin/axis/com/xyz/ bin/org/ bin/org/apache/ bin/org/apache/ws/ bin/org/apache/ws/client/ bin/org/apache/ws/client/async/ bin/org/apache/ws/cli...

Added: webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/model/WsdmClientFactory.html
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/model/WsdmClientFactory.html?rev=232376&view=auto
==============================================================================
--- webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/model/WsdmClientFactory.html (added)
+++ webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/model/WsdmClientFactory.html Fri Aug 12 13:38:04 2005
@@ -0,0 +1,64 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>WsdmClientFactory xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../apidocs/org/apache/ws/client/model/WsdmClientFactory.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*<em class="comment">=============================================================================*</em></em>
+<a name="2" href="#2">2</a>   <em class="comment"> *  Confidential Copyright (c) 2004 Hewlett-Packard Development Company, L.P.  *</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *=============================================================================*</em>
+<a name="4" href="#4">4</a>   <em class="comment"> * Created on Sep 16, 2004</em>
+<a name="5" href="#5">5</a>   <em class="comment"> *</em>
+<a name="6" href="#6">6</a>   <em class="comment"> * $RCSfile: WsdmClientFactory.java,v $ $Revision: 1.1 $</em>
+<a name="7" href="#7">7</a>   <em class="comment"> * $Author: scamp $ $Date: 2004/11/12 21:07:15 $</em>
+<a name="8" href="#8">8</a>   <em class="comment"> * Branch or Tag : $Name:  $</em>
+<a name="9" href="#9">9</a>   <em class="comment"> *</em>
+<a name="10" href="#10">10</a>  <em class="comment"> * ______________Recent Changes_______________________________</em>
+<a name="11" href="#11">11</a>  <em class="comment"> *</em>
+<a name="12" href="#12">12</a>  <em class="comment"> */</em>
+<a name="13" href="#13">13</a>  <strong>package</strong> <a href="../../../../../org/apache/ws/client/model/package-summary.html">org.apache.ws.client.model</a>;
+<a name="14" href="#14">14</a>  
+<a name="15" href="#15">15</a>  <strong>import</strong> java.io.IOException;
+<a name="16" href="#16">16</a>  
+<a name="17" href="#17">17</a>  <strong>import</strong> javax.wsdl.WSDLException;
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  <strong>import</strong> org.apache.ws.client.DynamicSchemaClassBuilder;
+<a name="20" href="#20">20</a>  <strong>import</strong> org.apache.ws.client.model.impl.WsdmClientImpl;
+<a name="21" href="#21">21</a>  
+<a name="22" href="#22">22</a>  <em>/**<em>*</em></em>
+<a name="23" href="#23">23</a>  <em> * @author wire</em>
+<a name="24" href="#24">24</a>  <em> *</em>
+<a name="25" href="#25">25</a>  <em> */</em>
+<a name="26" href="#26">26</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../../org/apache/ws/client/model/WsdmClientFactory.html">WsdmClientFactory</a> {
+<a name="27" href="#27">27</a>      <strong>public</strong> <strong>static</strong> <strong>final</strong> <strong>int</strong> AXIS_CLIENT_TYPE=0;
+<a name="28" href="#28">28</a>      
+<a name="29" href="#29">29</a>      <em>/**<em>*</em></em>
+<a name="30" href="#30">30</a>  <em>     * Creates a WsdmClient in a SOAP client independent manner. Should be used to create</em>
+<a name="31" href="#31">31</a>  <em>     * a WsdmClient.</em>
+<a name="32" href="#32">32</a>  <em>     * </em>
+<a name="33" href="#33">33</a>  <em>     * @param clientType</em>
+<a name="34" href="#34">34</a>  <em>     * @param hostName</em>
+<a name="35" href="#35">35</a>  <em>     * @param servletContext</em>
+<a name="36" href="#36">36</a>  <em>     * @return an initalized WsdmClient.</em>
+<a name="37" href="#37">37</a>  <em>     * @throws WSDLException</em>
+<a name="38" href="#38">38</a>  <em>     * @throws IOException</em>
+<a name="39" href="#39">39</a>  <em>     */</em>
+<a name="40" href="#40">40</a>      <strong>public</strong> <strong>static</strong> <a href="../../../../../org/apache/ws/client/model/WsdmClient.html">WsdmClient</a> create(<strong>int</strong> clientType, String hostName,String servletContext) throws WSDLException, IOException{
+<a name="41" href="#41">41</a>          <strong>return</strong> <strong>new</strong> <a href="../../../../../org/apache/ws/client/model/impl/WsdmClientImpl.html">WsdmClientImpl</a>(hostName,servletContext);        
+<a name="42" href="#42">42</a>      }
+<a name="43" href="#43">43</a>      <em>/**<em>*</em></em>
+<a name="44" href="#44">44</a>  <em>     * Clears the cache of generated classes in the users home directory;</em>
+<a name="45" href="#45">45</a>  <em>     * Should be used in unit tests and to flush generated classes if a wsdl on the</em>
+<a name="46" href="#46">46</a>  <em>     * server has changed and the client classes should be re-generated.</em>
+<a name="47" href="#47">47</a>  <em>     */</em>
+<a name="48" href="#48">48</a>      <strong>public</strong> <strong>static</strong> <strong>void</strong> clearGeneratedClassCache(){
+<a name="49" href="#49">49</a>          DynamicSchemaClassBuilder.dispose();
+<a name="50" href="#50">50</a>      }
+<a name="51" href="#51">51</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/model/WsdmInstance.html
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/model/WsdmInstance.html?rev=232376&view=auto
==============================================================================
--- webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/model/WsdmInstance.html (added)
+++ webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/model/WsdmInstance.html Fri Aug 12 13:38:04 2005
@@ -0,0 +1,73 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>WsdmInstance xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../apidocs/org/apache/ws/client/model/WsdmInstance.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*<em class="comment">=============================================================================*</em></em>
+<a name="2" href="#2">2</a>   <em class="comment"> *  Confidential Copyright (c) 2004 Hewlett-Packard Development Company, L.P.  *</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *=============================================================================*</em>
+<a name="4" href="#4">4</a>   <em class="comment"> * Created on Sep 16, 2004</em>
+<a name="5" href="#5">5</a>   <em class="comment"> *</em>
+<a name="6" href="#6">6</a>   <em class="comment"> * $RCSfile: WsdmInstance.java,v $ $Revision: 1.1 $</em>
+<a name="7" href="#7">7</a>   <em class="comment"> * $Author: scamp $ $Date: 2004/11/12 21:07:15 $</em>
+<a name="8" href="#8">8</a>   <em class="comment"> * Branch or Tag : $Name:  $</em>
+<a name="9" href="#9">9</a>   <em class="comment"> *</em>
+<a name="10" href="#10">10</a>  <em class="comment"> * ______________Recent Changes_______________________________</em>
+<a name="11" href="#11">11</a>  <em class="comment"> *</em>
+<a name="12" href="#12">12</a>  <em class="comment"> */</em>
+<a name="13" href="#13">13</a>  <strong>package</strong> <a href="../../../../../org/apache/ws/client/model/package-summary.html">org.apache.ws.client.model</a>;
+<a name="14" href="#14">14</a>  
+<a name="15" href="#15">15</a>  <strong>import</strong> java.lang.reflect.InvocationTargetException;
+<a name="16" href="#16">16</a>  <strong>import</strong> java.util.Hashtable;
+<a name="17" href="#17">17</a>  
+<a name="18" href="#18">18</a>  <strong>import</strong> javax.xml.namespace.QName;
+<a name="19" href="#19">19</a>  
+<a name="20" href="#20">20</a>  <strong>import</strong> org.apache.xmlbeans.XmlObject;
+<a name="21" href="#21">21</a>  <strong>import</strong> org.xmlsoap.schemas.ws.x2003.x03.addressing.EndpointReferenceType;
+<a name="22" href="#22">22</a>  
+<a name="23" href="#23">23</a>  <em>/**<em>*</em></em>
+<a name="24" href="#24">24</a>  <em> * @author wire</em>
+<a name="25" href="#25">25</a>  <em> *</em>
+<a name="26" href="#26">26</a>  <em> */</em>
+<a name="27" href="#27">27</a>  <strong>public</strong> <strong>interface</strong> <a href="../../../../../org/apache/ws/client/model/WsdmInstance.html">WsdmInstance</a> {
+<a name="28" href="#28">28</a>  
+<a name="29" href="#29">29</a>      <strong>public</strong> <strong>abstract</strong> String getName();
+<a name="30" href="#30">30</a>  
+<a name="31" href="#31">31</a>      <strong>public</strong> <strong>abstract</strong> <strong>void</strong> refresh() throws Exception;
+<a name="32" href="#32">32</a>  
+<a name="33" href="#33">33</a>      <strong>public</strong> <strong>abstract</strong> String[] getPropertyNames() throws Exception;
+<a name="34" href="#34">34</a>  
+<a name="35" href="#35">35</a>      <strong>public</strong> <strong>abstract</strong> XmlObject getPropertyValue(String propertyName) throws Exception;
+<a name="36" href="#36">36</a>  
+<a name="37" href="#37">37</a>      <strong>public</strong> <strong>abstract</strong> XmlObject[] getPropertyValue(QName propertyName) throws Exception;
+<a name="38" href="#38">38</a>  
+<a name="39" href="#39">39</a>      <strong>public</strong> <strong>abstract</strong> <strong>void</strong> setPropertyValue(String propertyName,XmlObject value) throws Exception;
+<a name="40" href="#40">40</a>  
+<a name="41" href="#41">41</a>      <strong>public</strong> <strong>abstract</strong> <strong>void</strong> setPropertyValue(QName propertyName, XmlObject value) throws Exception;
+<a name="42" href="#42">42</a>  
+<a name="43" href="#43">43</a>      <strong>public</strong> <strong>abstract</strong> <a href="../../../../../org/apache/ws/client/model/WsdmOperation.html">WsdmOperation</a>[] getOperations() throws SecurityException, IllegalArgumentException, ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException;
+<a name="44" href="#44">44</a>  
+<a name="45" href="#45">45</a>      <strong>public</strong> <strong>abstract</strong> <a href="../../../../../org/apache/ws/client/model/WsdmOperation.html">WsdmOperation</a> findOperation(String operationName) throws SecurityException, IllegalArgumentException, ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException;
+<a name="46" href="#46">46</a>  
+<a name="47" href="#47">47</a>      <strong>public</strong> <strong>abstract</strong> XmlObject[] invoke(<a href="../../../../../org/apache/ws/client/model/WsdmOperation.html">WsdmOperation</a> operation,
+<a name="48" href="#48">48</a>              Hashtable parameters) throws Exception;
+<a name="49" href="#49">49</a>      
+<a name="50" href="#50">50</a>      <strong>public</strong> <strong>abstract</strong> EndpointReferenceType getEPR() throws Exception;
+<a name="51" href="#51">51</a>  
+<a name="52" href="#52">52</a>      <em>/**<em>*</em></em>
+<a name="53" href="#53">53</a>  <em>     * Requests a list of Topic XPaths.</em>
+<a name="54" href="#54">54</a>  <em>     * @return a list of topic XPaths</em>
+<a name="55" href="#55">55</a>  <em>     */</em>
+<a name="56" href="#56">56</a>      <strong>public</strong> <strong>abstract</strong> String[] getListenerTopics();
+<a name="57" href="#57">57</a>      
+<a name="58" href="#58">58</a>      <strong>public</strong> <a href="../../../../../org/apache/ws/client/model/WsdmResource.html">WsdmResource</a> getParent();
+<a name="59" href="#59">59</a>  
+<a name="60" href="#60">60</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/model/WsdmOperation.html
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/model/WsdmOperation.html?rev=232376&view=auto
==============================================================================
--- webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/model/WsdmOperation.html (added)
+++ webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/model/WsdmOperation.html Fri Aug 12 13:38:04 2005
@@ -0,0 +1,58 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>WsdmOperation xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../apidocs/org/apache/ws/client/model/WsdmOperation.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*<em class="comment">=============================================================================*</em></em>
+<a name="2" href="#2">2</a>   <em class="comment"> *  Confidential Copyright (c) 2004 Hewlett-Packard Development Company, L.P.  *</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *=============================================================================*</em>
+<a name="4" href="#4">4</a>   <em class="comment"> * Created on Sep 16, 2004</em>
+<a name="5" href="#5">5</a>   <em class="comment"> *</em>
+<a name="6" href="#6">6</a>   <em class="comment"> * $RCSfile: WsdmOperation.java,v $ $Revision: 1.1 $</em>
+<a name="7" href="#7">7</a>   <em class="comment"> * $Author: scamp $ $Date: 2004/11/12 21:07:15 $</em>
+<a name="8" href="#8">8</a>   <em class="comment"> * Branch or Tag : $Name:  $</em>
+<a name="9" href="#9">9</a>   <em class="comment"> *</em>
+<a name="10" href="#10">10</a>  <em class="comment"> * ______________Recent Changes_______________________________</em>
+<a name="11" href="#11">11</a>  <em class="comment"> *</em>
+<a name="12" href="#12">12</a>  <em class="comment"> */</em>
+<a name="13" href="#13">13</a>  <strong>package</strong> <a href="../../../../../org/apache/ws/client/model/package-summary.html">org.apache.ws.client.model</a>;
+<a name="14" href="#14">14</a>  
+<a name="15" href="#15">15</a>  <em>/**<em>*</em></em>
+<a name="16" href="#16">16</a>  <em> * </em>
+<a name="17" href="#17">17</a>  <em> * An abstraction for representing an operation. Enables access to</em>
+<a name="18" href="#18">18</a>  <em> * its name and a description of its parameters and there respective</em>
+<a name="19" href="#19">19</a>  <em> * java classes. </em>
+<a name="20" href="#20">20</a>  <em> * @author wire</em>
+<a name="21" href="#21">21</a>  <em> *</em>
+<a name="22" href="#22">22</a>  <em> */</em>
+<a name="23" href="#23">23</a>  <strong>public</strong> <strong>interface</strong> <a href="../../../../../org/apache/ws/client/model/WsdmOperation.html">WsdmOperation</a> {
+<a name="24" href="#24">24</a>      <em>/**<em>*</em></em>
+<a name="25" href="#25">25</a>  <em>     * </em>
+<a name="26" href="#26">26</a>  <em>     * @return The name for this operations</em>
+<a name="27" href="#27">27</a>  <em>     */</em>
+<a name="28" href="#28">28</a>      <strong>public</strong> <strong>abstract</strong> String getName();
+<a name="29" href="#29">29</a>      <em>/**<em>*</em></em>
+<a name="30" href="#30">30</a>  <em>     * </em>
+<a name="31" href="#31">31</a>  <em>     * @return a String[] containing all the operation names for this method.</em>
+<a name="32" href="#32">32</a>  <em>     */</em>
+<a name="33" href="#33">33</a>      <strong>public</strong> <strong>abstract</strong> String[] getParameterNames();
+<a name="34" href="#34">34</a>  
+<a name="35" href="#35">35</a>      <em>/**<em>*</em></em>
+<a name="36" href="#36">36</a>  <em>     * Resolves a parameters type when given its name.</em>
+<a name="37" href="#37">37</a>  <em>     * @param parameterName The name of this parameter</em>
+<a name="38" href="#38">38</a>  <em>     * @return the java class name for this type.</em>
+<a name="39" href="#39">39</a>  <em>     */</em>
+<a name="40" href="#40">40</a>      <strong>public</strong> <strong>abstract</strong> String getParameterType(String parameterName);
+<a name="41" href="#41">41</a>      <em>/**<em>*</em></em>
+<a name="42" href="#42">42</a>  <em>     * @return</em>
+<a name="43" href="#43">43</a>  <em>     */</em>
+<a name="44" href="#44">44</a>      <strong>public</strong> String[] getParameterTypes();
+<a name="45" href="#45">45</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/model/WsdmResource.html
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/model/WsdmResource.html?rev=232376&view=auto
==============================================================================
--- webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/model/WsdmResource.html (added)
+++ webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/model/WsdmResource.html Fri Aug 12 13:38:04 2005
@@ -0,0 +1,59 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>WsdmResource xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../apidocs/org/apache/ws/client/model/WsdmResource.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*<em class="comment">=============================================================================*</em></em>
+<a name="2" href="#2">2</a>   <em class="comment"> *  Confidential Copyright (c) 2004 Hewlett-Packard Development Company, L.P.  *</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *=============================================================================*</em>
+<a name="4" href="#4">4</a>   <em class="comment"> * Created on Sep 16, 2004</em>
+<a name="5" href="#5">5</a>   <em class="comment"> *</em>
+<a name="6" href="#6">6</a>   <em class="comment"> * $RCSfile: WsdmResource.java,v $ $Revision: 1.1 $</em>
+<a name="7" href="#7">7</a>   <em class="comment"> * $Author: scamp $ $Date: 2004/11/12 21:07:15 $</em>
+<a name="8" href="#8">8</a>   <em class="comment"> * Branch or Tag : $Name:  $</em>
+<a name="9" href="#9">9</a>   <em class="comment"> *</em>
+<a name="10" href="#10">10</a>  <em class="comment"> * ______________Recent Changes_______________________________</em>
+<a name="11" href="#11">11</a>  <em class="comment"> *</em>
+<a name="12" href="#12">12</a>  <em class="comment"> */</em>
+<a name="13" href="#13">13</a>  <strong>package</strong> <a href="../../../../../org/apache/ws/client/model/package-summary.html">org.apache.ws.client.model</a>;
+<a name="14" href="#14">14</a>  
+<a name="15" href="#15">15</a>  
+<a name="16" href="#16">16</a>  
+<a name="17" href="#17">17</a>  <em>/**<em>*</em></em>
+<a name="18" href="#18">18</a>  <em> * A representation of a WsdmResource. A resource is a collection of</em>
+<a name="19" href="#19">19</a>  <em> * Managed Instances which share the same interface and it is implied that</em>
+<a name="20" href="#20">20</a>  <em> * they are simillar in function or behavior.</em>
+<a name="21" href="#21">21</a>  <em> * </em>
+<a name="22" href="#22">22</a>  <em> * @author wire</em>
+<a name="23" href="#23">23</a>  <em> *</em>
+<a name="24" href="#24">24</a>  <em> */</em>
+<a name="25" href="#25">25</a>  <strong>public</strong> <strong>interface</strong> <a href="../../../../../org/apache/ws/client/model/WsdmResource.html">WsdmResource</a> {
+<a name="26" href="#26">26</a>      <em>/**<em>*</em></em>
+<a name="27" href="#27">27</a>  <em>     * Returns a name that can be used to represent this resources</em>
+<a name="28" href="#28">28</a>  <em>     * @return</em>
+<a name="29" href="#29">29</a>  <em>     */</em>
+<a name="30" href="#30">30</a>      <strong>public</strong> String getName();
+<a name="31" href="#31">31</a>      <em>/**<em>*</em></em>
+<a name="32" href="#32">32</a>  <em>     * Returns an array of specific managed instances of this type of resource.</em>
+<a name="33" href="#33">33</a>  <em>     * @return an array of managed instances.</em>
+<a name="34" href="#34">34</a>  <em>     * @throws Exception</em>
+<a name="35" href="#35">35</a>  <em>     */</em>
+<a name="36" href="#36">36</a>      <strong>public</strong> <a href="../../../../../org/apache/ws/client/model/WsdmInstance.html">WsdmInstance</a>[] getInstances() throws Exception;
+<a name="37" href="#37">37</a>      <em>/**<em>*</em></em>
+<a name="38" href="#38">38</a>  <em>     * Returns a specific instance. Usually used when a resource id is known in advance.</em>
+<a name="39" href="#39">39</a>  <em>     * @param resourceId</em>
+<a name="40" href="#40">40</a>  <em>     * @return</em>
+<a name="41" href="#41">41</a>  <em>     */</em>
+<a name="42" href="#42">42</a>      <strong>public</strong> <a href="../../../../../org/apache/ws/client/model/WsdmInstance.html">WsdmInstance</a> getInstance(String resourceId);
+<a name="43" href="#43">43</a>      
+<a name="44" href="#44">44</a>      <strong>public</strong> <a href="../../../../../org/apache/ws/client/model/WsdmClient.html">WsdmClient</a> getParent();
+<a name="45" href="#45">45</a>  
+<a name="46" href="#46">46</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/model/impl/WsdmClientImpl.html
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/model/impl/WsdmClientImpl.html?rev=232376&view=auto
==============================================================================
--- webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/model/impl/WsdmClientImpl.html (added)
+++ webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/model/impl/WsdmClientImpl.html Fri Aug 12 13:38:04 2005
@@ -0,0 +1,258 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>WsdmClientImpl xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../apidocs/org/apache/ws/client/model/impl/WsdmClientImpl.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*<em class="comment">=============================================================================*</em></em>
+<a name="2" href="#2">2</a>   <em class="comment"> *  Confidential Copyright (c) 2004 Hewlett-Packard Development Company, L.P.  *</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *=============================================================================*</em>
+<a name="4" href="#4">4</a>   <em class="comment"> * Created on Sep 10, 2004</em>
+<a name="5" href="#5">5</a>   <em class="comment"> */</em>
+<a name="6" href="#6">6</a>   <strong>package</strong> <a href="../../../../../../org/apache/ws/client/model/impl/package-summary.html">org.apache.ws.client.model.impl</a>;
+<a name="7" href="#7">7</a>   
+<a name="8" href="#8">8</a>   <strong>import</strong> java.io.IOException;
+<a name="9" href="#9">9</a>   <strong>import</strong> java.lang.reflect.InvocationTargetException;
+<a name="10" href="#10">10</a>  <strong>import</strong> java.lang.reflect.Method;
+<a name="11" href="#11">11</a>  <strong>import</strong> java.net.URL;
+<a name="12" href="#12">12</a>  <strong>import</strong> java.util.ArrayList;
+<a name="13" href="#13">13</a>  <strong>import</strong> java.util.Date;
+<a name="14" href="#14">14</a>  <strong>import</strong> java.util.Hashtable;
+<a name="15" href="#15">15</a>  
+<a name="16" href="#16">16</a>  <strong>import</strong> javax.naming.OperationNotSupportedException;
+<a name="17" href="#17">17</a>  <strong>import</strong> javax.wsdl.Operation;
+<a name="18" href="#18">18</a>  <strong>import</strong> javax.wsdl.WSDLException;
+<a name="19" href="#19">19</a>  <strong>import</strong> javax.xml.namespace.QName;
+<a name="20" href="#20">20</a>  
+<a name="21" href="#21">21</a>  <strong>import</strong> org.apache.ws.client.DynamicSchemaClassBuilder;
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.ws.client.DynamicSoapClient;
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.ws.client.async.AsyncCallProvider;
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.ws.client.model.WsdmClient;
+<a name="25" href="#25">25</a>  <strong>import</strong> org.apache.ws.client.model.WsdmInstance;
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.ws.client.model.WsdmResource;
+<a name="27" href="#27">27</a>  <strong>import</strong> org.apache.xmlbeans.XmlCursor;
+<a name="28" href="#28">28</a>  <strong>import</strong> org.apache.xmlbeans.XmlObject;
+<a name="29" href="#29">29</a>  <strong>import</strong> org.xmlsoap.schemas.soap.envelope.impl.FaultImpl;
+<a name="30" href="#30">30</a>  <strong>import</strong> org.xmlsoap.schemas.ws.x2003.x03.addressing.EndpointReferenceType;
+<a name="31" href="#31">31</a>  
+<a name="32" href="#32">32</a>  <em>/**<em>*</em></em>
+<a name="33" href="#33">33</a>  <em> * This class represents a remote instance of a Wsdm capable servlet.</em>
+<a name="34" href="#34">34</a>  <em> * @author wire</em>
+<a name="35" href="#35">35</a>  <em> *</em>
+<a name="36" href="#36">36</a>  <em> */</em>
+<a name="37" href="#37">37</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../../../org/apache/ws/client/model/impl/WsdmClientImpl.html">WsdmClientImpl</a> <strong>extends</strong> <a href="../../../../../../org/apache/ws/client/async/AsyncCallProvider.html">AsyncCallProvider</a> implements <a href="../../../../../../org/apache/ws/client/model/WsdmClient.html">WsdmClient</a> {
+<a name="38" href="#38">38</a>      <strong>private</strong> <a href="../../../../../../org/apache/ws/client/model/WsdmResource.html">WsdmResource</a>[] m_resourceCache;
+<a name="39" href="#39">39</a>  	<strong>private</strong> String m_hostname;
+<a name="40" href="#40">40</a>  	<strong>private</strong> String m_servletContext;
+<a name="41" href="#41">41</a>  	<strong>private</strong> <a href="../../../../../../org/apache/ws/client/DynamicSoapClient.html">DynamicSoapClient</a> m_registrySoapClient;
+<a name="42" href="#42">42</a>  	<strong>public</strong> <strong>static</strong> <strong>final</strong> String s_wsdmNamspaceURI=<span class="string">"http://docs.oasis-open.org/wsdm/2004/04/muws-0.5/schema"</span>;
+<a name="43" href="#43">43</a>  	<strong>private</strong> <strong>long</strong> m_lastPingTime;
+<a name="44" href="#44">44</a>  	<em>/**<em>*</em></em>
+<a name="45" href="#45">45</a>  <em>	 * Constructs a new WsdmServer. These servers are expected to be stored in the</em>
+<a name="46" href="#46">46</a>  <em>	 * client apps configurations and passed to this constructor. This constructor</em>
+<a name="47" href="#47">47</a>  <em>	 * does not connect with the server to make any requests but does ask the server</em>
+<a name="48" href="#48">48</a>  <em>	 * for wsdl information.</em>
+<a name="49" href="#49">49</a>  <em>	 * </em>
+<a name="50" href="#50">50</a>  <em>	 * Hostname could be "myhost.com:8080" as an example.</em>
+<a name="51" href="#51">51</a>  <em>	 * serveltContext is the name of the soap servlet hosting the server. an example would be "axis"</em>
+<a name="52" href="#52">52</a>  <em>	 * </em>
+<a name="53" href="#53">53</a>  <em>	 * @throws IOException</em>
+<a name="54" href="#54">54</a>  <em>	 * @throws WSDLException</em>
+<a name="55" href="#55">55</a>  <em>	 * </em>
+<a name="56" href="#56">56</a>  <em>	 */</em>
+<a name="57" href="#57">57</a>  	<strong>public</strong> <a href="../../../../../../org/apache/ws/client/model/impl/WsdmClientImpl.html">WsdmClientImpl</a>(String hostname,String servletContext) throws WSDLException, IOException {
+<a name="58" href="#58">58</a>  		<strong>super</strong>();
+<a name="59" href="#59">59</a>  		
+<a name="60" href="#60">60</a>  		<em class="comment">// Save constructor info</em>
+<a name="61" href="#61">61</a>  		m_hostname=hostname;
+<a name="62" href="#62">62</a>  		m_servletContext=servletContext;
+<a name="63" href="#63">63</a>  		
+<a name="64" href="#64">64</a>  		<em class="comment">// Initalize event support</em>
+<a name="65" href="#65">65</a>  <em class="comment">//		m_propChangeSupport=new PropertyChangeSupport(this);</em>
+<a name="66" href="#66">66</a>  		
+<a name="67" href="#67">67</a>  		<em class="comment">// Create a soap client for registry service access</em>
+<a name="68" href="#68">68</a>  		URL serverURL=<strong>new</strong> URL(<span class="string">"http://"</span>+m_hostname+<span class="string">"/"</span>+servletContext+<span class="string">"/services/registry"</span>);
+<a name="69" href="#69">69</a>  		URL wsdlURL=<strong>new</strong> URL(<span class="string">"http://"</span>+m_hostname+<span class="string">"/"</span>+servletContext+<span class="string">"/services/registry?wsdl"</span>);		
+<a name="70" href="#70">70</a>  		m_registrySoapClient=<strong>new</strong> <a href="../../../../../../org/apache/ws/client/DynamicSoapClient.html">DynamicSoapClient</a>(wsdlURL,serverURL);
+<a name="71" href="#71">71</a>  	}
+<a name="72" href="#72">72</a>  	
+<a name="73" href="#73">73</a>  	<strong>public</strong> <strong>void</strong> pingAsync() throws SecurityException, NoSuchMethodException{
+<a name="74" href="#74">74</a>  	    Method pingMethod=getClass().getMethod(<span class="string">"ping"</span>,<strong>new</strong> Class[]{});
+<a name="75" href="#75">75</a>  	    performAsync(pingMethod,<strong>new</strong> Object[]{},30000);
+<a name="76" href="#76">76</a>  	}
+<a name="77" href="#77">77</a>  	
+<a name="78" href="#78">78</a>  
+<a name="79" href="#79">79</a>      <em class="comment">/*<em class="comment"> (non-Javadoc)</em></em>
+<a name="80" href="#80">80</a>  <em class="comment">	 * @see org.apache.ws.client.model.WsdmClient#ping()</em>
+<a name="81" href="#81">81</a>  <em class="comment">	 */</em>
+<a name="82" href="#82">82</a>  	<strong>public</strong> <strong>long</strong> ping()  {
+<a name="83" href="#83">83</a>  		Date startDate=<strong>new</strong> Date();
+<a name="84" href="#84">84</a>  		
+<a name="85" href="#85">85</a>  		Operation[] operations = m_registrySoapClient.findOperation(<span class="string">"GetResourceProperty"</span>);
+<a name="86" href="#86">86</a>  		<strong>if</strong>(operations.length==0)
+<a name="87" href="#87">87</a>  			<strong>return</strong> -1;
+<a name="88" href="#88">88</a>  		
+<a name="89" href="#89">89</a>  		Operation opGetResoureProperty=operations[0];		
+<a name="90" href="#90">90</a>  		Hashtable params=<strong>new</strong> Hashtable();
+<a name="91" href="#91">91</a>  		params.put(<span class="string">"QName"</span>,<strong>new</strong> QName(s_wsdmNamspaceURI,<span class="string">"Version"</span>));
+<a name="92" href="#92">92</a>  		XmlObject[] responses;
+<a name="93" href="#93">93</a>  			<strong>try</strong> {
+<a name="94" href="#94">94</a>                  responses = m_registrySoapClient.execute(opGetResoureProperty,params);
+<a name="95" href="#95">95</a>              } <strong>catch</strong> (Exception e) {
+<a name="96" href="#96">96</a>                  <strong>return</strong> -1;
+<a name="97" href="#97">97</a>              }
+<a name="98" href="#98">98</a>  		XmlObject response=responses[0];
+<a name="99" href="#99">99</a>  		<strong>if</strong>(response instanceof FaultImpl){
+<a name="100" href="#100">100</a> 			<strong>return</strong> -1;
+<a name="101" href="#101">101</a> 		}
+<a name="102" href="#102">102</a> 		Date endDate=<strong>new</strong> Date();
+<a name="103" href="#103">103</a> 		<strong>long</strong> newPingTime=endDate.getTime()-startDate.getTime();
+<a name="104" href="#104">104</a> 		<strong>long</strong> oldPingTime=m_lastPingTime;
+<a name="105" href="#105">105</a> 		m_lastPingTime=newPingTime;
+<a name="106" href="#106">106</a> <em class="comment">//		m_propChangeSupport.firePropertyChange("LastPingTime",new Long(newPingTime),new Long(m_lastPingTime));		</em>
+<a name="107" href="#107">107</a> 		<strong>return</strong> m_lastPingTime;
+<a name="108" href="#108">108</a> 	}
+<a name="109" href="#109">109</a> 	
+<a name="110" href="#110">110</a>     <em>/**<em>* </em></em>
+<a name="111" href="#111">111</a> <em>	 * Queries the server's registy service and returns its resource id's</em>
+<a name="112" href="#112">112</a> <em>	 * that are available for this resource. </em>
+<a name="113" href="#113">113</a> <em>	 */</em>
+<a name="114" href="#114">114</a> 	<strong>public</strong> String[] getInstances(String resourceName) throws Exception{
+<a name="115" href="#115">115</a> 
+<a name="116" href="#116">116</a> 		Operation[] operations = m_registrySoapClient.findOperation(<span class="string">"findResourcesByServiceName"</span>);
+<a name="117" href="#117">117</a> 		<strong>if</strong>(operations.length==0)
+<a name="118" href="#118">118</a> 			<strong>throw</strong> <strong>new</strong> OperationNotSupportedException(<span class="string">"findResourcesByServiceName could not be found in the Registry service."</span>);
+<a name="119" href="#119">119</a> 		
+<a name="120" href="#120">120</a> 		Operation opGetResoureProperty=operations[0];		
+<a name="121" href="#121">121</a> 		Hashtable params=<strong>new</strong> Hashtable();
+<a name="122" href="#122">122</a> 		params.put(<span class="string">"serviceName"</span>,resourceName);
+<a name="123" href="#123">123</a> 		XmlObject[] responses;
+<a name="124" href="#124">124</a>         responses = m_registrySoapClient.execute(opGetResoureProperty,params);
+<a name="125" href="#125">125</a> 		XmlObject response=responses[0];
+<a name="126" href="#126">126</a> 		<strong>if</strong>(response instanceof FaultImpl){
+<a name="127" href="#127">127</a> 		    FaultImpl fault=(FaultImpl)response;
+<a name="128" href="#128">128</a> 			<strong>throw</strong> <strong>new</strong> Exception(fault.getFaultstring());
+<a name="129" href="#129">129</a> 		}
+<a name="130" href="#130">130</a> 		
+<a name="131" href="#131">131</a> 		EndpointReferenceType[] ERTypes = (EndpointReferenceType[])DynamicSchemaClassBuilder.getProperty(response,<span class="string">"ItemArray"</span>);
+<a name="132" href="#132">132</a> 		ArrayList ret=<strong>new</strong> ArrayList();
+<a name="133" href="#133">133</a> 		<strong>for</strong> (<strong>int</strong> index = 0; index &lt; ERTypes.length; index++) {
+<a name="134" href="#134">134</a>             EndpointReferenceType type = ERTypes[index];
+<a name="135" href="#135">135</a>             
+<a name="136" href="#136">136</a>             <em class="comment">//ReferencePropertiesType rps = type.getReferenceProperties();</em>
+<a name="137" href="#137">137</a>             XmlCursor cursor = type.newCursor();
+<a name="138" href="#138">138</a>             <em class="comment">//cursor.toFirstChild();</em>
+<a name="139" href="#139">139</a>             <em class="comment">// TODO wire TO specific. This must be changed</em>
+<a name="140" href="#140">140</a>             <strong>if</strong>(!cursor.toChild(<strong>new</strong> QName(<span class="string">"urn:proposedstandard.org/muse/addressing"</span>,<span class="string">"ResourceID"</span>))){
+<a name="141" href="#141">141</a>                 cursor.toChild(<strong>new</strong> QName(<span class="string">"http://schemas.xmlsoap.org/ws/2004/08/addressing"</span>,<span class="string">"ReferenceProperties"</span>));
+<a name="142" href="#142">142</a>                 <strong>if</strong>(!cursor.toChild(<strong>new</strong> QName(<span class="string">"urn:proposedstandard.org/muse/addressing"</span>,<span class="string">"ResourceID"</span>))){
+<a name="143" href="#143">143</a>                     <strong>break</strong>;
+<a name="144" href="#144">144</a>                 }
+<a name="145" href="#145">145</a>             }
+<a name="146" href="#146">146</a>             String resourceID = cursor.getTextValue();
+<a name="147" href="#147">147</a>             ret.add(resourceID);
+<a name="148" href="#148">148</a>         }
+<a name="149" href="#149">149</a>         
+<a name="150" href="#150">150</a> 		<strong>return</strong> (String[])ret.toArray(<strong>new</strong> String[0]);
+<a name="151" href="#151">151</a> 	    
+<a name="152" href="#152">152</a> 	 }
+<a name="153" href="#153">153</a> 	
+<a name="154" href="#154">154</a> 	<strong>public</strong> EndpointReferenceType getErpFor(String serviceName,String resourceID) throws Exception{
+<a name="155" href="#155">155</a> 	    Operation[] operations = m_registrySoapClient.findOperation(<span class="string">"findResource"</span>);
+<a name="156" href="#156">156</a> 		<strong>if</strong>(operations.length==0){
+<a name="157" href="#157">157</a> 			<strong>throw</strong> <strong>new</strong> NoSuchMethodException(<span class="string">"Method findResource could not be found."</span>);
+<a name="158" href="#158">158</a> 		}
+<a name="159" href="#159">159</a> 		Operation findResourceOp=operations[0];
+<a name="160" href="#160">160</a> 	    Hashtable params = <strong>new</strong> Hashtable();
+<a name="161" href="#161">161</a> 	    params.put(<span class="string">"serviceName"</span>,serviceName);
+<a name="162" href="#162">162</a> 	    params.put(<span class="string">"id"</span>,resourceID);
+<a name="163" href="#163">163</a> 		XmlObject[] responses = m_registrySoapClient.execute(findResourceOp,params);
+<a name="164" href="#164">164</a> 
+<a name="165" href="#165">165</a> 	    <strong>return</strong> (EndpointReferenceType)responses[0];
+<a name="166" href="#166">166</a> 	    
+<a name="167" href="#167">167</a> 	}
+<a name="168" href="#168">168</a> 	
+<a name="169" href="#169">169</a> 	<strong>public</strong> <a href="../../../../../../org/apache/ws/client/model/WsdmResource.html">WsdmResource</a>[] getResources() throws SecurityException, IllegalArgumentException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, Exception{
+<a name="170" href="#170">170</a> 		<strong>if</strong>(m_resourceCache!=<strong>null</strong>)
+<a name="171" href="#171">171</a> 		    <strong>return</strong> m_resourceCache;
+<a name="172" href="#172">172</a> 	    
+<a name="173" href="#173">173</a> 	    Operation[] operations = m_registrySoapClient.findOperation(<span class="string">"findAllServiceNames"</span>);
+<a name="174" href="#174">174</a> 		<strong>if</strong>(operations.length==0){
+<a name="175" href="#175">175</a> 			<strong>throw</strong> <strong>new</strong> NoSuchMethodException(<span class="string">"Method findAllServiceNames could not be found."</span>);
+<a name="176" href="#176">176</a> 		}
+<a name="177" href="#177">177</a> 		
+<a name="178" href="#178">178</a> 		Operation opGetAllServiceNames=operations[0];		
+<a name="179" href="#179">179</a> 		XmlObject[] responses = m_registrySoapClient.execute(opGetAllServiceNames,<strong>null</strong>);
+<a name="180" href="#180">180</a> 		<strong>if</strong>(responses.length==0){
+<a name="181" href="#181">181</a> 			<strong>return</strong> <strong>new</strong> <a href="../../../../../../org/apache/ws/client/model/WsdmResource.html">WsdmResource</a>[]{};
+<a name="182" href="#182">182</a> 		}
+<a name="183" href="#183">183</a> 
+<a name="184" href="#184">184</a> 		XmlObject response=responses[0];
+<a name="185" href="#185">185</a> 		<strong>if</strong>(response instanceof FaultImpl){
+<a name="186" href="#186">186</a> 			FaultImpl fault=(FaultImpl)response;
+<a name="187" href="#187">187</a> 			<strong>throw</strong> <strong>new</strong> Exception(fault.getFaultstring());
+<a name="188" href="#188">188</a> 		}
+<a name="189" href="#189">189</a> 		
+<a name="190" href="#190">190</a> 		String[] arrayOfServiceNames=(String[])DynamicSchemaClassBuilder.getProperty(responses[0],<span class="string">"ItemArray"</span>);
+<a name="191" href="#191">191</a> 
+<a name="192" href="#192">192</a> 		ArrayList resources=<strong>new</strong> ArrayList();
+<a name="193" href="#193">193</a> 		<strong>for</strong> (<strong>int</strong> i = 0; i &lt; arrayOfServiceNames.length; i++) {
+<a name="194" href="#194">194</a> 			String serviceName= arrayOfServiceNames[i];
+<a name="195" href="#195">195</a> 			resources.add(<strong>new</strong> <a href="../../../../../../org/apache/ws/client/model/impl/WsdmResourceImpl.html">WsdmResourceImpl</a>(serviceName,m_hostname,m_servletContext,<strong>this</strong>));
+<a name="196" href="#196">196</a> 		}
+<a name="197" href="#197">197</a> 		m_resourceCache=(<a href="../../../../../../org/apache/ws/client/model/WsdmResource.html">WsdmResource</a>[])resources.toArray(<strong>new</strong> <a href="../../../../../../org/apache/ws/client/model/WsdmResource.html">WsdmResource</a>[0]);
+<a name="198" href="#198">198</a> 		<strong>return</strong> m_resourceCache;
+<a name="199" href="#199">199</a> 	}
+<a name="200" href="#200">200</a> 		
+<a name="201" href="#201">201</a> <em class="comment">//	public void addListener(PropertyChangeListener listner){</em>
+<a name="202" href="#202">202</a> <em class="comment">//		m_propChangeSupport.addPropertyChangeListener(listner);</em>
+<a name="203" href="#203">203</a> <em class="comment">//	}</em>
+<a name="204" href="#204">204</a> <em class="comment">//	public void removeListener(PropertyChangeListener listner){</em>
+<a name="205" href="#205">205</a> <em class="comment">//		m_propChangeSupport.removePropertyChangeListener(listner);</em>
+<a name="206" href="#206">206</a> <em class="comment">//	}</em>
+<a name="207" href="#207">207</a> 
+<a name="208" href="#208">208</a>     <strong>public</strong> String getName(){
+<a name="209" href="#209">209</a>         <strong>return</strong> toString();
+<a name="210" href="#210">210</a>     }
+<a name="211" href="#211">211</a>     
+<a name="212" href="#212">212</a>     <strong>public</strong> String toString() {
+<a name="213" href="#213">213</a>         <strong>return</strong> <span class="string">"Server - "</span>+m_hostname ;
+<a name="214" href="#214">214</a>     }
+<a name="215" href="#215">215</a> 
+<a name="216" href="#216">216</a>     <em class="comment">/*<em class="comment"> (non-Javadoc)</em></em>
+<a name="217" href="#217">217</a> <em class="comment">     * @see org.apache.ws.client.model.WsdmClient#getResource(java.lang.String)</em>
+<a name="218" href="#218">218</a> <em class="comment">     */</em>
+<a name="219" href="#219">219</a>     <strong>public</strong> <a href="../../../../../../org/apache/ws/client/model/WsdmResource.html">WsdmResource</a> getResource(String resourceName) throws SecurityException, IllegalArgumentException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, Exception {
+<a name="220" href="#220">220</a>         <a href="../../../../../../org/apache/ws/client/model/WsdmResource.html">WsdmResource</a>[] resources = getResources();
+<a name="221" href="#221">221</a>         <strong>for</strong> (<strong>int</strong> index = 0; index &lt; resources.length; index++) {
+<a name="222" href="#222">222</a>             <a href="../../../../../../org/apache/ws/client/model/WsdmResource.html">WsdmResource</a> resource = resources[index];
+<a name="223" href="#223">223</a>             <strong>if</strong>(resource.getName().equals(resourceName))
+<a name="224" href="#224">224</a>                 <strong>return</strong> resource;
+<a name="225" href="#225">225</a>         }
+<a name="226" href="#226">226</a>         <strong>return</strong> <strong>null</strong>;
+<a name="227" href="#227">227</a>     }
+<a name="228" href="#228">228</a>     
+<a name="229" href="#229">229</a>     <strong>public</strong> <a href="../../../../../../org/apache/ws/client/model/WsdmInstance.html">WsdmInstance</a> findInstance(EndpointReferenceType epr) throws SecurityException, IllegalArgumentException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, Exception{
+<a name="230" href="#230">230</a>         XmlCursor cursor = epr.newCursor();
+<a name="231" href="#231">231</a>         <em class="comment">//TODO wire get rid of these hard coded namspaces!</em>
+<a name="232" href="#232">232</a>         cursor.toChild(<strong>new</strong> QName(<span class="string">"http://schemas.xmlsoap.org/ws/2004/08/addressing"</span>,<span class="string">"ServiceName"</span>));
+<a name="233" href="#233">233</a>         String ServiceName=cursor.getAttributeText(<strong>new</strong> QName(<span class="string">"PortName"</span>));
+<a name="234" href="#234">234</a>         cursor.dispose();
+<a name="235" href="#235">235</a>         
+<a name="236" href="#236">236</a>         cursor = epr.newCursor();
+<a name="237" href="#237">237</a>         cursor.toChild(<strong>new</strong> QName(<span class="string">"http://schemas.xmlsoap.org/ws/2004/08/addressing"</span>,<span class="string">"ReferenceProperties"</span>));
+<a name="238" href="#238">238</a>         cursor.toChild(<strong>new</strong> QName(<span class="string">"urn:proposedstandard.org/muse/addressing"</span>,<span class="string">"ResourceID"</span>));
+<a name="239" href="#239">239</a>         String ResourceId=cursor.getTextValue();
+<a name="240" href="#240">240</a>         cursor.dispose();
+<a name="241" href="#241">241</a>     
+<a name="242" href="#242">242</a>         <a href="../../../../../../org/apache/ws/client/model/WsdmResource.html">WsdmResource</a> resource=getResource(ServiceName);
+<a name="243" href="#243">243</a>         <strong>return</strong> resource.getInstance(ResourceId);
+<a name="244" href="#244">244</a>     }
+<a name="245" href="#245">245</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/model/impl/WsdmInstanceImpl.html
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/model/impl/WsdmInstanceImpl.html?rev=232376&view=auto
==============================================================================
--- webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/model/impl/WsdmInstanceImpl.html (added)
+++ webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/model/impl/WsdmInstanceImpl.html Fri Aug 12 13:38:04 2005
@@ -0,0 +1,350 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>WsdmInstanceImpl xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../apidocs/org/apache/ws/client/model/impl/WsdmInstanceImpl.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*<em class="comment">=============================================================================*</em></em>
+<a name="2" href="#2">2</a>   <em class="comment"> *  Confidential Copyright (c) 2004 Hewlett-Packard Development Company, L.P.  *</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *=============================================================================*</em>
+<a name="4" href="#4">4</a>   <em class="comment"> *</em>
+<a name="5" href="#5">5</a>   <em class="comment"> * Created on Sep 11, 2004</em>
+<a name="6" href="#6">6</a>   <em class="comment"> *</em>
+<a name="7" href="#7">7</a>   <em class="comment"> */</em>
+<a name="8" href="#8">8</a>   <strong>package</strong> <a href="../../../../../../org/apache/ws/client/model/impl/package-summary.html">org.apache.ws.client.model.impl</a>;
+<a name="9" href="#9">9</a>   
+<a name="10" href="#10">10</a>  <strong>import</strong> java.beans.PropertyChangeListener;
+<a name="11" href="#11">11</a>  <strong>import</strong> java.beans.PropertyChangeSupport;
+<a name="12" href="#12">12</a>  <strong>import</strong> java.lang.reflect.InvocationTargetException;
+<a name="13" href="#13">13</a>  <strong>import</strong> java.util.ArrayList;
+<a name="14" href="#14">14</a>  <strong>import</strong> java.util.Hashtable;
+<a name="15" href="#15">15</a>  
+<a name="16" href="#16">16</a>  <strong>import</strong> javax.wsdl.Operation;
+<a name="17" href="#17">17</a>  <strong>import</strong> javax.xml.namespace.QName;
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  <strong>import</strong> org.apache.xmlbeans.XmlCursor;
+<a name="20" href="#20">20</a>  <strong>import</strong> org.apache.xmlbeans.XmlObject;
+<a name="21" href="#21">21</a>  <strong>import</strong> org.xmlsoap.schemas.ws.x2003.x03.addressing.EndpointReferenceType;
+<a name="22" href="#22">22</a>  
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.ws.client.DynamicSoapClient;
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.ws.client.async.AsyncCallProvider;
+<a name="25" href="#25">25</a>  <strong>import</strong> org.apache.ws.client.model.WsdmInstance;
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.ws.client.model.WsdmOperation;
+<a name="27" href="#27">27</a>  <strong>import</strong> org.apache.ws.client.model.WsdmResource;
+<a name="28" href="#28">28</a>  <strong>import</strong> org.apache.ws.resource.faults.BaseFaultException;
+<a name="29" href="#29">29</a>  <strong>import</strong> org.apache.ws.resource.properties.query.xpath.XPathConstants;
+<a name="30" href="#30">30</a>  <strong>import</strong> com.ibm.xmlns.stdwip.webServices.wsResourceProperties.QueryExpressionType;
+<a name="31" href="#31">31</a>  
+<a name="32" href="#32">32</a>  <em>/**<em>*</em></em>
+<a name="33" href="#33">33</a>  <em> * @author wire</em>
+<a name="34" href="#34">34</a>  <em> * </em>
+<a name="35" href="#35">35</a>  <em> * Represents an instance of a managed resource inside the Wsdm Server.</em>
+<a name="36" href="#36">36</a>  <em> */</em>
+<a name="37" href="#37">37</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../../../org/apache/ws/client/model/impl/WsdmInstanceImpl.html">WsdmInstanceImpl</a> <strong>extends</strong> <a href="../../../../../../org/apache/ws/client/async/AsyncCallProvider.html">AsyncCallProvider</a> implements <a href="../../../../../../org/apache/ws/client/model/WsdmInstance.html">WsdmInstance</a> {
+<a name="38" href="#38">38</a>      <strong>private</strong> PropertyChangeSupport m_propChangeSupport;
+<a name="39" href="#39">39</a>      <em>/**<em>* DOCUMENT_ME */</em></em>
+<a name="40" href="#40">40</a>      <strong>static</strong> ArrayList m_reservedOperationsList;
+<a name="41" href="#41">41</a>      <strong>static</strong> String[] m_reservedOperations =
+<a name="42" href="#42">42</a>          <strong>new</strong> String[]
+<a name="43" href="#43">43</a>          {
+<a name="44" href="#44">44</a>             <span class="string">"GetResourceProperty"</span>,
+<a name="45" href="#45">45</a>             <span class="string">"GetMultipleResourceProperties"</span>,
+<a name="46" href="#46">46</a>             <span class="string">"SetResourceProperties"</span>,
+<a name="47" href="#47">47</a>             <span class="string">"QueryResourceProperties"</span>,
+<a name="48" href="#48">48</a>          };
+<a name="49" href="#49">49</a>      <strong>static</strong> {
+<a name="50" href="#50">50</a>          m_reservedOperationsList = <strong>new</strong> ArrayList(  );
+<a name="51" href="#51">51</a>  	    <strong>for</strong> ( <strong>int</strong> index = 0; index &lt; m_reservedOperations.length; index++ )
+<a name="52" href="#52">52</a>  	    {
+<a name="53" href="#53">53</a>  	       String string = m_reservedOperations[index];
+<a name="54" href="#54">54</a>  	       m_reservedOperationsList.add( string );
+<a name="55" href="#55">55</a>  	    }
+<a name="56" href="#56">56</a>      }
+<a name="57" href="#57">57</a>  
+<a name="58" href="#58">58</a>      String m_name;
+<a name="59" href="#59">59</a>  
+<a name="60" href="#60">60</a>      <strong>private</strong> <a href="../../../../../../org/apache/ws/client/model/impl/WsdmResourceImpl.html">WsdmResourceImpl</a> m_parent;
+<a name="61" href="#61">61</a>  
+<a name="62" href="#62">62</a>      <strong>private</strong> XmlObject[] m_response;
+<a name="63" href="#63">63</a>  
+<a name="64" href="#64">64</a>      <strong>public</strong> <a href="../../../../../../org/apache/ws/client/model/impl/WsdmInstanceImpl.html">WsdmInstanceImpl</a>(String resourceID,WsdmResourceImpl parent) {
+<a name="65" href="#65">65</a>          <strong>super</strong>();
+<a name="66" href="#66">66</a>          m_name=resourceID;
+<a name="67" href="#67">67</a>          m_parent=parent;
+<a name="68" href="#68">68</a>      }
+<a name="69" href="#69">69</a>  
+<a name="70" href="#70">70</a>      <strong>public</strong> <strong>void</strong> addListener(PropertyChangeListener listner) {
+<a name="71" href="#71">71</a>          m_propChangeSupport.addPropertyChangeListener(listner);
+<a name="72" href="#72">72</a>      }
+<a name="73" href="#73">73</a>  
+<a name="74" href="#74">74</a>      <strong>public</strong> <strong>void</strong> removeListener(PropertyChangeListener listner) {
+<a name="75" href="#75">75</a>          m_propChangeSupport.removePropertyChangeListener(listner);
+<a name="76" href="#76">76</a>      }
+<a name="77" href="#77">77</a>  
+<a name="78" href="#78">78</a>      <strong>public</strong> String getName() {
+<a name="79" href="#79">79</a>          <strong>if</strong>(m_name==<strong>null</strong>||m_name.length()==0){
+<a name="80" href="#80">80</a>              <strong>return</strong> <span class="string">"Singleton"</span>;
+<a name="81" href="#81">81</a>          }
+<a name="82" href="#82">82</a>          <strong>else</strong>
+<a name="83" href="#83">83</a>              <strong>return</strong> m_name;
+<a name="84" href="#84">84</a>      }
+<a name="85" href="#85">85</a>      
+<a name="86" href="#86">86</a>      <strong>public</strong> <strong>void</strong> refresh() throws Exception{
+<a name="87" href="#87">87</a>          <a href="../../../../../../org/apache/ws/client/DynamicSoapClient.html">DynamicSoapClient</a> resourceSoapClient = m_parent.getResourceSoapClient();
+<a name="88" href="#88">88</a>          Operation[] queryOperation = resourceSoapClient.findOperation(<span class="string">"QueryResourceProperties"</span>);
+<a name="89" href="#89">89</a>          <strong>if</strong>(queryOperation==<strong>null</strong>)
+<a name="90" href="#90">90</a>              <strong>return</strong>;
+<a name="91" href="#91">91</a>          Hashtable params=<strong>new</strong> Hashtable();
+<a name="92" href="#92">92</a>          
+<a name="93" href="#93">93</a>          com.ibm.xmlns.stdwip.webServices.wsResourceProperties.QueryExpressionDocument queryExpressionDocument = (com.ibm.xmlns.stdwip.webServices.wsResourceProperties.QueryExpressionDocument)com.ibm.xmlns.stdwip.webServices.wsResourceProperties.QueryExpressionDocument.Factory.newInstance();
+<a name="94" href="#94">94</a>          QueryExpressionType queryExpressionType = queryExpressionDocument.addNewQueryExpression();
+<a name="95" href="#95">95</a>          queryExpressionType.setDialect(XPathConstants.DIALECT_URI__XPATH1_0);
+<a name="96" href="#96">96</a>          XmlCursor xmlCursor = queryExpressionType.newCursor();
+<a name="97" href="#97">97</a>          xmlCursor.toChild(0);
+<a name="98" href="#98">98</a>          xmlCursor.setTextValue(<span class="string">"*"</span>);
+<a name="99" href="#99">99</a>          xmlCursor.dispose();
+<a name="100" href="#100">100</a>         
+<a name="101" href="#101">101</a>         params.put(<span class="string">"QueryExpression"</span>,(QueryExpressionType)queryExpressionType);
+<a name="102" href="#102">102</a>         m_response = resourceSoapClient.execute(queryOperation[0],params,getName());
+<a name="103" href="#103">103</a>     }
+<a name="104" href="#104">104</a> 
+<a name="105" href="#105">105</a>     <strong>public</strong> String[] getPropertyNames() throws Exception {
+<a name="106" href="#106">106</a>         <strong>if</strong>(m_response==<strong>null</strong>)
+<a name="107" href="#107">107</a>             refresh();
+<a name="108" href="#108">108</a>         <em class="comment">//TODO wire faults? what faults????</em>
+<a name="109" href="#109">109</a>         
+<a name="110" href="#110">110</a>         XmlObject response=m_response[0];
+<a name="111" href="#111">111</a>         
+<a name="112" href="#112">112</a>         XmlCursor cursor = response.newCursor();
+<a name="113" href="#113">113</a>         ArrayList ret=<strong>new</strong> ArrayList();
+<a name="114" href="#114">114</a>         
+<a name="115" href="#115">115</a>         cursor.toFirstChild();
+<a name="116" href="#116">116</a>         cursor.toFirstChild();
+<a name="117" href="#117">117</a>         Hashtable uniquenessTable=<strong>new</strong> Hashtable(); 
+<a name="118" href="#118">118</a>         <strong>while</strong>(cursor.toNextSibling()){
+<a name="119" href="#119">119</a> 	        
+<a name="120" href="#120">120</a> 	        XmlObject propPart=cursor.getObject();
+<a name="121" href="#121">121</a> 	        QName nodeName=cursor.getName();
+<a name="122" href="#122">122</a> 	        <strong>int</strong> index=0;
+<a name="123" href="#123">123</a> 	        <strong>if</strong>(uniquenessTable.containsKey(nodeName)){
+<a name="124" href="#124">124</a> 	            Integer count=(Integer)uniquenessTable.get(nodeName);
+<a name="125" href="#125">125</a> 	            index=count.intValue()+1;
+<a name="126" href="#126">126</a> 	            uniquenessTable.put(nodeName,<strong>new</strong> Integer(index));	            
+<a name="127" href="#127">127</a> 	        } <strong>else</strong> {
+<a name="128" href="#128">128</a> 	            uniquenessTable.put(nodeName,<strong>new</strong> Integer(0));
+<a name="129" href="#129">129</a> 	        }
+<a name="130" href="#130">130</a> 	        
+<a name="131" href="#131">131</a> 	        ret.add(nodeName.toString()+<span class="string">"["</span>+index+<span class="string">"]"</span>);
+<a name="132" href="#132">132</a>         }
+<a name="133" href="#133">133</a>         
+<a name="134" href="#134">134</a>         cursor.dispose();
+<a name="135" href="#135">135</a>         
+<a name="136" href="#136">136</a>         <strong>return</strong> (String[])ret.toArray(<strong>new</strong> String[0]);
+<a name="137" href="#137">137</a>     }
+<a name="138" href="#138">138</a> 
+<a name="139" href="#139">139</a>     <strong>public</strong> XmlObject getPropertyValue(String propertyName) throws Exception {
+<a name="140" href="#140">140</a>         
+<a name="141" href="#141">141</a>         String[] parts = propertyName.split(<span class="string">"}"</span>);
+<a name="142" href="#142">142</a>         String uriPart=parts[0].substring(1);
+<a name="143" href="#143">143</a>         String xPathElementName=parts[1];
+<a name="144" href="#144">144</a>         String[] xPathElementNameparts=xPathElementName.split(<span class="string">"[&#47;&#47;[&#47;&#47;]]"</span>);
+<a name="145" href="#145">145</a>         String elementName=xPathElementNameparts[0];
+<a name="146" href="#146">146</a>         String elementIndex=xPathElementNameparts[1];
+<a name="147" href="#147">147</a>         <strong>int</strong> index=Integer.parseInt(elementIndex);
+<a name="148" href="#148">148</a>         
+<a name="149" href="#149">149</a>         <strong>if</strong>(m_response==<strong>null</strong>)
+<a name="150" href="#150">150</a>             refresh();
+<a name="151" href="#151">151</a>         XmlObject response=m_response[0];
+<a name="152" href="#152">152</a>         <em class="comment">//TODO wire faults? what faults????</em>
+<a name="153" href="#153">153</a>                 
+<a name="154" href="#154">154</a>       XmlCursor cursor = response.newCursor();
+<a name="155" href="#155">155</a>         ArrayList ret=<strong>new</strong> ArrayList();
+<a name="156" href="#156">156</a>         
+<a name="157" href="#157">157</a>        cursor.toFirstChild();
+<a name="158" href="#158">158</a>         
+<a name="159" href="#159">159</a>         XmlObject obj = cursor.getObject();
+<a name="160" href="#160">160</a>         <em class="comment">// declare namespace s='http://www.openuri.org/sample' " +".//s:owner"</em>
+<a name="161" href="#161">161</a>         String path=<span class="string">"declare namespace s='"</span>+uriPart+<span class="string">"' "</span> +<span class="string">"s:"</span>+elementName;
+<a name="162" href="#162">162</a>         XmlObject[] matches=obj.selectPath(path);
+<a name="163" href="#163">163</a>         XmlObject match = matches[index];
+<a name="164" href="#164">164</a>         <strong>return</strong> match;
+<a name="165" href="#165">165</a>     }
+<a name="166" href="#166">166</a> 
+<a name="167" href="#167">167</a>    <em>/**<em>*</em></em>
+<a name="168" href="#168">168</a> <em>    * @see WsdmInstance#getPropertyValue(QName)</em>
+<a name="169" href="#169">169</a> <em>    */</em>
+<a name="170" href="#170">170</a>    <strong>public</strong> XmlObject[] getPropertyValue(QName propertyName) throws Exception
+<a name="171" href="#171">171</a>    {
+<a name="172" href="#172">172</a>       <em class="comment">// make sure the query has been performed and all props have been received</em>
+<a name="173" href="#173">173</a>       <strong>if</strong> (m_response == <strong>null</strong>)
+<a name="174" href="#174">174</a>       {
+<a name="175" href="#175">175</a>          refresh();
+<a name="176" href="#176">176</a>       }
+<a name="177" href="#177">177</a> 
+<a name="178" href="#178">178</a>       <em class="comment">// create a cursor on the query response element</em>
+<a name="179" href="#179">179</a>       XmlObject response = m_response[0];
+<a name="180" href="#180">180</a>       XmlCursor cursor1 = response.newCursor();
+<a name="181" href="#181">181</a>       
+<a name="182" href="#182">182</a>       <em class="comment">// skip ahead to the actual property children</em>
+<a name="183" href="#183">183</a>       <strong>if</strong> (!cursor1.toFirstChild())
+<a name="184" href="#184">184</a>       {
+<a name="185" href="#185">185</a>          <strong>return</strong> <strong>null</strong>;
+<a name="186" href="#186">186</a>       }
+<a name="187" href="#187">187</a>       
+<a name="188" href="#188">188</a>       <strong>if</strong> (!cursor1.toFirstChild())
+<a name="189" href="#189">189</a>       {
+<a name="190" href="#190">190</a>          <strong>return</strong> <strong>null</strong>;
+<a name="191" href="#191">191</a>       }
+<a name="192" href="#192">192</a>       
+<a name="193" href="#193">193</a>       <em class="comment">// find the property values that we are looking for and add them to our return list</em>
+<a name="194" href="#194">194</a>       ArrayList retValues = <strong>new</strong> ArrayList();
+<a name="195" href="#195">195</a>       
+<a name="196" href="#196">196</a>       <strong>if</strong> (propertyName.equals(cursor1.getName()))
+<a name="197" href="#197">197</a>       {
+<a name="198" href="#198">198</a>          retValues.add( cursor1.getObject() );
+<a name="199" href="#199">199</a>       }
+<a name="200" href="#200">200</a> 
+<a name="201" href="#201">201</a>       <strong>while</strong> (cursor1.toNextSibling())
+<a name="202" href="#202">202</a>       {
+<a name="203" href="#203">203</a>          <strong>if</strong> (propertyName.equals(cursor1.getName()))
+<a name="204" href="#204">204</a>          {
+<a name="205" href="#205">205</a>             retValues.add( cursor1.getObject() );
+<a name="206" href="#206">206</a>          }
+<a name="207" href="#207">207</a>       }
+<a name="208" href="#208">208</a> 
+<a name="209" href="#209">209</a>       <em class="comment">// clean up our cursor and return the array of property values that we found</em>
+<a name="210" href="#210">210</a>       cursor1.dispose();
+<a name="211" href="#211">211</a>       <strong>return</strong> (XmlObject[]) retValues.toArray(<strong>new</strong> XmlObject[retValues.size()]);
+<a name="212" href="#212">212</a>    }
+<a name="213" href="#213">213</a> 
+<a name="214" href="#214">214</a>     
+<a name="215" href="#215">215</a>     <strong>public</strong> <a href="../../../../../../org/apache/ws/client/model/WsdmOperation.html">WsdmOperation</a>[] getOperations() throws SecurityException, IllegalArgumentException, ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException {
+<a name="216" href="#216">216</a>       ArrayList ret=<strong>new</strong> ArrayList();
+<a name="217" href="#217">217</a>       <a href="../../../../../../org/apache/ws/client/DynamicSoapClient.html">DynamicSoapClient</a> resourceSoapClient = m_parent.getResourceSoapClient();
+<a name="218" href="#218">218</a>       Operation[] wsdlOperations = resourceSoapClient.getWsdlOperations();
+<a name="219" href="#219">219</a>       <strong>for</strong> (<strong>int</strong> index = 0; index &lt; wsdlOperations.length; index++) {
+<a name="220" href="#220">220</a>           Operation operation = wsdlOperations[index];
+<a name="221" href="#221">221</a>           String opName=operation.getName();
+<a name="222" href="#222">222</a>           String[] params=resourceSoapClient.getParameters(operation);
+<a name="223" href="#223">223</a>           <strong>if</strong>(!isAProperty(operation)){
+<a name="224" href="#224">224</a>               ret.add(<strong>new</strong> <a href="../../../../../../org/apache/ws/client/model/impl/WsdmOperationImpl.html">WsdmOperationImpl</a>(operation.getName(),params));
+<a name="225" href="#225">225</a>           }          
+<a name="226" href="#226">226</a>       }
+<a name="227" href="#227">227</a>       <strong>return</strong> (WsdmOperation[])ret.toArray(<strong>new</strong> WsdmOperationImpl[0]);
+<a name="228" href="#228">228</a>     }
+<a name="229" href="#229">229</a> 
+<a name="230" href="#230">230</a>     <em>/**<em>*</em></em>
+<a name="231" href="#231">231</a> <em>     * Compares operation to a list of operation names which are part of wsrf.</em>
+<a name="232" href="#232">232</a> <em>     * @param operation An operation</em>
+<a name="233" href="#233">233</a> <em>     * @return true if operation is part of the wsrf spec, else false.</em>
+<a name="234" href="#234">234</a> <em>     */</em>
+<a name="235" href="#235">235</a>     <strong>private</strong> <strong>boolean</strong> isASpecReservedOperartion(Operation operation) {
+<a name="236" href="#236">236</a>         <strong>return</strong> m_reservedOperationsList.contains(operation.getName());
+<a name="237" href="#237">237</a>     }
+<a name="238" href="#238">238</a> 
+<a name="239" href="#239">239</a>     <em>/**<em>*</em></em>
+<a name="240" href="#240">240</a> <em>     * Compares an operation to see if it begins with get or set.</em>
+<a name="241" href="#241">241</a> <em>     * @param operation An oepration</em>
+<a name="242" href="#242">242</a> <em>     * @return true if operation name does not begin with get or set, else false;</em>
+<a name="243" href="#243">243</a> <em>     */</em>
+<a name="244" href="#244">244</a>     <strong>private</strong> <strong>boolean</strong> isAProperty(Operation operation) {
+<a name="245" href="#245">245</a>         <strong>return</strong> operation.getName().toLowerCase().startsWith(<span class="string">"get"</span>)||operation.getName().toLowerCase().startsWith(<span class="string">"set"</span>);
+<a name="246" href="#246">246</a>     }
+<a name="247" href="#247">247</a> 
+<a name="248" href="#248">248</a>     <strong>public</strong> XmlObject[] invoke(<a href="../../../../../../org/apache/ws/client/model/WsdmOperation.html">WsdmOperation</a> operation, Hashtable parameters) throws Exception {
+<a name="249" href="#249">249</a>         <a href="../../../../../../org/apache/ws/client/DynamicSoapClient.html">DynamicSoapClient</a> soapClient = m_parent.getResourceSoapClient();
+<a name="250" href="#250">250</a>         Operation[] soapOperation = soapClient.findOperation(operation.getName());
+<a name="251" href="#251">251</a>         <strong>if</strong>(soapOperation==<strong>null</strong>||soapOperation.length==0){
+<a name="252" href="#252">252</a>             <strong>throw</strong> <strong>new</strong> ArrayIndexOutOfBoundsException(<span class="string">"Soap response array invalid or empty."</span>);
+<a name="253" href="#253">253</a>         }
+<a name="254" href="#254">254</a>         <strong>if</strong>(soapOperation[0] instanceof BaseFaultException){
+<a name="255" href="#255">255</a>             BaseFaultException e=(BaseFaultException)soapOperation[0];
+<a name="256" href="#256">256</a>             <strong>throw</strong> <strong>new</strong> InvocationTargetException(e,<span class="string">"Invoke failed."</span>);
+<a name="257" href="#257">257</a>         }
+<a name="258" href="#258">258</a>         XmlObject[] response = soapClient.execute(soapOperation[0],parameters,m_name);
+<a name="259" href="#259">259</a>         <strong>return</strong> response;
+<a name="260" href="#260">260</a>     }
+<a name="261" href="#261">261</a> 
+<a name="262" href="#262">262</a>     <strong>public</strong> String toString() {
+<a name="263" href="#263">263</a>         String name=getName();
+<a name="264" href="#264">264</a>         <strong>if</strong>(name==<strong>null</strong>||name.length()==0){
+<a name="265" href="#265">265</a>             <strong>return</strong> <span class="string">"Singleton"</span>;
+<a name="266" href="#266">266</a>         }
+<a name="267" href="#267">267</a>         <strong>else</strong>
+<a name="268" href="#268">268</a>             <strong>return</strong> getName();
+<a name="269" href="#269">269</a>     }
+<a name="270" href="#270">270</a> 
+<a name="271" href="#271">271</a>     <em class="comment">/*<em class="comment"> (non-Javadoc)</em></em>
+<a name="272" href="#272">272</a> <em class="comment">     * @see org.apache.ws.client.model.WsdmInstance#addListener(java.lang.String, java.beans.PropertyChangeListener)</em>
+<a name="273" href="#273">273</a> <em class="comment">     */</em>
+<a name="274" href="#274">274</a>     <strong>public</strong> <strong>void</strong> addListener(String topicXPath, PropertyChangeListener listner) {
+<a name="275" href="#275">275</a>         <em class="comment">// TODO Auto-generated method stub</em>
+<a name="276" href="#276">276</a>         
+<a name="277" href="#277">277</a>     }
+<a name="278" href="#278">278</a> 
+<a name="279" href="#279">279</a>     <em class="comment">/*<em class="comment"> (non-Javadoc)</em></em>
+<a name="280" href="#280">280</a> <em class="comment">     * @see org.apache.ws.client.model.WsdmInstance#removeListener(java.lang.String, java.beans.PropertyChangeListener)</em>
+<a name="281" href="#281">281</a> <em class="comment">     */</em>
+<a name="282" href="#282">282</a>     <strong>public</strong> <strong>void</strong> removeListener(String topicXPath, PropertyChangeListener listner) {
+<a name="283" href="#283">283</a>         <em class="comment">// TODO Auto-generated method stub</em>
+<a name="284" href="#284">284</a>         
+<a name="285" href="#285">285</a>     }
+<a name="286" href="#286">286</a> 
+<a name="287" href="#287">287</a>     <em class="comment">/*<em class="comment"> (non-Javadoc)</em></em>
+<a name="288" href="#288">288</a> <em class="comment">     * @see org.apache.ws.client.model.WsdmInstance#getListenerTopics()</em>
+<a name="289" href="#289">289</a> <em class="comment">     */</em>
+<a name="290" href="#290">290</a>     <strong>public</strong> String[] getListenerTopics() {
+<a name="291" href="#291">291</a>         <em class="comment">// TODO Auto-generated method stub</em>
+<a name="292" href="#292">292</a>         <strong>return</strong> <strong>null</strong>;
+<a name="293" href="#293">293</a>     }
+<a name="294" href="#294">294</a> 
+<a name="295" href="#295">295</a> 
+<a name="296" href="#296">296</a>     <em class="comment">/*<em class="comment"> (non-Javadoc)</em></em>
+<a name="297" href="#297">297</a> <em class="comment">     * @see org.apache.ws.client.model.WsdmInstance#findOperation()</em>
+<a name="298" href="#298">298</a> <em class="comment">     */</em>
+<a name="299" href="#299">299</a>     <strong>public</strong> <a href="../../../../../../org/apache/ws/client/model/WsdmOperation.html">WsdmOperation</a> findOperation(String operationName) throws SecurityException, IllegalArgumentException, ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException {
+<a name="300" href="#300">300</a>         <a href="../../../../../../org/apache/ws/client/model/WsdmOperation.html">WsdmOperation</a>[] ops = getOperations();
+<a name="301" href="#301">301</a>         <strong>for</strong> (<strong>int</strong> index = 0; index &lt; ops.length; index++) {
+<a name="302" href="#302">302</a>             <a href="../../../../../../org/apache/ws/client/model/WsdmOperation.html">WsdmOperation</a> operation = ops[index];
+<a name="303" href="#303">303</a>             <strong>if</strong>(operation.getName().equals(operationName)){
+<a name="304" href="#304">304</a>                 <strong>return</strong> operation;
+<a name="305" href="#305">305</a>             }            
+<a name="306" href="#306">306</a>         }
+<a name="307" href="#307">307</a>         <strong>return</strong> <strong>null</strong>;
+<a name="308" href="#308">308</a>     }
+<a name="309" href="#309">309</a> 
+<a name="310" href="#310">310</a>     <em class="comment">/*<em class="comment"> (non-Javadoc)</em></em>
+<a name="311" href="#311">311</a> <em class="comment">     * @see org.apache.ws.client.model.WsdmInstance#getEPR()</em>
+<a name="312" href="#312">312</a> <em class="comment">     */</em>
+<a name="313" href="#313">313</a>     <strong>public</strong> EndpointReferenceType getEPR() throws Exception {
+<a name="314" href="#314">314</a>         <a href="../../../../../../org/apache/ws/client/model/impl/WsdmClientImpl.html">WsdmClientImpl</a> client=(<a href="../../../../../../org/apache/ws/client/model/impl/WsdmClientImpl.html">WsdmClientImpl</a>)m_parent.getParent();
+<a name="315" href="#315">315</a>         <strong>return</strong> client.getErpFor(m_parent.getName(),m_name);
+<a name="316" href="#316">316</a>     }
+<a name="317" href="#317">317</a> 
+<a name="318" href="#318">318</a>     <em class="comment">/*<em class="comment"> (non-Javadoc)</em></em>
+<a name="319" href="#319">319</a> <em class="comment">     * @see org.apache.ws.client.model.WsdmInstance#setPropertyValue(java.lang.String, org.apache.xmlbeans.XmlObject)</em>
+<a name="320" href="#320">320</a> <em class="comment">     */</em>
+<a name="321" href="#321">321</a>     <strong>public</strong> <strong>void</strong> setPropertyValue(String propertyName, XmlObject value) throws Exception {
+<a name="322" href="#322">322</a>         <em class="comment">// SetResourceProperties</em>
+<a name="323" href="#323">323</a>         
+<a name="324" href="#324">324</a>     }
+<a name="325" href="#325">325</a> 
+<a name="326" href="#326">326</a>     <em class="comment">/*<em class="comment"> (non-Javadoc)</em></em>
+<a name="327" href="#327">327</a> <em class="comment">     * @see org.apache.ws.client.model.WsdmInstance#setPropertyValue(javax.xml.namespace.QName, org.apache.xmlbeans.XmlObject)</em>
+<a name="328" href="#328">328</a> <em class="comment">     */</em>
+<a name="329" href="#329">329</a>     <strong>public</strong> <strong>void</strong> setPropertyValue(QName propertyName, XmlObject value) throws Exception {
+<a name="330" href="#330">330</a>         <em class="comment">// TODO Auto-generated method stub</em>
+<a name="331" href="#331">331</a>         
+<a name="332" href="#332">332</a>     }
+<a name="333" href="#333">333</a> 
+<a name="334" href="#334">334</a>     <strong>public</strong> <a href="../../../../../../org/apache/ws/client/model/WsdmResource.html">WsdmResource</a> getParent() {
+<a name="335" href="#335">335</a>         <strong>return</strong> (WsdmResource)m_parent;
+<a name="336" href="#336">336</a>     }
+<a name="337" href="#337">337</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/model/impl/WsdmOperationImpl.html
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/model/impl/WsdmOperationImpl.html?rev=232376&view=auto
==============================================================================
--- webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/model/impl/WsdmOperationImpl.html (added)
+++ webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/model/impl/WsdmOperationImpl.html Fri Aug 12 13:38:04 2005
@@ -0,0 +1,109 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>WsdmOperationImpl xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../apidocs/org/apache/ws/client/model/impl/WsdmOperationImpl.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*<em class="comment">=============================================================================*</em></em>
+<a name="2" href="#2">2</a>   <em class="comment"> *  Confidential Copyright (c) 2004 Hewlett-Packard Development Company, L.P.  *</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *=============================================================================*</em>
+<a name="4" href="#4">4</a>   <em class="comment"> * Created on Sep 11, 2004</em>
+<a name="5" href="#5">5</a>   <em class="comment"> *</em>
+<a name="6" href="#6">6</a>   <em class="comment"> * $RCSfile: WsdmOperationImpl.java,v $ $Revision: 1.1 $</em>
+<a name="7" href="#7">7</a>   <em class="comment"> * $Author: scamp $ $Date: 2004/11/12 21:07:16 $</em>
+<a name="8" href="#8">8</a>   <em class="comment"> * Branch or Tag : $Name:  $</em>
+<a name="9" href="#9">9</a>   <em class="comment"> *</em>
+<a name="10" href="#10">10</a>  <em class="comment"> * ______________Recent Changes_______________________________</em>
+<a name="11" href="#11">11</a>  <em class="comment"> *</em>
+<a name="12" href="#12">12</a>  <em class="comment"> */</em>
+<a name="13" href="#13">13</a>  <strong>package</strong> <a href="../../../../../../org/apache/ws/client/model/impl/package-summary.html">org.apache.ws.client.model.impl</a>;
+<a name="14" href="#14">14</a>  
+<a name="15" href="#15">15</a>  <strong>import</strong> java.util.ArrayList;
+<a name="16" href="#16">16</a>  <strong>import</strong> java.util.Collection;
+<a name="17" href="#17">17</a>  <strong>import</strong> java.util.Enumeration;
+<a name="18" href="#18">18</a>  <strong>import</strong> java.util.Hashtable;
+<a name="19" href="#19">19</a>  <strong>import</strong> java.util.Iterator;
+<a name="20" href="#20">20</a>  
+<a name="21" href="#21">21</a>  <strong>import</strong> org.apache.ws.client.model.WsdmOperation;
+<a name="22" href="#22">22</a>  
+<a name="23" href="#23">23</a>  <em>/**<em>*</em></em>
+<a name="24" href="#24">24</a>  <em> * @author wire</em>
+<a name="25" href="#25">25</a>  <em> *</em>
+<a name="26" href="#26">26</a>  <em> * TODO To change the template for this generated type comment go to</em>
+<a name="27" href="#27">27</a>  <em> * Window - Preferences - Java - Code Style - Code Templates</em>
+<a name="28" href="#28">28</a>  <em> */</em>
+<a name="29" href="#29">29</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../../../org/apache/ws/client/model/impl/WsdmOperationImpl.html">WsdmOperationImpl</a> implements <a href="../../../../../../org/apache/ws/client/model/WsdmOperation.html">WsdmOperation</a> {
+<a name="30" href="#30">30</a>  
+<a name="31" href="#31">31</a>      <strong>private</strong> String m_name;
+<a name="32" href="#32">32</a>      <strong>private</strong> Hashtable m_paramHash;
+<a name="33" href="#33">33</a>  
+<a name="34" href="#34">34</a>  <em class="comment">//    public WsdmOperationImpl(Operation wsdlOperation) {</em>
+<a name="35" href="#35">35</a>  <em class="comment">//       // this(wsdlOperation.getName(),wsdlOperation.getInput().)</em>
+<a name="36" href="#36">36</a>  <em class="comment">//        // place parameters in a hash</em>
+<a name="37" href="#37">37</a>  <em class="comment">//        m_paramHash=new Hashtable();</em>
+<a name="38" href="#38">38</a>  <em class="comment">//        m_name=wsdlOperation.getName();</em>
+<a name="39" href="#39">39</a>  <em class="comment">//        </em>
+<a name="40" href="#40">40</a>  <em class="comment">//        QName elementQName;</em>
+<a name="41" href="#41">41</a>  <em class="comment">//        DynamicSchemaClassBuilder.getEmptyInstanceOfXMLBean(elementQName);</em>
+<a name="42" href="#42">42</a>  <em class="comment">//        for (int index = 0; index &lt; parameters.length; index++) {</em>
+<a name="43" href="#43">43</a>  <em class="comment">//            String paramString = parameters[index];</em>
+<a name="44" href="#44">44</a>  <em class="comment">//            String[] parts = paramString.split("&#47;&#47;[");</em>
+<a name="45" href="#45">45</a>  <em class="comment">//            String paramName=parts[0];</em>
+<a name="46" href="#46">46</a>  <em class="comment">//            String className=parts[1].substring(0,parts[1].length()-1);</em>
+<a name="47" href="#47">47</a>  <em class="comment">//            m_paramHash.put(paramName,className);</em>
+<a name="48" href="#48">48</a>  <em class="comment">//        }</em>
+<a name="49" href="#49">49</a>  <em class="comment">//</em>
+<a name="50" href="#50">50</a>  <em class="comment">//</em>
+<a name="51" href="#51">51</a>  <em class="comment">//    </em>
+<a name="52" href="#52">52</a>  <em class="comment">//    }</em>
+<a name="53" href="#53">53</a>      
+<a name="54" href="#54">54</a>      <em>/**<em>*</em></em>
+<a name="55" href="#55">55</a>  <em>     * </em>
+<a name="56" href="#56">56</a>  <em>     */</em>
+<a name="57" href="#57">57</a>      <strong>public</strong> <a href="../../../../../../org/apache/ws/client/model/impl/WsdmOperationImpl.html">WsdmOperationImpl</a>(String name,String[] parameters) {
+<a name="58" href="#58">58</a>          <strong>super</strong>();
+<a name="59" href="#59">59</a>          <em class="comment">// place parameters in a hash</em>
+<a name="60" href="#60">60</a>          m_paramHash=<strong>new</strong> Hashtable();
+<a name="61" href="#61">61</a>          <strong>for</strong> (<strong>int</strong> index = 0; index &lt; parameters.length; index++) {
+<a name="62" href="#62">62</a>              String paramString = parameters[index];
+<a name="63" href="#63">63</a>              String[] parts = paramString.split(<span class="string">"&#47;&#47;["</span>);
+<a name="64" href="#64">64</a>              String paramName=parts[0];
+<a name="65" href="#65">65</a>              String className=parts[1].substring(0,parts[1].length()-1);
+<a name="66" href="#66">66</a>              m_paramHash.put(paramName,className);
+<a name="67" href="#67">67</a>          }
+<a name="68" href="#68">68</a>          m_name=name;
+<a name="69" href="#69">69</a>      }
+<a name="70" href="#70">70</a>  
+<a name="71" href="#71">71</a>      <strong>public</strong> String getName() {
+<a name="72" href="#72">72</a>          <strong>return</strong> m_name;
+<a name="73" href="#73">73</a>      }
+<a name="74" href="#74">74</a>      
+<a name="75" href="#75">75</a>      <strong>public</strong> String[] getParameterNames(){
+<a name="76" href="#76">76</a>          Enumeration enum = m_paramHash.keys();
+<a name="77" href="#77">77</a>          ArrayList retList=<strong>new</strong> ArrayList();
+<a name="78" href="#78">78</a>          <strong>while</strong>(enum.hasMoreElements()){
+<a name="79" href="#79">79</a>              String key=(String)enum.nextElement();
+<a name="80" href="#80">80</a>              retList.add(key);
+<a name="81" href="#81">81</a>          }
+<a name="82" href="#82">82</a>          <strong>return</strong> (String[])retList.toArray(<strong>new</strong> String[0]);
+<a name="83" href="#83">83</a>      }
+<a name="84" href="#84">84</a>      
+<a name="85" href="#85">85</a>      <strong>public</strong> String[] getParameterTypes(){
+<a name="86" href="#86">86</a>          ArrayList retList=<strong>new</strong> ArrayList();
+<a name="87" href="#87">87</a>          Collection enum = m_paramHash.values();
+<a name="88" href="#88">88</a>          <strong>for</strong> (Iterator iter = enum.iterator(); iter.hasNext();) {
+<a name="89" href="#89">89</a>              String typeName = (String) iter.next();
+<a name="90" href="#90">90</a>              retList.add(typeName);
+<a name="91" href="#91">91</a>          }
+<a name="92" href="#92">92</a>          <strong>return</strong> (String[])retList.toArray(<strong>new</strong> String[0]);
+<a name="93" href="#93">93</a>      }
+<a name="94" href="#94">94</a>  
+<a name="95" href="#95">95</a>      <strong>public</strong> String getParameterType(String parameterName){ <strong>return</strong> (String)m_paramHash.get(parameterName);}
+<a name="96" href="#96">96</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+



---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org