/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* W3C WS-Addressing Runtime WSDL parser extension
*
* @author Arun Gupta
*/
}
}
return true; // UsingAddressing is consumed
}
return false;
}
try {
throw new WebServiceException("Null values not permitted in wsaw:Anonymous.");
// TODO: throw exception only if wsdl:required=true
// TODO: is this the right exception ?
} else {
// TODO: throw exception only if wsdl:required=true
// TODO: is this the right exception ?
}
} catch (XMLStreamException e) {
throw new WebServiceException(e); // TODO: is this the correct behavior ?
}
return true; // consumed the element
}
return false;
}
}
}
}
}
}
}
/**
* Process wsdl:portType operation after the entire WSDL model has been populated.
* The task list includes: <p>
* <ul>
* <li>Patch the value of UsingAddressing in wsdl:port and wsdl:binding</li>
* <li>Populate actions for the messages that do not have an explicit wsaw:Action</li>
* <li>Patch the default value of wsaw:Anonymous=optional if none is specified</li>
* </ul>
* @param context
*/
// populate actions for the messages that do not have an explicit wsaw:Action
// patch the default value of wsaw:Anonymous=optional if none is specified
}
}
}
}
}
/**
* Populate all the Actions
*
* @param binding soapbinding:operation
*/
// TODO: this may be performance intensive. Alternatively default action
// TODO: can be calculated when the operation is actually invoked.
//If this operation is unbound set the action to default
continue;
}
// explicit wsaw:Action is not specified
// if soapAction is non-empty, use that
} else {
// otherwise generate default Action
}
}
// skip output and fault processing for one-way methods
continue;
}
continue;
}
}
}
}
/**
* Patch the default value of wsaw:Anonymous=optional if none is specified
*
* @param binding WSDLBoundPortTypeImpl
*/
}
}
}
}
return buildAction(name, o, true);
}
// TODO: is this the correct way to find the separator ?
if (o.getPortTypeName() == null)
return tns +
delim +
o.getPortTypeName().getLocalPart() +
delim +
name;
}
}