📄 call.html
字号:
<DD>Indicates whether <code>addParameter</code> and <code>setReturnType</code> methods are to be invoked to specify the parameter and return type specification for a specific operation.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>operationName</CODE> - Qualified name of the operation<DT><B>Returns:</B><DD>Returns true if the Call implementation class requires addParameter and setReturnType to be invoked in the client code for the specified operation. This method returns false otherwise.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - If invalid operation name is specified</DL></DD></DL><HR><A NAME="addParameter(java.lang.String, javax.xml.namespace.QName, javax.xml.rpc.ParameterMode)"><!-- --></A><H3>addParameter</H3><PRE>public void <B>addParameter</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> paramName, <A HREF="../../../javax/xml/namespace/QName.html" title="class in javax.xml.namespace">QName</A> xmlType, <A HREF="../../../javax/xml/rpc/ParameterMode.html" title="class in javax.xml.rpc">ParameterMode</A> parameterMode)</PRE><DL><DD>Adds a parameter type and mode for a specific operation. Note that the client code may not call any <code>addParameter</code> and <code>setReturnType</code> methods before calling the <code>invoke</code> method. In this case, the Call implementation class determines the parameter types by using reflection on parameters, using the WSDL description and configured type mapping registry.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>paramName</CODE> - Name of the parameter<DD><CODE>xmlType</CODE> - XML type of the parameter<DD><CODE>parameterMode</CODE> - Mode of the parameter-whether <code>ParameterMode.IN</code>, <code>ParameterMode.OUT</code>, or <code>ParameterMode.INOUT</code>,<DT><B>Throws:</B><DD><CODE>javax.xml.rpc.JAXRPCException:</CODE> - This exception may be thrown if the method <code>isParameterAndReturnSpecRequired</code> returns <code>false</code> for this operation.<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - If any illegal parameter name or XML type is specified<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/rpc/Call.html#isParameterAndReturnSpecRequired(javax.xml.namespace.QName)"><CODE>isParameterAndReturnSpecRequired(javax.xml.namespace.QName)</CODE></A></DL></DD></DL><HR><A NAME="addParameter(java.lang.String, javax.xml.namespace.QName, java.lang.Class, javax.xml.rpc.ParameterMode)"><!-- --></A><H3>addParameter</H3><PRE>public void <B>addParameter</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> paramName, <A HREF="../../../javax/xml/namespace/QName.html" title="class in javax.xml.namespace">QName</A> xmlType, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A> javaType, <A HREF="../../../javax/xml/rpc/ParameterMode.html" title="class in javax.xml.rpc">ParameterMode</A> parameterMode)</PRE><DL><DD>Adds a parameter type and mode for a specific operation. This method is used to specify the Java type for either OUT or INOUT parameters.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>paramName</CODE> - Name of the parameter<DD><CODE>xmlType</CODE> - XML type of the parameter<DD><CODE>javaType</CODE> - Java class of the parameter<DD><CODE>parameterMode</CODE> - Mode of the parameter-whether ParameterMode.IN, OUT or INOUT<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/xml/rpc/JAXRPCException.html" title="class in javax.xml.rpc">JAXRPCException</A></CODE> - <UL> <LI>This exception may be thrown if this method is invoked when the method <code>isParameterAndReturnSpecRequired</code> returns <code>false</code>. <LI>If specified XML type and Java type mapping is not valid. For example, <code>TypeMappingRegistry</code> has no serializers for this mapping. </UL><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - If any illegal parameter name or XML type is specified<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/UnsupportedOperationException.html" title="class or interface in java.lang">UnsupportedOperationException</A></CODE> - If this method is not supported<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/rpc/Call.html#isParameterAndReturnSpecRequired(javax.xml.namespace.QName)"><CODE>isParameterAndReturnSpecRequired(javax.xml.namespace.QName)</CODE></A></DL></DD></DL><HR><A NAME="getParameterTypeByName(java.lang.String)"><!-- --></A><H3>getParameterTypeByName</H3><PRE>public <A HREF="../../../javax/xml/namespace/QName.html" title="class in javax.xml.namespace">QName</A> <B>getParameterTypeByName</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> paramName)</PRE><DL><DD>Gets the XML type of a parameter by name<P><DD><DL><DT><B>Parameters:</B><DD><CODE>paramName</CODE> - Name of the parameter<DT><B>Returns:</B><DD>Returns XML type for the specified parameter</DL></DD></DL><HR><A NAME="setReturnType(javax.xml.namespace.QName)"><!-- --></A><H3>setReturnType</H3><PRE>public void <B>setReturnType</B>(<A HREF="../../../javax/xml/namespace/QName.html" title="class in javax.xml.namespace">QName</A> xmlType)</PRE><DL><DD>Sets the return type for a specific operation. Invoking <code>setReturnType(null)</code> removes the return type for this Call object.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>xmlType</CODE> - XML data type of the return value<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/xml/rpc/JAXRPCException.html" title="class in javax.xml.rpc">JAXRPCException</A></CODE> - This exception may be thrown when the method <code>isParameterAndReturnSpecRequired</code> returns <code>false</code>.<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - If an illegal XML type is specified</DL></DD></DL><HR><A NAME="setReturnType(javax.xml.namespace.QName, java.lang.Class)"><!-- --></A><H3>setReturnType</H3><PRE>public void <B>setReturnType</B>(<A HREF="../../../javax/xml/namespace/QName.html" title="class in javax.xml.namespace">QName</A> xmlType, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A> javaType)</PRE><DL><DD>Sets the return type for a specific operation.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>javaType</CODE> - Java Class of the return value<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/xml/rpc/JAXRPCException.html" title="class in javax.xml.rpc">JAXRPCException</A></CODE> - <UL> <LI>This exception may be thrown if this method is invoked when the method <code>isParameterAndReturnSpecRequired</code> returns <code>false</code>. <LI>If XML type and Java type cannot be mapped using the standard type mapping or TypeMapping registry </UL><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/UnsupportedOperationException.html" title="class or interface in java.lang">UnsupportedOperationException</A></CODE> - If this method is not supported<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - If an illegal XML type is specified</DL></DD></DL><HR><A NAME="getReturnType()"><!-- --></A><H3>getReturnType</H3><PRE>public <A HREF="../../../javax/xml/namespace/QName.html" title="class in javax.xml.namespace">QName</A> <B>getReturnType</B>()</PRE><DL><DD>Gets the return type for a specific operation<P><DD><DL><DT><B>Returns:</B><DD>Returns the XML type for the return value</DL></DD></DL><HR><A NAME="removeAllParameters()"><!-- --></A><H3>removeAllParameters</H3><PRE>public void <B>removeAllParameters</B>()</PRE><DL><DD>Removes all specified parameters from this <code>Call</code> instance. Note that this method removes only the parameters and not the return type. The <code>setReturnType(null)</code> is used to remove the return type.<P><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/xml/rpc/JAXRPCException.html" title="class in javax.xml.rpc">JAXRPCException</A></CODE> - This exception may be thrown If this method is called when the method <code>isParameterAndReturnSpecRequired</code> returns <code>false</code> for this Call's operation.</DL></DD></DL><HR><A NAME="getOperationName()"><!-- --></A><H3>getOperationName</H3><PRE>public <A HREF="../../../javax/xml/namespace/QName.html" title="class in javax.xml.namespace">QName</A> <B>getOperationName</B>()</PRE><DL><DD>Gets the name of the operation to be invoked using this <code>Call</code> instance.<P><DD><DL><DT><B>Returns:</B><DD>Qualified name of the operation</DL></DD></DL><HR><A NAME="setOperationName(javax.xml.namespace.QName)"><!-- --></A><H3>setOperationName</H3><PRE>public void <B>setOperationName</B>(<A HREF="../../../javax/xml/namespace/QName.html" title="class in javax.xml.namespace">QName</A> operationName)</PRE><DL><DD>Sets the name of the operation to be invoked using this <code>Call</code> instance.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>operationName</CODE> - QName of the operation to be invoked using the Call instance</DL></DD></DL><HR><A NAME="getPortTypeName()"><!-- --></A><H3>getPortTypeName</H3><PRE>public <A HREF="../../../javax/xml/namespace/QName.html" title="class in javax.xml.namespace">QName</A> <B>getPortTypeName</B>()</PRE><DL><DD>Gets the qualified name of the port type.<P><DD><DL><DT><B>Returns:</B><DD>Qualified name of the port type</DL></DD></DL><HR><A NAME="setPortTypeName(javax.xml.namespace.QName)"><!-- --></A><H3>setPortTypeName</H3><PRE>public void <B>setPortTypeName</B>(<A HREF="../../../javax/xml/namespace/QName.html" title="class in javax.xml.namespace">QName</A> portType)</PRE><DL><DD>Sets the qualified name of the port type.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>portType</CODE> - Qualified name of the port type</DL></DD></DL><HR><A NAME="setTargetEndpointAddress(java.lang.String)"><!-- --></A><H3>setTargetEndpointAddress</H3><PRE>public void <B>setTargetEndpointAddress</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> address)</PRE><DL><DD>Sets the address of the target service endpoint. This address must correspond to the transport specified in the binding for this <code>Call</code> instance.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>address</CODE> - Address of the target service endpoint; specified as an URI</DL></DD></DL><HR><A NAME="getTargetEndpointAddress()"><!-- --></A><H3>getTargetEndpointAddress</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getTargetEndpointAddress</B>()</PRE><DL><DD>Gets the address of a target service endpoint.<P><DD><DL><DT><B>Returns:</B><DD>Address of the target service endpoint as an URI</DL></DD></DL><HR><A NAME="setProperty(java.lang.String, java.lang.Object)"><!-- --></A><H3>setProperty</H3><PRE>public void <B>setProperty</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -