/** * For Document/Lit the wsdl:part should only have element attribute and * for RPC/Lit or RPC/Encoded the wsdl:part should only have type attribute * inside wsdl:message. */ protected boolean isStyleAndPartMatch( SOAPOperation soapOperation, MessagePart part) { // style attribute on soap:operation takes precedence over the // style attribute on soap:binding if ((soapOperation != null) && (soapOperation.getStyle() != null)) { if ((soapOperation.isDocument() && (part.getDescriptorKind() != SchemaKinds.XSD_ELEMENT)) || (soapOperation.isRPC() && (part.getDescriptorKind() != SchemaKinds.XSD_TYPE))) { return false; } } else { if ((info.soapBinding.isDocument() && (part.getDescriptorKind() != SchemaKinds.XSD_ELEMENT)) || (info.soapBinding.isRPC() && (part.getDescriptorKind() != SchemaKinds.XSD_TYPE))) { return false; } } return true; }
/** * For Document/Lit the wsdl:part should only have element attribute and * for RPC/Lit or RPC/Encoded the wsdl:part should only have type attribute * inside wsdl:message. */ protected boolean isStyleAndPartMatch( SOAPOperation soapOperation, MessagePart part) { // style attribute on soap:operation takes precedence over the // style attribute on soap:binding if ((soapOperation != null) && (soapOperation.getStyle() != null)) { if ((soapOperation.isDocument() && (part.getDescriptorKind() != SchemaKinds.XSD_ELEMENT)) || (soapOperation.isRPC() && (part.getDescriptorKind() != SchemaKinds.XSD_TYPE))) { return false; } } else { if ((info.soapBinding.isDocument() && (part.getDescriptorKind() != SchemaKinds.XSD_ELEMENT)) || (info.soapBinding.isRPC() && (part.getDescriptorKind() != SchemaKinds.XSD_TYPE))) { return false; } } return true; }
/** * For Document/Lit the wsdl:part should only have element attribute and * for RPC/Lit or RPC/Encoded the wsdl:part should only have type attribute * inside wsdl:message. */ protected boolean isStyleAndPartMatch( SOAPOperation soapOperation, MessagePart part) { // style attribute on soap:operation takes precedence over the // style attribute on soap:binding if ((soapOperation != null) && (soapOperation.getStyle() != null)) { if ((soapOperation.isDocument() && (part.getDescriptorKind() != SchemaKinds.XSD_ELEMENT)) || (soapOperation.isRPC() && (part.getDescriptorKind() != SchemaKinds.XSD_TYPE))) { return false; } } else { if ((info.soapBinding.isDocument() && (part.getDescriptorKind() != SchemaKinds.XSD_ELEMENT)) || (info.soapBinding.isRPC() && (part.getDescriptorKind() != SchemaKinds.XSD_TYPE))) { return false; } } return true; }
/** * For Document/Lit the wsdl:part should only have element attribute and * for RPC/Lit or RPC/Encoded the wsdl:part should only have type attribute * inside wsdl:message. */ protected boolean isStyleAndPartMatch( SOAPOperation soapOperation, MessagePart part) { // style attribute on soap:operation takes precedence over the // style attribute on soap:binding if ((soapOperation != null) && (soapOperation.getStyle() != null)) { if ((soapOperation.isDocument() && (part.getDescriptorKind() != SchemaKinds.XSD_ELEMENT)) || (soapOperation.isRPC() && (part.getDescriptorKind() != SchemaKinds.XSD_TYPE))) { return false; } } else { if ((info.soapBinding.isDocument() && (part.getDescriptorKind() != SchemaKinds.XSD_ELEMENT)) || (info.soapBinding.isRPC() && (part.getDescriptorKind() != SchemaKinds.XSD_TYPE))) { return false; } } return true; }
/** * This method is added to fix one of the use case for j2ee se folks, so that we determine * for non_soap wsdl what could be the style - rpc or document based on parts in the message. * * We assume that the message parts could have either all of them with type attribute (RPC) * or element (DOCUMENT) * * Shall this check if parts are mixed and throw error message? */ private void setNonSoapStyle(Message inputMessage, Message outputMessage) { SOAPStyle style = SOAPStyle.DOCUMENT; for(MessagePart part:inputMessage.getParts()){ if (part.getDescriptorKind() == SchemaKinds.XSD_TYPE) { style = SOAPStyle.RPC; } else { style = SOAPStyle.DOCUMENT; } } //check the outputMessage parts if(outputMessage != null){ for(MessagePart part:outputMessage.getParts()){ if (part.getDescriptorKind() == SchemaKinds.XSD_TYPE) { style = SOAPStyle.RPC; } else { style = SOAPStyle.DOCUMENT; } } } info.modelPort.setStyle(style); }
/** * This method is added to fix one of the use case for j2ee se folks, so that we determine * for non_soap wsdl what could be the style - rpc or document based on parts in the message. * * We assume that the message parts could have either all of them with type attribute (RPC) * or element (DOCUMENT) * * Shall this check if parts are mixed and throw error message? */ private void setNonSoapStyle(Message inputMessage, Message outputMessage) { SOAPStyle style = SOAPStyle.DOCUMENT; for(MessagePart part:inputMessage.getParts()){ if (part.getDescriptorKind() == SchemaKinds.XSD_TYPE) { style = SOAPStyle.RPC; } else { style = SOAPStyle.DOCUMENT; } } //check the outputMessage parts if(outputMessage != null){ for(MessagePart part:outputMessage.getParts()){ if (part.getDescriptorKind() == SchemaKinds.XSD_TYPE) { style = SOAPStyle.RPC; } else { style = SOAPStyle.DOCUMENT; } } } info.modelPort.setStyle(style); }
/** * This method is added to fix one of the use case for j2ee se folks, so that we determine * for non_soap wsdl what could be the style - rpc or document based on parts in the message. * * We assume that the message parts could have either all of them with type attribute (RPC) * or element (DOCUMENT) * * Shall this check if parts are mixed and throw error message? */ private void setNonSoapStyle(Message inputMessage, Message outputMessage) { SOAPStyle style = SOAPStyle.DOCUMENT; for(MessagePart part:inputMessage.getParts()){ if (part.getDescriptorKind() == SchemaKinds.XSD_TYPE) { style = SOAPStyle.RPC; } else { style = SOAPStyle.DOCUMENT; } } //check the outputMessage parts if(outputMessage != null){ for(MessagePart part:outputMessage.getParts()){ if (part.getDescriptorKind() == SchemaKinds.XSD_TYPE) { style = SOAPStyle.RPC; } else { style = SOAPStyle.DOCUMENT; } } } info.modelPort.setStyle(style); }
/** * This method is added to fix one of the use case for j2ee se folks, so that we determine * for non_soap wsdl what could be the style - rpc or document based on parts in the message. * * We assume that the message parts could have either all of them with type attribute (RPC) * or element (DOCUMENT) * * Shall this check if parts are mixed and throw error message? */ private void setNonSoapStyle(Message inputMessage, Message outputMessage) { SOAPStyle style = SOAPStyle.DOCUMENT; for(MessagePart part:inputMessage.getParts()){ if (part.getDescriptorKind() == SchemaKinds.XSD_TYPE) { style = SOAPStyle.RPC; } else { style = SOAPStyle.DOCUMENT; } } //check the outputMessage parts if(outputMessage != null){ for(MessagePart part:outputMessage.getParts()){ if (part.getDescriptorKind() == SchemaKinds.XSD_TYPE) { style = SOAPStyle.RPC; } else { style = SOAPStyle.DOCUMENT; } } } info.modelPort.setStyle(style); }
public void add(MessagePart part) { if (_partsByName.get(part.getName()) != null){ errorReceiver.error(part.getLocator(), WsdlMessages.VALIDATION_DUPLICATE_PART_NAME(getName(), part.getName())); throw new AbortException(); } if(part.getDescriptor() != null && part.getDescriptorKind() != null) { _partsByName.put(part.getName(), part); _parts.add(part); } else errorReceiver.warning(part.getLocator(), WsdlMessages.PARSING_ELEMENT_OR_TYPE_REQUIRED(part.getName())); }
public void add(MessagePart part) { if (_partsByName.get(part.getName()) != null){ errorReceiver.error(part.getLocator(), WsdlMessages.VALIDATION_DUPLICATE_PART_NAME(getName(), part.getName())); throw new AbortException(); } if(part.getDescriptor() != null && part.getDescriptorKind() != null) { _partsByName.put(part.getName(), part); _parts.add(part); } else errorReceiver.warning(part.getLocator(), WsdlMessages.PARSING_ELEMENT_OR_TYPE_REQUIRED(part.getName())); }
public void add(MessagePart part) { if (_partsByName.get(part.getName()) != null){ errorReceiver.error(part.getLocator(), WsdlMessages.VALIDATION_DUPLICATE_PART_NAME(getName(), part.getName())); throw new AbortException(); } if(part.getDescriptor() != null && part.getDescriptorKind() != null) { _partsByName.put(part.getName(), part); _parts.add(part); } else errorReceiver.warning(part.getLocator(), WsdlMessages.PARSING_ELEMENT_OR_TYPE_REQUIRED(part.getName())); }
public void add(MessagePart part) { if (_partsByName.get(part.getName()) != null){ errorReceiver.error(part.getLocator(), WsdlMessages.VALIDATION_DUPLICATE_PART_NAME(getName(), part.getName())); throw new AbortException(); } if(part.getDescriptor() != null && part.getDescriptorKind() != null) { _partsByName.put(part.getName(), part); _parts.add(part); } else errorReceiver.warning(part.getLocator(), WsdlMessages.PARSING_ELEMENT_OR_TYPE_REQUIRED(part.getName())); }
/** * @param part * @return Returns a JAXBType object */ private JAXBType getJAXBType(MessagePart part) { JAXBType type; QName name = part.getDescriptor(); if (part.getDescriptorKind().equals(SchemaKinds.XSD_ELEMENT)) { type = getJAXBModelBuilder().getJAXBType(name); if(type == null){ error(part, ModelerMessages.WSDLMODELER_JAXB_JAVATYPE_NOTFOUND(name, part.getName())); } } else { S2JJAXBModel jaxbModel = getJAXBModelBuilder().getJAXBModel().getS2JJAXBModel(); TypeAndAnnotation typeAnno = jaxbModel.getJavaType(name); if (typeAnno == null) { error(part, ModelerMessages.WSDLMODELER_JAXB_JAVATYPE_NOTFOUND(name, part.getName())); } JavaType javaType = new JavaSimpleType(new JAXBTypeAndAnnotation(typeAnno)); type = new JAXBType(new QName("", part.getName()), javaType); } return type; }
/** * @param part * @return Returns a JAXBType object */ private JAXBType getJAXBType(MessagePart part) { JAXBType type; QName name = part.getDescriptor(); if (part.getDescriptorKind().equals(SchemaKinds.XSD_ELEMENT)) { type = getJAXBModelBuilder().getJAXBType(name); if(type == null){ error(part, ModelerMessages.WSDLMODELER_JAXB_JAVATYPE_NOTFOUND(name, part.getName())); } } else { S2JJAXBModel jaxbModel = getJAXBModelBuilder().getJAXBModel().getS2JJAXBModel(); TypeAndAnnotation typeAnno = jaxbModel.getJavaType(name); if (typeAnno == null) { error(part, ModelerMessages.WSDLMODELER_JAXB_JAVATYPE_NOTFOUND(name, part.getName())); } JavaType javaType = new JavaSimpleType(new JAXBTypeAndAnnotation(typeAnno)); type = new JAXBType(new QName("", part.getName()), javaType); } return type; }
/** * @param part * @return Returns a JAXBType object */ private JAXBType getJAXBType(MessagePart part) { JAXBType type; QName name = part.getDescriptor(); if (part.getDescriptorKind().equals(SchemaKinds.XSD_ELEMENT)) { type = getJAXBModelBuilder().getJAXBType(name); if(type == null){ error(part, ModelerMessages.WSDLMODELER_JAXB_JAVATYPE_NOTFOUND(name, part.getName())); } } else { S2JJAXBModel jaxbModel = getJAXBModelBuilder().getJAXBModel().getS2JJAXBModel(); TypeAndAnnotation typeAnno = jaxbModel.getJavaType(name); if (typeAnno == null) { error(part, ModelerMessages.WSDLMODELER_JAXB_JAVATYPE_NOTFOUND(name, part.getName())); } JavaType javaType = new JavaSimpleType(new JAXBTypeAndAnnotation(typeAnno)); type = new JAXBType(new QName("", part.getName()), javaType); } return type; }
/** * @param part * @return Returns a JAXBType object */ private JAXBType getJAXBType(MessagePart part) { JAXBType type; QName name = part.getDescriptor(); if (part.getDescriptorKind().equals(SchemaKinds.XSD_ELEMENT)) { type = getJAXBModelBuilder().getJAXBType(name); if(type == null){ error(part, ModelerMessages.WSDLMODELER_JAXB_JAVATYPE_NOTFOUND(name, part.getName())); } } else { S2JJAXBModel jaxbModel = getJAXBModelBuilder().getJAXBModel().getS2JJAXBModel(); TypeAndAnnotation typeAnno = jaxbModel.getJavaType(name); if (typeAnno == null) { error(part, ModelerMessages.WSDLMODELER_JAXB_JAVATYPE_NOTFOUND(name, part.getName())); } JavaType javaType = new JavaSimpleType(new JAXBTypeAndAnnotation(typeAnno)); type = new JAXBType(new QName("", part.getName()), javaType); } return type; }
error(header, ModelerMessages.WSDLMODELER_INVALID_HEADER_NOT_FOUND(header.getPart(), bindingOperation.getName())); if (part.getDescriptorKind() != SchemaKinds.XSD_ELEMENT) { if (options.isExtensionMode()) { warning(part, ModelerMessages.WSDLMODELER_INVALID_HEADER_MESSAGE_PART_MUST_HAVE_ELEMENT_DESCRIPTOR(part.getName(), bindingOperation.getName()));
error(header, ModelerMessages.WSDLMODELER_INVALID_HEADER_NOT_FOUND(header.getPart(), bindingOperation.getName())); if (part.getDescriptorKind() != SchemaKinds.XSD_ELEMENT) { if (options.isExtensionMode()) { warning(part, ModelerMessages.WSDLMODELER_INVALID_HEADER_MESSAGE_PART_MUST_HAVE_ELEMENT_DESCRIPTOR(part.getName(), bindingOperation.getName()));
error(header, ModelerMessages.WSDLMODELER_INVALID_HEADER_NOT_FOUND(header.getPart(), bindingOperation.getName())); if (part.getDescriptorKind() != SchemaKinds.XSD_ELEMENT) { if (options.isExtensionMode()) { warning(part, ModelerMessages.WSDLMODELER_INVALID_HEADER_MESSAGE_PART_MUST_HAVE_ELEMENT_DESCRIPTOR(part.getName(), bindingOperation.getName()));
error(header, ModelerMessages.WSDLMODELER_INVALID_HEADER_NOT_FOUND(header.getPart(), bindingOperation.getName())); if (part.getDescriptorKind() != SchemaKinds.XSD_ELEMENT) { if (options.isExtensionMode()) { warning(part, ModelerMessages.WSDLMODELER_INVALID_HEADER_MESSAGE_PART_MUST_HAVE_ELEMENT_DESCRIPTOR(part.getName(), bindingOperation.getName()));