128 * @param serviceName The service name of the endpoint to be targeted
129 * by the returned {@code W3CEndpointReference}. This property
130 * may also be used with the {@code endpointName} (portName)
131 * property to lookup the {@code address} of a web service
132 * endpoint that is published by the same Java EE application.
133 *
134 * @return A {@code W3CEndpointReferenceBuilder} instance with
135 * the {@code serviceName} as {@code wsam:ServiceName}
136 * element added to the {@code wsa:Metadata} element
137 *
138 */
139 public W3CEndpointReferenceBuilder serviceName(QName serviceName) {
140 this.serviceName = serviceName;
141 return this;
142 }
143
144 /**
145 * Sets the {@code endpointName} as
146 * {@code wsam:ServiceName/@EndpointName} in the
147 * {@code wsa:Metadata} element. This method can only be called
148 * after the {@link #serviceName} method has been called.
149 * <p>
150 * See <a href="http://www.w3.org/TR/2007/REC-ws-addr-metadata-20070904/#refmetadatfromepr">
151 * 2.1 Referencing WSDL Metadata from an EPR</a> for more details.
152 *
153 * @param endpointName The name of the endpoint to be targeted
154 * by the returned {@code W3CEndpointReference}. The
155 * {@code endpointName} (portName) property may also be
156 * used with the {@code serviceName} property to lookup
157 * the {@code address} of a web service
158 * endpoint published by the same Java EE application.
159 *
160 * @return A {@code W3CEndpointReferenceBuilder} instance with
161 * the {@code endpointName} as
162 * {@code wsam:ServiceName/@EndpointName} in the
163 * {@code wsa:Metadata} element.
164 *
165 * @throws java.lang.IllegalStateException if the {@code serviceName}
166 * has not been set
167 *
168 * @throws java.lang.IllegalArgumentException if the {@code endpointName}'s
|
128 * @param serviceName The service name of the endpoint to be targeted
129 * by the returned {@code W3CEndpointReference}. This property
130 * may also be used with the {@code endpointName} (portName)
131 * property to lookup the {@code address} of a web service
132 * endpoint that is published by the same Java EE application.
133 *
134 * @return A {@code W3CEndpointReferenceBuilder} instance with
135 * the {@code serviceName} as {@code wsam:ServiceName}
136 * element added to the {@code wsa:Metadata} element
137 *
138 */
139 public W3CEndpointReferenceBuilder serviceName(QName serviceName) {
140 this.serviceName = serviceName;
141 return this;
142 }
143
144 /**
145 * Sets the {@code endpointName} as
146 * {@code wsam:ServiceName/@EndpointName} in the
147 * {@code wsa:Metadata} element. This method can only be called
148 * after the {@link #serviceName(QName)} method has been called.
149 * <p>
150 * See <a href="http://www.w3.org/TR/2007/REC-ws-addr-metadata-20070904/#refmetadatfromepr">
151 * 2.1 Referencing WSDL Metadata from an EPR</a> for more details.
152 *
153 * @param endpointName The name of the endpoint to be targeted
154 * by the returned {@code W3CEndpointReference}. The
155 * {@code endpointName} (portName) property may also be
156 * used with the {@code serviceName} property to lookup
157 * the {@code address} of a web service
158 * endpoint published by the same Java EE application.
159 *
160 * @return A {@code W3CEndpointReferenceBuilder} instance with
161 * the {@code endpointName} as
162 * {@code wsam:ServiceName/@EndpointName} in the
163 * {@code wsa:Metadata} element.
164 *
165 * @throws java.lang.IllegalStateException if the {@code serviceName}
166 * has not been set
167 *
168 * @throws java.lang.IllegalArgumentException if the {@code endpointName}'s
|