/*
* 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.
*/
/**
*
* @author WS Development Team
*
* Base class for WSDL->Model classes.
*/
}
/**
*
* @param port
* @param wsdlPort
*/
protected void applyPortMethodCustomization(Port port, com.sun.tools.internal.ws.wsdl.document.Port wsdlPort) {
if(isProvider(wsdlPort))
return;
String portMethodName = (jaxwsBinding != null)?((jaxwsBinding.getMethodName() != null)?jaxwsBinding.getMethodName().getName():null):null;
if(portMethodName != null){
}else{
}
}
if(isProvider != null){
return isProvider;
}
JAXWSBinding jaxwsGlobalCustomization = (JAXWSBinding)getExtensionOfType(document.getDefinitions(), JAXWSBinding.class);
if(isProvider != null)
return isProvider;
return false;
}
SOAPBody.class);
if (requestBody == null) {
// the WSDL document is invalid
error(info.bindingOperation.getInput(), ModelerMessages.WSDLMODELER_INVALID_BINDING_OPERATION_INPUT_MISSING_SOAP_BODY(info.bindingOperation.getName()));
}
return requestBody;
}
protected boolean isRequestMimeMultipart() {
return true;
}
}
return false;
}
protected boolean isResponseMimeMultipart() {
return true;
}
}
return false;
}
SOAPBody.class);
if (responseBody == null) {
// the WSDL document is invalid
error(info.bindingOperation.getOutput(), ModelerMessages.WSDLMODELER_INVALID_BINDING_OPERATION_OUTPUT_MISSING_SOAP_BODY(info.bindingOperation.getName()));
}
return responseBody;
}
return null;
}
}
/**
* @param body request or response body, represents soap:body
* @param message Input or output message, equivalent to wsdl:message
* @return iterator over MessagePart
*/
//get Mime parts
if(isInput)
else
while (in.hasMoreTokens()) {
}
}
} else {
}
}
}
}
return parts;
}
/**
* @param message
* @return MessageParts referenced by the mime:content
*/
}
return mimeContentParts;
}
/**
* @param mimeParts
*/
boolean gotRootPart = false;
if (gotRootPart) {
warning(mPart, ModelerMessages.MIMEMODELER_INVALID_MIME_PART_MORE_THAN_ONE_SOAP_BODY(info.operation.getName().getLocalPart()));
return false;
}
gotRootPart = true;
} else if (obj instanceof MIMEContent) {
}
}
return false;
warning(mPart, ModelerMessages.MIMEMODELER_INVALID_MIME_PART_NAME_NOT_ALLOWED(info.portTypeOperation.getName()));
}
}
return true;
}
//RXXXX mime:content MUST have part attribute
error(mimeContent, ModelerMessages.WSDLMODELER_ERROR_PARTS_NOT_FOUND(mimeContentPartName, message.getName()));
}
return mPart;
}
return null;
}
//List of mimeTypes
//validateMimeContentPartNames(mimeContents.iterator());
// String mimeType = null;
}
return mimeTypes;
}
//validate mime:content(s) in the mime:part as per R2909
if(mimeContnetPart == null) {
warning(mimeContent, ModelerMessages.MIMEMODELER_INVALID_MIME_CONTENT_MISSING_PART_ATTRIBUTE(info.operation.getName().getLocalPart()));
return false;
}
}
return true;
}
MIMEMultipartRelated.class);
if(multiPartRelated == null) {
return Collections.emptyList();
}
return multiPartRelated.getParts();
}
//returns MIMEContents
if (mimeContent instanceof MIMEContent) {
}
}
//validateMimeContentPartNames(mimeContents.iterator());
return mimeContents;
}
/*String partName = mimeContent.getPart();
if(partName == null){
throw new ModelerException("mimemodeler.invalidMimeContent.missingPartAttribute",
new Object[] {info.operation.getName().getLocalPart()});
}
return partName;*/
return mimeContent.getPart();
}
error(mimeContent, ModelerMessages.MIMEMODELER_INVALID_MIME_CONTENT_MISSING_TYPE_ATTRIBUTE(info.operation.getName().getLocalPart()));
}
return mimeType;
}
/**
* inside wsdl:message.
*/
protected boolean isStyleAndPartMatch(
MessagePart part) {
// style attribute on soap:operation takes precedence over the
// style attribute on soap:binding
if ((soapOperation.isDocument()
|| (soapOperation.isRPC()
return false;
}
} else {
return false;
}
}
return true;
}
if (namespaceURI == null) {
if(options.isExtensionMode()){
}
// the WSDL document is invalid
// at least, that's my interpretation of section 3.5 of the WSDL 1.1 spec!
error(body, ModelerMessages.WSDLMODELER_INVALID_BINDING_OPERATION_INPUT_SOAP_BODY_MISSING_NAMESPACE(info.bindingOperation.getName()));
}
return namespaceURI;
}
if (namespaceURI == null) {
if(options.isExtensionMode()){
}
// the WSDL document is invalid
// at least, that's my interpretation of section 3.5 of the WSDL 1.1 spec!
error(body, ModelerMessages.WSDLMODELER_INVALID_BINDING_OPERATION_OUTPUT_SOAP_BODY_MISSING_NAMESPACE(info.bindingOperation.getName()));
}
return namespaceURI;
}
/**
* @return List of SOAPHeader extensions
*/
if (obj instanceof SOAPHeader) {
//bug fix: 5024015
if (!isRootPart) {
warning((Entity) obj, ModelerMessages.MIMEMODELER_WARNING_IGNORINGINVALID_HEADER_PART_NOT_DECLARED_IN_ROOT_PART(info.bindingOperation.getName()));
return new ArrayList<SOAPHeader>();
}
}
}
}
} else if (extension instanceof SOAPHeader) {
}
}
return headerList;
}
/**
* @param part
* @return true if part is the Root part
*/
if (twsdlExtension instanceof SOAPBody)
return true;
}
return false;
}
// look for fault messages with the same soap:fault name
if (portTypeFault != null) {
// the WSDL document is invalid
error(bindingFault, ModelerMessages.WSDLMODELER_INVALID_BINDING_FAULT_NOT_UNIQUE(bindingFault.getName(),
} else {
}
}
}
if (portTypeFault == null) {
// the WSDL document is invalid
error(bindingFault, ModelerMessages.WSDLMODELER_INVALID_BINDING_FAULT_NOT_FOUND(bindingFault.getName(),
}
// the WSDL document is invalid
if(options.isExtensionMode()){
warning(bindingFault, ModelerMessages.WSDLMODELER_INVALID_BINDING_FAULT_OUTPUT_MISSING_SOAP_FAULT(bindingFault.getName(),
}else {
error(bindingFault, ModelerMessages.WSDLMODELER_INVALID_BINDING_FAULT_OUTPUT_MISSING_SOAP_FAULT(bindingFault.getName(),
}
}
// the WSDL document is invalid
error(faultMessage, ModelerMessages.WSDLMODELER_INVALID_BINDING_FAULT_EMPTY_MESSAGE(bindingFault.getName(),
faultMessage.getName()));
}
// bug fix: 4852729
warning(soapFault, ModelerMessages.WSDLMODELER_WARNING_R_2716_R_2726("soapbind:fault", soapFault.getName()));
}
String faultNamespaceURI = (soapFault != null && soapFault.getNamespace() != null)?soapFault.getNamespace():portTypeFault.getMessage().getNamespaceURI();
} else {
}
}
return duplicateNames;
}
/**
* @param operation
* @return true if operation has valid body parts
*/
boolean isRequestResponse =
return false;
if(isRequestResponse){
return false;
}
return true;
}
/**
* @param operation
* @return true if operation has valid style and part
*/
return false;
}
}
return true;
}
if (javaMemberName == null)
return javaMemberName;
}
/**
* @param ext
* @param message
* @param name
* @return List of MimeContents from ext
*/
return mimeContents;
}
}
return null;
}
// s is already package qualified
return s;
} else {//options.defaultPackage seems to be never null, and this is never executed
return s;
}
}
boolean hasOverloadedOperations) {
if (hasOverloadedOperations) {
} else {
}
}
return new QName(
}
return extension;
}
}
return null;
}
if(extensible == null)
return null;
return extension;
//bug fix: 5024001
return extn;
}
}
}
return null;
}
// bug fix: 4857100
try {
message =
} catch (NoSuchEntityException e) {
}
return message;
}
protected static boolean tokenListContains(
return false;
}
while (tokenizer.hasMoreTokens()) {
return true;
}
}
return false;
}
int cnt = 2;
cnt++;
}
return uniqueName;
}
if (_conflictingClassNames == null) {
return false;
}
}
return isConflictingClassName(name);
}
return isConflictingClassName(name);
}
return isConflictingClassName(name);
}
return isConflictingClassName(name);
}
return isConflictingClassName(name);
}
//avoid duplicate warning for the second pass
if(numPasses > 1)
return;
else
}
else
throw new AbortException();
}
"com.sun.xml.internal.ws.processor.modeler.wsdl.operationHasVoidReturnType";
"com.sun.xml.internal.ws.processor.modeler.wsdl.parameterOrder";
"com.sun.xml.internal.ws.processor.modeler.wsdl.resultParameter";
"com.sun.xml.internal.ws.processor.modeler.wsdl.mimeMultipartRelatedBinding";
protected boolean useWSIBasicProfile = true;
public class ProcessSOAPOperationInfo {
public ProcessSOAPOperationInfo(
boolean hasOverloadedOperations,
this.portTypeOperation = portTypeOperation;
this.bindingOperation = bindingOperation;
this.soapBinding = soapBinding;
}
public boolean hasOverloadedOperations;
// additional data
}
public static class WSDLExceptionInfo {
// constructor order (of type Integer)
}
}