Author: thomas.diesler(a)jboss.com
Date: 2006-12-07 08:30:48 -0500 (Thu, 07 Dec 2006)
New Revision: 1606
Added:
branches/jbossws-1.0/src/main/java/javax/xml/ws/WebServiceException.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonBinding.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonBindingProvider.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonClient.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonContextServlet.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonMessageContext.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonSOAP11Binding.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonSOAP12Binding.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonSOAPBinding.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/EndpointInvocation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/CallImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/CallProxy.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/EncodedTypeMapping.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/HandlerRegistryImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/LiteralTypeMapping.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ParameterWrapping.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/SOAPFaultExceptionHelper.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/SchemaGenerator.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/SerializationContextJAXRPC.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceExt.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceFactoryImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceObjectFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceProxy.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceReferenceable.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServletEndpointContextImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/StubExt.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/Style.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/TypeMappingImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/TypeMappingRegistryImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/UnqualifiedCallParameter.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/UnqualifiedFaultException.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/Use.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/Base64Deserializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/Base64DeserializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/Base64Serializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/Base64SerializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/BindingException.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/CalendarDeserializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/CalendarDeserializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/CalendarSerializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/CalendarSerializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ComplexTypeDeserializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ComplexTypeSerializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DateDeserializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DateDeserializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DateSerializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DateSerializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DeserializerFactoryBase.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DeserializerSupport.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ElementDeserializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ElementDeserializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ElementSerializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ElementSerializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/HexDeserializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/HexDeserializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/HexSerializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/HexSerializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/JBossXBDeserializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/JBossXBDeserializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/JBossXBSerializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/JBossXBSerializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/NullValueSerializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/QNameDeserializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/QNameDeserializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/QNameSerializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/QNameSerializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPArrayDeserializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPArrayDeserializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPArraySerializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPArraySerializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPElementDeserializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPElementDeserializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPElementSerializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPElementSerializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SerializationContext.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SerializerFactoryBase.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SerializerSupport.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SimpleDeserializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SimpleDeserializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SimpleSerializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SimpleSerializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBConstants.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBMarshaller.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBMarshallerImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBSupport.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBUnmarshaller.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBUnmarshallerImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/MarshalException.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/SchemaBindingBuilder.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/UnmarshalException.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/XercesXSMarshallerImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/ClientHandlerChain.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/HandlerChainBaseImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/HandlerDelegateJAXRPC.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/HandlerWrapper.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/MessageContextJAXRPC.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/SOAPMessageContextJAXRPC.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/ServerHandlerChain.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/AbstractServiceEndpointInvoker.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/EndpointContext.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/HandlerDelegate.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/HeaderSource.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/KernelLocator.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/MessageContextPropertyHelper.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServerConfig.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServerConfigFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpoint.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointInfo.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointInvoker.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointInvokerJSE.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointManager.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointManagerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointManagerMBean.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointMetrics.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServletHeaderSource.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/StandardEndpointServlet.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/WSDLFilePublisher.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/WSDLRequestHandler.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/AttrImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/DetailEntryImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/DetailImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/DocumentFragmentImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/EndpointInfo.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/MessageContextAssociation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/MessageFactoryImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/NameImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/NodeImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/NodeListImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/PayloadBuilder.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SAAJPayloadBuilderDOM.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SAAJPayloadBuilderStax.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SAAJVisitable.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SAAJVisitor.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPBodyElementDoc.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPBodyElementMessage.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPBodyElementRpc.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPBodyImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPConnectionFactoryImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPConnectionImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPContentElement.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPDocument.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPElementImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPElementWriter.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPEnvelopeImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPFactoryImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPFaultElementImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPFaultImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPHeaderElementImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPHeaderImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPMessageDispatcher.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPMessageImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPMessageMarshaller.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPMessageUnMarshaller.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPPartImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/TextImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/UnboundHeader.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/AttachmentPartImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/BoundaryDelimitedInputStream.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/ByteArrayContentHandler.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/CIDGenerator.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/ContentHandlerRegistry.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/ImageDataContentHandler.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MimeConstants.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedDecoder.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedEncoder.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedSwAEncoder.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedXOPEncoder.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/RawByteArrayOutputStream.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/SimpleBoyerMoore.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/SwapableMemoryDataSource.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/XmlDataContentHandler.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/DOMUtils.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/DOMWriter.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/HolderUtils.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/IOUtils.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/JBossWSEntityResolver.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/JavaUtils.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/MimeUtils.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/ObjectNameFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/ThreadLocalAssociation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/UUIDGenerator.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/XMLPredefinedEntityReferenceResolver.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingBuilderImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingClientUtil.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingConstantsImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingPropertiesImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingTypeImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AttributeElementExtensibleImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AttributeExtensibleImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AttributedQNameImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AttributedURIImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/ElementExtensibleImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/EndpointReferenceImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/MetadataImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/ReferenceParametersImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/RelationshipImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/jaxrpc/
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/jaxrpc/WSAddressingClientHandler.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/jaxrpc/WSAddressingServerHandler.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/metadata/
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/metadata/AddressingOpMetaExt.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/soap/
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/soap/SOAPAddressingBuilderImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/soap/SOAPAddressingPropertiesImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventSourceEndpoint.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventSourceEndpointImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventingConstants.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventingEndpointBase.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventingService.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/SubscriptionManagerEndpoint.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/SubscriptionManagerEndpointImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/deployment/
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/deployment/EventingEndpoint.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/deployment/EventingEndpointDI.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/DeliveryType.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/EndpointReference.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/FilterType.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/MetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/ReferenceParameters.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/RenewRequest.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/RenewResponse.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/StatusRequest.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/StatusResponse.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/SubscribeRequest.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/SubscribeResponse.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/SubscriptionEndRequest.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/UnsubscribeRequest.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/metadata/
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/metadata/EventingEpMetaExt.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/DispatchJob.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/DispatcherDelegate.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/DispatcherFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/EventDispatcher.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/EventSource.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/EventingBuilder.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/Filter.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/Subscription.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionError.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManager.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManagerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManagerMBean.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionTicket.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/policy/
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/policy/Policy.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/policy/PolicyAlternative.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/policy/PolicyAssertion.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/policy/PolicyFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/BinarySecurityTokenValidator.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/Constants.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/DecodingOperation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/DecryptionOperation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/EncodingOperation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/EncryptionOperation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/FailedAuthenticationException.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/FailedCheckException.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/InvalidSecurityHeaderException.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/InvalidSecurityTokenException.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/KeyResolver.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/Operation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/OperationDescription.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/QNameTarget.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/ReceiveUsernameOperation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireEncryptionOperation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireOperation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireSignatureOperation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireTargetableOperation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireTimestampOperation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/STRTransform.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityAdaptor.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityAdaptorFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityDecoder.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityEncoder.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityStore.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityTokenUnavailableException.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SendUsernameOperation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SignatureOperation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SignatureVerificationOperation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SimplePrincipal.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/Target.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/TimestampOperation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/TimestampVerificationOperation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/TokenOperation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/UnsupportedAlgorithmException.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/UnsupportedSecurityTokenException.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/Util.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/WSSecurityDispatcher.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/WSSecurityException.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/WsuIdResolver.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/WsuIdTarget.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/BinarySecurityToken.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/DirectReference.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/EncryptedKey.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/KeyIdentifier.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/Reference.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/ReferenceList.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/SecurityElement.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/SecurityHeader.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/SecurityProcess.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/SecurityTokenReference.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/Signature.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/Timestamp.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/Token.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/UsernameToken.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/X509IssuerSerial.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/X509Token.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/jaxrpc/
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/jaxrpc/WSSecurityHandler.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/jaxrpc/WSSecurityHandlerInbound.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/jaxrpc/WSSecurityHandlerOutbound.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/CreateAttachmentVisitor.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/DisableMTOMHandler.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/RestoreXOPElementVisitor.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/XOPContext.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/jaxrpc/
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/jaxrpc/JBossXBContentAdapter.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/jaxrpc/XOPMarshallerImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/jaxrpc/XOPScanner.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/jaxrpc/XOPUnmarshallerImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ApplicationMetaDataAdaptor.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptor.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB21.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB21MBean.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB3.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB3MBean.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorJSE.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorJSEMBean.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorNestedJSE.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorNestedJSEMBean.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeploymentInfoAdaptor.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/JBossContextServlet.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/JBossServiceEndpointPublisher.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/JBossServiceEndpointServlet.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/PortComponentLinkServlet.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServerConfigImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointGeneratorEJB.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointGeneratorEJB21.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointGeneratorEJB3.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointInterceptor.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointInvokerEJB21.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointInvokerEJB3.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointInvokerMDB.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceRefMetaDataAdaptor.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/WebMetaDataAdaptor.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/WebServiceClientDeployer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/WebServiceClientDeployerMBean.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/jms/
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/jms/JMSMessageDispatcher.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/jms/JMSMessageDispatcherMBean.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/jms/JMSTransportSupport.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/jms/MessageDispatcher.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ClientEndpointMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/EndpointMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ExtensibleMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/FaultMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/HandlerMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/HandlerMetaDataJAXRPC.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/MetaDataExtension.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/OperationMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ParameterMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ServerEndpointMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ServiceMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/TypeMappingMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/TypesMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/UnifiedMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/webservices/
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/webservices/PortComponentMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/webservices/WebserviceDescriptionMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/webservices/WebservicesFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/webservices/WebservicesMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDL11DefinitionFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Reader.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Writer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDLDefinitionsFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDLLocatorImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDLWriter.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDLWriterResolver.java
Removed:
branches/jbossws-1.0/src/main/java/org/jboss/ws/addressing/
branches/jbossws-1.0/src/main/java/org/jboss/ws/binding/
branches/jbossws-1.0/src/main/java/org/jboss/ws/common/
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonBinding.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonBindingProvider.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonClient.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonContextServlet.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonMessageContext.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonSOAP11Binding.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonSOAP12Binding.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonSOAPBinding.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/EndpointInvocation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/CallImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/CallProxy.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/EncodedTypeMapping.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/HandlerRegistryImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/LiteralTypeMapping.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ParameterWrapping.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/SOAPFaultExceptionHelper.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/SchemaGenerator.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/SerializationContextJAXRPC.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceExt.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceFactoryImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceObjectFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceProxy.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceReferenceable.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServletEndpointContextImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/StubExt.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/Style.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/TypeMappingImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/TypeMappingRegistryImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/UnqualifiedCallParameter.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/UnqualifiedFaultException.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/Use.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/Base64Deserializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/Base64DeserializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/Base64Serializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/Base64SerializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/BindingException.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/CalendarDeserializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/CalendarDeserializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/CalendarSerializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/CalendarSerializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ComplexTypeDeserializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ComplexTypeSerializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DateDeserializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DateDeserializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DateSerializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DateSerializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DeserializerFactoryBase.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DeserializerSupport.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ElementDeserializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ElementDeserializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ElementSerializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ElementSerializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/HexDeserializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/HexDeserializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/HexSerializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/HexSerializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/JBossXBDeserializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/JBossXBDeserializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/JBossXBSerializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/JBossXBSerializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/NullValueSerializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/QNameDeserializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/QNameDeserializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/QNameSerializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/QNameSerializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPArrayDeserializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPArrayDeserializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPArraySerializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPArraySerializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPElementDeserializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPElementDeserializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPElementSerializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPElementSerializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SerializationContext.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SerializerFactoryBase.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SerializerSupport.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SimpleDeserializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SimpleDeserializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SimpleSerializer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SimpleSerializerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBConstants.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBMarshaller.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBMarshallerImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBSupport.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBUnmarshaller.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBUnmarshallerImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/MarshalException.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/SchemaBindingBuilder.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/UnmarshalException.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/XercesXSMarshallerImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/ClientHandlerChain.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/HandlerChainBaseImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/HandlerDelegateJAXRPC.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/HandlerWrapper.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/MessageContextJAXRPC.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/SOAPMessageContextJAXRPC.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/ServerHandlerChain.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/AbstractServiceEndpointInvoker.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/EndpointContext.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/HandlerDelegate.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/HeaderSource.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/KernelLocator.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/MessageContextPropertyHelper.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServerConfig.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServerConfigFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpoint.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointInfo.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointInvoker.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointInvokerJSE.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointManager.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointManagerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointManagerMBean.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointMetrics.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServletHeaderSource.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/StandardEndpointServlet.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/WSDLFilePublisher.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/WSDLRequestHandler.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/AttrImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/DetailEntryImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/DetailImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/DocumentFragmentImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/EndpointInfo.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/MessageContextAssociation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/MessageFactoryImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/NameImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/NodeImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/NodeListImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/PayloadBuilder.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SAAJPayloadBuilderDOM.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SAAJPayloadBuilderStax.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SAAJVisitable.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SAAJVisitor.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPBodyElementDoc.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPBodyElementMessage.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPBodyElementRpc.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPBodyImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPConnectionFactoryImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPConnectionImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPContentElement.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPDocument.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPElementImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPElementWriter.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPEnvelopeImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPFactoryImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPFaultElementImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPFaultImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPHeaderElementImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPHeaderImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPMessageDispatcher.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPMessageImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPMessageMarshaller.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPMessageUnMarshaller.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPPartImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/TextImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/UnboundHeader.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/AttachmentPartImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/BoundaryDelimitedInputStream.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/ByteArrayContentHandler.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/CIDGenerator.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/ContentHandlerRegistry.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/ImageDataContentHandler.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MimeConstants.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedDecoder.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedEncoder.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedSwAEncoder.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedXOPEncoder.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/RawByteArrayOutputStream.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/SimpleBoyerMoore.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/SwapableMemoryDataSource.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/XmlDataContentHandler.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/DOMUtils.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/DOMWriter.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/HolderUtils.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/IOUtils.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/JBossWSEntityResolver.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/JavaUtils.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/MimeUtils.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/ObjectNameFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/ThreadLocalAssociation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/UUIDGenerator.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/XMLPredefinedEntityReferenceResolver.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/eventing/
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingBuilderImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingClientUtil.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingConstantsImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingPropertiesImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingTypeImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AttributeElementExtensibleImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AttributeExtensibleImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AttributedQNameImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AttributedURIImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/ElementExtensibleImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/EndpointReferenceImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/MetadataImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/ReferenceParametersImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/RelationshipImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/jaxrpc/
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/jaxrpc/WSAddressingClientHandler.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/jaxrpc/WSAddressingServerHandler.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/metadata/
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/metadata/AddressingOpMetaExt.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/soap/
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/soap/SOAPAddressingBuilderImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/soap/SOAPAddressingPropertiesImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventSourceEndpoint.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventSourceEndpointImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventingConstants.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventingEndpointBase.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventingService.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/SubscriptionManagerEndpoint.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/SubscriptionManagerEndpointImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/deployment/
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/deployment/EventingEndpoint.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/deployment/EventingEndpointDI.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/DeliveryType.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/EndpointReference.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/FilterType.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/MetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/ReferenceParameters.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/RenewRequest.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/RenewResponse.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/StatusRequest.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/StatusResponse.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/SubscribeRequest.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/SubscribeResponse.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/SubscriptionEndRequest.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/UnsubscribeRequest.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/metadata/
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/metadata/EventingEpMetaExt.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/DispatchJob.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/DispatcherDelegate.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/DispatcherFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/EventDispatcher.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/EventSource.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/EventingBuilder.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/Filter.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/Subscription.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionError.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManager.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManagerFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManagerMBean.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionTicket.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/policy/
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/policy/Policy.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/policy/PolicyAlternative.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/policy/PolicyAssertion.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/policy/PolicyFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/BinarySecurityTokenValidator.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/Constants.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/DecodingOperation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/DecryptionOperation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/EncodingOperation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/EncryptionOperation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/FailedAuthenticationException.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/FailedCheckException.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/InvalidSecurityHeaderException.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/InvalidSecurityTokenException.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/KeyResolver.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/Operation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/OperationDescription.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/QNameTarget.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/ReceiveUsernameOperation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireEncryptionOperation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireOperation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireSignatureOperation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireTargetableOperation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireTimestampOperation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/STRTransform.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityAdaptor.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityAdaptorFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityDecoder.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityEncoder.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityStore.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityTokenUnavailableException.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SendUsernameOperation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SignatureOperation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SignatureVerificationOperation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SimplePrincipal.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/Target.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/TimestampOperation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/TimestampVerificationOperation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/TokenOperation.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/UnsupportedAlgorithmException.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/UnsupportedSecurityTokenException.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/Util.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/WSSecurityDispatcher.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/WSSecurityException.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/WsuIdResolver.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/WsuIdTarget.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/BinarySecurityToken.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/DirectReference.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/EncryptedKey.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/KeyIdentifier.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/Reference.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/ReferenceList.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/SecurityElement.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/SecurityHeader.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/SecurityProcess.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/SecurityTokenReference.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/Signature.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/Timestamp.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/Token.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/UsernameToken.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/X509IssuerSerial.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/X509Token.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/jaxrpc/
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/jaxrpc/WSSecurityHandler.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/jaxrpc/WSSecurityHandlerInbound.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/jaxrpc/WSSecurityHandlerOutbound.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/CreateAttachmentVisitor.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/DisableMTOMHandler.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/RestoreXOPElementVisitor.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/XOPContext.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/jaxrpc/
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/jaxrpc/JBossXBContentAdapter.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/jaxrpc/XOPMarshallerImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/jaxrpc/XOPScanner.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/jaxrpc/XOPUnmarshallerImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss/
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ApplicationMetaDataAdaptor.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptor.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB21.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB21MBean.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB3.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB3MBean.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorJSE.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorJSEMBean.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorNestedJSE.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorNestedJSEMBean.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeploymentInfoAdaptor.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/JBossContextServlet.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/JBossServiceEndpointPublisher.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/JBossServiceEndpointServlet.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/PortComponentLinkServlet.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServerConfigImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointGeneratorEJB.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointGeneratorEJB21.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointGeneratorEJB3.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointInterceptor.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointInvokerEJB21.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointInvokerEJB3.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointInvokerMDB.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceRefMetaDataAdaptor.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/WebMetaDataAdaptor.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/WebServiceClientDeployer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/WebServiceClientDeployerMBean.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/jms/
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/jms/JMSMessageDispatcher.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/jms/JMSMessageDispatcherMBean.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/jms/JMSTransportSupport.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/jms/MessageDispatcher.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/jaxrpc/
branches/jbossws-1.0/src/main/java/org/jboss/ws/jbossxb/
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/ClientEndpointMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/EndpointMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/ExtensibleMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/FaultMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/HandlerMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/HandlerMetaDataJAXRPC.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/MetaDataExtension.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/OperationMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/ParameterMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/ServerEndpointMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/ServiceMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/TypeMappingMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/TypesMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/UnifiedMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/jsr109/
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ClientEndpointMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/EndpointMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ExtensibleMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/FaultMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/HandlerMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/HandlerMetaDataJAXRPC.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/MetaDataExtension.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/OperationMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ParameterMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ServerEndpointMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ServiceMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/TypeMappingMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/TypesMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/UnifiedMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/webservices/PortComponentMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/webservices/WebserviceDescriptionMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/webservices/WebservicesFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/webservices/WebservicesMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDL11DefinitionFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDL11Reader.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDL11Writer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDL20Reader.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDL20Writer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDLDefinitionsFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDLLocatorImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDLWriter.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/server/
branches/jbossws-1.0/src/main/java/org/jboss/ws/soap/
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDL11DefinitionFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Reader.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Writer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDLDefinitionsFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDLLocatorImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDLWriter.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDLWriterResolver.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/transport/
branches/jbossws-1.0/src/main/java/org/jboss/ws/utils/
branches/jbossws-1.0/src/main/java/org/jboss/ws/wspolicy/
branches/jbossws-1.0/src/main/java/org/jboss/ws/wsse/
branches/jbossws-1.0/src/main/java/org/jboss/ws/xop/
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/WSDL11ToWSDL20TestCase.java
Modified:
branches/jbossws-1.0/.classpath
branches/jbossws-1.0/ant.properties.example
branches/jbossws-1.0/build.xml
branches/jbossws-1.0/src/main/java/javax/jws/WebMethod.java
branches/jbossws-1.0/src/main/java/javax/jws/WebParam.java
branches/jbossws-1.0/src/main/java/javax/jws/WebResult.java
branches/jbossws-1.0/src/main/java/javax/jws/WebService.java
branches/jbossws-1.0/src/main/java/javax/jws/soap/InitParam.java
branches/jbossws-1.0/src/main/java/javax/jws/soap/SOAPBinding.java
branches/jbossws-1.0/src/main/java/javax/jws/soap/SOAPMessageHandler.java
branches/jbossws-1.0/src/main/java/javax/jws/soap/SOAPMessageHandlers.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/Call.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/JAXRPCException.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/Service.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/ServiceException.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/ServiceFactory.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/encoding/Deserializer.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/encoding/Serializer.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/handler/GenericHandler.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/handler/HandlerChain.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/handler/HandlerInfo.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/handler/HandlerRegistry.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/handler/soap/SOAPMessageContext.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/BigDecimalHolder.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/BigIntegerHolder.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/BooleanHolder.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/BooleanWrapperHolder.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/ByteArrayHolder.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/ByteHolder.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/ByteWrapperHolder.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/CalendarHolder.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/DoubleHolder.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/DoubleWrapperHolder.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/FloatHolder.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/FloatWrapperHolder.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/IntHolder.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/IntegerWrapperHolder.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/LongHolder.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/LongWrapperHolder.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/ObjectHolder.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/QNameHolder.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/ShortHolder.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/ShortWrapperHolder.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/StringHolder.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/server/ServletEndpointContext.java
branches/jbossws-1.0/src/main/java/javax/xml/rpc/soap/SOAPFaultException.java
branches/jbossws-1.0/src/main/java/javax/xml/soap/AttachmentPart.java
branches/jbossws-1.0/src/main/java/javax/xml/soap/Detail.java
branches/jbossws-1.0/src/main/java/javax/xml/soap/DetailEntry.java
branches/jbossws-1.0/src/main/java/javax/xml/soap/MessageFactory.java
branches/jbossws-1.0/src/main/java/javax/xml/soap/MimeHeader.java
branches/jbossws-1.0/src/main/java/javax/xml/soap/MimeHeaders.java
branches/jbossws-1.0/src/main/java/javax/xml/soap/Name.java
branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPBody.java
branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPBodyElement.java
branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPConnectionFactory.java
branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPConstants.java
branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPElementFactory.java
branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPEnvelope.java
branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPException.java
branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPFactory.java
branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPFault.java
branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPFaultElement.java
branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPHeaderElement.java
branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPMessage.java
branches/jbossws-1.0/src/main/java/javax/xml/ws/BindingType.java
branches/jbossws-1.0/src/main/java/javax/xml/ws/RequestWrapper.java
branches/jbossws-1.0/src/main/java/javax/xml/ws/ResponseWrapper.java
branches/jbossws-1.0/src/main/java/javax/xml/ws/addressing/Action.java
branches/jbossws-1.0/src/main/java/javax/xml/ws/addressing/AddressingBuilder.java
branches/jbossws-1.0/src/main/java/javax/xml/ws/addressing/AddressingException.java
branches/jbossws-1.0/src/main/java/javax/xml/ws/addressing/EndpointReference.java
branches/jbossws-1.0/src/main/java/javax/xml/ws/addressing/FaultAction.java
branches/jbossws-1.0/src/main/java/javax/xml/ws/addressing/JAXWSAConstants.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/Constants.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/AnnotationsMetaDataBuilder.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/JSR109ClientMetaDataBuilder.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/JSR109Deployment.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/JSR109MetaDataBuilder.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/JSR109ServerMetaDataBuilder.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/JSR181MetaDataBuilder.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/JSR181MetaDataBuilderEJB21.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/JSR181MetaDataBuilderEJB3.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/JSR181MetaDataBuilderJSE.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/MetaDataBuilder.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/ServiceEndpointDeployer.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/ServiceEndpointPublisher.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/SecurityAdaptorFactoryImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/tomcat/DeploymentInfoAdaptor.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/tomcat/KernelBootstrap.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/tomcat/ServerConfigImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/tomcat/TomcatContextServlet.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/tomcat/TomcatServiceEndpointPublisher.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/tomcat/TomcatServiceEndpointServlet.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/config/WSCommonConfig.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/config/WSConfigFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/config/jaxrpc/WSCommonConfigJAXRPC.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/config/jaxrpc/WSConfigFactoryJAXRPC.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/config/jaxrpc/WSEndpointConfigJAXRPC.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/j2ee/UnifiedHandlerMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/jsr181/HandlerChainFactory.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/jsr181/HandlerChainMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/jsr181/HandlerChainsMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/DOMTypes.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDLDefinitions.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDLUtils.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/xmlschema/JBossXSModel.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/xmlschema/WSSchemaUtils.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/xsd/SchemaUtils.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/JavaToWSDL.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/JavaToWSDL11.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/JavaToXSD.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/ToolsUtils.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/WSDLToJava.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/WSDotXMLCreator.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/XSDToJava.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/XSDTypeToJava.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/helpers/JavaToWSDLHelper.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/helpers/MappingFileGeneratorHelper.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/helpers/ToolsHelper.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/interfaces/SchemaCreatorIntf.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/interfaces/WSDLToJavaIntf.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/interfaces/XSDToJavaIntf.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/mapping/MappingFileGenerator.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/metadata/ReflectiveMetaDataBuilder.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/metadata/ToolsAnnotationMetaDataBuilder.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/metadata/ToolsEndpointMetaData.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/metadata/ToolsUnifiedMetaDataBuilder.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/schema/SchemaTypeCreator.java
branches/jbossws-1.0/src/main/resources/jbossws.beans/META-INF/jboss-beans.xml
branches/jbossws-1.0/src/main/resources/jbossws.sar/META-INF/jboss-service.xml
branches/jbossws-1.0/src/main/resources/jbossws.sar/META-INF/standard-jaxrpc-client-config.xml
branches/jbossws-1.0/src/main/resources/jbossws.sar/META-INF/standard-jaxrpc-endpoint-config.xml
branches/jbossws-1.0/src/main/resources/jbossws.war/JBoss/WEB-INF/web.xml
branches/jbossws-1.0/src/main/resources/jbossws.war/Tomcat/META-INF/jboss-beans.xml
branches/jbossws-1.0/src/main/resources/jbossws14.sar/META-INF/jboss-service.xml
branches/jbossws-1.0/src/test/build.xml
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/JBossWSTest.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/JBossWSTestSetup.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/binding/SOAPBindingTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/config/WSConfigTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/SerializerDeserializerTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/array/BigDecimalArrayMarshallerTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/array/BigDecimalArrayUnmarshallerTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/array/CalendarArrayMarshallerTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/array/CalendarArrayUnmarshallerTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/array/QNameArrayMarshallerTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/array/QNameArrayUnmarshallerTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/complex/ComplexTypeMarshallerTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/complex/ComplexTypeUnmarshallerTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/docstyle/DocumentStyleMarshallerTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/docstyle/DocumentStyleUnmarshallerTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/simple/SimpleUserTypeMarshallerTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/simple/SimpleUserTypeUnmarshallerTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/MessageFactoryTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/SOAPConnectionTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/SOAPContentElementTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/SOAPEnvelopeTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/SOAPFactoryTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/SOAPFaultTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/SOAPHeaderElementTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/SOAPHeaderTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/attachment/GenericAttachmentTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/utils/DOMWriterTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/utils/JavaUtilsTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/wsdl11/MicrosoftGeneratedWSDLTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/wsdl11/MultiSchemaTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/wsdl11/SimpleFileImportTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/wsdl11/WSDL11TestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/wsdl11/WSDLTypesTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/wsdl11/WSDLWithAnonTypesTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/ClientScenario.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsa10/AddressingTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsa10/Echo2_Stub.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsa10/Echo4_Stub.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsa10/Echo_Stub.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsa10/Notify_Stub.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsa10/WSAddressingCR.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsa10/WSAddressingCR_Impl.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsaTestService/ConstraintHandler.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsaTestService/WsaTestService.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/MTOMTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/SecureMTOMTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/TestService.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/PingService10Sign.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/SignTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/EncryptTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/PingService10.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitB/BaseDataTypesDocLitBService.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitB/BaseDataTypesDocLitBService_Impl.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitB/BaseDataTypesDocLitBTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitB/IBaseDataTypesDocLitB_Stub.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitB_Service/BaseDataTypesDocLitBService.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/BaseDataTypesDocLitWService.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/BaseDataTypesDocLitWService_Impl.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/BaseDataTypesDocLitWTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/IBaseDataTypesDocLitW_Stub.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetBoolResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetBool_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetByteArrayResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetByteArray_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetByteResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetByte_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetCharResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetChar_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetDateTimeResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetDateTime_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetDecimalResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetDecimal_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetDoubleResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetDouble_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetFloatResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetFloat_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetGuidResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetGuid_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetIntResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetInt_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetLongResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetLong_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetObjectResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetObject_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetQNameResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetQName_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetSByteResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetSByte_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetShortResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetShort_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetSingleResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetSingle_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetStringResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetString_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetTimeSpanResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetTimeSpan_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetUIntResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetUInt_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetULongResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetULong_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetUShortResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetUShort_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetUriResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetUri_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/BaseDataTypesDocLitWService.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/IBaseDataTypesDocLitW_Tie.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetBoolResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetBool_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetByteArrayResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetByteArray_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetByteResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetByte_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetCharResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetChar_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetDateTimeResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetDateTime_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetDecimalResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetDecimal_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetDoubleResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetDouble_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetFloatResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetFloat_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetGuidResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetGuid_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetIntResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetInt_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetLongResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetLong_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetObjectResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetObject_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetQNameResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetQName_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetSByteResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetSByte_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetShortResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetShort_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetSingleResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetSingle_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetStringResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetString_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetTimeSpanResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetTimeSpan_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetUIntResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetUInt_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetULongResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetULong_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetUShortResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetUShort_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetUriResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetUri_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesProxy.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/BaseDataTypesRpcLitService.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/BaseDataTypesRpcLitService_Impl.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/BaseDataTypesRpcLitTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetBool_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetBool_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetByteArray_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetByteArray_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetByte_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetByte_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetChar_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetChar_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetDateTime_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetDateTime_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetDecimal_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetDecimal_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetDouble_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetDouble_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetFloat_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetFloat_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetGuid_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetGuid_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetInt_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetInt_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetLong_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetLong_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetObject_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetObject_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetQName_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetQName_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetSByte_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetSByte_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetShort_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetShort_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetSingle_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetSingle_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetString_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetString_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetTimeSpan_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetTimeSpan_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetUInt_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetUInt_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetULong_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetULong_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetUShort_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetUShort_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetUri_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetUri_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_Stub.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetBool_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetBool_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetByteArray_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetByteArray_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetByte_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetByte_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetChar_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetChar_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetDateTime_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetDateTime_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetDecimal_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetDecimal_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetDouble_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetDouble_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetFloat_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetFloat_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetGuid_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetGuid_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetInt_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetInt_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetLong_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetLong_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetObject_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetObject_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetQName_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetQName_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetSByte_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetSByte_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetShort_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetShort_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetSingle_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetSingle_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetString_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetString_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetTimeSpan_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetTimeSpan_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetUInt_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetUInt_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetULong_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetULong_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetUShort_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetUShort_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetUri_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetUri_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_Tie.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/ServiceImpl.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesSupport.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesDocLitB/ComplexDataTypesDocLitBTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesDocLitB_Service/ServiceImpl.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesDocLitW/ComplexDataTypesDocLitWTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesDocLitW_Service/ServiceImpl.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesProxy.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesRpcLit/ComplexDataTypesRpcLitTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesRpcLit_Service/ServiceImpl.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ArrayOfArrayOfstring_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ArrayOfNullableOfdateTime_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ArrayOfNullableOfdecimal_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ArrayOfPerson_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ArrayOfanyType_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ArrayOfint_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ArrayOfshort_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ArrayOfstring_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/BitMask.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/BitMask_Encoder.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ComplexDataTypesDocLitBService.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ComplexDataTypesDocLitBService_Impl.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ComplexDataTypesDocLitWService.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ComplexDataTypesDocLitWService_Impl.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ComplexDataTypesRpcLitService.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ComplexDataTypesRpcLitService_Impl.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/Employee_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/Furniture_InterfaceSOAPSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/Furniture_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/Group_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesDocLitB_Stub.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesDocLitW_Stub.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArray1D_SN_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArray1D_SN_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayAnyType1D_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayAnyType1D_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayDateTime1D_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayDateTime1D_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayDecimal1D_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayDecimal1D_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayInt1D_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayInt1D_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayString1D_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayString1D_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayString2D_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayString2D_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetDerivedClass_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetDerivedClass_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetEnumInt_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetEnumInt_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetEnumString_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetEnumString_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetStructS1_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetStructS1_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetStructSNSAS_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetStructSNSAS_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetStructSNSA_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetStructSNSA_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetStructSN_RequestStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetStructSN_ResponseStruct_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_Stub.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IntSet.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IntSet_Encoder.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/Name_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/Person_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArray1D_SNResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArray1D_SN_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayAnyType1DResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayAnyType1D_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayDateTime1DResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayDateTime1D_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayDecimal1DResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayDecimal1D_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayInt1DResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayInt1D_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayString1DResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayString1D_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayString2DResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayString2D_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetDerivedClassResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetDerivedClass_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetEnumIntResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetEnumInt_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetEnumStringResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetEnumString_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetStructS1Response_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetStructS1_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetStructSNResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetStructSNSAResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetStructSNSASResponse_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetStructSNSAS_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetStructSNSA_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetStructSN_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/Table_LiteralSerializer.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesSupport.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/encoded/marshalltest/JavaBean.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/encoded/marshalltest/ValueType.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1068/JBWS1068TestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1093/JBWS1093TestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1107/JBWS1107TestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1115/JBWS1115TestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1124/JBWS1124TestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1179/TestEndpointImpl.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1186/JBWS1186TestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1186/ServerHandler.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1190/TestEndpointImpl.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1205/TestEndpointImpl.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws434/JBWS434TestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws775/JBWS775TestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws812/JBWS812TestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws812/ServerHandler.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws950/JBWS950TestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws955/JBWS955TestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws956/JBWS956TestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws958/JBWS958TestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/marshall/MarshallDocLitTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/marshall/MarshallRpcLitDIITestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/marshall/MarshallTest.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/docstyle/bare/TrivialServiceDocBareTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/docstyle/wrapped/TrivialServiceDocWrappedTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/dynamichandler/DynamicHandlerTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/exception/ExceptionTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/handler/ClientSideHandler.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/handler/HeaderClientTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/handler/HeaderDIITestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/handler/HeaderProxyTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/holder/HolderTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jmstransport/JMSTransportTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jmstransport/OrganizationJMSEndpoint.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jsr109ejb/RpcDIIConfiguredCallTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jsr109ejb/RpcDIIUnconfiguredCallTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jsr109ejb/RpcProxyTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jsr109pojo/DocJSETestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jsr109pojo/RpcDIIConfiguredCallTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jsr109pojo/RpcDIIUnconfiguredCallTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jsr109pojo/RpcJSETestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jsr109pojo/RpcProxyTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/message/MessageTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/message/MessageTestServiceBean.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/mtom/EmployeeRecords.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/mtom/EmployeeRecordsImpl.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/mtom/MTOMTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/oneway/OneWayTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/rpcstyle/TrivialServiceRpcTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/swa/AttachmentProxyTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/swa/AttachmentSAAJTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/wseventing/SysmonTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/wseventing/SysmonUtil.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/wssecurity/SimpleEncryptTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/wssecurity/SimpleSignTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/wssecurity/StorePassEncryptTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/TestEndpointService.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/WebServiceRefClientTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/WebServiceRefEJBTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/WebServiceRefServletTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/DIIClientTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/EventSinkServlet.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/EventingSupport.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/EventingTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/NotificationTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/SubscriptionManagerTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wsse/MicrosoftInteropTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wsse/RoundTripTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wsse/SunInteropTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/XOPTestSupport.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/XOPTypeDefTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/doclit/InlineHandler.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/doclit/XOPBase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/doclit/XOPHandlerTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/doclit/XOPPing.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/doclit/XOPPingImpl.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/doclit/XOPTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/rpclit/InlineHandler.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/rpclit/XOPBase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/rpclit/XOPHandlerTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/rpclit/XOPPing.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/rpclit/XOPPingImpl.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/rpclit/XOPTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/shared/MTOMServiceBase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/shared/PingImage.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/shared/PingImageResponse.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jbws1178/JBWS1178TestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jbws1190/JBWS1190TestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jbws1190/TestEndpointImpl.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jbws860/JBWS860TestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jbws944/JBWS944TestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/complex/JSR181ComplexTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/complex/client/RegistrationServiceService.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/handlerchain/JSR181HandlerChainTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/oneway/JSR181OneWayTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/soapbinding/JSR181SOAPBindingTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/webmethod/JSR181WebMethodTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/webparam/JSR181WebParamTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/webresult/JSR181WebResultTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/webservice/JSR181WebServiceEJB21TestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/webservice/JSR181WebServiceEJB3TestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/webservice/JSR181WebServiceJSETestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/samples/jsr181ejb/JSR181WebServiceEJB3TestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/samples/jsr181pojo/JSR181WebServiceJSETestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/samples/wsaddressing/AddressingStatefulTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/samples/wsaddressing/ClientHandler.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/samples/wsaddressing/ServerHandler.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/wsaddressing/EndpointReferenceTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/wsaddressing/replyto/ClientHandler.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/wsaddressing/replyto/FaultToEndpointImpl.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/JavaToWSDL11TestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/SchemaGeneratorTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/WSDL11ToJavaTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/WSToolsTest.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/clientside/ClientSideArtifactsTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/doclit/ToolsDocLitTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/enums/EnumTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/holders/StandardHoldersTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/java2xsd/SchemaModelTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/java2xsd/SchemaTypesCreatorTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws1079/JBWS1079TestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws1090/JBWS1090TestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws1170/JBWS1170TestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws1253/JBWS1253TestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws818/JBWS818TestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws_204/AnonTypesTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws_204/NillableTypesTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws_204/StandardArraysTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws_204/StandardDoubleArraysTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/metadata/JavaWsdlMappingMetaDataTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/metadata/WebServicesMetaDataTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/validation/WSDL11ValidationTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/xmlschema/WSDLTypesTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/xmlschema/XercesSchemaParserTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/xsdjava/AnonymousTypesTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/xsdjava/ComplexTypesTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/xsdjava/NillableTypesTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/xsdjava/ReferencesTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/xsdjava/SimpleTypesTestCase.java
branches/jbossws-1.0/src/test/resources/common/config/jaxrpc-endpoint-config.xml
branches/jbossws-1.0/src/test/resources/common/config/jaxws-endpoint-config.xml
branches/jbossws-1.0/src/test/resources/interop/microsoft/addressing/wsa10/META-INF/application-client.xml
branches/jbossws-1.0/src/test/resources/interop/microsoft/addressing/wsaTestService/WEB-INF/webservices.xml
branches/jbossws-1.0/src/test/resources/jaxrpc/marshall-rpclit/WEB-INF/webservices.xml
branches/jbossws-1.0/src/test/resources/jaxrpc/samples/wseventing/META-INF/application-client.xml
branches/jbossws-1.0/src/test/resources/jaxrpc/samples/wseventing/WEB-INF/jaxrpc-mapping.xml
branches/jbossws-1.0/src/test/resources/jaxrpc/samples/wseventing/WEB-INF/web.xml
branches/jbossws-1.0/src/test/resources/jaxrpc/samples/wseventing/WEB-INF/webservices.xml
branches/jbossws-1.0/src/test/resources/jaxrpc/wseventing/META-INF/application-client.xml
branches/jbossws-1.0/src/test/resources/jaxrpc/wseventing/WEB-INF/jaxrpc-mapping.xml
branches/jbossws-1.0/src/test/resources/jaxrpc/wseventing/WEB-INF/web.xml
branches/jbossws-1.0/src/test/resources/jaxrpc/wseventing/WEB-INF/webservices.xml
branches/jbossws-1.0/src/test/resources/jaxws/samples/jsr181ejb/config/ServerHandlers.xml
branches/jbossws-1.0/src/test/resources/jaxws/wsaddressing/action/META-INF/jbossws-client-config.xml
Log:
reorganize package structure
Modified: branches/jbossws-1.0/.classpath
===================================================================
--- branches/jbossws-1.0/.classpath 2006-12-07 12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/.classpath 2006-12-07 13:30:48 UTC (rev 1606)
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/main/java"/>
- <classpathentry kind="src" path="output/tests/wstools/java"/>
- <classpathentry excluding="org/jboss/test/ws/interop/" kind="src"
path="src/test/java"/>
+ <classpathentry kind="src" path="src/test/java"/>
<classpathentry kind="lib" path="thirdparty/activation.jar"/>
<classpathentry kind="lib" path="thirdparty/mailapi.jar"/>
<classpathentry kind="lib" path="thirdparty/qdox.jar"/>
@@ -23,7 +22,6 @@
<classpathentry kind="lib"
path="thirdparty/jboss-xml-binding.jar"/>
<classpathentry kind="lib"
path="thirdparty/stax-api-1.0.jar"/>
<classpathentry kind="lib"
path="thirdparty/wstx-lgpl-2.0.6.jar"/>
- <classpathentry kind="con"
path="org.eclipse.jdt.USER_LIBRARY/jboss-4.0.5"/>
<classpathentry kind="lib" path="thirdparty/ant.jar"/>
<classpathentry kind="lib" path="thirdparty/jboss.jar"
sourcepath="/home/tdiesler/svn/jbossas/tags/JBoss_4_0_5_GA/server/src/main"/>
<classpathentry kind="lib" path="thirdparty/jboss-j2ee.jar"/>
@@ -33,5 +31,6 @@
<classpathentry kind="lib"
path="thirdparty/jboss-common.jar"/>
<classpathentry kind="lib"
path="thirdparty/jboss-remoting.jar"/>
<classpathentry kind="lib" path="thirdparty/wsdl4j.jar"/>
+ <classpathentry kind="con"
path="org.eclipse.jdt.USER_LIBRARY/jboss-4.2.x"/>
<classpathentry kind="output" path="output-eclipse"/>
</classpath>
Modified: branches/jbossws-1.0/ant.properties.example
===================================================================
--- branches/jbossws-1.0/ant.properties.example 2006-12-07 12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/ant.properties.example 2006-12-07 13:30:48 UTC (rev 1606)
@@ -1,9 +1,9 @@
#
# A sample ant properties file
#
+# $Id$
# Required JBoss Home
-#jboss.jdk15.home=/home/tdiesler/svn/jbossas/tags/JBoss_4_0_5_GA/build/output/jboss-4.0.5.GA-ejb3
#jboss.jdk15.home=/home/tdiesler/svn/jbossas/branches/Branch_4_2/build/output/jboss-4.2.0.CR1-ejb3
# Optional JBoss Home
Modified: branches/jbossws-1.0/build.xml
===================================================================
--- branches/jbossws-1.0/build.xml 2006-12-07 12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/build.xml 2006-12-07 13:30:48 UTC (rev 1606)
@@ -247,7 +247,7 @@
<jar jarfile="${build.lib.dir}/jbossws-jboss-integration.jar"
manifest="${build.etc.dir}/default.mf">
<fileset dir="${build.classes.dir}">
<include name="org/jboss/ws/integration/*.class"/>
- <include name="org/jboss/ws/integration/jboss/**"/>
+ <include name="org/jboss/ws/integration/jboss42/**"/>
<include name="org/jboss/ws/transport/jms/**"/>
<include
name="org/jboss/ws/server/ServiceEndpointInterceptor.class"/>
</fileset>
@@ -269,7 +269,7 @@
<fileset dir="${build.classes.dir}">
<include name="javax/**"/>
<include name="org/jboss/ws/**"/>
- <exclude name="org/jboss/ws/integration/jboss/**"/>
+ <exclude name="org/jboss/ws/integration/jboss42/**"/>
<exclude name="org/jboss/ws/integration/tomcat/**"/>
<exclude name="org/jboss/ws/transport/jms/**"/>
</fileset>
@@ -374,7 +374,7 @@
<jar jarfile="${build.lib.dir}/jbossws14-jboss-integration.jar"
manifest="${build.etc.dir}/default.mf">
<fileset dir="${build.classes14.dir}">
<include name="org/jboss/ws/integration/*.class"/>
- <include name="org/jboss/ws/integration/jboss/**"/>
+ <include name="org/jboss/ws/integration/jboss42/**"/>
<include name="org/jboss/ws/transport/jms/**"/>
<include
name="org/jboss/ws/server/ServiceEndpointInterceptor.class"/>
</fileset>
@@ -392,7 +392,7 @@
<fileset dir="${build.classes14.dir}">
<include name="javax/**"/>
<include name="org/jboss/ws/**"/>
- <exclude name="org/jboss/ws/integration/jboss/**"/>
+ <exclude name="org/jboss/ws/integration/jboss42/**"/>
<exclude name="org/jboss/ws/integration/tomcat/**"/>
<exclude name="org/jboss/ws/transport/jms/**"/>
</fileset>
@@ -527,7 +527,19 @@
<target name="deploy-to-server">
<copy todir="${jboss.deploy.home}/client"
file="${thirdparty.dir}/jboss-xml-binding.jar" overwrite="true"/>
<copy todir="${jboss.deploy.home}/lib"
file="${thirdparty.dir}/jboss-xml-binding.jar" overwrite="true"/>
- <copy todir="${jboss.deploy.home}/client"
file="${build.lib.dir}/${jbossws}-client.jar" overwrite="true"/>
+ <copy todir="${jboss.deploy.home}/client"
overwrite="true">
+ <fileset dir="${build.lib.dir}">
+ <include name="jboss-jaxrpc.jar"/>
+ <include name="jboss-saaj.jar"/>
+ <include name="${jbossws}-client.jar"/>
+ </fileset>
+ </copy>
+ <copy todir="${jboss.deploy.home}/server/${jboss.server.instance}/lib"
overwrite="true">
+ <fileset dir="${build.lib.dir}">
+ <include name="jboss-jaxrpc.jar"/>
+ <include name="jboss-saaj.jar"/>
+ </fileset>
+ </copy>
<delete
dir="${jboss.deploy.home}/server/${jboss.server.instance}/deploy/${jbossws}.sar"/>
<mkdir
dir="${jboss.deploy.home}/server/${jboss.server.instance}/deploy/${jbossws}.sar"/>
<unjar
dest="${jboss.deploy.home}/server/${jboss.server.instance}/deploy/${jbossws}.sar"
src="${build.lib.dir}/${jbossws}.sar"/>
Modified: branches/jbossws-1.0/src/main/java/javax/jws/WebMethod.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/jws/WebMethod.java 2006-12-07 12:39:20 UTC
(rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/jws/WebMethod.java 2006-12-07 13:30:48 UTC
(rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.jws;
// $Id$
@@ -38,9 +38,13 @@
* @since 26-Apr-2005
*/
@Retention(value = RetentionPolicy.RUNTIME)
-(a)Target({ElementType.METHOD})
+@Target( { ElementType.METHOD })
public @interface WebMethod
{
+ /**
+ * Indicate that a method should not be exposed on the Web Service
+ */
+ boolean exclude() default false;
/**
* Name of the wsdl:operation matching this method. By default the WSDL operation
name will be the same
@@ -52,6 +56,4 @@
* The action for this operation. For SOAP bindings, this determines the value of
the SOAPAction header.
*/
String action() default "";
-}
-
-;
+};
Modified: branches/jbossws-1.0/src/main/java/javax/jws/WebParam.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/jws/WebParam.java 2006-12-07 12:39:20 UTC
(rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/jws/WebParam.java 2006-12-07 13:30:48 UTC
(rev 1606)
@@ -65,11 +65,11 @@
* This is only used if the operation is rpc style, or if the operation is document
style and the parameter style is BARE.
*/
String partName() default "";
-
+
/**
* The XML namespace for the parameter.
*
- * Only used if the operation is document style or the paramater maps to a header. If
the target namespace is set to '', this represents the empty namespace.
+ * Only used if the operation is document style or the paramater maps to a header. If
the target namespace is set to “”, this represents the empty namespace.
*
* Specification Default:
* If the operation is document style, the parameter style is WRAPPED, and the
parameter does not map to a header, the empty namespace.
Modified: branches/jbossws-1.0/src/main/java/javax/jws/WebResult.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/jws/WebResult.java 2006-12-07 12:39:20 UTC
(rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/jws/WebResult.java 2006-12-07 13:30:48 UTC
(rev 1606)
@@ -42,14 +42,14 @@
* If true, the result is pulled from a message header rather then the message body.
*/
boolean header() default false;
-
+
/**
* If the operation is rpc style and @WebResult.partName has not been specified, this
is the name of the wsdl:part representing the return value.
* If the operation is document style or the return value maps to a header, this is
the local name of the XML element representing the return value.
*
* Specification Default:
- * If the operation is document style and the parameter style is BARE,
@WebParam.operationName+'Response'.
- * Otherwise, 'return.'
+ * If the operation is document style and the parameter style is BARE,
@WebParam.operationName+”Response”.
+ * Otherwise, “return.”
*/
String name() default "";
@@ -62,7 +62,7 @@
/**
* The XML namespace for the return value.
*
- * Only used if the operation is document style or the return value maps to a header.
If the target namespace is set to '', this represents the empty namespace.
+ * Only used if the operation is document style or the return value maps to a header.
If the target namespace is set to “”, this represents the empty namespace.
*
* Specification Default:
* If the operation is document style, the parameter style is WRAPPED, and the
return value does not map to a header, the empty namespace.
Modified: branches/jbossws-1.0/src/main/java/javax/jws/WebService.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/jws/WebService.java 2006-12-07 12:39:20 UTC
(rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/jws/WebService.java 2006-12-07 13:30:48 UTC
(rev 1606)
@@ -52,7 +52,7 @@
* Used as the name of the wsdl:port when mapped to WSDL 1.1.
* This member-value is not allowed on endpoint interfaces.
* Specification Default:
- * @WebService.name + 'Port'.
+ * @WebService.name + ”Port”.
*/
String portName() default "";
@@ -78,7 +78,7 @@
* This member-value is not allowed on endpoint interfaces.
*
* Specification Default:
- * The simple name of the Java class + 'Service".
+ * The simple name of the Java class + “Service".
*/
String serviceName() default "";
Modified: branches/jbossws-1.0/src/main/java/javax/jws/soap/InitParam.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/jws/soap/InitParam.java 2006-12-07 12:39:20
UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/jws/soap/InitParam.java 2006-12-07 13:30:48
UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.jws.soap;
// $Id$
@@ -40,7 +40,4 @@
* Value of the initialization parameter
*/
String value();
-}
-
-;
-
+};
Modified: branches/jbossws-1.0/src/main/java/javax/jws/soap/SOAPBinding.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/jws/soap/SOAPBinding.java 2006-12-07 12:39:20
UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/jws/soap/SOAPBinding.java 2006-12-07 13:30:48
UTC (rev 1606)
@@ -36,7 +36,8 @@
*/
@Retention(value = RetentionPolicy.RUNTIME)
@Target(value = { ElementType.TYPE })
-public @interface SOAPBinding {
+public @interface SOAPBinding
+{
/**
* The SOAP binding style
Modified: branches/jbossws-1.0/src/main/java/javax/jws/soap/SOAPMessageHandler.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/jws/soap/SOAPMessageHandler.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/jws/soap/SOAPMessageHandler.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.jws.soap;
// $Id$
@@ -59,8 +59,4 @@
* documentation for javax.xml.namespace.QName.valueOf(String qNameAsString)
*/
String[] headers() default {};
-}
-
-;
-
-
+};
Modified: branches/jbossws-1.0/src/main/java/javax/jws/soap/SOAPMessageHandlers.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/jws/soap/SOAPMessageHandlers.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/jws/soap/SOAPMessageHandlers.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.jws.soap;
// $Id$
@@ -39,11 +39,9 @@
* @deprecated
*/
@Retention(value = RetentionPolicy.RUNTIME)
- @Target(value = {ElementType.TYPE})
- public @interface SOAPMessageHandlers
+@Target(value = { ElementType.TYPE })
+public @interface SOAPMessageHandlers
{
SOAPMessageHandler[] value();
-}
-
-;
+};
Modified: branches/jbossws-1.0/src/main/java/javax/xml/rpc/Call.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/rpc/Call.java 2006-12-07 12:39:20 UTC
(rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/rpc/Call.java 2006-12-07 13:30:48 UTC
(rev 1606)
@@ -21,12 +21,13 @@
*/
package javax.xml.rpc;
-import javax.xml.namespace.QName;
import java.rmi.RemoteException;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
+import javax.xml.namespace.QName;
+
/** The javax.xml.rpc.Call interface provides support for the dynamic invocation of a
service endpoint.
* The javax.xml.rpc.Service interface acts as a factory for the creation of Call
instances.
*
@@ -199,35 +200,35 @@
public Iterator getPropertyNames();
/** Invokes a specific operation using a synchronous request-response interaction
mode.
- *
- * @param inputParams Object[]--Parameters for this invocation. This includes only the
input params
- * @return Returns the return value or null
- * @throws RemoteException if there is any error in the remote method invocation
- * @throws javax.xml.rpc.soap.SOAPFaultException Indicates a SOAP fault
- * @throws JAXRPCException
- * <ul>
- * <li>If there is an error in the configuration of the Call object
- * <li> If inputParams do not match the required parameter set (as specified
through the addParameter invocations or in the corresponding WSDL)
- * <li> If parameters and return type are incorrectly specified
- * </ul>
- */
- public Object invoke(Object[] inputParams) throws RemoteException;
+ *
+ * @param inputParams Object[]--Parameters for this invocation. This includes only the
input params
+ * @return Returns the return value or null
+ * @throws RemoteException if there is any error in the remote method invocation
+ * @throws javax.xml.rpc.soap.SOAPFaultException Indicates a SOAP fault
+ * @throws JAXRPCException
+ * <ul>
+ * <li>If there is an error in the configuration of the Call object
+ * <li> If inputParams do not match the required parameter set (as specified
through the addParameter invocations or in the corresponding WSDL)
+ * <li> If parameters and return type are incorrectly specified
+ * </ul>
+ */
+ public Object invoke(Object[] inputParams) throws RemoteException;
- /** Invokes a specific operation using a synchronous request-response interaction
mode.
- *
- * @param operationName QName of the operation
- * @param inputParams Object[]--Parameters for this invocation. This includes only the
input params.
- * @return Return value or null
- * @throws RemoteException if there is any error in the remote method invocation.
- * @throws javax.xml.rpc.soap.SOAPFaultException - Indicates a SOAP fault
- * @throws JAXRPCException
- * <ul>
- * <li> If there is an error in the configuration of the Call object
- * <li> If inputParams do not match the required parameter set (as specified
through the addParameter invocations or in the corresponding WSDL)
- * <li> If parameters and return type are incorrectly specified
- * </ul>
- */
- public Object invoke(QName operationName, Object[] inputParams) throws
RemoteException;
+ /** Invokes a specific operation using a synchronous request-response interaction
mode.
+ *
+ * @param operationName QName of the operation
+ * @param inputParams Object[]--Parameters for this invocation. This includes only the
input params.
+ * @return Return value or null
+ * @throws RemoteException if there is any error in the remote method invocation.
+ * @throws javax.xml.rpc.soap.SOAPFaultException - Indicates a SOAP fault
+ * @throws JAXRPCException
+ * <ul>
+ * <li> If there is an error in the configuration of the Call object
+ * <li> If inputParams do not match the required parameter set (as specified
through the addParameter invocations or in the corresponding WSDL)
+ * <li> If parameters and return type are incorrectly specified
+ * </ul>
+ */
+ public Object invoke(QName operationName, Object[] inputParams) throws
RemoteException;
/** Invokes a remote method using the one-way interaction mode.
* The client thread does not normally block waiting for the completion of the server
processing for this
@@ -251,9 +252,9 @@
public Map getOutputParams();
/** Returns a List values for the output parameters of the last invoked operation.
- *
- * @return java.util.List Values for the output parameters. An empty List is returned
if there are no output values.
- * @throws JAXRPCException If this method is invoked for a one-way operation or is
invoked before any invoke method has been called.
- */
- public List getOutputValues();
+ *
+ * @return java.util.List Values for the output parameters. An empty List is returned
if there are no output values.
+ * @throws JAXRPCException If this method is invoked for a one-way operation or is
invoked before any invoke method has been called.
+ */
+ public List getOutputValues();
}
Modified: branches/jbossws-1.0/src/main/java/javax/xml/rpc/JAXRPCException.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/rpc/JAXRPCException.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/rpc/JAXRPCException.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.rpc;
import org.jboss.util.id.SerialVersion;
@@ -35,8 +35,7 @@
{
if (SerialVersion.version == SerialVersion.LEGACY)
serialVersionUID = 2012915834079496799L;
- else
- serialVersionUID = 5213579554532711730L;
+ else serialVersionUID = 5213579554532711730L;
}
public JAXRPCException()
Modified: branches/jbossws-1.0/src/main/java/javax/xml/rpc/Service.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/rpc/Service.java 2006-12-07 12:39:20 UTC
(rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/rpc/Service.java 2006-12-07 13:30:48 UTC
(rev 1606)
@@ -21,13 +21,14 @@
*/
package javax.xml.rpc;
-import javax.xml.namespace.QName;
-import javax.xml.rpc.encoding.TypeMappingRegistry;
-import javax.xml.rpc.handler.HandlerRegistry;
import java.net.URL;
import java.rmi.Remote;
import java.util.Iterator;
+import javax.xml.namespace.QName;
+import javax.xml.rpc.encoding.TypeMappingRegistry;
+import javax.xml.rpc.handler.HandlerRegistry;
+
/** Service class acts as a factory for:
* <ul>
* <li>Dynamic proxy for the target service endpoint.
Modified: branches/jbossws-1.0/src/main/java/javax/xml/rpc/ServiceException.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/rpc/ServiceException.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/rpc/ServiceException.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.rpc;
import org.jboss.util.id.SerialVersion;
@@ -35,8 +35,7 @@
{
if (SerialVersion.version == SerialVersion.LEGACY)
serialVersionUID = -4042547292194127311L;
- else
- serialVersionUID = -6582148924441189775L;
+ else serialVersionUID = -6582148924441189775L;
}
public ServiceException()
Modified: branches/jbossws-1.0/src/main/java/javax/xml/rpc/ServiceFactory.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/rpc/ServiceFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/rpc/ServiceFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -54,8 +54,8 @@
/** A constant representing the property used to lookup the name of a ServiceFactory
implementation class. */
public static final String SERVICEFACTORY_PROPERTY =
"javax.xml.rpc.ServiceFactory";
- private static final String DEFAULT_SERVICE_FACTORY =
"org.jboss.ws.jaxrpc.ServiceFactoryImpl";
- private static final String[] alternativeFactories = new String[] {
"org.jboss.webservice.client.ServiceFactoryImpl",
"org.jboss.axis.client.ServiceFactory" };
+ private static final String DEFAULT_SERVICE_FACTORY =
"org.jboss.ws.core.jaxrpc.ServiceFactoryImpl";
+ private static final String[] alternativeFactories = new String[] {};
protected ServiceFactory()
{
Modified: branches/jbossws-1.0/src/main/java/javax/xml/rpc/encoding/Deserializer.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/rpc/encoding/Deserializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/rpc/encoding/Deserializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.rpc.encoding;
import java.io.Serializable;
@@ -30,8 +30,7 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public interface Deserializer
- extends Serializable
+public interface Deserializer extends Serializable
{
public String getMechanismType();
}
Modified: branches/jbossws-1.0/src/main/java/javax/xml/rpc/encoding/Serializer.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/rpc/encoding/Serializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/rpc/encoding/Serializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.rpc.encoding;
import java.io.Serializable;
@@ -31,8 +31,7 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public interface Serializer
- extends Serializable
+public interface Serializer extends Serializable
{
public String getMechanismType();
}
Modified: branches/jbossws-1.0/src/main/java/javax/xml/rpc/handler/GenericHandler.java
===================================================================
---
branches/jbossws-1.0/src/main/java/javax/xml/rpc/handler/GenericHandler.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/javax/xml/rpc/handler/GenericHandler.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.rpc.handler;
import javax.xml.namespace.QName;
@@ -37,8 +37,7 @@
* @author Rahul Sharma (javadoc)
* @version $Revision$
*/
-public abstract class GenericHandler
- implements Handler
+public abstract class GenericHandler implements Handler
{
/** Default constructor. */
protected GenericHandler()
Modified: branches/jbossws-1.0/src/main/java/javax/xml/rpc/handler/HandlerChain.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/rpc/handler/HandlerChain.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/rpc/handler/HandlerChain.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,30 +1,31 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.rpc.handler;
-import javax.xml.rpc.JAXRPCException;
import java.util.List;
import java.util.Map;
+import javax.xml.rpc.JAXRPCException;
+
/** This interface represents a list of handlers. All elements in the
* HandlerChain are of the type javax.xml.rpc.handler.Handler.
*
@@ -35,8 +36,7 @@
* @author Rahul Sharma (javadoc)
* @version $Revision$
*/
-public interface HandlerChain
- extends List
+public interface HandlerChain extends List
{
/**
* Initializes the configuration for a HandlerChain.
Modified: branches/jbossws-1.0/src/main/java/javax/xml/rpc/handler/HandlerInfo.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/rpc/handler/HandlerInfo.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/rpc/handler/HandlerInfo.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,32 +1,32 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.rpc.handler;
import java.io.Serializable;
-import java.util.Map;
-import java.util.HashMap;
-import java.util.ArrayList;
import java.util.Arrays;
+import java.util.HashMap;
import java.util.List;
+import java.util.Map;
+
import javax.xml.namespace.QName;
/** This represents information about a handler in the HandlerChain. A
@@ -36,8 +36,7 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public class HandlerInfo
- implements Serializable
+public class HandlerInfo implements Serializable
{
private static final long serialVersionUID = -6735139577513563610L;
Modified: branches/jbossws-1.0/src/main/java/javax/xml/rpc/handler/HandlerRegistry.java
===================================================================
---
branches/jbossws-1.0/src/main/java/javax/xml/rpc/handler/HandlerRegistry.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/javax/xml/rpc/handler/HandlerRegistry.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,28 +1,29 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.rpc.handler;
import java.io.Serializable;
import java.util.List;
+
import javax.xml.namespace.QName;
/** This interface provides support for the programmatic configuration of
@@ -39,9 +40,9 @@
* @author Rahul Sharma (javadoc)
* @version $Revision$
*/
-public interface HandlerRegistry
- extends Serializable
+public interface HandlerRegistry extends Serializable
{
public List getHandlerChain(QName portName);
+
public void setHandlerChain(QName portName, List chain);
}
Modified:
branches/jbossws-1.0/src/main/java/javax/xml/rpc/handler/soap/SOAPMessageContext.java
===================================================================
---
branches/jbossws-1.0/src/main/java/javax/xml/rpc/handler/soap/SOAPMessageContext.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/javax/xml/rpc/handler/soap/SOAPMessageContext.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,28 +1,28 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.rpc.handler.soap;
+import javax.xml.rpc.handler.MessageContext;
import javax.xml.soap.SOAPMessage;
-import javax.xml.rpc.handler.MessageContext;
/** This interface provides access to the SOAP message for either RPC request
* or response. The javax.xml.soap.SOAPMessage specifies the standard Java API
@@ -32,10 +32,10 @@
* @author Rahul Sharma (javadoc)
* @version $Revision$
*/
-public interface SOAPMessageContext
- extends MessageContext
+public interface SOAPMessageContext extends MessageContext
{
public SOAPMessage getMessage();
+
public void setMessage(SOAPMessage message);
public String[] getRoles();
Modified: branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/BigDecimalHolder.java
===================================================================
---
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/BigDecimalHolder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/BigDecimalHolder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
import java.math.BigDecimal;
@@ -28,15 +28,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class BigDecimalHolder
- implements Holder
+public final class BigDecimalHolder implements Holder
{
public BigDecimal value;
public BigDecimalHolder()
{
-
- }
+
+ }
+
public BigDecimalHolder(BigDecimal value)
{
this.value = value;
Modified: branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/BigIntegerHolder.java
===================================================================
---
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/BigIntegerHolder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/BigIntegerHolder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
import java.math.BigInteger;
@@ -28,15 +28,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class BigIntegerHolder
- implements Holder
+public final class BigIntegerHolder implements Holder
{
public BigInteger value;
public BigIntegerHolder()
{
-
- }
+
+ }
+
public BigIntegerHolder(BigInteger value)
{
this.value = value;
Modified: branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/BooleanHolder.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/BooleanHolder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/BooleanHolder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** A holder for booleans.
@@ -26,15 +26,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class BooleanHolder
- implements Holder
+public final class BooleanHolder implements Holder
{
public boolean value;
public BooleanHolder()
{
-
- }
+
+ }
+
public BooleanHolder(boolean value)
{
this.value = value;
Modified:
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/BooleanWrapperHolder.java
===================================================================
---
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/BooleanWrapperHolder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/BooleanWrapperHolder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** A holder for Booleans.
@@ -26,15 +26,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class BooleanWrapperHolder
- implements Holder
+public final class BooleanWrapperHolder implements Holder
{
public Boolean value;
public BooleanWrapperHolder()
{
-
- }
+
+ }
+
public BooleanWrapperHolder(Boolean value)
{
this.value = value;
Modified: branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/ByteArrayHolder.java
===================================================================
---
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/ByteArrayHolder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/ByteArrayHolder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** A holder for byte[]s.
@@ -26,15 +26,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class ByteArrayHolder
- implements Holder
+public final class ByteArrayHolder implements Holder
{
public byte[] value;
public ByteArrayHolder()
{
-
- }
+
+ }
+
public ByteArrayHolder(byte[] value)
{
this.value = value;
Modified: branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/ByteHolder.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/ByteHolder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/ByteHolder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** A holder for bytes.
@@ -26,15 +26,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class ByteHolder
- implements Holder
+public final class ByteHolder implements Holder
{
public byte value;
public ByteHolder()
{
-
- }
+
+ }
+
public ByteHolder(byte value)
{
this.value = value;
Modified: branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/ByteWrapperHolder.java
===================================================================
---
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/ByteWrapperHolder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/ByteWrapperHolder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** A holder for Bytes.
@@ -26,15 +26,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class ByteWrapperHolder
- implements Holder
+public final class ByteWrapperHolder implements Holder
{
public Byte value;
public ByteWrapperHolder()
{
-
- }
+
+ }
+
public ByteWrapperHolder(Byte value)
{
this.value = value;
Modified: branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/CalendarHolder.java
===================================================================
---
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/CalendarHolder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/CalendarHolder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
import java.util.Calendar;
@@ -28,15 +28,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class CalendarHolder
- implements Holder
+public final class CalendarHolder implements Holder
{
public Calendar value;
public CalendarHolder()
{
-
- }
+
+ }
+
public CalendarHolder(Calendar value)
{
this.value = value;
Modified: branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/DoubleHolder.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/DoubleHolder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/DoubleHolder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** A holder for doubles.
@@ -26,15 +26,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class DoubleHolder
- implements Holder
+public final class DoubleHolder implements Holder
{
public double value;
public DoubleHolder()
{
-
- }
+
+ }
+
public DoubleHolder(double value)
{
this.value = value;
Modified:
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/DoubleWrapperHolder.java
===================================================================
---
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/DoubleWrapperHolder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/DoubleWrapperHolder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** A holder for Doubles.
@@ -26,15 +26,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class DoubleWrapperHolder
- implements Holder
+public final class DoubleWrapperHolder implements Holder
{
public Double value;
public DoubleWrapperHolder()
{
-
- }
+
+ }
+
public DoubleWrapperHolder(Double value)
{
this.value = value;
Modified: branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/FloatHolder.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/FloatHolder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/FloatHolder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** A holder for floats.
@@ -26,15 +26,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class FloatHolder
- implements Holder
+public final class FloatHolder implements Holder
{
public float value;
public FloatHolder()
{
-
- }
+
+ }
+
public FloatHolder(float value)
{
this.value = value;
Modified:
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/FloatWrapperHolder.java
===================================================================
---
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/FloatWrapperHolder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/FloatWrapperHolder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** A holder for Floats.
@@ -26,15 +26,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class FloatWrapperHolder
- implements Holder
+public final class FloatWrapperHolder implements Holder
{
public Float value;
public FloatWrapperHolder()
{
-
- }
+
+ }
+
public FloatWrapperHolder(Float value)
{
this.value = value;
Modified: branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/IntHolder.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/IntHolder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/IntHolder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** A holder for ints.
@@ -26,15 +26,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class IntHolder
- implements Holder
+public final class IntHolder implements Holder
{
public int value;
public IntHolder()
{
-
- }
+
+ }
+
public IntHolder(int value)
{
this.value = value;
Modified:
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/IntegerWrapperHolder.java
===================================================================
---
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/IntegerWrapperHolder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/IntegerWrapperHolder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** A holder for Integers.
@@ -26,15 +26,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class IntegerWrapperHolder
- implements Holder
+public final class IntegerWrapperHolder implements Holder
{
public Integer value;
public IntegerWrapperHolder()
{
-
- }
+
+ }
+
public IntegerWrapperHolder(Integer value)
{
this.value = value;
Modified: branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/LongHolder.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/LongHolder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/LongHolder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** A holder for longs.
@@ -26,15 +26,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class LongHolder
- implements Holder
+public final class LongHolder implements Holder
{
public long value;
public LongHolder()
{
-
- }
+
+ }
+
public LongHolder(long value)
{
this.value = value;
Modified: branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/LongWrapperHolder.java
===================================================================
---
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/LongWrapperHolder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/LongWrapperHolder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** A holder for Longs.
@@ -26,15 +26,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class LongWrapperHolder
- implements Holder
+public final class LongWrapperHolder implements Holder
{
public Long value;
public LongWrapperHolder()
{
-
- }
+
+ }
+
public LongWrapperHolder(Long value)
{
this.value = value;
Modified: branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/ObjectHolder.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/ObjectHolder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/ObjectHolder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** A holder for Objects.
@@ -26,15 +26,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class ObjectHolder
- implements Holder
+public final class ObjectHolder implements Holder
{
public Object value;
public ObjectHolder()
{
-
- }
+
+ }
+
public ObjectHolder(Object value)
{
this.value = value;
Modified: branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/QNameHolder.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/QNameHolder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/QNameHolder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
import javax.xml.namespace.QName;
@@ -28,15 +28,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class QNameHolder
- implements Holder
+public final class QNameHolder implements Holder
{
public QName value;
public QNameHolder()
{
-
- }
+
+ }
+
public QNameHolder(QName value)
{
this.value = value;
Modified: branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/ShortHolder.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/ShortHolder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/ShortHolder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** A holder for shorts.
@@ -26,15 +26,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class ShortHolder
- implements Holder
+public final class ShortHolder implements Holder
{
public short value;
public ShortHolder()
{
-
- }
+
+ }
+
public ShortHolder(short value)
{
this.value = value;
Modified:
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/ShortWrapperHolder.java
===================================================================
---
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/ShortWrapperHolder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/ShortWrapperHolder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** A holder for Shorts.
@@ -26,15 +26,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class ShortWrapperHolder
- implements Holder
+public final class ShortWrapperHolder implements Holder
{
public Short value;
public ShortWrapperHolder()
{
-
- }
+
+ }
+
public ShortWrapperHolder(Short value)
{
this.value = value;
Modified: branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/StringHolder.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/StringHolder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/rpc/holders/StringHolder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** A holder for Strings.
@@ -26,15 +26,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class StringHolder
- implements Holder
+public final class StringHolder implements Holder
{
public String value;
public StringHolder()
{
-
- }
+
+ }
+
public StringHolder(String value)
{
this.value = value;
Modified:
branches/jbossws-1.0/src/main/java/javax/xml/rpc/server/ServletEndpointContext.java
===================================================================
---
branches/jbossws-1.0/src/main/java/javax/xml/rpc/server/ServletEndpointContext.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/javax/xml/rpc/server/ServletEndpointContext.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,30 +1,31 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.rpc.server;
+import java.security.Principal;
+
import javax.servlet.ServletContext;
import javax.servlet.http.HttpSession;
import javax.xml.rpc.handler.MessageContext;
-import java.security.Principal;
/**
* This interface provides an endpoint context maintained by the underlying
Modified: branches/jbossws-1.0/src/main/java/javax/xml/rpc/soap/SOAPFaultException.java
===================================================================
---
branches/jbossws-1.0/src/main/java/javax/xml/rpc/soap/SOAPFaultException.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/javax/xml/rpc/soap/SOAPFaultException.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -21,13 +21,14 @@
*/
package javax.xml.rpc.soap;
-import java.io.ObjectStreamField;
+import java.io.IOException;
import java.io.ObjectInputStream;
-import java.io.IOException;
import java.io.ObjectOutputStream;
+import java.io.ObjectStreamField;
+
+import javax.xml.namespace.QName;
import javax.xml.soap.Detail;
import javax.xml.soap.Name;
-import javax.xml.namespace.QName;
import org.jboss.logging.Logger;
import org.jboss.util.id.SerialVersion;
Modified: branches/jbossws-1.0/src/main/java/javax/xml/soap/AttachmentPart.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/soap/AttachmentPart.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/soap/AttachmentPart.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,29 +1,30 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.soap;
-import javax.activation.DataHandler;
import java.util.Iterator;
+import javax.activation.DataHandler;
+
/**
* A single attachment to a SOAPMessage object. A SOAPMessage object may contain zero,
one, or many AttachmentPart objects.
* Each AttachmentPart object consists of two parts, application-specific content and
associated MIME headers.
@@ -195,7 +196,7 @@
/**
* Sets the given DataHandler object as the data handler for this AttachmentPart
object.
* Typically, on an incoming message, the data handler is automatically set.
- * When a message is being created and populated with content, the setXopContent
method can be used to get data
+ * When a message is being created and populated with content, the setDataHandler
method can be used to get data
* from various data sources into the message.
* @param dataHandler the DataHandler object to be set
* @throws IllegalArgumentException if there was a problem with the specified
DataHandler object
Modified: branches/jbossws-1.0/src/main/java/javax/xml/soap/Detail.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/soap/Detail.java 2006-12-07 12:39:20 UTC
(rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/soap/Detail.java 2006-12-07 13:30:48 UTC
(rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.soap;
import java.util.Iterator;
@@ -38,18 +38,18 @@
* of all the DetailEntry objects in d. The code also creates a Name object to
* pass to the method addDetailEntry. The variable se, used to create the Name
* object, is a SOAPEnvelope object.
- Detail d = sf.getDetail();
- Name name = se.createName("GetLastTradePrice", "WOMBAT",
- "http://www.wombat.org/trader");
- d.addDetailEntry(name);
- Iterator it = d.getDetailEntries();
+ Detail d = sf.getDetail();
+ Name name = se.createName("GetLastTradePrice", "WOMBAT",
+ "http://www.wombat.org/trader");
+ d.addDetailEntry(name);
+ Iterator it = d.getDetailEntries();
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public interface Detail
- extends SOAPFaultElement
+public interface Detail extends SOAPFaultElement
{
public DetailEntry addDetailEntry(Name name) throws SOAPException;
+
public Iterator getDetailEntries();
}
Modified: branches/jbossws-1.0/src/main/java/javax/xml/soap/DetailEntry.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/soap/DetailEntry.java 2006-12-07 12:39:20
UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/soap/DetailEntry.java 2006-12-07 13:30:48
UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.soap;
/** The content for a Detail object, giving details for a SOAPFault object. A
@@ -28,7 +28,6 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public interface DetailEntry
- extends SOAPElement
+public interface DetailEntry extends SOAPElement
{
}
Modified: branches/jbossws-1.0/src/main/java/javax/xml/soap/MessageFactory.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/soap/MessageFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/soap/MessageFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,33 +1,33 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.soap;
-import org.jboss.logging.Logger;
-
import java.io.IOException;
import java.io.InputStream;
import java.security.AccessController;
import java.security.PrivilegedAction;
+import org.jboss.logging.Logger;
+
/**
* A factory for creating SOAPMessage objects.
*
@@ -62,10 +62,8 @@
// provide logging
private static Logger log = Logger.getLogger(MessageFactory.class);
- private static final String DEFAULT_MESSAGE_FACTORY =
"org.jboss.ws.soap.MessageFactoryImpl";
- private static final String[] alternativeFactories = new String[]{
- "org.jboss.axis.soap.MessageFactoryImpl"
- };
+ private static final String DEFAULT_MESSAGE_FACTORY =
"org.jboss.ws.core.soap.MessageFactoryImpl";
+ private static final String[] alternativeFactories = new String[] {
"org.jboss.axis.soap.MessageFactoryImpl" };
/** Creates a new MessageFactory object that is an instance of the default
implementation.
*/
Modified: branches/jbossws-1.0/src/main/java/javax/xml/soap/MimeHeader.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/soap/MimeHeader.java 2006-12-07 12:39:20
UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/soap/MimeHeader.java 2006-12-07 13:30:48
UTC (rev 1606)
@@ -1,27 +1,26 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.soap;
-
/** An object that stores a MIME header name and its value. One or more
* MimeHeader objects may be contained in a MimeHeaders object.
*
@@ -33,7 +32,7 @@
private String name;
private String value;
- public MimeHeader(String name, String value)
+ public MimeHeader(String name, String value)
{
this.name = name;
this.value = value;
@@ -53,14 +52,15 @@
{
return toString().hashCode();
}
-
+
public boolean equals(Object obj)
{
- if (!(obj instanceof MimeHeader)) return false;
+ if (!(obj instanceof MimeHeader))
+ return false;
MimeHeader other = (MimeHeader)obj;
return toString().equals(other.toString());
}
-
+
public String toString()
{
return "[" + name + "=" + value + "]";
Modified: branches/jbossws-1.0/src/main/java/javax/xml/soap/MimeHeaders.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/soap/MimeHeaders.java 2006-12-07 12:39:20
UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/soap/MimeHeaders.java 2006-12-07 13:30:48
UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.soap;
import java.util.ArrayList;
@@ -42,7 +42,7 @@
private LinkedList headers = new LinkedList();
public MimeHeaders()
- {
+ {
}
/**
@@ -50,11 +50,10 @@
* @param name
* @param value
* @throws IllegalArgumentException - if name is null or empty.
- */
- public void addHeader(String name, String value)
- throws IllegalArgumentException
+ */
+ public void addHeader(String name, String value) throws IllegalArgumentException
{
- if( name == null || name.length() == 0 )
+ if (name == null || name.length() == 0)
throw new IllegalArgumentException("Invalid null or empty header
name");
MimeHeader header = new MimeHeader(name, value);
headers.add(header);
@@ -69,18 +68,18 @@
*
* @param name
* @return All matching header values if found, null otherwise
- */
+ */
public String[] getHeader(String name)
{
ArrayList tmp = new ArrayList();
- for(int n = 0; n < headers.size(); n ++)
+ for (int n = 0; n < headers.size(); n++)
{
- MimeHeader mh = (MimeHeader) headers.get(n);
- if( mh.getName().equalsIgnoreCase(name) )
+ MimeHeader mh = (MimeHeader)headers.get(n);
+ if (mh.getName().equalsIgnoreCase(name))
tmp.add(mh.getValue());
}
String[] values = null;
- if( tmp.size() > 0 )
+ if (tmp.size() > 0)
{
values = new String[tmp.size()];
tmp.toArray(values);
@@ -91,13 +90,13 @@
public Iterator getMatchingHeaders(String[] names)
{
MatchingIter iter = new MatchingIter(headers, names, true);
- return iter;
+ return iter;
}
public Iterator getNonMatchingHeaders(String[] names)
{
MatchingIter iter = new MatchingIter(headers, names, false);
- return iter;
+ return iter;
}
public void removeAllHeaders()
@@ -108,10 +107,10 @@
public void removeHeader(String name)
{
Iterator iter = headers.iterator();
- while( iter.hasNext() )
+ while (iter.hasNext())
{
- MimeHeader mh = (MimeHeader) iter.next();
- if( mh.getName().equalsIgnoreCase(name) )
+ MimeHeader mh = (MimeHeader)iter.next();
+ if (mh.getName().equalsIgnoreCase(name))
iter.remove();
}
}
@@ -121,19 +120,19 @@
* header name matches. This method also removes all matching headers after
* the first one.
*
- */
+ */
public void setHeader(String name, String value)
{
boolean didSet = false;
- for(int n = 0; n < headers.size(); n ++)
+ for (int n = 0; n < headers.size(); n++)
{
- MimeHeader mh = (MimeHeader) headers.get(n);
- if( mh.getName().equalsIgnoreCase(name) )
+ MimeHeader mh = (MimeHeader)headers.get(n);
+ if (mh.getName().equalsIgnoreCase(name))
{
- if( didSet == true )
+ if (didSet == true)
{
headers.remove(n);
- n --;
+ n--;
}
else
{
@@ -144,7 +143,7 @@
}
}
- if( didSet == false )
+ if (didSet == false)
{
this.addHeader(name, value);
}
@@ -163,7 +162,7 @@
this.headers = headers;
this.index = 0;
this.names = new HashSet();
- for(int n = 0; n < names.length; n ++)
+ for (int n = 0; n < names.length; n++)
this.names.add(names[n].toLowerCase());
this.match = match;
}
@@ -171,12 +170,12 @@
public boolean hasNext()
{
boolean hasNext = index < headers.size();
- while( hasNext == true )
+ while (hasNext == true)
{
- mh = (MimeHeader) headers.get(index);
- index ++;
+ mh = (MimeHeader)headers.get(index);
+ index++;
String name = mh.getName().toLowerCase();
- if( names.contains(name) == match )
+ if (names.contains(name) == match)
break;
hasNext = index < headers.size();
}
@@ -190,7 +189,7 @@
public void remove()
{
- headers.remove(index-1);
+ headers.remove(index - 1);
}
}
}
Modified: branches/jbossws-1.0/src/main/java/javax/xml/soap/Name.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/soap/Name.java 2006-12-07 12:39:20 UTC
(rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/soap/Name.java 2006-12-07 13:30:48 UTC
(rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.soap;
/** A representation of an XML name. This interface provides methods for
@@ -65,7 +65,6 @@
*/
public String getLocalName();
-
/** Returns the prefix that was specified when this Name object was initialized.
* This prefix is associated with the namespace for the XML name that this Name object
represents.
*
Modified: branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPBody.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPBody.java 2006-12-07 12:39:20
UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPBody.java 2006-12-07 13:30:48
UTC (rev 1606)
@@ -1,30 +1,30 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.soap;
-import org.w3c.dom.Document;
-
import java.util.Locale;
+import org.w3c.dom.Document;
+
/** An object that represents the contents of the SOAP body element in a SOAP
* message. A SOAP body element consists of XML data that affects the way the
* application-specific content is processed.
@@ -36,8 +36,7 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public interface SOAPBody
- extends SOAPElement
+public interface SOAPBody extends SOAPElement
{
/** Creates a new SOAPBodyElement object with the specified name and adds it to this
SOAPBody object.
*
Modified: branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPBodyElement.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPBodyElement.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPBodyElement.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.soap;
/** A SOAPBodyElement object represents the contents in a SOAPBody object.
@@ -28,12 +28,11 @@
* with the SOAPBody method addBodyElement. In the following line of code, sb
* is a SOAPBody object, and myName is a Name object.
- SOAPBodyElement sbe = sb.addBodyElement(myName);
+ SOAPBodyElement sbe = sb.addBodyElement(myName);
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public interface SOAPBodyElement
- extends SOAPElement
+public interface SOAPBodyElement extends SOAPElement
{
}
Modified: branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPConnectionFactory.java
===================================================================
---
branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPConnectionFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPConnectionFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,31 +1,31 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.soap;
-import org.jboss.logging.Logger;
-
import java.security.AccessController;
import java.security.PrivilegedAction;
+import org.jboss.logging.Logger;
+
/** A factory for creating SOAPConnection objects. Implementation of this class
* is optional. If SOAPConnectionFactory.newInstance() throws an
* UnsupportedOperationException then the implementation does not support the
@@ -42,11 +42,9 @@
// provide logging
private static Logger log = Logger.getLogger(SOAPConnectionFactory.class);
- private static final String DEFAULT_SOAP_CONNECTION_FACTORY =
"org.jboss.ws.soap.SOAPConnectionFactoryImpl";
- private static final String[] alternativeFactories = new String[]{
- "org.jboss.webservice.soap.SOAPConnectionFactoryImpl",
- "org.jboss.axis.soap.SOAPConnectionFactoryImpl"
- };
+ private static final String DEFAULT_SOAP_CONNECTION_FACTORY =
"org.jboss.ws.core.soap.SOAPConnectionFactoryImpl";
+ private static final String[] alternativeFactories = new String[] {
"org.jboss.webservice.soap.SOAPConnectionFactoryImpl",
+ "org.jboss.axis.soap.SOAPConnectionFactoryImpl" };
/** Creates an instance of the default SOAPConnectionFactory object.
*
Modified: branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPConstants.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPConstants.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPConstants.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,27 +1,26 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.soap;
-
/** The definition of constants pertaining to the SOAP 1.1 protocol.
* @author Scott.Stark(a)jboss.org
* @version $Revision$
Modified: branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPElementFactory.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPElementFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPElementFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.soap;
/** SOAPElementFactory is a factory for XML fragments that will eventually end
@@ -40,21 +40,23 @@
*
* @return
* @throws SOAPException
- */
+ */
public static SOAPElementFactory newInstance() throws SOAPException
{
SOAPFactory factory = SOAPFactory.newInstance();
return new SOAPElementFactory(factory);
}
+
/**
* @deprecated Use javax.xml.soap.SOAPFactory.createElement(javax.xml.soap.Name)
* @return
* @throws SOAPException
- */
- public SOAPElement create(String localName) throws SOAPException
+ */
+ public SOAPElement create(String localName) throws SOAPException
{
return soapFactory.createElement(localName);
}
+
/**
* @deprecated Use javax.xml.soap.SOAPFactory.createElement(String localName, String
prefix, String uri) instead
* @param localName
@@ -62,19 +64,19 @@
* @param uri
* @return
* @throws SOAPException
- */
- public SOAPElement create(String localName, String prefix, String uri)
- throws SOAPException
+ */
+ public SOAPElement create(String localName, String prefix, String uri) throws
SOAPException
{
- return soapFactory.createElement(localName, prefix, uri);
+ return soapFactory.createElement(localName, prefix, uri);
}
+
/**
* @deprecated Use javax.xml.soap.SOAPFactory.createElement(javax.xml.soap.Name)
* @param name
* @return
* @throws SOAPException
- */
- public SOAPElement create(Name name) throws SOAPException
+ */
+ public SOAPElement create(Name name) throws SOAPException
{
return soapFactory.createElement(name);
}
Modified: branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPEnvelope.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPEnvelope.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPEnvelope.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,61 +1,64 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.soap;
/** The container for the SOAPHeader and SOAPBody portions of a SOAPPart object. By
default, a SOAPMessage object is created with a SOAPPart object that has a SOAPEnvelope
object. The SOAPEnvelope object by default has an empty SOAPBody object and an empty
SOAPHeader object. The SOAPBody object is required, and the SOAPHeader object, though
optional, is used in the majority of cases. If the SOAPHeader object is not needed, it can
be deleted, which is shown later.
-A client can access the SOAPHeader and SOAPBody objects by calling the methods
SOAPEnvelope.getHeader and SOAPEnvelope.getBody. The following lines of code use these two
methods after starting with the SOAPMessage object message to get the SOAPPart object sp,
which is then used to get the SOAPEnvelope object se.
- SOAPPart sp = message.getSOAPPart();
- SOAPEnvelope se = sp.getEnvelope();
- SOAPHeader sh = se.getHeader();
- SOAPBody sb = se.getBody();
+ A client can access the SOAPHeader and SOAPBody objects by calling the methods
SOAPEnvelope.getHeader and SOAPEnvelope.getBody. The following lines of code use these two
methods after starting with the SOAPMessage object message to get the SOAPPart object sp,
which is then used to get the SOAPEnvelope object se.
+ SOAPPart sp = message.getSOAPPart();
+ SOAPEnvelope se = sp.getEnvelope();
+ SOAPHeader sh = se.getHeader();
+ SOAPBody sb = se.getBody();
-It is possible to change the body or header of a SOAPEnvelope object by retrieving the
current one, deleting it, and then adding a new body or header. The javax.xml.soap.Node
method deleteNode deletes the XML element (node) on which it is called. For example, the
following line of code deletes the SOAPBody object that is retrieved by the method
getBody.
- se.getBody().detachNode();
+ It is possible to change the body or header of a SOAPEnvelope object by retrieving the
current one, deleting it, and then adding a new body or header. The javax.xml.soap.Node
method deleteNode deletes the XML element (node) on which it is called. For example, the
following line of code deletes the SOAPBody object that is retrieved by the method
getBody.
+ se.getBody().detachNode();
-To create a SOAPHeader object to replace the one that was removed, a client uses the
method SOAPEnvelope.addHeader, which creates a new header and adds it to the SOAPEnvelope
object. Similarly, the method addBody creates a new SOAPBody object and adds it to the
SOAPEnvelope object. The following code fragment retrieves the current header, removes it,
and adds a new one. Then it retrieves the current body, removes it, and adds a new one.
- SOAPPart sp = message.getSOAPPart();
- SOAPEnvelope se = sp.getEnvelope();
- se.getHeader().detachNode();
- SOAPHeader sh = se.addHeader();
- se.getBody().detachNode();
- SOAPBody sb = se.addBody();
+ To create a SOAPHeader object to replace the one that was removed, a client uses the
method SOAPEnvelope.addHeader, which creates a new header and adds it to the SOAPEnvelope
object. Similarly, the method addBody creates a new SOAPBody object and adds it to the
SOAPEnvelope object. The following code fragment retrieves the current header, removes it,
and adds a new one. Then it retrieves the current body, removes it, and adds a new one.
+ SOAPPart sp = message.getSOAPPart();
+ SOAPEnvelope se = sp.getEnvelope();
+ se.getHeader().detachNode();
+ SOAPHeader sh = se.addHeader();
+ se.getBody().detachNode();
+ SOAPBody sb = se.addBody();
-It is an error to add a SOAPBody or SOAPHeader object if one already exists.
-The SOAPEnvelope interface provides three methods for creating Name objects. One method
creates Name objects with a local name, a namespace prefix, and a namesapce URI. The
second method creates Name objects with a local name and a namespace prefix, and the third
creates Name objects with just a local name. The following line of code, in which se is a
SOAPEnvelope object, creates a new Name object with all three.
- Name name = se.createName("GetLastTradePrice", "WOMBAT",
- "http://www.wombat.org/trader");
+ It is an error to add a SOAPBody or SOAPHeader object if one already exists.
+ The SOAPEnvelope interface provides three methods for creating Name objects. One method
creates Name objects with a local name, a namespace prefix, and a namesapce URI. The
second method creates Name objects with a local name and a namespace prefix, and the third
creates Name objects with just a local name. The following line of code, in which se is a
SOAPEnvelope object, creates a new Name object with all three.
+ Name name = se.createName("GetLastTradePrice", "WOMBAT",
+ "http://www.wombat.org/trader");
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public interface SOAPEnvelope
- extends SOAPElement
+public interface SOAPEnvelope extends SOAPElement
{
public abstract SOAPBody addBody() throws SOAPException;
+
public abstract SOAPHeader addHeader() throws SOAPException;
+
public abstract Name createName(String localName) throws SOAPException;
- public abstract Name createName(String localName, String prefix, String uri)
- throws SOAPException;
+
+ public abstract Name createName(String localName, String prefix, String uri) throws
SOAPException;
+
public abstract SOAPBody getBody() throws SOAPException;
+
public abstract SOAPHeader getHeader() throws SOAPException;
}
Modified: branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPException.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPException.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPException.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.soap;
import org.jboss.util.id.SerialVersion;
@@ -27,8 +27,7 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public class SOAPException
- extends Exception
+public class SOAPException extends Exception
{
/** @since 4.0.2 */
static final long serialVersionUID;
@@ -36,8 +35,7 @@
{
if (SerialVersion.version == SerialVersion.LEGACY)
serialVersionUID = -4385552115225336830L;
- else
- serialVersionUID = 5083961510786058130L;
+ else serialVersionUID = 5083961510786058130L;
}
public SOAPException()
Modified: branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPFactory.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPFactory.java 2006-12-07 12:39:20
UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPFactory.java 2006-12-07 13:30:48
UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.soap;
// $Id$
@@ -44,10 +44,8 @@
// provide logging
private static Logger log = Logger.getLogger(SOAPFactory.class);
- private static final String DEFAULT_SOAP_FACTORY =
"org.jboss.ws.soap.SOAPFactoryImpl";
- private static final String[] alternativeFactories = new String[]{
- "org.jboss.axis.soap.SOAPFactoryImpl"
- };
+ private static final String DEFAULT_SOAP_FACTORY =
"org.jboss.ws.core.soap.SOAPFactoryImpl";
+ private static final String[] alternativeFactories = new String[] {
"org.jboss.axis.soap.SOAPFactoryImpl" };
/** Creates a new instance of SOAPFactory.
*
Modified: branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPFault.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPFault.java 2006-12-07 12:39:20
UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPFault.java 2006-12-07 13:30:48
UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.soap;
import java.util.Locale;
@@ -151,7 +151,6 @@
*/
public void setFaultString(String faultString) throws SOAPException;
-
/**
* Sets the fault string for this SOAPFault object to the given string and localized
to the given locale.
*
Modified: branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPFaultElement.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPFaultElement.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPFaultElement.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.soap;
/** A representation of the contents in a SOAPFault object. The Detail
@@ -30,7 +30,6 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public interface SOAPFaultElement
- extends SOAPElement
+public interface SOAPFaultElement extends SOAPElement
{
}
Modified: branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPHeaderElement.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPHeaderElement.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPHeaderElement.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.soap;
/** An object representing the contents in the SOAP header part of the SOAP
@@ -30,27 +30,26 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public interface SOAPHeaderElement
- extends SOAPElement
+public interface SOAPHeaderElement extends SOAPElement
{
/** Returns the uri of the actor associated with this SOAPHeaderElement object.
*
* @return a String giving the URI of the actor
*/
- public String getActor();
+ public String getActor();
/** Returns whether the mustUnderstand attribute for this SOAPHeaderElement object is
turned on.
*
* @return true if the mustUnderstand attribute of this SOAPHeaderElement object is
turned on; false otherwise
*/
- public boolean getMustUnderstand();
+ public boolean getMustUnderstand();
/** Sets the actor associated with this SOAPHeaderElement object to the specified
actor.
* The default value of an actor is: SOAPConstants.URI_SOAP_ACTOR_NEXT
*
* @param actorURI a String giving the URI of the actor to set
*/
- public void setActor(String actorURI);
+ public void setActor(String actorURI);
/** Sets the mustUnderstand attribute for this SOAPHeaderElement object to be on or
off.
*
@@ -60,5 +59,5 @@
*
* @param mustUnderstand true to set the mustUnderstand attribute on; false to turn
if off
*/
- public void setMustUnderstand(boolean mustUnderstand);
+ public void setMustUnderstand(boolean mustUnderstand);
}
Modified: branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPMessage.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPMessage.java 2006-12-07 12:39:20
UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/soap/SOAPMessage.java 2006-12-07 13:30:48
UTC (rev 1606)
@@ -1,32 +1,33 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.soap;
-import javax.activation.DataHandler;
import java.io.IOException;
import java.io.OutputStream;
import java.util.HashMap;
import java.util.Iterator;
+import javax.activation.DataHandler;
+
/** The root class for all SOAP messages. As transmitted on the "wire", a SOAP
message is an XML document or a
* MIME message whose first body part is an XML/SOAP document.
*
@@ -130,8 +131,7 @@
* @return the value associated with the named property or null if no such property
exists.
* @throws SOAPException if the property name is not recognized.
*/
- public Object getProperty(String property)
- throws SOAPException
+ public Object getProperty(String property) throws SOAPException
{
return properties.get(property);
}
Modified: branches/jbossws-1.0/src/main/java/javax/xml/ws/BindingType.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/ws/BindingType.java 2006-12-07 12:39:20
UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/ws/BindingType.java 2006-12-07 13:30:48
UTC (rev 1606)
@@ -21,6 +21,7 @@
*/
package javax.xml.ws;
+import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@@ -36,16 +37,22 @@
* @author Thomas.Diesler(a)jboss.com
* @since 03-May-2006
*/
-@Target( { ElementType.TYPE })
-@Retention(value = RetentionPolicy.RUNTIME)
+(a)Target(ElementType.TYPE)
+(a)Retention(RetentionPolicy.RUNTIME)
+@Documented
public @interface BindingType
{
-
- /** A binding identifier (a URI).
+ /**
+ * A binding identifier (a URI).
* If not specified, the default is the SOAP 1.1 / HTTP binding.
- *
- * See the SOAPBinding and HTTPBinding for the definition of the standard
- * binding identifiers.
+ * <p>
+ * See the <code>SOAPBinding</code> and
<code>HTTPBinding</code>
+ * for the definition of the standard binding identifiers.
+ *
+ * @see javax.xml.ws.Binding
+ * @see javax.xml.ws.soap.SOAPBinding#SOAP11HTTP_BINDING
+ * @see javax.xml.ws.soap.SOAPBinding#SOAP12HTTP_BINDING
+ * @see javax.xml.ws.http.HTTPBinding#HTTP_BINDING
*/
String value() default "";
-}
\ No newline at end of file
+}
Modified: branches/jbossws-1.0/src/main/java/javax/xml/ws/RequestWrapper.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/ws/RequestWrapper.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/ws/RequestWrapper.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -21,6 +21,7 @@
*/
package javax.xml.ws;
+import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@@ -38,14 +39,24 @@
* @author Thomas.Diesler(a)jboss.com
* @since 03-May-2006
*/
-@Target( { ElementType.METHOD })
-@Retention(value = RetentionPolicy.RUNTIME)
+(a)Target(ElementType.METHOD)
+(a)Retention(RetentionPolicy.RUNTIME)
+@Documented
public @interface RequestWrapper
{
+ /**
+ * Elements local name.
+ **/
+ public String localName() default "";
- String localName() default "";
+ /**
+ * Elements namespace name.
+ **/
+ public String targetNamespace() default "";
- String targetNamespace() default "";
+ /**
+ * Request wrapper bean name.
+ **/
+ public String className() default "";
- String className() default "";
-}
\ No newline at end of file
+}
Modified: branches/jbossws-1.0/src/main/java/javax/xml/ws/ResponseWrapper.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/ws/ResponseWrapper.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/ws/ResponseWrapper.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -21,6 +21,7 @@
*/
package javax.xml.ws;
+import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@@ -38,13 +39,24 @@
* @author Thomas.Diesler(a)jboss.com
* @since 03-May-2006
*/
-@Target( { ElementType.METHOD })
-@Retention(value = RetentionPolicy.RUNTIME)
+(a)Target(ElementType.METHOD)
+(a)Retention(RetentionPolicy.RUNTIME)
+@Documented
public @interface ResponseWrapper
{
- String localName() default "";
- String targetNamespace() default "";
+ /**
+ * Elements local name.
+ **/
+ public String localName() default "";
- String className() default "";
-}
\ No newline at end of file
+ /**
+ * Elements namespace name.
+ **/
+ public String targetNamespace() default "";
+
+ /**
+ * Response wrapper bean name.
+ **/
+ public String className() default "";
+}
Copied: branches/jbossws-1.0/src/main/java/javax/xml/ws/WebServiceException.java (from rev
1605, branches/tdiesler/jbossws-1.0/src/main/java/javax/xml/ws/WebServiceException.java)
Modified: branches/jbossws-1.0/src/main/java/javax/xml/ws/addressing/Action.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/ws/addressing/Action.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/ws/addressing/Action.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package javax.xml.ws.addressing;
//$Id$
@@ -29,15 +29,15 @@
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
-
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
-public @interface Action {
+public @interface Action
+{
- String input() default "##default";
+ String input() default "##default";
- String output() default "##default";
+ String output() default "##default";
- String[] fault() default "##default";
+ String[] fault() default "##default";
}
Modified:
branches/jbossws-1.0/src/main/java/javax/xml/ws/addressing/AddressingBuilder.java
===================================================================
---
branches/jbossws-1.0/src/main/java/javax/xml/ws/addressing/AddressingBuilder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/javax/xml/ws/addressing/AddressingBuilder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -70,7 +70,6 @@
log.warn("Could not create and instance of " + name + " trying
" + DEFAULT_ADDRESSING_BUILDER);
}
-
// default builder
return newInstance(DEFAULT_ADDRESSING_BUILDER, classLoader);
}
@@ -99,7 +98,7 @@
throw new AddressingException("Provider " + className + " could
not be instantiated: " + x, x);
}
}
-
+
public abstract AttributedURI newURI(URI uri);
public abstract AttributedURI newURI(String uri) throws URISyntaxException;
Modified:
branches/jbossws-1.0/src/main/java/javax/xml/ws/addressing/AddressingException.java
===================================================================
---
branches/jbossws-1.0/src/main/java/javax/xml/ws/addressing/AddressingException.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/javax/xml/ws/addressing/AddressingException.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -24,10 +24,9 @@
//$Id$
import javax.xml.namespace.QName;
+import javax.xml.ws.WebServiceException;
-import org.jboss.ws.WSException;
-
-public class AddressingException extends WSException
+public class AddressingException extends WebServiceException
{
protected QName code;
Modified:
branches/jbossws-1.0/src/main/java/javax/xml/ws/addressing/EndpointReference.java
===================================================================
---
branches/jbossws-1.0/src/main/java/javax/xml/ws/addressing/EndpointReference.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/javax/xml/ws/addressing/EndpointReference.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -21,7 +21,6 @@
*/
package javax.xml.ws.addressing;
-
//$Id$
public interface EndpointReference extends AddressingType, AttributeExtensible,
ElementExtensible
Modified: branches/jbossws-1.0/src/main/java/javax/xml/ws/addressing/FaultAction.java
===================================================================
--- branches/jbossws-1.0/src/main/java/javax/xml/ws/addressing/FaultAction.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/javax/xml/ws/addressing/FaultAction.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -29,11 +29,11 @@
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
-
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
-public @interface FaultAction {
+public @interface FaultAction
+{
Class className();
Modified: branches/jbossws-1.0/src/main/java/javax/xml/ws/addressing/JAXWSAConstants.java
===================================================================
---
branches/jbossws-1.0/src/main/java/javax/xml/ws/addressing/JAXWSAConstants.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/javax/xml/ws/addressing/JAXWSAConstants.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -36,7 +36,7 @@
public static final String ADDRESSING_BUILDER_PROPERTY =
"javax.xml.ws.addressing.AddressingBuilder";
- public static final String DEFAULT_ADDRESSING_BUILDER =
"org.jboss.ws.addressing.soap.SOAPAddressingBuilderImpl";
+ public static final String DEFAULT_ADDRESSING_BUILDER =
"org.jboss.ws.extensions.addressing.soap.SOAPAddressingBuilderImpl";
public static final String SOAP11_NAMESPACE_NAME =
"http://schemas.xmlsoap.org/soap/envelope/";
Modified: branches/jbossws-1.0/src/main/java/org/jboss/ws/Constants.java
===================================================================
--- branches/jbossws-1.0/src/main/java/org/jboss/ws/Constants.java 2006-12-07 12:39:20 UTC
(rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/Constants.java 2006-12-07 13:30:48 UTC
(rev 1606)
@@ -25,7 +25,7 @@
import javax.xml.namespace.QName;
import javax.xml.soap.Name;
-import org.jboss.ws.soap.NameImpl;
+import org.jboss.ws.core.soap.NameImpl;
/**
* A collection of constants relevant to JBossWS
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core (from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonBinding.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonBinding.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonBinding.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,53 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core;
-
-// $Id$
-
-import java.util.Map;
-
-import javax.xml.namespace.QName;
-
-import org.jboss.ws.core.jaxrpc.binding.BindingException;
-import org.jboss.ws.core.soap.UnboundHeader;
-import org.jboss.ws.metadata.umdm.OperationMetaData;
-
-/**
- * The base interface for protocol bindings.
- *
- * @author Thomas.Diesler(a)jboss.com
- * @since 04-Jul-2006
- */
-public interface CommonBinding
-{
- /** On the client side, generate the Object from IN parameters. */
- Object bindRequestMessage(OperationMetaData opMetaData, EndpointInvocation epInv,
Map<QName, UnboundHeader> unboundHeaders) throws BindingException;
-
- /** On the server side, extract the IN parameters from the Object and populate an
Invocation object */
- EndpointInvocation unbindRequestMessage(OperationMetaData opMetaData, Object
reqMessage) throws BindingException;
-
- /** On the server side, generate the Object from OUT parameters in the Invocation
object. */
- Object bindResponseMessage(OperationMetaData opMetaData, EndpointInvocation epInv)
throws BindingException;
-
- /** On the client side, extract the OUT parameters from the Object and return them to
the client. */
- void unbindResponseMessage(OperationMetaData opMetaData, Object resMessage,
EndpointInvocation epInv, Map<QName, UnboundHeader> unboundHeaders) throws
BindingException;
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonBinding.java (from rev
1605, branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonBinding.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonBindingProvider.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonBindingProvider.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonBindingProvider.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,71 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core;
-
-// $Id$
-
-import org.jboss.ws.WSException;
-import org.jboss.ws.metadata.umdm.EndpointMetaData;
-
-/**
- * Provides access to the protocol binding.
- *
- * @author Thomas.Diesler(a)jboss.com
- * @since 04-Jul-2006
- */
-public class CommonBindingProvider
-{
- protected EndpointMetaData epMetaData;
- protected CommonBinding binding;
-
- public CommonBindingProvider(EndpointMetaData epMetaData)
- {
- this.epMetaData = epMetaData;
- initBinding(epMetaData.getBindingId());
- }
-
- public CommonBindingProvider(String bindingId)
- {
- initBinding(bindingId);
- }
-
- protected void initBinding(String bindingId)
- {
- if (CommonSOAPBinding.SOAP11HTTP_BINDING.equals(bindingId))
- {
- binding = new CommonSOAP11Binding();
- }
- else if (CommonSOAPBinding.SOAP12HTTP_BINDING.equals(bindingId))
- {
- binding = new CommonSOAP12Binding();
- }
- else
- {
- throw new WSException("Unsupported binding: " + bindingId);
- }
- }
-
- public CommonBinding getCommonBinding()
- {
- return binding;
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonBindingProvider.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonBindingProvider.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonClient.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonClient.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonClient.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,396 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core;
-
-// $Id:CommonClient.java 660 2006-08-01 16:29:43Z thomas.diesler(a)jboss.com $
-
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.rmi.RemoteException;
-import java.util.Map;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.ParameterMode;
-import javax.xml.rpc.soap.SOAPFaultException;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPMessage;
-import javax.xml.ws.addressing.AddressingProperties;
-import javax.xml.ws.addressing.JAXWSAConstants;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.Constants;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.jaxrpc.ParameterWrapping;
-import org.jboss.ws.core.jaxrpc.Style;
-import org.jboss.ws.core.jaxrpc.handler.HandlerChainBaseImpl;
-import org.jboss.ws.core.soap.EndpointInfo;
-import org.jboss.ws.core.soap.MessageContextAssociation;
-import org.jboss.ws.core.soap.SOAPConnectionImpl;
-import org.jboss.ws.core.soap.UnboundHeader;
-import org.jboss.ws.core.utils.HolderUtils;
-import org.jboss.ws.core.utils.JavaUtils;
-import org.jboss.ws.extensions.addressing.AddressingConstantsImpl;
-import org.jboss.ws.metadata.umdm.ClientEndpointMetaData;
-import org.jboss.ws.metadata.umdm.EndpointMetaData;
-import org.jboss.ws.metadata.umdm.OperationMetaData;
-import org.jboss.ws.metadata.umdm.ParameterMetaData;
-import org.jboss.ws.metadata.umdm.ServiceMetaData;
-import org.jboss.ws.metadata.umdm.UnifiedMetaData;
-import org.jboss.ws.metadata.umdm.EndpointMetaData.Type;
-import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
-
-/**
- * Provides support for the dynamic invocation of a service endpoint.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 10-Oct-2004
- */
-public abstract class CommonClient
-{
- // provide logging
- private static Logger log = Logger.getLogger(CommonClient.class);
-
- // The endpoint together with the operationName uniquely identify the call operation
- protected EndpointMetaData epMetaData;
- // The current operation name
- protected QName operationName;
- // Output parameters
- protected EndpointInvocation epInv;
- // The binding provider
- protected CommonBindingProvider bindingProvider;
-
- /** Create a call that needs to be configured manually
- */
- protected CommonClient(ServiceMetaData serviceMetaData)
- {
- // If the WSDLService has only one endpoint, use it
- if (serviceMetaData != null && serviceMetaData.getEndpoints().size() == 1)
- {
- this.epMetaData = serviceMetaData.getEndpoints().get(0);
- }
- }
-
- /** Create a call for a known WSDL endpoint.
- */
- protected CommonClient(EndpointMetaData epMetaData)
- {
- this.epMetaData = epMetaData;
- }
-
- /** Create a call for a known WSDL endpoint.
- */
- protected CommonClient(ServiceMetaData serviceMetaData, QName portName, QName opName)
- {
- if (serviceMetaData != null)
- {
- EndpointMetaData epMetaData = null;
- if (serviceMetaData.getEndpoints().size() > 0)
- {
- epMetaData = serviceMetaData.getEndpoint(portName);
- if (epMetaData == null)
- throw new WSException("Cannot find endpoint for name: " +
portName);
- }
-
- if (epMetaData != null)
- {
- this.epMetaData = epMetaData;
- }
- }
-
- if (opName != null)
- {
- setOperationName(opName);
- }
- }
-
- /** Gets the address of a target service endpoint.
- */
- public abstract String getTargetEndpointAddress();
-
- /** Sets the address of the target service endpoint.
- */
- public abstract void setTargetEndpointAddress(String address);
-
- /** Gets the name of the operation to be invoked using this Call instance.
- */
- public QName getOperationName()
- {
- return this.operationName;
- }
-
- /** Sets the name of the operation to be invoked using this Call instance.
- */
- public void setOperationName(QName operationName)
- {
- this.operationName = operationName;
- }
-
- /** Get the OperationMetaData for the given operation name
- * If it does not exist, it will be created
- */
- public OperationMetaData getOperationMetaData()
- {
- if (operationName == null)
- throw new WSException("Operation name not set");
-
- return getOperationMetaData(operationName);
- }
-
- /** Get the OperationMetaData for the given operation name
- * If it does not exist, it will be created
- */
- public OperationMetaData getOperationMetaData(QName opName)
- {
- if (opName == null)
- throw new IllegalArgumentException("Cannot get OperationMetaData for
null");
-
- EndpointMetaData epMetaData = getEndpointMetaData();
- OperationMetaData opMetaData = epMetaData.getOperation(opName);
- if (opMetaData == null &&
epMetaData.getServiceMetaData().getWsdlDefinitions() == null)
- {
- opMetaData = new OperationMetaData(epMetaData, opName, opName.getLocalPart());
- epMetaData.addOperation(opMetaData);
- }
-
- if (opMetaData == null)
- throw new WSException("Cannot obtain operation meta data for: " +
opName);
-
- return opMetaData;
- }
-
- // Get the EndpointMetaData for all OperationMetaData
- public EndpointMetaData getEndpointMetaData()
- {
- if (epMetaData == null)
- {
- UnifiedMetaData wsMetaData = new UnifiedMetaData();
- wsMetaData.setClassLoader(Thread.currentThread().getContextClassLoader());
-
- ServiceMetaData serviceMetaData = new ServiceMetaData(wsMetaData, new
QName(Constants.NS_JBOSSWS_URI, "AnonymousService"));
- wsMetaData.addService(serviceMetaData);
-
- epMetaData = new ClientEndpointMetaData(serviceMetaData, new
QName(Constants.NS_JBOSSWS_URI, "AnonymousPort"), Type.JAXRPC);
- epMetaData.setStyle(Style.RPC);
-
- serviceMetaData.addEndpoint(epMetaData);
- }
- return epMetaData;
- }
-
- protected abstract boolean callRequestHandlerChain(QName portName, HandlerType type);
-
- protected abstract boolean callResponseHandlerChain(QName portName, HandlerType
type);
-
- protected abstract void setInboundContextProperties();
-
- protected abstract void setOutboundContextProperties();
-
- /** Call invokation goes as follows:
- *
- * 1) synchronize the operation name with the operation meta data
- * 2) synchronize the input parameters with the operation meta data
- * 3) generate the payload using a BindingProvider
- * 4) get the Invoker from Remoting, based on the target endpoint address
- * 5) do the invocation through the Remoting framework
- * 6) unwrap the result using the BindingProvider
- * 7) return the result
- */
- protected Object invoke(QName opName, Object[] inputParams, Map<QName,
UnboundHeader> unboundHeaders, boolean oneway) throws RemoteException
- {
- if (opName.equals(operationName) == false)
- setOperationName(opName);
-
- OperationMetaData opMetaData = getOperationMetaData();
-
- // Associate a message context with the current thread
- CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
- msgContext.setOperationMetaData(opMetaData);
-
- // copy properties to the message context
- for (String key : getRequestContext().keySet())
- {
- Object value = getRequestContext().get(key);
- msgContext.setProperty(key, value);
- }
-
- try
- {
- // Get the binding from the provider
- CommonBinding binding =
(CommonBinding)getCommonBindingProvider().getCommonBinding();
-
- // Create the invocation and sync the input parameters
- epInv = new EndpointInvocation(opMetaData);
- epInv.initInputParams(inputParams);
-
- // Bind the request message
- SOAPMessage reqMessage = (SOAPMessage)binding.bindRequestMessage(opMetaData,
epInv, unboundHeaders);
-
- setOutboundContextProperties();
-
- // Call the request handlers
- QName portName = epMetaData.getQName();
- boolean handlerPass = callRequestHandlerChain(portName, HandlerType.PRE);
- handlerPass = handlerPass && callRequestHandlerChain(portName,
HandlerType.ENDPOINT);
- handlerPass = handlerPass && callRequestHandlerChain(portName,
HandlerType.POST);
-
- if (handlerPass)
- {
- String targetAddress = getTargetEndpointAddress();
-
- // Fall back to wsa:To
- AddressingProperties addrProps =
(AddressingProperties)msgContext.getProperty(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES_OUTBOUND);
- if (targetAddress == null && addrProps != null &&
addrProps.getTo() != null)
- {
- AddressingConstantsImpl ADDR = new AddressingConstantsImpl();
- String wsaTo = addrProps.getTo().getURI().toString();
- if (wsaTo.equals(ADDR.getAnonymousURI()) == false)
- {
- try
- {
- URL wsaToURL = new URL(wsaTo);
- log.debug("Sending request to addressing destination: " +
wsaToURL);
- targetAddress = wsaToURL.toExternalForm();
- }
- catch (MalformedURLException ex)
- {
- log.debug("Not a valid URL: " + wsaTo);
- }
- }
- }
-
- // The endpoint address must be known beyond this point
- if (targetAddress == null)
- throw new WSException("Target endpoint address not set");
-
- EndpointInfo epInfo = new EndpointInfo(epMetaData, targetAddress,
getRequestContext());
-
- SOAPMessage resMessage;
- if (oneway)
- {
- resMessage = new SOAPConnectionImpl().callOneWay(reqMessage, epInfo);
- }
- else
- {
- resMessage = new SOAPConnectionImpl().call(reqMessage, epInfo);
- }
-
- // Associate current message with message context
- msgContext.setSOAPMessage(resMessage);
- }
-
- setInboundContextProperties();
-
- // Get the return object
- Object retObj = null;
- if (oneway == false)
- {
- // Call the response handlers
- handlerPass = callResponseHandlerChain(portName, HandlerType.POST);
- handlerPass = handlerPass && callResponseHandlerChain(portName,
HandlerType.ENDPOINT);
- handlerPass = handlerPass && callResponseHandlerChain(portName,
HandlerType.PRE);
-
- if (handlerPass)
- {
- // BP-1.0 R1027
- HandlerChainBaseImpl.checkMustUnderstand(msgContext, new String[]{});
-
- // unbind the return values
- SOAPMessage resMessage = msgContext.getSOAPMessage();
- binding.unbindResponseMessage(opMetaData, resMessage, epInv,
unboundHeaders);
-
- retObj = syncOutputParams(inputParams, epInv);
- }
- }
-
- return retObj;
- }
- catch (SOAPFaultException ex)
- {
- log.error("Call invocation failed", ex);
- String faultCode = ex.getFaultCode().getLocalPart();
- throw new RemoteException("Call invocation failed with code [" +
faultCode + "] because of: " + ex.getFaultString(), ex);
- }
- catch (Exception ex)
- {
- throw new RemoteException("Call invocation failed", ex);
- }
- finally
- {
- getResponseContext().putAll(msgContext.getProperties());
- }
- }
-
- protected CommonBindingProvider getCommonBindingProvider()
- {
- if (bindingProvider == null)
- {
- bindingProvider = new CommonBindingProvider(getEndpointMetaData());
- }
- return bindingProvider;
- }
-
- protected abstract Map<String, Object> getRequestContext();
-
- protected abstract Map<String, Object> getResponseContext();
-
- /** Synchronize the operation paramters with the call output parameters.
- */
- private Object syncOutputParams(Object[] inParams, EndpointInvocation epInv) throws
SOAPException
- {
- Object retValue = null;
-
- // Assign the return value, if we have a return param
- OperationMetaData opMetaData = getOperationMetaData();
- ParameterMetaData retMetaData = opMetaData.getReturnParameter();
- if (retMetaData != null)
- {
- retValue = epInv.getReturnValue();
- if (opMetaData.isDocumentWrapped() && retMetaData.isMessageType() ==
false)
- retValue = ParameterWrapping.unwrapResponseParameter(opMetaData, retValue);
-
- if (JavaUtils.isPrimitive(retMetaData.getJavaType()))
- retValue = JavaUtils.getPrimitiveValue(retValue);
- }
-
- // Set the holder values for INOUT parameters
- int index = 0;
- for (ParameterMetaData paramMetaData : opMetaData.getParameters())
- {
- ParameterMode paramMode = paramMetaData.getMode();
-
- if (paramMode == ParameterMode.INOUT || paramMode == ParameterMode.OUT)
- {
- QName xmlName = paramMetaData.getXmlName();
- Object value = epInv.getResponseParamValue(xmlName);
- log.debug("holder [" + index + "] " + xmlName);
- HolderUtils.setHolderValue(inParams[index], value);
- }
-
- if (index == 0 && opMetaData.isDocumentWrapped())
- index = paramMetaData.getWrappedVariables().size() - 1;
-
- index++;
- }
-
- return retValue;
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonClient.java (from rev
1605, branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonClient.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonContextServlet.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonContextServlet.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonContextServlet.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,85 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core;
-
-// $Id$
-
-import java.io.IOException;
-import java.io.PrintWriter;
-
-import javax.servlet.ServletConfig;
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.core.server.ServiceEndpointManager;
-
-/**
- * The servlet that that is associated with context /jbossws
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 21-Mar-2005
- */
-public abstract class CommonContextServlet extends HttpServlet
-{
- // provide logging
- protected final Logger log = Logger.getLogger(CommonContextServlet.class);
-
- protected ServiceEndpointManager epManager;
-
- public void init(ServletConfig config) throws ServletException
- {
- super.init(config);
- initServiceEndpointManager();
- }
-
- protected abstract void initServiceEndpointManager();
-
- /** Process GET requests.
- */
- public void doGet(HttpServletRequest req, HttpServletResponse res) throws
ServletException, IOException
- {
- PrintWriter writer = res.getWriter();
- res.setContentType("text/html");
-
- writer.print("<html>");
- setupHTMLResponseHeader(writer);
-
- writer.print("<body>");
- writer.print(epManager.showServiceEndpointTable());
- writer.print("</body>");
- writer.print("</html>");
- writer.close();
- }
-
- private void setupHTMLResponseHeader(PrintWriter writer)
- {
- Package wsPackage = Package.getPackage("org.jboss.ws");
- writer.println("<head>");
- writer.println("<meta http-equiv='Content-Type content='text/html;
charset=iso-8859-1'>");
- writer.println("<title>JBossWS /
"+wsPackage.getImplementationVersion()+"</title>");
- writer.println("<link rel='stylesheet'
href='./styles.css'>");
- writer.println("</head>");
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonContextServlet.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonContextServlet.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonMessageContext.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonMessageContext.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonMessageContext.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,157 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core;
-
-// $Id$
-
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.Map;
-
-import javax.xml.soap.SOAPMessage;
-
-import org.jboss.ws.core.jaxrpc.binding.SerializationContext;
-import org.jboss.ws.core.server.MessageContextPropertyHelper;
-import org.jboss.ws.metadata.umdm.EndpointMetaData;
-import org.jboss.ws.metadata.umdm.OperationMetaData;
-import org.jboss.xb.binding.NamespaceRegistry;
-
-/**
- * The common JAXRPC/JAXWS MessageContext
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 1-Sep-2006
- */
-public abstract class CommonMessageContext
-{
- // expandToDOM in the SOAPContentElement should not happen during normal operation
- // This property should be set the message context when it is ok to do so.
- public static String ALLOW_EXPAND_TO_DOM = "org.jboss.ws.allow.expand.dom";
-
- // The operation for this message ctx
- private EndpointMetaData epMetaData;
- // The operation for this message ctx
- private OperationMetaData opMetaData;
- // The SOAPMessage in this message context
- private SOAPMessage soapMessage;
- // The map of the properties
- protected Map<String, Object> props = new HashMap<String, Object>();
-
- public EndpointMetaData getEndpointMetaData()
- {
- if (epMetaData == null && opMetaData != null)
- epMetaData = opMetaData.getEndpointMetaData();
-
- return epMetaData;
- }
-
- public void setEndpointMetaData(EndpointMetaData epMetaData)
- {
- this.epMetaData = epMetaData;
- }
-
- public OperationMetaData getOperationMetaData()
- {
- return opMetaData;
- }
-
- public void setOperationMetaData(OperationMetaData opMetaData)
- {
- this.opMetaData = opMetaData;
- }
-
- public SOAPMessage getSOAPMessage()
- {
- return soapMessage;
- }
-
- public void setSOAPMessage(SOAPMessage soapMessage)
- {
- this.soapMessage = soapMessage;
- }
-
- public abstract SerializationContext getSerializationContext();
-
- /** Gets the namespace registry for this message context */
- public NamespaceRegistry getNamespaceRegistry()
- {
- return getSerializationContext().getNamespaceRegistry();
- }
-
- public Map<String, Object> getProperties()
- {
- return props;
- }
-
- public void setProperties(Map<String, Object> props)
- {
- this.props = props;
- }
-
- /**
- * Returns true if the MessageContext contains a property with the specified name.
- */
- public boolean containsProperty(String name)
- {
- return props.containsKey(name);
- }
-
- /**
- * Gets the value of a specific property from the MessageContext
- */
- public Object getProperty(String name)
- {
- Object value = props.get(name);
-
- if (value instanceof MessageContextPropertyHelper)
- {
- return ((MessageContextPropertyHelper)value).get();
- }
-
- return value;
- }
-
- /**
- * Returns an Iterator view of the names of the properties in this MessageContext
- */
- public Iterator getPropertyNames()
- {
- return props.keySet().iterator();
- }
-
- /**
- * Removes a property (name-value pair) from the MessageContext
- */
- public void removeProperty(String name)
- {
- props.remove(name);
- }
-
- /**
- * Sets the name and value of a property associated with the MessageContext.
- * If the MessageContext contains a value of the same property, the old value is
replaced.
- */
- public void setProperty(String name, Object value)
- {
- props.put(name, value);
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonMessageContext.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonMessageContext.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonSOAP11Binding.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonSOAP11Binding.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonSOAP11Binding.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,66 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core;
-
-// $Id$
-
-import java.util.Map;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.Call;
-import javax.xml.soap.MimeHeaders;
-import javax.xml.soap.SOAPEnvelope;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPMessage;
-
-import org.jboss.ws.Constants;
-import org.jboss.ws.core.jaxrpc.Use;
-import org.jboss.ws.core.soap.MessageContextAssociation;
-import org.jboss.ws.core.soap.MessageFactoryImpl;
-import org.jboss.ws.core.soap.UnboundHeader;
-import org.jboss.ws.metadata.umdm.OperationMetaData;
-
-/**
- * The SOAP11Binding
- *
- * @author Thomas.Diesler(a)jboss.com
- * @since 04-Jul-2006
- */
-public class CommonSOAP11Binding extends CommonSOAPBinding
-{
- /** Create the SOAP-1.1 message */
- protected SOAPMessage createMessage(OperationMetaData opMetaData) throws
SOAPException
- {
- MessageFactoryImpl factory = new MessageFactoryImpl();
- factory.setEnvelopeURI(Constants.NS_SOAP11_ENV);
- SOAPMessage soapMessage = factory.createMessage();
-
- Use encStyle = opMetaData.getEndpointMetaData().getEncodingStyle();
- if (Use.ENCODED.equals(encStyle))
- {
- SOAPEnvelope soapEnvelope = soapMessage.getSOAPPart().getEnvelope();
- soapEnvelope.addNamespaceDeclaration(Constants.PREFIX_SOAP11_ENC,
Constants.URI_SOAP11_ENC);
- }
-
- return soapMessage;
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonSOAP11Binding.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonSOAP11Binding.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonSOAP12Binding.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonSOAP12Binding.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonSOAP12Binding.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,55 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core;
-
-// $Id$
-
-import java.util.Map;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.Call;
-import javax.xml.soap.MimeHeaders;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPMessage;
-
-import org.jboss.ws.Constants;
-import org.jboss.ws.core.soap.MessageContextAssociation;
-import org.jboss.ws.core.soap.MessageFactoryImpl;
-import org.jboss.ws.core.soap.UnboundHeader;
-import org.jboss.ws.metadata.umdm.OperationMetaData;
-
-/**
- * The SOAP11Binding
- *
- * @author Thomas.Diesler(a)jboss.com
- * @since 04-Jul-2006
- */
-public class CommonSOAP12Binding extends CommonSOAPBinding
-{
- /** Create the SOAP-1.1 message */
- protected SOAPMessage createMessage(OperationMetaData opMetaData) throws
SOAPException
- {
- MessageFactoryImpl factory = new MessageFactoryImpl();
- factory.setEnvelopeURI(Constants.NS_SOAP12_ENV);
- return factory.createMessage();
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonSOAP12Binding.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonSOAP12Binding.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonSOAPBinding.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonSOAPBinding.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonSOAPBinding.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,923 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core;
-
-// $Id$
-
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.Map;
-import java.util.Set;
-
-import javax.activation.DataHandler;
-import javax.xml.namespace.QName;
-import javax.xml.rpc.Call;
-import javax.xml.rpc.JAXRPCException;
-import javax.xml.rpc.ParameterMode;
-import javax.xml.rpc.soap.SOAPFaultException;
-import javax.xml.soap.AttachmentPart;
-import javax.xml.soap.MessageFactory;
-import javax.xml.soap.MimeHeaders;
-import javax.xml.soap.Name;
-import javax.xml.soap.SOAPBody;
-import javax.xml.soap.SOAPBodyElement;
-import javax.xml.soap.SOAPElement;
-import javax.xml.soap.SOAPEnvelope;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPFactory;
-import javax.xml.soap.SOAPHeader;
-import javax.xml.soap.SOAPMessage;
-
-import org.apache.xerces.xs.XSElementDeclaration;
-import org.apache.xerces.xs.XSTypeDefinition;
-import org.jboss.logging.Logger;
-import org.jboss.ws.Constants;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.jaxrpc.ParameterWrapping;
-import org.jboss.ws.core.jaxrpc.SOAPFaultExceptionHelper;
-import org.jboss.ws.core.jaxrpc.StubExt;
-import org.jboss.ws.core.jaxrpc.Style;
-import org.jboss.ws.core.jaxrpc.Use;
-import org.jboss.ws.core.jaxrpc.binding.BindingException;
-import org.jboss.ws.core.soap.MessageContextAssociation;
-import org.jboss.ws.core.soap.MessageFactoryImpl;
-import org.jboss.ws.core.soap.NameImpl;
-import org.jboss.ws.core.soap.SOAPBodyElementDoc;
-import org.jboss.ws.core.soap.SOAPBodyElementRpc;
-import org.jboss.ws.core.soap.SOAPContentElement;
-import org.jboss.ws.core.soap.SOAPElementImpl;
-import org.jboss.ws.core.soap.SOAPFactoryImpl;
-import org.jboss.ws.core.soap.SOAPFaultImpl;
-import org.jboss.ws.core.soap.SOAPHeaderElementImpl;
-import org.jboss.ws.core.soap.SOAPMessageImpl;
-import org.jboss.ws.core.soap.UnboundHeader;
-import org.jboss.ws.core.soap.attachment.AttachmentPartImpl;
-import org.jboss.ws.core.soap.attachment.CIDGenerator;
-import org.jboss.ws.core.utils.DOMUtils;
-import org.jboss.ws.core.utils.JavaUtils;
-import org.jboss.ws.core.utils.MimeUtils;
-import org.jboss.ws.extensions.xop.XOPContext;
-import org.jboss.ws.metadata.umdm.OperationMetaData;
-import org.jboss.ws.metadata.umdm.ParameterMetaData;
-import org.jboss.ws.metadata.umdm.TypesMetaData;
-import org.jboss.xb.binding.NamespaceRegistry;
-import org.w3c.dom.Element;
-
-/**
- * The SOAPBinding interface is an abstraction for the SOAP binding.
- *
- * @author Thomas.Diesler(a)jboss.com
- * @since 04-Jul-2006
- */
-public abstract class CommonSOAPBinding implements CommonBinding
-{
- // provide logging
- private static Logger log = Logger.getLogger(CommonSOAPBinding.class);
-
- private boolean mtomEnabled;
-
- /** A constant representing the identity of the SOAP 1.2 over HTTP binding. */
- public static final String SOAP12HTTP_BINDING =
"http://www.w3.org/2003/05/soap/bindings/HTTP/";
-
- /** A constant representing the identity of the SOAP 1.1 over HTTP binding. */
- public static final String SOAP11HTTP_BINDING =
"http://schemas.xmlsoap.org/wsdl/soap/http";
-
- public MessageFactory getMessageFactory()
- {
- return new MessageFactoryImpl();
- }
-
- public SOAPFactory getSOAPFactory()
- {
- return new SOAPFactoryImpl();
- }
-
- public boolean isMTOMEnabled()
- {
- return mtomEnabled;
- }
-
- public void setMTOMEnabled(boolean flag)
- {
- this.mtomEnabled = flag;
- }
-
- /** Create the SOAP-1.1 message */
- protected abstract SOAPMessage createMessage(OperationMetaData opMetaData) throws
SOAPException;
-
- /** On the client side, generate the payload from IN parameters. */
- public Object bindRequestMessage(OperationMetaData opMetaData, EndpointInvocation
epInv, Map<QName, UnboundHeader> unboundHeaders) throws BindingException
- {
- log.debug("bindRequestMessage: " + opMetaData.getQName());
-
- try
- {
- CommonMessageContext msgContext =
MessageContextAssociation.peekMessageContext();
- if (msgContext == null)
- throw new WSException("MessageContext not available");
-
- // Disable MTOM for rpc/encoded
- if (opMetaData.isRPCEncoded())
- msgContext.setProperty(StubExt.PROPERTY_MTOM_ENABLED, Boolean.FALSE);
-
- // Associate current message with message context
- SOAPMessageImpl reqMessage = (SOAPMessageImpl)createMessage(opMetaData);
- msgContext.setSOAPMessage(reqMessage);
-
- SOAPEnvelope soapEnvelope = reqMessage.getSOAPPart().getEnvelope();
- SOAPBody soapBody = soapEnvelope.getBody();
- SOAPHeader soapHeader = soapEnvelope.getHeader();
-
- // Get the namespace registry
- NamespaceRegistry namespaceRegistry = msgContext.getNamespaceRegistry();
-
- Style style = opMetaData.getStyle();
- if (style == Style.RPC)
- {
- QName opQName = opMetaData.getQName();
- Name opName = new NameImpl(namespaceRegistry.registerQName(opQName));
-
- log.debug("Create RPC body element: " + opName);
- SOAPBodyElement soapBodyElement = new SOAPBodyElementRpc(opName);
-
- soapBodyElement =
(SOAPBodyElement)soapBody.addChildElement(soapBodyElement);
-
- for (ParameterMetaData paramMetaData : opMetaData.getInputParameters())
- {
- QName xmlName = paramMetaData.getXmlName();
- Object value = epInv.getRequestParamValue(xmlName);
-
- if (paramMetaData.isSwA())
- {
- CIDGenerator cidGenerator = reqMessage.getCidGenerator();
- AttachmentPart part = createAttachmentPart(paramMetaData, value,
cidGenerator);
- reqMessage.addAttachmentPart(part);
- }
- else
- {
- SOAPElement soapElement = paramMetaData.isInHeader() ?
(SOAPElement)soapHeader : soapBodyElement;
- addParameterToMessage(paramMetaData, value, soapElement);
- }
- }
- }
- else if (style == Style.DOCUMENT)
- {
- for (ParameterMetaData paramMetaData : opMetaData.getInputParameters())
- {
- QName xmlName = paramMetaData.getXmlName();
- Object value = epInv.getRequestParamValue(xmlName);
-
- if (paramMetaData.isSwA())
- {
- CIDGenerator cidGenerator = reqMessage.getCidGenerator();
- AttachmentPart part = createAttachmentPart(paramMetaData, value,
cidGenerator);
- reqMessage.addAttachmentPart(part);
- }
- else
- {
- SOAPElement soapElement = paramMetaData.isInHeader() ?
(SOAPElement)soapHeader : soapBody;
- addParameterToMessage(paramMetaData, value, soapElement);
- }
- }
- }
- else
- {
- throw new WSException("Unsupported message style: " + style);
- }
-
- // Add unbound headers
- if (unboundHeaders != null)
- {
- Iterator it = unboundHeaders.values().iterator();
- while (it.hasNext())
- {
- UnboundHeader unboundHeader = (UnboundHeader)it.next();
- if (unboundHeader.getMode() != ParameterMode.OUT)
- {
- QName xmlName = unboundHeader.getXmlName();
- Object value = unboundHeader.getHeaderValue();
-
- xmlName = namespaceRegistry.registerQName(xmlName);
- Name soapName = new NameImpl(xmlName.getLocalPart(),
xmlName.getPrefix(), xmlName.getNamespaceURI());
-
- log.debug("Add unboundHeader element: " + soapName);
- SOAPContentElement contentElement = new
SOAPHeaderElementImpl(soapName);
-
contentElement.setParamMetaData(unboundHeader.toParameterMetaData(opMetaData));
- soapHeader.addChildElement(contentElement);
- contentElement.setObjectValue(value);
- }
- }
- }
-
- // Set the SOAPAction
- MimeHeaders mimeHeaders = reqMessage.getMimeHeaders();
- String soapAction = opMetaData.getSOAPAction();
-
- // R2744 A HTTP request MESSAGE MUST contain a SOAPAction HTTP header field
- // with a quoted value equal to the value of the soapAction attribute of
- // soapbind:operation, if present in the corresponding WSDL description.
-
- // R2745 A HTTP request MESSAGE MUST contain a SOAPAction HTTP header field
- // with a quoted empty string value, if in the corresponding WSDL description,
- // the soapAction attribute of soapbind:operation is either not present, or
- // present with an empty string as its value.
-
- if (msgContext.getProperty(Call.SOAPACTION_USE_PROPERTY) != null)
- log.info("Ignore Call.SOAPACTION_USE_PROPERTY because of BP-1.0 R2745,
R2745");
-
- String soapActionProperty =
(String)msgContext.getProperty(Call.SOAPACTION_URI_PROPERTY);
- if (soapActionProperty != null)
- soapAction = soapActionProperty;
-
- mimeHeaders.addHeader("SOAPAction", soapAction != null ? soapAction :
"");
-
- return reqMessage;
- }
- catch (Exception e)
- {
- handleException(e);
- return null;
- }
- }
-
- /** On the server side, extract the IN parameters from the payload and populate an
Invocation object */
- public EndpointInvocation unbindRequestMessage(OperationMetaData opMetaData, Object
payload) throws BindingException
- {
- log.debug("unbindRequestMessage: " + opMetaData.getQName());
-
- try
- {
- // Read the SOAPEnvelope from the reqMessage
- SOAPMessage reqMessage = (SOAPMessage)payload;
- SOAPEnvelope soapEnvelope = reqMessage.getSOAPPart().getEnvelope();
- SOAPHeader soapHeader = soapEnvelope.getHeader();
- SOAPBody soapBody = soapEnvelope.getBody();
-
- // Verify the SOAP version
- verifySOAPVersion(opMetaData, soapEnvelope);
-
- // Construct the endpoint invocation object
- EndpointInvocation epInv = new EndpointInvocation(opMetaData);
-
- CommonMessageContext msgContext =
MessageContextAssociation.peekMessageContext();
- if (msgContext == null)
- throw new WSException("MessageContext not available");
-
- // Disable MTOM for rpc/encoded
- if (opMetaData.isRPCEncoded())
- msgContext.setProperty(StubExt.PROPERTY_MTOM_ENABLED, Boolean.FALSE);
-
- // Get the namespace registry
- NamespaceRegistry namespaceRegistry = msgContext.getNamespaceRegistry();
-
- if (opMetaData.isMessageEndpoint() == false)
- {
- Style style = opMetaData.getStyle();
- if (style == Style.RPC)
- {
- SOAPBodyElement soapBodyElement =
(SOAPBodyElement)soapBody.getChildElements().next();
- Name elName = soapBodyElement.getElementName();
-
- QName elQName = new QName(elName.getURI(), elName.getLocalName(),
elName.getPrefix());
- elQName = namespaceRegistry.registerQName(elQName);
-
- for (ParameterMetaData paramMetaData : opMetaData.getParameters())
- {
- QName xmlName = paramMetaData.getXmlName();
- if (paramMetaData.getMode() == ParameterMode.OUT)
- {
- epInv.setRequestParamValue(xmlName, null);
- }
- else
- {
- if (paramMetaData.isSwA())
- {
- Object value = getAttachmentFromMessage(paramMetaData,
reqMessage);
- epInv.setRequestParamValue(xmlName, value);
- }
- else
- {
- if (paramMetaData.isInHeader() == false)
- {
- Object value = getParameterFromMessage(paramMetaData,
soapBodyElement, false);
- epInv.setRequestParamValue(xmlName, value);
- }
- else
- {
- Object value = getParameterFromMessage(paramMetaData,
soapHeader, false);
- epInv.setRequestParamValue(xmlName, value);
- }
- }
- }
- }
- }
-
- // Document style
- else
- {
- for (ParameterMetaData paramMetaData : opMetaData.getParameters())
- {
- QName xmlName = paramMetaData.getXmlName();
- if (paramMetaData.isSwA())
- {
- Object value = getAttachmentFromMessage(paramMetaData, reqMessage);
- epInv.setRequestParamValue(xmlName, value);
- }
- else
- {
- if (paramMetaData.isInHeader())
- {
- if (paramMetaData.getMode() == ParameterMode.IN)
- {
- Object value = getParameterFromMessage(paramMetaData,
soapHeader, false);
- epInv.setRequestParamValue(xmlName, value);
- }
- else
- {
- Object value = getParameterFromMessage(paramMetaData,
soapHeader, true);
- epInv.setRequestParamValue(xmlName, value);
- }
- }
- else
- {
- Object value = getParameterFromMessage(paramMetaData, soapBody,
false);
- epInv.setRequestParamValue(xmlName, value);
- }
- }
- }
- }
- }
-
- // Generic message endpoint
- else
- {
- for (ParameterMetaData paramMetaData : opMetaData.getParameters())
- {
- QName xmlName = paramMetaData.getXmlName();
- Object value = soapBody.getChildElements().next();
- epInv.setRequestParamValue(xmlName, value);
- }
- }
-
- return epInv;
- }
- catch (Exception e)
- {
- handleException(e);
- return null;
- }
- }
-
- /** On the server side, generate the payload from OUT parameters. */
- public Object bindResponseMessage(OperationMetaData opMetaData, EndpointInvocation
epInv) throws BindingException
- {
- log.debug("bindResponseMessage: " + opMetaData.getQName());
-
- try
- {
- CommonMessageContext msgContext =
MessageContextAssociation.peekMessageContext();
- if (msgContext == null)
- throw new WSException("MessageContext not available");
-
- // Disable MTOM for rpc/encoded
- if (opMetaData.isRPCEncoded())
- msgContext.setProperty(StubExt.PROPERTY_MTOM_ENABLED, Boolean.FALSE);
-
- // Associate current message with message context
- SOAPMessageImpl resMessage = (SOAPMessageImpl)createMessage(opMetaData);
- msgContext.setSOAPMessage(resMessage);
-
- // R2714 For one-way operations, an INSTANCE MUST NOT return a HTTP response
that contains a SOAP envelope.
- // Specifically, the HTTP response entity-body must be empty.
- if (opMetaData.isOneWayOperation())
- {
- resMessage.getSOAPPart().setContent(null);
- return resMessage;
- }
-
- SOAPEnvelope soapEnvelope = resMessage.getSOAPPart().getEnvelope();
- SOAPHeader soapHeader = soapEnvelope.getHeader();
- SOAPBody soapBody = soapEnvelope.getBody();
-
- // Get the namespace registry
- NamespaceRegistry namespaceRegistry = msgContext.getNamespaceRegistry();
-
- Style style = opMetaData.getStyle();
- if (style == Style.RPC)
- {
- QName opQName = opMetaData.getResponseName();
-
- Name opName = new NameImpl(namespaceRegistry.registerQName(opQName));
- SOAPBodyElement soapBodyElement = new SOAPBodyElementRpc(opName);
-
- soapBodyElement =
(SOAPBodyElement)soapBody.addChildElement(soapBodyElement);
-
- // Add the return to the message
- ParameterMetaData retMetaData = opMetaData.getReturnParameter();
- if (retMetaData != null)
- {
- Object value = epInv.getReturnValue();
- if (retMetaData.isSwA())
- {
- CIDGenerator cidGenerator = resMessage.getCidGenerator();
- AttachmentPart part = createAttachmentPart(retMetaData, value,
cidGenerator);
- resMessage.addAttachmentPart(part);
- epInv.setReturnValue(part);
- }
- else
- {
- SOAPContentElement soapElement = addParameterToMessage(retMetaData,
value, soapBodyElement);
- epInv.setReturnValue(soapElement);
- soapElement.setObjectValue(value);
- }
- }
-
- // Add the out parameters to the message
- for (ParameterMetaData paramMetaData : opMetaData.getOutputParameters())
- {
- QName xmlName = paramMetaData.getXmlName();
- Object value = epInv.getResponseParamValue(xmlName);
- if (paramMetaData.isSwA())
- {
- CIDGenerator cidGenerator = resMessage.getCidGenerator();
- AttachmentPart part = createAttachmentPart(retMetaData, value,
cidGenerator);
- resMessage.addAttachmentPart(part);
- }
- else
- {
- if (paramMetaData.isInHeader())
- {
- addParameterToMessage(paramMetaData, value, soapHeader);
- }
- else
- {
- addParameterToMessage(paramMetaData, value, soapBodyElement);
- }
- }
- }
- }
- else if (style == Style.DOCUMENT)
- {
- ParameterMetaData retMetaData = opMetaData.getReturnParameter();
- if (retMetaData != null)
- {
- Object value = epInv.getReturnValue();
- if (opMetaData.isDocumentWrapped())
- value = ParameterWrapping.wrapResponseParameter(opMetaData, value);
-
- if (retMetaData.isSwA())
- {
- CIDGenerator cidGenerator = resMessage.getCidGenerator();
- AttachmentPart part = createAttachmentPart(retMetaData, value,
cidGenerator);
- resMessage.addAttachmentPart(part);
- epInv.setReturnValue(part);
- }
- else
- {
- SOAPContentElement soapElement = addParameterToMessage(retMetaData,
value, soapBody);
- epInv.setReturnValue(soapElement);
- }
- }
-
- // Add the out header parameters to the message
- for (ParameterMetaData paramMetaData : opMetaData.getOutputParameters())
- {
- QName xmlName = paramMetaData.getXmlName();
- if (paramMetaData.isInHeader())
- {
- Object value = epInv.getResponseParamValue(xmlName);
- addParameterToMessage(paramMetaData, value, soapHeader);
- }
- }
- }
- else
- {
- throw new WSException("Unsupported message style: " + style);
- }
-
- return resMessage;
- }
- catch (Exception e)
- {
- handleException(e);
- return null;
- }
- }
-
- /** On the client side, extract the OUT parameters from the payload and return them to
the client. */
- public void unbindResponseMessage(OperationMetaData opMetaData, Object payload,
EndpointInvocation epInv, Map<QName, UnboundHeader> unboundHeaders)
- throws BindingException
- {
- log.debug("unbindResponseMessage: " + opMetaData.getQName());
-
- try
- {
- // R2714 For one-way operations, an INSTANCE MUST NOT return a HTTP response
that contains a SOAP envelope.
- // Specifically, the HTTP response entity-body must be empty.
- if (opMetaData.isOneWayOperation() == true)
- {
- return;
- }
-
- // WS-Addressing might redirect the response, which results in an empty
envelope
- SOAPMessage resMessage = (SOAPMessage)payload;
- SOAPEnvelope soapEnvelope = resMessage.getSOAPPart().getEnvelope();
- if (soapEnvelope == null)
- {
- return;
- }
-
- // Verify the SOAP version
- verifySOAPVersion(opMetaData, soapEnvelope);
-
- // Get the SOAP message context that is associated with the current thread
- CommonMessageContext msgContext =
MessageContextAssociation.peekMessageContext();
- if (msgContext == null)
- throw new WSException("MessageContext not available");
-
- // Disable MTOM for rpc/encoded
- if (opMetaData.isRPCEncoded())
- msgContext.setProperty(StubExt.PROPERTY_MTOM_ENABLED, Boolean.FALSE);
-
- SOAPHeader soapHeader = soapEnvelope.getHeader();
- SOAPBody soapBody = soapEnvelope.getBody();
- Iterator bodyChildren = soapBody.getChildElements();
-
- SOAPBodyElement soapBodyElement = null;
- if (bodyChildren.hasNext() != false)
- soapBodyElement = (SOAPBodyElement)bodyChildren.next();
-
- // Translate the SOAPFault to an exception and throw it
- if (soapBodyElement instanceof SOAPFaultImpl)
- {
- SOAPFaultImpl soapFault = (SOAPFaultImpl)soapBodyElement;
- SOAPFaultException faultEx =
SOAPFaultExceptionHelper.getSOAPFaultException(soapFault);
- throw faultEx;
- }
-
- // Extract unbound OUT headers
- if (unboundHeaders != null)
- {
- Map<QName, UnboundHeader> outHeaders = new HashMap<QName,
UnboundHeader>();
- Iterator itHeaderElements = soapHeader.getChildElements();
- while (itHeaderElements.hasNext())
- {
- SOAPContentElement soapHeaderElement =
(SOAPHeaderElementImpl)itHeaderElements.next();
- Name elName = soapHeaderElement.getElementName();
- QName xmlName = new QName(elName.getURI(), elName.getLocalName());
-
- UnboundHeader unboundHeader = (UnboundHeader)unboundHeaders.get(xmlName);
- if (unboundHeader != null)
- {
-
soapHeaderElement.setParamMetaData(unboundHeader.toParameterMetaData(opMetaData));
-
- // Do the unmarshalling
- Object value = soapHeaderElement.getObjectValue();
- unboundHeader.setHeaderValue(value);
- outHeaders.put(xmlName, unboundHeader);
- }
- }
- unboundHeaders.clear();
- unboundHeaders.putAll(outHeaders);
- }
-
- Style style = opMetaData.getStyle();
- if (style == Style.RPC)
- {
- if (soapBodyElement == null)
- throw new WSException("Cannot unbind response message with empty soap
body");
-
- ParameterMetaData retMetaData = opMetaData.getReturnParameter();
- if (retMetaData != null)
- {
- if (retMetaData.isSwA())
- {
- Object value = getAttachmentFromMessage(retMetaData, resMessage);
- epInv.setReturnValue(value);
- }
- else
- {
- Object value = getParameterFromMessage(retMetaData, soapBodyElement,
false);
- epInv.setReturnValue(value);
- }
- }
-
- for (ParameterMetaData paramMetaData : opMetaData.getOutputParameters())
- {
- QName xmlName = paramMetaData.getXmlName();
- if (paramMetaData.isSwA())
- {
- Object value = getAttachmentFromMessage(paramMetaData, resMessage);
- epInv.setResponseParamValue(xmlName, value);
- }
- else
- {
- SOAPElement soapElement = paramMetaData.isInHeader() ? soapHeader :
(SOAPElement)soapBodyElement;
- Object value = getParameterFromMessage(paramMetaData, soapElement,
false);
- epInv.setResponseParamValue(xmlName, value);
- }
- }
- }
- else if (style == Style.DOCUMENT)
- {
- ParameterMetaData retMetaData = opMetaData.getReturnParameter();
-
- // WS-Eventing has no message part for UnsubscribeResponseMsg
- if (retMetaData != null)
- {
- if (retMetaData.isSwA())
- {
- Object value = getAttachmentFromMessage(retMetaData, resMessage);
- epInv.setReturnValue(value);
- }
- else
- {
- Object value = getParameterFromMessage(retMetaData, soapBody, false);
- epInv.setReturnValue(value);
- }
-
- for (ParameterMetaData paramMetaData : opMetaData.getOutputParameters())
- {
- QName xmlName = paramMetaData.getXmlName();
- if (paramMetaData.isInHeader())
- {
- Object value = getParameterFromMessage(paramMetaData, soapHeader,
false);
- epInv.setResponseParamValue(xmlName, value);
- }
- }
- }
- }
- else
- {
- throw new WSException("Unsupported message style: " + style);
- }
- }
- catch (Exception e)
- {
- handleException(e);
- }
- }
-
- private void verifySOAPVersion(OperationMetaData opMetaData, SOAPEnvelope
soapEnvelope)
- {
- String envNS = soapEnvelope.getNamespaceURI();
- String bindingId = opMetaData.getEndpointMetaData().getBindingId();
- if (CommonSOAPBinding.SOAP11HTTP_BINDING.equals(bindingId) &&
Constants.NS_SOAP11_ENV.equals(envNS) == false)
- log.warn("Expected SOAP-1.1 envelope, but got: " + envNS);
-
- if (CommonSOAPBinding.SOAP12HTTP_BINDING.equals(bindingId) &&
Constants.NS_SOAP12_ENV.equals(envNS) == false)
- log.warn("Expected SOAP-1.2 envelope, but got: " + envNS);
- }
-
- private AttachmentPart createAttachmentPart(ParameterMetaData paramMetaData, Object
value, CIDGenerator cidGenerator) throws SOAPException, BindingException
- {
- String partName = paramMetaData.getXmlName().getLocalPart();
- Set mimeTypes = paramMetaData.getMimeTypes();
-
- AttachmentPart part = new AttachmentPartImpl();
- if (value instanceof DataHandler)
- {
- DataHandler handler = (DataHandler)value;
- String mimeType = MimeUtils.getBaseMimeType(handler.getContentType());
-
- if (mimeTypes != null && !MimeUtils.isMemberOf(mimeType, mimeTypes))
- throw new BindingException("Mime type " + mimeType + " not
allowed for parameter " + partName + " allowed types are " + mimeTypes);
-
- part.setDataHandler((DataHandler)value);
- }
- else
- {
- String mimeType = null;
- if (mimeTypes != null && mimeTypes.size() > 0)
- {
- mimeType = (String)mimeTypes.iterator().next();
- }
- else
- {
- mimeType = MimeUtils.resolveMimeType(value);
- }
-
- if (mimeType == null)
- throw new BindingException("Could not determine mime type for attachment
parameter: " + partName);
-
- part.setContent(value, mimeType);
- }
-
- if (paramMetaData.isSwA())
- {
- String swaCID = '<' + partName + "=" +
cidGenerator.generateFromCount() + '>';
- part.setContentId(swaCID);
- }
- if (paramMetaData.isXOP())
- {
- String xopCID = '<' + cidGenerator.generateFromName(partName) +
'>';
- part.setContentId(xopCID);
- }
-
- return part;
- }
-
- private Object getAttachmentFromMessage(ParameterMetaData paramMetaData, SOAPMessage
message) throws SOAPException, BindingException
- {
- QName xmlName = paramMetaData.getXmlName();
-
- AttachmentPart part =
((SOAPMessageImpl)message).getAttachmentByPartName(xmlName.getLocalPart());
- if (part == null)
- throw new BindingException("Could not locate attachment for parameter:
" + paramMetaData.getXmlName());
-
- return part;
- }
-
- /** Marshall the given parameter and add it to the SOAPMessage */
- private SOAPContentElement addParameterToMessage(ParameterMetaData paramMetaData,
Object value, SOAPElement soapElement) throws SOAPException, BindingException
- {
- QName xmlName = paramMetaData.getXmlName();
- Class javaType = paramMetaData.getJavaType();
-
- if (value != null && paramMetaData.isXOP() == false)
- {
- Class valueType = value.getClass();
- if (JavaUtils.isAssignableFrom(javaType, valueType) == false)
- throw new BindingException("javaType " + javaType.getName() +
" is not assignable from: " + valueType.getName());
- }
-
- // Make sure we have a prefix on qualified names
- if (xmlName.getNamespaceURI().length() > 0)
- {
- CommonMessageContext msgContext =
MessageContextAssociation.peekMessageContext();
- NamespaceRegistry namespaceRegistry = msgContext.getNamespaceRegistry();
- xmlName = namespaceRegistry.registerQName(xmlName);
- }
-
- Name soapName = new NameImpl(xmlName.getLocalPart(), xmlName.getPrefix(),
xmlName.getNamespaceURI());
- if (paramMetaData.isSOAPArrayParam())
- soapName = new NameImpl("Array", Constants.PREFIX_SOAP11_ENC,
Constants.URI_SOAP11_ENC);
-
- SOAPContentElement contentElement;
- if (soapElement instanceof SOAPHeader)
- {
- contentElement = new SOAPHeaderElementImpl(soapName);
- soapElement.addChildElement(contentElement);
- }
- else
- {
- Style style = paramMetaData.getOperationMetaData().getStyle();
- if (style == Style.DOCUMENT)
- {
- contentElement = new SOAPBodyElementDoc(soapName);
- soapElement.addChildElement(contentElement);
- }
- else
- {
- contentElement = new SOAPContentElement(soapName);
- soapElement.addChildElement(contentElement);
- }
- }
-
- contentElement.setParamMetaData(paramMetaData);
-
- if (paramMetaData.isSOAPArrayParam())
- {
- log.trace("Add parameter as SOAP encoded Array");
- contentElement.addNamespaceDeclaration(Constants.PREFIX_SOAP11_ENC,
Constants.URI_SOAP11_ENC);
- }
-
- // When a potential xop parameter is detected and MTOM is enabled
- // we flag the SOAP message as a XOP package
- if (paramMetaData.isXOP() && XOPContext.isMTOMEnabled())
- {
- log.trace("Add parameter as XOP");
- CommonMessageContext msgContext =
MessageContextAssociation.peekMessageContext();
- SOAPMessageImpl soapMessage = (SOAPMessageImpl)msgContext.getSOAPMessage();
- soapMessage.setXOPMessage(true);
- }
-
- contentElement.setObjectValue(value);
-
- return contentElement;
- }
-
- /** Unmarshall a message element and add it to the parameter list */
- private Object getParameterFromMessage(ParameterMetaData paramMetaData, SOAPElement
soapElement, boolean optional) throws BindingException
- {
- Name xmlName = new NameImpl(paramMetaData.getXmlName());
- Name soapArrayName = new NameImpl("Array", Constants.PREFIX_SOAP11_ENC,
Constants.URI_SOAP11_ENC);
-
- SOAPContentElement soapContentElement = null;
- Iterator childElements = soapElement.getChildElements();
- while (childElements.hasNext())
- {
- SOAPElementImpl childElement = (SOAPElementImpl)childElements.next();
-
- // If this message was manipulated by a handler the child may not be a content
element
- if (!(childElement instanceof SOAPContentElement))
- childElement = (SOAPContentElement)soapElement.replaceChild(new
SOAPContentElement(childElement), childElement);
-
- // The parameters are expected to be lazy
- SOAPContentElement aux = (SOAPContentElement)childElement;
- Name elName = aux.getElementName();
-
- if (xmlName.equals(elName))
- {
- soapContentElement = aux;
- soapContentElement.setParamMetaData(paramMetaData);
- break;
- }
-
- if (soapArrayName.equals(elName))
- {
- CommonMessageContext msgContext =
MessageContextAssociation.peekMessageContext();
- msgContext.setProperty(CommonMessageContext.ALLOW_EXPAND_TO_DOM,
Boolean.TRUE);
- try
- {
- QName compXMLName = paramMetaData.getXmlName();
- Element compElement = DOMUtils.getFirstChildElement(aux);
- if (compElement.getNodeName().equals(compXMLName.getLocalPart()))
- {
- soapContentElement = aux;
- soapContentElement.setParamMetaData(paramMetaData);
- break;
- }
- }
- finally
- {
- msgContext.removeProperty(CommonMessageContext.ALLOW_EXPAND_TO_DOM);
- }
- }
- }
-
- // If matching by name fails, try to match by xmlType
- // This maybe necessary when wsa:Action dispatches to the operation
- if (soapContentElement == null)
- {
- childElements = soapElement.getChildElements();
- OperationMetaData opMetaData = paramMetaData.getOperationMetaData();
- TypesMetaData typesMetaData =
opMetaData.getEndpointMetaData().getServiceMetaData().getTypesMetaData();
- if (childElements.hasNext() && opMetaData.getStyle() == Style.DOCUMENT)
- {
- SOAPElementImpl childElement = (SOAPElementImpl)childElements.next();
-
- // The parameters are expected to be lazy
- SOAPContentElement aux = (SOAPContentElement)childElement;
- Name elName = aux.getElementName();
- QName elType = null;
-
- XSElementDeclaration xsdElement =
typesMetaData.getSchemaModel().getElementDeclaration(elName.getLocalName(),
elName.getURI());
- if (xsdElement != null && xsdElement.getTypeDefinition() != null)
- {
- XSTypeDefinition xsdType = xsdElement.getTypeDefinition();
- elType = new QName(xsdType.getNamespace(), xsdType.getName());
- }
-
- if (paramMetaData.getXmlType().equals(elType))
- {
- soapContentElement = aux;
- soapContentElement.setParamMetaData(paramMetaData);
- }
- }
- }
-
- if (soapContentElement == null && optional == false)
- throw new JAXRPCException("Cannot find child element: " + xmlName);
-
- // When a potential XOP parameter is detected and
- // the incomming request is actuall XOP encoded we flag
- // the SOAP message a XOP packaged.
- if (paramMetaData.isXOP() && XOPContext.isXOPEncodedRequest())
- {
- SOAPMessageImpl soapMessage =
(SOAPMessageImpl)MessageContextAssociation.peekMessageContext().getSOAPMessage();
- soapMessage.setXOPMessage(true);
- }
- return soapContentElement;
- }
-
- private void handleException(Exception ex) throws BindingException
- {
- if (ex instanceof RuntimeException)
- throw (RuntimeException)ex;
-
- if (ex instanceof BindingException)
- throw (BindingException)ex;
-
- throw new BindingException(ex);
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonSOAPBinding.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/CommonSOAPBinding.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/EndpointInvocation.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/EndpointInvocation.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/EndpointInvocation.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,402 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core;
-
-// $Id$
-
-import java.lang.reflect.Method;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-import javax.activation.DataHandler;
-import javax.xml.namespace.QName;
-import javax.xml.rpc.ParameterMode;
-import javax.xml.rpc.holders.Holder;
-import javax.xml.soap.AttachmentPart;
-import javax.xml.soap.SOAPException;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.jaxrpc.ParameterWrapping;
-import org.jboss.ws.core.soap.SOAPContentElement;
-import org.jboss.ws.core.utils.HolderUtils;
-import org.jboss.ws.core.utils.JavaUtils;
-import org.jboss.ws.core.utils.MimeUtils;
-import org.jboss.ws.metadata.umdm.OperationMetaData;
-import org.jboss.ws.metadata.umdm.ParameterMetaData;
-
-/** A web service invocation.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 16-Oct-2004
- */
-public class EndpointInvocation
-{
- // provide logging
- private static final Logger log = Logger.getLogger(EndpointInvocation.class);
-
- // The operation meta data for this invocation
- private OperationMetaData opMetaData;
- // Map the named endpoint parameters
- private Map<QName, Object> reqPayload = new LinkedHashMap<QName,
Object>();
- // Map the named endpoint parameters
- private Map<QName, Object> resPayload = new LinkedHashMap<QName,
Object>();
- // The return value
- private Object returnValue;
-
- public EndpointInvocation(OperationMetaData opMetaData)
- {
- this.opMetaData = opMetaData;
- }
-
- public OperationMetaData getOperationMetaData()
- {
- return opMetaData;
- }
-
- public Method getJavaMethod()
- {
- return opMetaData.getJavaMethod();
- }
-
- public List<QName> getRequestParamNames()
- {
- List<QName> xmlNames = new ArrayList<QName>();
- xmlNames.addAll(reqPayload.keySet());
- return xmlNames;
- }
-
- public void setRequestParamValue(QName xmlName, Object value)
- {
- log.debug("setRequestParamValue: [name=" + xmlName + ",value="
+ getTypeName(value) + "]");
- reqPayload.put(xmlName, value);
- }
-
- public Object getRequestParamValue(QName xmlName) throws SOAPException
- {
- log.debug("getRequestParamValue: " + xmlName);
- Object paramValue = reqPayload.get(xmlName);
- ParameterMetaData paramMetaData = opMetaData.getParameter(xmlName);
- paramValue = transformPayloadValue(paramMetaData, paramValue);
- return paramValue;
- }
-
- /** Returns the payload that can be passed on to the endpoint implementation
- */
- public Object[] getRequestPayload() throws SOAPException
- {
- log.debug("getRequestPayload");
- List<QName> xmlNames = getRequestParamNames();
- ArrayList<Object> objPayload = new ArrayList<Object>();
- for (int i = 0; i < xmlNames.size(); i++)
- {
- QName xmlName = xmlNames.get(i);
- Object paramValue = getRequestParamValue(xmlName);
-
- ParameterMetaData paramMetaData = opMetaData.getParameter(xmlName);
- paramValue = syncEndpointInputParam(paramMetaData, paramValue);
- if(opMetaData.isDocumentWrapped() && paramMetaData.isMessageType() ==
false && paramMetaData.isInHeader() == false)
- {
- List<Object> objList = Arrays.asList((Object[])paramValue);
- objPayload.addAll(objList);
- }
- else
- {
- objPayload.add(paramValue);
- }
- }
- return objPayload.toArray();
- }
-
- public List<QName> getResponseParamNames()
- {
- List<QName> xmlNames = new ArrayList<QName>();
- xmlNames.addAll(resPayload.keySet());
- return xmlNames;
- }
-
- public void setResponseParamValue(QName xmlName, Object value)
- {
- log.debug("setResponseParamValue: [name=" + xmlName + ",value="
+ getTypeName(value) + "]");
- resPayload.put(xmlName, value);
- }
-
- public Object getResponseParamValue(QName xmlName) throws SOAPException
- {
- log.debug("getResponseParamValue: " + xmlName);
- Object paramValue = resPayload.get(xmlName);
- ParameterMetaData paramMetaData = opMetaData.getParameter(xmlName);
- paramValue = transformPayloadValue(paramMetaData, paramValue);
- if (paramValue != null)
- {
- Class valueType = paramValue.getClass();
- if (HolderUtils.isHolderType(valueType))
- {
- valueType = HolderUtils.getValueType(valueType);
- paramValue = HolderUtils.getHolderValue(paramValue);
- }
- }
- return paramValue;
- }
-
- public void setReturnValue(Object value)
- {
- ParameterMetaData retMetaData = opMetaData.getReturnParameter();
- if (value != null && retMetaData == null)
- throw new WSException("Operation does not have a return value: " +
opMetaData.getQName());
-
- log.debug("setReturnValue: " + getTypeName(value));
- this.returnValue = value;
- }
-
- public Object getReturnValue() throws SOAPException
- {
- log.debug("getReturnValue");
- Object paramValue = returnValue;
- ParameterMetaData paramMetaData = opMetaData.getReturnParameter();
- if (paramMetaData != null)
- {
- paramValue = transformPayloadValue(paramMetaData, paramValue);
- }
- return paramValue;
- }
-
- private Object transformPayloadValue(ParameterMetaData paramMetaData, final Object
paramValue) throws SOAPException
- {
- QName xmlName = paramMetaData.getXmlName();
- QName xmlType = paramMetaData.getXmlType();
- Class javaType = paramMetaData.getJavaType();
-
- Object retValue = paramValue;
-
- // Handle attachment part
- if (paramValue instanceof AttachmentPart)
- {
- AttachmentPart part = (AttachmentPart)paramValue;
-
- Set mimeTypes = paramMetaData.getMimeTypes();
- if (DataHandler.class.isAssignableFrom(javaType) &&
!javaType.equals(Object.class))
- {
- DataHandler handler = part.getDataHandler();
- String mimeType = MimeUtils.getBaseMimeType(handler.getContentType());
-
- if (mimeTypes != null && !MimeUtils.isMemberOf(mimeType, mimeTypes))
- throw new SOAPException("Mime type " + mimeType + " not
allowed for parameter " + xmlName + " allowed types are " + mimeTypes);
-
- retValue = part.getDataHandler();
- }
- else
- {
- retValue = part.getContent();
- String mimeType = MimeUtils.getBaseMimeType(part.getContentType());
-
- if (mimeTypes != null && !MimeUtils.isMemberOf(mimeType, mimeTypes))
- throw new SOAPException("Mime type " + mimeType + " not
allowed for parameter " + xmlName + " allowed types are " + mimeTypes);
-
- if (retValue != null)
- {
- Class valueType = retValue.getClass();
- if (JavaUtils.isAssignableFrom(javaType, valueType) == false)
- throw new SOAPException("javaType [" + javaType.getName() +
"] is not assignable from attachment content: " + valueType.getName());
- }
- }
- }
- else if (paramValue instanceof SOAPContentElement)
- {
- // For type other than xsd:anyType we return the object value
- if (xmlType.getLocalPart().equals("anyType") == false)
- {
- SOAPContentElement soapElement = (SOAPContentElement)paramValue;
- retValue = soapElement.getObjectValue();
- }
- }
-
- log.debug("transformPayloadValue: " + getTypeName(paramValue) + "
-> " + getTypeName(retValue));
- return retValue;
- }
-
- /** Synchronize the operation IN, INOUT paramters with the call input parameters.
- * Essetially it unwrapps holders and converts primitives to wrapper types.
- */
- public void initInputParams(Object[] inputParams)
- {
- List<ParameterMetaData> paramMetaDataList = opMetaData.getParameters();
- if (opMetaData.isDocumentWrapped() && paramMetaDataList.size() != 0)
- {
- Object value = ParameterWrapping.wrapRequestParameters(opMetaData,
inputParams);
- ParameterMetaData paramMetaData = paramMetaDataList.get(0);
- QName xmlName = paramMetaData.getXmlName();
- setRequestParamValue(xmlName, value);
-
- if (inputParams != null)
- {
- int wrappedParamsCount = paramMetaData.getWrappedVariables().size();
- int lastParam = Math.min(paramMetaDataList.size() - 1, inputParams.length -
wrappedParamsCount);
-
- // document/literal wrapped with bound headers
- for (int i = 0; i < lastParam - 1; i++)
- {
- paramMetaData = paramMetaDataList.get(i + 1);
- if (paramMetaData.isInHeader())
- {
- xmlName = paramMetaData.getXmlName();
- Class javaType = paramMetaData.getJavaType();
-
- value = inputParams[i + wrappedParamsCount];
- if (value != null)
- {
- Class inputType = value.getClass();
-
- if (HolderUtils.isHolderType(inputType))
- {
- inputType = HolderUtils.getValueType(inputType);
- value = HolderUtils.getHolderValue(value);
- }
-
- // Verify that the java type matches a registered xmlType
- // Attachments are skipped because they don't use type mapping
- if (!paramMetaData.isSwA() && !paramMetaData.isXOP())
- {
- if (JavaUtils.isAssignableFrom(javaType, inputType) == false)
- throw new WSException("Parameter '" + javaType +
"' not assignable from: " + inputType);
- }
- }
- setRequestParamValue(xmlName, value);
- }
- }
- }
- }
- else
- {
- for (int i = 0; i < paramMetaDataList.size(); i++)
- {
- ParameterMetaData paramMetaData = paramMetaDataList.get(i);
- QName xmlName = paramMetaData.getXmlName();
- Class javaType = paramMetaData.getJavaType();
-
- Object value = inputParams[i];
- if (value != null)
- {
- Class inputType = value.getClass();
-
- if (HolderUtils.isHolderType(inputType))
- {
- inputType = HolderUtils.getValueType(inputType);
- value = HolderUtils.getHolderValue(value);
- }
-
- // Verify that the java type matches a registered xmlType
- // Attachments are skipped because they don't use type mapping
- if (!paramMetaData.isSwA() && !paramMetaData.isXOP())
- {
- if (JavaUtils.isAssignableFrom(javaType, inputType) == false)
- throw new WSException("Parameter '" + javaType +
"' not assignable from: " + inputType);
- }
- }
- setRequestParamValue(xmlName, value);
- }
- }
- }
-
- /** Synchronize the operation paramters with the endpoint method parameters
- */
- private Object syncEndpointInputParam(ParameterMetaData paramMetaData, final Object
paramValue)
- {
- Object retValue = paramValue;
- Method method = opMetaData.getJavaMethod();
- Class[] targetParameterTypes = method.getParameterTypes();
-
- if (opMetaData.isDocumentWrapped() && paramMetaData.isMessageType() ==
false)
- {
- // Unwrap the request parameters
- if (paramMetaData.isInHeader() == false)
- {
- retValue = ParameterWrapping.unwrapRequestParameters(opMetaData,
paramValue);
- }
- else
- {
- if (paramMetaData.getMode() == ParameterMode.INOUT || paramMetaData.getMode()
== ParameterMode.OUT)
- {
- Class javaType = paramMetaData.getJavaType();
- for (int i=0; i < targetParameterTypes.length; i++)
- {
- Class targetType = targetParameterTypes[i];
- if (HolderUtils.isHolderType(targetType))
- {
- Class valueType = HolderUtils.getValueType(targetType);
- if (JavaUtils.isAssignableFrom(valueType, javaType))
- {
- Holder holder = HolderUtils.getHolderInstance(targetType);
- HolderUtils.setHolderValue(holder, paramValue);
- retValue = holder;
-
- QName xmlName = paramMetaData.getXmlName();
- setResponseParamValue(xmlName, holder);
- }
- }
- }
- }
- }
- }
- else
- {
- // Replace INOUT and OUT parameters by their respective holder values
- int paramTypeIndex = opMetaData.getParameters().indexOf(paramMetaData);
- Class targetParameterType = targetParameterTypes[paramTypeIndex];
-
- if (paramMetaData.getMode() == ParameterMode.INOUT || paramMetaData.getMode() ==
ParameterMode.OUT)
- {
- Holder holder = HolderUtils.getHolderInstance(targetParameterType);
- HolderUtils.setHolderValue(holder, paramValue);
- retValue = holder;
-
- QName xmlName = paramMetaData.getXmlName();
- setResponseParamValue(xmlName, holder);
- }
-
- if (JavaUtils.isPrimitive(targetParameterType))
- {
- retValue = JavaUtils.getPrimitiveValue(paramValue);
- }
-
- if (retValue != null)
- {
- Class valueType = retValue.getClass();
- if (JavaUtils.isAssignableFrom(targetParameterType, valueType) == false)
- throw new WSException("Parameter " +
targetParameterType.getName() + " is not assignable from: " +
getTypeName(retValue));
- }
- }
-
- log.debug("syncEndpointInputParam: " + getTypeName(paramValue) + "
-> " + getTypeName(retValue));
- return retValue;
- }
-
- private String getTypeName(Object value)
- {
- String valueType = (value != null ? value.getClass().getName() : null);
- return valueType;
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/EndpointInvocation.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/EndpointInvocation.java)
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc (from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/CallImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/CallImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/CallImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,660 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.jaxrpc;
-
-// $Id$
-
-import java.rmi.RemoteException;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.Call;
-import javax.xml.rpc.JAXRPCException;
-import javax.xml.rpc.ParameterMode;
-import javax.xml.rpc.ServiceException;
-import javax.xml.rpc.Stub;
-import javax.xml.rpc.encoding.SerializerFactory;
-import javax.xml.soap.SOAPException;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.Constants;
-import org.jboss.ws.core.CommonClient;
-import org.jboss.ws.core.jaxrpc.binding.JBossXBDeserializerFactory;
-import org.jboss.ws.core.jaxrpc.binding.JBossXBSerializerFactory;
-import org.jboss.ws.core.jaxrpc.handler.HandlerChainBaseImpl;
-import org.jboss.ws.core.jaxrpc.handler.SOAPMessageContextJAXRPC;
-import org.jboss.ws.core.soap.MessageContextAssociation;
-import org.jboss.ws.core.soap.UnboundHeader;
-import org.jboss.ws.core.utils.JavaUtils;
-import org.jboss.ws.extensions.xop.XOPContext;
-import org.jboss.ws.metadata.umdm.EndpointMetaData;
-import org.jboss.ws.metadata.umdm.OperationMetaData;
-import org.jboss.ws.metadata.umdm.ParameterMetaData;
-import org.jboss.ws.metadata.umdm.ServiceMetaData;
-import org.jboss.ws.metadata.umdm.TypesMetaData;
-import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
-import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel;
-
-/** Provides support for the dynamic invocation of a service endpoint.
- * The javax.xml.rpc.Service interface acts as a factory for the creation of Call
instances.
- *
- * Once a Call instance is created, various setter and getter methods may be used to
configure this Call instance.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 10-Oct-2004
- */
-public class CallImpl extends CommonClient implements Call
-{
- // provide logging
- private static Logger log = Logger.getLogger(CallImpl.class);
-
- // The service that created this call
- private ServiceImpl jaxrpcService;
- // The port type name
- private QName portType;
- // A Map<QName,UnboundHeader> of header entries
- private Map<QName, UnboundHeader> unboundHeaders = new LinkedHashMap<QName,
UnboundHeader>();
- // A Map<String,Object> of Call properties
- private Map<String, Object> properties = new HashMap<String, Object>();
-
- // The set of supported properties
- private static final Set<String> standardProperties = new
HashSet<String>();
- static
- {
- standardProperties.add(Call.ENCODINGSTYLE_URI_PROPERTY);
- standardProperties.add(Call.OPERATION_STYLE_PROPERTY);
- standardProperties.add(Call.SESSION_MAINTAIN_PROPERTY);
- standardProperties.add(Call.SOAPACTION_URI_PROPERTY);
- standardProperties.add(Call.SOAPACTION_USE_PROPERTY);
- standardProperties.add(Call.USERNAME_PROPERTY);
- standardProperties.add(Call.PASSWORD_PROPERTY);
-
- standardProperties.add(Stub.ENDPOINT_ADDRESS_PROPERTY);
- standardProperties.add(Stub.SESSION_MAINTAIN_PROPERTY);
- standardProperties.add(Stub.USERNAME_PROPERTY);
- standardProperties.add(Stub.PASSWORD_PROPERTY);
- }
-
- /** Create a call that needs to be configured manually
- */
- CallImpl(ServiceImpl service)
- {
- super(service.getServiceMetaData());
- this.jaxrpcService = service;
-
- if (epMetaData != null)
- setTargetEndpointAddress(epMetaData.getEndpointAddress());
- }
-
- /** Create a call for a known WSDL endpoint.
- *
- * @param epMetaData A WSDLEndpoint
- */
- CallImpl(ServiceImpl service, EndpointMetaData epMetaData)
- {
- super(epMetaData);
- this.jaxrpcService = service;
-
- setTargetEndpointAddress(epMetaData.getEndpointAddress());
- }
-
- /** Create a call for a known WSDL endpoint.
- *
- * @param portName Qualified name for the target service endpoint
- * @throws ServiceException
- */
- CallImpl(ServiceImpl service, QName portName, QName opName) throws ServiceException
- {
- super(service.getServiceMetaData(), portName, opName);
- this.jaxrpcService = service;
-
- if (epMetaData != null)
- setTargetEndpointAddress(epMetaData.getEndpointAddress());
- }
-
- @Override
- protected Map<String, Object> getRequestContext()
- {
- return properties;
- }
-
- @Override
- protected Map<String, Object> getResponseContext()
- {
- return properties;
- }
-
- /**
- * Add a header that is not bound to an input parameter.
- * A propriatory extension, that is not part of JAXRPC.
- *
- * @param xmlName The XML name of the header element
- * @param xmlType The XML type of the header element
- */
- public void addUnboundHeader(QName xmlName, QName xmlType, Class javaType,
ParameterMode mode)
- {
- UnboundHeader unboundHeader = new UnboundHeader(xmlName, xmlType, javaType, mode);
- unboundHeaders.put(xmlName, unboundHeader);
- }
-
- /**
- * Get the header value for the given XML name.
- * A propriatory extension, that is not part of JAXRPC.
- *
- * @param xmlName The XML name of the header element
- * @return The header value, or null
- */
- public Object getUnboundHeaderValue(QName xmlName)
- {
- UnboundHeader unboundHeader = unboundHeaders.get(xmlName);
- return (unboundHeader != null ? unboundHeader.getHeaderValue() : null);
- }
-
- /**
- * Set the header value for the given XML name.
- * A propriatory extension, that is not part of JAXRPC.
- *
- * @param xmlName The XML name of the header element
- */
- public void setUnboundHeaderValue(QName xmlName, Object value)
- {
- UnboundHeader unboundHeader = unboundHeaders.get(xmlName);
- if (unboundHeader == null)
- throw new IllegalArgumentException("Cannot find unbound header: " +
xmlName);
-
- unboundHeader.setHeaderValue(value);
- }
-
- /**
- * Clear all registered headers.
- * A propriatory extension, that is not part of JAXRPC.
- */
- public void clearUnboundHeaders()
- {
- unboundHeaders.clear();
- }
-
- /**
- * Remove the header for the given XML name.
- * A propriatory extension, that is not part of JAXRPC.
- */
- public void removeUnboundHeader(QName xmlName)
- {
- unboundHeaders.remove(xmlName);
- }
-
- /**
- * Get an Iterator over the registered header XML names.
- * A propriatory extension, that is not part of JAXRPC.
- */
- public Iterator getUnboundHeaders()
- {
- return unboundHeaders.keySet().iterator();
- }
-
- /** Gets the address of a target service endpoint.
- */
- public String getTargetEndpointAddress()
- {
- return (String)properties.get(Stub.ENDPOINT_ADDRESS_PROPERTY);
- }
-
- /** Sets the address of the target service endpoint. This address must correspond to
the transport
- * specified in the binding for this Call instance.
- *
- * @param address Address of the target service endpoint; specified as an URI
- */
- public void setTargetEndpointAddress(String address)
- {
- this.properties.put(Stub.ENDPOINT_ADDRESS_PROPERTY, address);
- }
-
- /** Adds a parameter type and mode for a specific operation.
- */
- public void addParameter(String paramName, QName xmlType, ParameterMode
parameterMode)
- {
- TypeMappingImpl typeMapping =
getEndpointMetaData().getServiceMetaData().getTypeMapping();
- Class javaType = typeMapping.getJavaType(xmlType);
-
- // CTS
com/sun/ts/tests/jaxrpc/api/javax_xml_rpc/Call/AddGetRemoveAllParametersTest1
- // tests addParameter/getParameter without giving the javaType for a custom
parameter
- // IMHO, this flavour of addParameter should only be used for standard types,
where
- // the javaType can be derived from the xmlType
- if (javaType == null)
- {
- log.warn("Register unqualified call parameter for: " + xmlType);
- javaType = new UnqualifiedCallParameter(xmlType).getClass();
- typeMapping.register(javaType, xmlType, null, null);
- }
-
- addParameter(paramName, xmlType, javaType, parameterMode);
- }
-
- /** Adds a parameter type and mode for a specific operation.
- */
- public void addParameter(String paramName, QName xmlType, Class javaType,
ParameterMode mode)
- {
- QName xmlName = new QName(paramName);
- addParameter(xmlName, xmlType, javaType, mode, false);
- }
-
- /** Add a parameter to the current operation description.
- * This is a propriatary extension that gives full control over the parameter
configuration.
- */
- public void addParameter(QName xmlName, QName xmlType, Class javaType, ParameterMode
mode, boolean inHeader)
- {
- if (xmlType == null || javaType == null)
- throw new IllegalArgumentException("Invalid null parameter");
-
- OperationMetaData opMetaData = getOperationMetaData();
- ParameterMetaData paramMetaData = new ParameterMetaData(opMetaData, xmlName,
xmlType, javaType.getName());
- opMetaData.addParameter(paramMetaData);
- paramMetaData.setMode(mode);
- paramMetaData.setInHeader(inHeader);
-
- registerParameterType(xmlType, javaType);
- }
-
- /** Removes all specified parameters from this Call instance. Note that this method
removes only the parameters and
- * not the return type. The setReturnType(null) is used to remove the return type.
- *
- * @throws javax.xml.rpc.JAXRPCException This exception may be thrown If this method
is called when the method isParameterAndReturnSpecRequired returns false for this
Call's operation.
- */
- public void removeAllParameters()
- {
- OperationMetaData opMetaData = getOperationMetaData();
- opMetaData.removeAllParameters();
- }
-
- /** Sets the return type for a specific operation. Invoking setReturnType(null)
removes the return type for this Call object.
- */
- public void setReturnType(QName xmlType)
- {
- Class javaType =
getEndpointMetaData().getServiceMetaData().getTypeMapping().getJavaType(xmlType);
- setReturnType(xmlType, javaType);
- }
-
- /** Sets the return type for a specific operation.
- */
- public void setReturnType(QName xmlType, Class javaType)
- {
- if (xmlType == null || javaType == null)
- throw new IllegalArgumentException("Invalid null parameter");
-
- OperationMetaData opMetaData = getOperationMetaData();
- QName xmlName = new QName(Constants.DEFAULT_RPC_RETURN_NAME);
- String javaTypeName = javaType.getName();
- ParameterMetaData retMetaData = new ParameterMetaData(opMetaData, xmlName, xmlType,
javaTypeName);
- opMetaData.setReturnParameter(retMetaData);
-
- registerParameterType(xmlType, javaType);
- }
-
- /** Invokes a remote method using the one-way interaction mode.
- */
- public void invokeOneWay(Object[] inputParams)
- {
- try
- {
- invokeInternal(operationName, inputParams, unboundHeaders, true);
- }
- catch (RemoteException rex)
- {
- throw new JAXRPCException("Cannot invokeOneWay", rex.getCause());
- }
- }
-
- /** Invokes a specific operation using a synchronous request-response interaction
mode.
- */
- public Object invoke(Object[] inputParams) throws RemoteException
- {
- return invokeInternal(operationName, inputParams, unboundHeaders, false);
- }
-
- /** Invokes a specific operation using a synchronous request-response interaction
mode.
- */
- public Object invoke(QName operationName, Object[] inputParams) throws
RemoteException
- {
- return invokeInternal(operationName, inputParams, unboundHeaders, false);
- }
-
- /** Returns a List values for the output parameters of the last invoked operation.
- *
- * @return java.util.List Values for the output parameters. An empty List is returned
if there are no output values.
- * @throws JAXRPCException If this method is invoked for a one-way operation or is
invoked before any invoke method has been called.
- */
- public List getOutputValues()
- {
- if (epInv == null)
- throw new JAXRPCException("Output params not available");
-
- try
- {
- OperationMetaData opMetaData = getOperationMetaData();
-
- List<Object> objPayload = new ArrayList<Object>();
- for (QName xmlName : epInv.getResponseParamNames())
- {
- Object paramValue = epInv.getResponseParamValue(xmlName);
- if (opMetaData.isDocumentWrapped())
- {
- objPayload = Arrays.asList((Object[])paramValue);
- break;
- }
- else
- {
- objPayload.add(paramValue);
- }
- }
- return objPayload;
- }
- catch (SOAPException ex)
- {
- throw new JAXRPCException("Cannot obtain response payload", ex);
- }
- }
-
- /** Returns a Map of {name, value} for the output parameters of the last invoked
operation.
- * The parameter names in the returned Map are of type java.lang.String.
- *
- * @return Map Output parameters for the last Call.invoke(). Empty Map is returned if
there are no output parameters.
- * @throws JAXRPCException If this method is invoked for a one-way operation or is
invoked before any invoke method has been called.
- */
- public Map getOutputParams()
- {
- if (epInv == null)
- throw new JAXRPCException("Output params not available");
-
- try
- {
- Map<String, Object> outMap = new LinkedHashMap<String, Object>();
- for (QName xmlName : epInv.getResponseParamNames())
- {
- Object value = epInv.getResponseParamValue(xmlName);
- outMap.put(xmlName.getLocalPart(), value);
- }
- return outMap;
- }
- catch (SOAPException ex)
- {
- throw new JAXRPCException("Cannot obtain response payload", ex);
- }
- }
-
- /**
- * Gets the qualified name of the port type.
- *
- * @return Qualified name of the port type
- */
- public QName getPortTypeName()
- {
- if (portType != null)
- {
- return portType;
- }
-
- /* This code could be used to derive the portType from the endpoint meta data.
- * However, it breaks CTS
com/sun/ts/tests/jaxrpc/api/javax_xml_rpc/Call/Client.java#SetGetPortTypeNameTest2
- if (epMetaData != null)
- {
- ServiceMetaData serviceMetaData = epMetaData.getServiceMetaData();
- WSDLDefinitions wsdlDefinitions = serviceMetaData.getWsdlDefinitions();
- WSDLService wsdlService = wsdlDefinitions.getService(new
NCName(serviceMetaData.getName().getLocalPart()));
- WSDLEndpoint wsdlEndpoint = wsdlService.getEndpoint(epMetaData.getName());
- WSDLInterface wsdlInterface = wsdlEndpoint.getInterface();
- return wsdlInterface.getQName();
- }
- */
-
- // CTS
com/sun/ts/tests/jaxrpc/api/javax_xml_rpc/Call/Client.java#SetGetPortTypeNameTest2
- return new QName("");
- }
-
- /**
- * Gets the return type for a specific operation
- *
- * @return Returns the XML type for the return value
- */
- public QName getReturnType()
- {
- QName retType = null;
- if (operationName != null)
- {
- OperationMetaData opDesc = getOperationMetaData();
- ParameterMetaData retMetaData = opDesc.getReturnParameter();
- if (retMetaData != null)
- retType = retMetaData.getXmlType();
- }
- return retType;
- }
-
- /**
- * Sets the qualified name of the interface.
- *
- * @param portType - Qualified name of the port type
- */
- public void setPortTypeName(QName portType)
- {
- this.portType = portType;
- }
-
- /**
- * Indicates whether addParameter and setReturnType methods are to be invoked to
specify the parameter and return
- * type specification for a specific operation.
- *
- * @param opName Qualified name of the operation
- * @return 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.
- * @throws IllegalArgumentException If invalid operation name is specified
- */
- public boolean isParameterAndReturnSpecRequired(QName opName)
- {
- setOperationName(opName);
- OperationMetaData opMetaData = getOperationMetaData();
- return opMetaData.getParameters().size() == 0 &&
opMetaData.getReturnParameter() == null;
- }
-
- /** Gets the names of configurable properties supported by this Call object.
- * @return Iterator for the property names
- */
- public Iterator getPropertyNames()
- {
- return standardProperties.iterator();
- }
-
- /** Gets the value of a named property.
- */
- public Object getProperty(String name)
- {
- if (null == name)
- throw new JAXRPCException("Unsupported property: " + name);
- // CTS:
com/sun/ts/tests/jaxrpc/api/javax_xml_rpc/Call/Client.java#SetGetPropertyTest2
- if (name.startsWith("javax.xml.rpc") &&
standardProperties.contains(name) == false)
- throw new JAXRPCException("Unsupported property: " + name);
-
- return properties.get(name);
- }
-
- /** Sets the value for a named property.
- */
- public void setProperty(String name, Object value)
- {
- if (null == name)
- throw new JAXRPCException("Unsupported property: " + name);
- // CTS:
com/sun/ts/tests/jaxrpc/api/javax_xml_rpc/Call/Client.java#SetGetPropertyTest2
- if (name.startsWith("javax.xml.rpc") &&
standardProperties.contains(name) == false)
- throw new JAXRPCException("Unsupported property: " + name);
-
- properties.put(name, value);
- }
-
- /** Removes a named property.
- */
- public void removeProperty(String name)
- {
- properties.remove(name);
- }
-
- /** Gets the XML type of a parameter by name.
- */
- public QName getParameterTypeByName(String paramName)
- {
- OperationMetaData opMetaData = getOperationMetaData();
- ParameterMetaData paramMetaData = opMetaData.getParameter(new QName(paramName));
- if (paramMetaData != null)
- return paramMetaData.getXmlType();
- else return null;
- }
-
- @Override
- protected void setInboundContextProperties()
- {
- }
-
- @Override
- protected void setOutboundContextProperties()
- {
- }
-
- private Object invokeInternal(QName opName, Object[] inputParams, Map<QName,
UnboundHeader> unboundHeaders, boolean oneway) throws RemoteException
- {
- if (opName.equals(operationName) == false)
- setOperationName(opName);
-
- OperationMetaData opMetaData = getOperationMetaData();
-
- // Check or generate the the schema if this call is unconfigured
- generateOrUpdateSchemas(opMetaData);
-
- // Associate a message context with the current thread
- SOAPMessageContextJAXRPC msgContext = new SOAPMessageContextJAXRPC();
- MessageContextAssociation.pushMessageContext(msgContext);
- try
- {
- Object retObj = super.invoke(opName, inputParams, unboundHeaders, oneway);
- return retObj;
- }
- finally
- {
- // Reset the message context association
- MessageContextAssociation.popMessageContext();
- }
- }
-
- @Override
- protected boolean callRequestHandlerChain(QName portName, HandlerType type)
- {
- SOAPMessageContextJAXRPC msgContext =
(SOAPMessageContextJAXRPC)MessageContextAssociation.peekMessageContext();
- HandlerChainBaseImpl handlerChain =
(HandlerChainBaseImpl)jaxrpcService.getHandlerChain(portName);
- boolean status = (handlerChain != null ? handlerChain.handleRequest(msgContext,
type) : true);
-
- if (type == HandlerType.ENDPOINT)
- XOPContext.visitAndRestoreXOPData();
-
- return status;
- }
-
- @Override
- protected boolean callResponseHandlerChain(QName portName, HandlerType type)
- {
- SOAPMessageContextJAXRPC msgContext =
(SOAPMessageContextJAXRPC)MessageContextAssociation.peekMessageContext();
- HandlerChainBaseImpl handlerChain =
(HandlerChainBaseImpl)jaxrpcService.getHandlerChain(portName);
-
- boolean status = true;
- if (handlerChain != null)
- {
- status = handlerChain.handleResponse(msgContext, type);
- }
- return status;
- }
-
- /** Generate or update the XSD schema for all parameters and the return.
- * This should only be done when the Call is unconfigured, hence there is no WSDL
- */
- private void generateOrUpdateSchemas(OperationMetaData opMetaData)
- {
- ServiceMetaData serviceMetaData =
opMetaData.getEndpointMetaData().getServiceMetaData();
- if (serviceMetaData.getWsdlFile() == null)
- {
- TypesMetaData typesMetaData = serviceMetaData.getTypesMetaData();
- for (ParameterMetaData paramMetaData : opMetaData.getParameters())
- {
- generateOrUpdateParameterSchema(typesMetaData, paramMetaData);
- }
-
- ParameterMetaData retMetaData = opMetaData.getReturnParameter();
- if (retMetaData != null)
- {
- generateOrUpdateParameterSchema(typesMetaData, retMetaData);
- }
- }
- }
-
- /** Generate or update the XSD schema for a given parameter
- * This should only be done if the parameter is not an attachment
- */
- private void generateOrUpdateParameterSchema(TypesMetaData typesMetaData,
ParameterMetaData paramMetaData)
- {
- if (paramMetaData.isSwA() == false)
- {
- QName xmlType = paramMetaData.getXmlType();
- Class javaType = paramMetaData.getJavaType();
-
- ServiceMetaData serviceMetaData = getEndpointMetaData().getServiceMetaData();
- TypeMappingImpl typeMapping = serviceMetaData.getTypeMapping();
- SerializerFactory serFactory = typeMapping.getSerializer(javaType, xmlType);
- if (serFactory instanceof JBossXBSerializerFactory)
- {
- SchemaGenerator xsdGenerator = new SchemaGenerator();
- JBossXSModel model = xsdGenerator.generateXSDSchema(xmlType, javaType);
- typesMetaData.addSchemaModel(model);
- }
- }
- }
-
- private void registerParameterType(QName xmlType, Class javaType)
- {
- ServiceMetaData serviceMetaData = getEndpointMetaData().getServiceMetaData();
-
- String nsURI = xmlType.getNamespaceURI();
- if (Constants.NS_ATTACHMENT_MIME_TYPE.equals(nsURI) == false)
- {
- TypeMappingImpl typeMapping = serviceMetaData.getTypeMapping();
- Class regJavaType = typeMapping.getJavaType(xmlType);
- if (regJavaType == null)
- {
- typeMapping.register(javaType, xmlType, new JBossXBSerializerFactory(), new
JBossXBDeserializerFactory());
- }
- else if (regJavaType != null && JavaUtils.isAssignableFrom(regJavaType,
javaType) == false)
- {
- throw new IllegalArgumentException("Different java type already
registered: " + regJavaType.getName());
- }
- }
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/CallImpl.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/CallImpl.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/CallProxy.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/CallProxy.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/CallProxy.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,207 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc;
-
-// $Id$
-
-import java.lang.reflect.InvocationHandler;
-import java.lang.reflect.Method;
-import java.rmi.RemoteException;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-import javax.xml.rpc.JAXRPCException;
-import javax.xml.rpc.Stub;
-import javax.xml.rpc.soap.SOAPFaultException;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.utils.JavaUtils;
-import org.jboss.ws.metadata.umdm.EndpointMetaData;
-import org.jboss.ws.metadata.umdm.OperationMetaData;
-
-/**
- * The dynamic proxy that delegates to the underlying Call implementation
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 07-Jan-2005
- */
-public class CallProxy implements InvocationHandler
-{
- // provide logging
- private static final Logger log = Logger.getLogger(CallProxy.class);
-
- // The underlying Call
- private CallImpl call;
- // List<Method> of the Stub methods
- private List stubMethods;
- // List<Method> of the Object methods
- private List objectMethods;
-
- // The set of standard properties
- private static final Set<String> standardProperties = new
HashSet<String>();
- static
- {
- standardProperties.add(Stub.ENDPOINT_ADDRESS_PROPERTY);
- standardProperties.add(Stub.SESSION_MAINTAIN_PROPERTY);
- standardProperties.add(Stub.USERNAME_PROPERTY);
- standardProperties.add(Stub.PASSWORD_PROPERTY);
- }
-
- // The map of jboss-ws4ee supported properties
- private static final Map<String,String> legacyPropertyMap = new
HashMap<String,String>();
- static
- {
- legacyPropertyMap.put("org.jboss.webservice.client.timeout",
StubExt.PROPERTY_CLIENT_TIMEOUT);
- legacyPropertyMap.put("org.jboss.webservice.keyStore",
StubExt.PROPERTY_KEY_STORE);
- legacyPropertyMap.put("org.jboss.webservice.keyStorePassword",
StubExt.PROPERTY_KEY_STORE_PASSWORD);
- legacyPropertyMap.put("org.jboss.webservice.keyStoreType",
StubExt.PROPERTY_KEY_STORE_TYPE);
- legacyPropertyMap.put("org.jboss.webservice.trustStore",
StubExt.PROPERTY_TRUST_STORE);
- legacyPropertyMap.put("org.jboss.webservice.trustStorePassword",
StubExt.PROPERTY_TRUST_STORE_PASSWORD);
- legacyPropertyMap.put("org.jboss.webservice.trustStoreType",
StubExt.PROPERTY_TRUST_STORE_TYPE);
- }
-
- public CallProxy(CallImpl call)
- {
- this.call = call;
- this.stubMethods = Arrays.asList(StubExt.class.getMethods());
- this.objectMethods = Arrays.asList(Object.class.getMethods());
- }
-
- /** Processes a method invocation on a proxy instance and returns the result.
- */
- public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
- {
- // An invocation on the Stub interface
- String methodName = method.getName();
- if (stubMethods.contains(method))
- {
- if (methodName.equals("_getPropertyNames"))
- {
- return call.getPropertyNames();
- }
- else if (methodName.equals("_getProperty"))
- {
- return getProperty((String)args[0]);
- }
- else if (methodName.equals("_setProperty"))
- {
- setProperty((String)args[0], args[1]);
- return null;
- }
- else
- {
- Method callMethod = CallImpl.class.getMethod(methodName,
method.getParameterTypes());
- return callMethod.invoke(call, args);
- }
- }
-
- // An invocation on proxy's Object class
- else if (objectMethods.contains(method))
- {
- Method callMethod = CallImpl.class.getMethod(methodName,
method.getParameterTypes());
- return callMethod.invoke(call, args);
- }
-
- // An invocation on the service endpoint interface
- else
- {
- EndpointMetaData epMetaData = call.getEndpointMetaData();
- OperationMetaData opMetaData = epMetaData.getOperation(method);
- if (opMetaData == null)
- throw new WSException("Cannot obtain operation meta data for: " +
methodName);
-
- call.setOperationName(opMetaData.getQName());
-
- try
- {
- if (opMetaData.isOneWayOperation())
- {
- call.invokeOneWay(args);
- return null;
- }
- else
- {
- Object retObj = call.invoke(args);
- if (retObj != null)
- {
- Class retType = method.getReturnType();
- if (retType == null)
- throw new WSException("Return value not supported by: " +
opMetaData);
-
- if (JavaUtils.isPrimitive(retType))
- retObj = JavaUtils.getPrimitiveValue(retObj);
- }
- return retObj;
- }
- }
- catch (Exception ex)
- {
- handleException(ex);
- return null;
- }
- }
- }
-
- private Object getProperty(String name)
- {
- name = assertPropertyName(name);
- return call.getProperty(name);
- }
-
- private void setProperty(String name, Object value)
- {
- name = assertPropertyName(name);
- call.setProperty(name, value);
- }
-
- private String assertPropertyName(String name)
- {
- if (name != null && name.startsWith("javax.xml.rpc") &&
standardProperties.contains(name) == false)
- throw new JAXRPCException("Unsupported property: " + name);
-
- if (legacyPropertyMap.keySet().contains(name))
- {
- String jbosswsName = legacyPropertyMap.get(name);
- log.warn("Legacy propery '" + name + "' mapped to
'" + jbosswsName + "'");
- name = jbosswsName;
- }
-
- return name;
- }
-
- private void handleException(Exception ex) throws Throwable
- {
- Throwable th = ex;
- if (ex instanceof RemoteException && ex.getCause() instanceof
SOAPFaultException)
- {
- SOAPFaultException faultEx = (SOAPFaultException)ex.getCause();
- if (faultEx.getCause() != null)
- th = faultEx.getCause();
- }
- throw th;
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/CallProxy.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/CallProxy.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/EncodedTypeMapping.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/EncodedTypeMapping.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/EncodedTypeMapping.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,182 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc;
-
-// $Id$
-
-import java.math.BigDecimal;
-import java.math.BigInteger;
-import java.net.URI;
-import java.util.Calendar;
-import java.util.Date;
-
-import javax.xml.namespace.QName;
-import javax.xml.soap.SOAPElement;
-
-import org.jboss.util.NotImplementedException;
-import org.jboss.ws.Constants;
-import org.jboss.ws.core.jaxrpc.binding.Base64DeserializerFactory;
-import org.jboss.ws.core.jaxrpc.binding.Base64SerializerFactory;
-import org.jboss.ws.core.jaxrpc.binding.CalendarDeserializerFactory;
-import org.jboss.ws.core.jaxrpc.binding.CalendarSerializerFactory;
-import org.jboss.ws.core.jaxrpc.binding.DateDeserializerFactory;
-import org.jboss.ws.core.jaxrpc.binding.DateSerializerFactory;
-import org.jboss.ws.core.jaxrpc.binding.ElementDeserializerFactory;
-import org.jboss.ws.core.jaxrpc.binding.ElementSerializerFactory;
-import org.jboss.ws.core.jaxrpc.binding.HexDeserializerFactory;
-import org.jboss.ws.core.jaxrpc.binding.HexSerializerFactory;
-import org.jboss.ws.core.jaxrpc.binding.QNameDeserializerFactory;
-import org.jboss.ws.core.jaxrpc.binding.QNameSerializerFactory;
-import org.jboss.ws.core.jaxrpc.binding.SOAPElementDeserializerFactory;
-import org.jboss.ws.core.jaxrpc.binding.SOAPElementSerializerFactory;
-import org.jboss.ws.core.jaxrpc.binding.SimpleDeserializerFactory;
-import org.jboss.ws.core.jaxrpc.binding.SimpleSerializerFactory;
-import org.w3c.dom.Element;
-
-/**
- * This is the representation of a type mapping.
- * This TypeMapping implementation supports the encoded encoding style.
- *
- * The TypeMapping instance maintains a tuple of the type
- * {XML typeQName, Java Class, SerializerFactory, DeserializerFactory}.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 10-Oct-2004
- */
-public class EncodedTypeMapping extends TypeMappingImpl
-{
-
- /**
- * Construct the default encoded type mapping.
- * Registers javaTypes for all standard XMLSchema types specified by JAXRPC.
- *
- * Note, the order of registered types is important
- * The last xmlType wins for a given javaType
- *
- */
- public EncodedTypeMapping()
- {
- registerStandardLiteralTypes();
- registerStandardSOAP11EncodedTypes();
-
- // register mapping for xsd:anyType
- registerInternal(SOAPElement.class, Constants.TYPE_SOAP11_ANYTYPE, new
SOAPElementSerializerFactory(), new SOAPElementDeserializerFactory());
- registerInternal(Element.class, Constants.TYPE_SOAP11_ANYTYPE, new
ElementSerializerFactory(), new ElementDeserializerFactory());
- }
-
- private void registerStandardSOAP11EncodedTypes()
- {
- registerInternal(BigDecimal.class, Constants.TYPE_SOAP11_DECIMAL, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
-
- registerInternal(BigInteger.class, Constants.TYPE_SOAP11_POSITIVEINTEGER, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(BigInteger.class, Constants.TYPE_SOAP11_NEGATIVEINTEGER, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(BigInteger.class, Constants.TYPE_SOAP11_NONPOSITIVEINTEGER, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(BigInteger.class, Constants.TYPE_SOAP11_NONNEGATIVEINTEGER, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(BigInteger.class, Constants.TYPE_SOAP11_UNSIGNEDLONG, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(BigInteger.class, Constants.TYPE_SOAP11_INTEGER, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
-
- registerInternal(Date.class, Constants.TYPE_SOAP11_DATETIME, new
DateSerializerFactory(), new DateDeserializerFactory());
-
- registerInternal(Calendar.class, Constants.TYPE_SOAP11_DATE, new
CalendarSerializerFactory(), new CalendarDeserializerFactory());
- registerInternal(Calendar.class, Constants.TYPE_SOAP11_TIME, new
CalendarSerializerFactory(), new CalendarDeserializerFactory());
- registerInternal(Calendar.class, Constants.TYPE_SOAP11_DATETIME, new
CalendarSerializerFactory(), new CalendarDeserializerFactory());
-
- registerInternal(QName.class, Constants.TYPE_SOAP11_QNAME, new
QNameSerializerFactory(), new QNameDeserializerFactory());
-
- registerInternal(String.class, Constants.TYPE_SOAP11_ANYSIMPLETYPE, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(String.class, Constants.TYPE_SOAP11_DURATION, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(String.class, Constants.TYPE_SOAP11_GDAY, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(String.class, Constants.TYPE_SOAP11_GMONTH, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(String.class, Constants.TYPE_SOAP11_GMONTHDAY, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(String.class, Constants.TYPE_SOAP11_GYEAR, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(String.class, Constants.TYPE_SOAP11_GYEARMONTH, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(String.class, Constants.TYPE_SOAP11_ID, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(String.class, Constants.TYPE_SOAP11_LANGUAGE, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(String.class, Constants.TYPE_SOAP11_NAME, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(String.class, Constants.TYPE_SOAP11_NCNAME, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(String.class, Constants.TYPE_SOAP11_NMTOKEN, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(String.class, Constants.TYPE_SOAP11_NORMALIZEDSTRING, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(String.class, Constants.TYPE_SOAP11_TOKEN, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(String.class, Constants.TYPE_SOAP11_STRING, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
-
- registerInternal(String[].class, Constants.TYPE_SOAP11_NMTOKENS, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
-
- registerInternal(URI.class, Constants.TYPE_SOAP11_ANYURI, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
-
- registerInternal(boolean.class, Constants.TYPE_SOAP11_BOOLEAN, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(Boolean.class, Constants.TYPE_SOAP11_BOOLEAN, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
-
- registerInternal(byte.class, Constants.TYPE_SOAP11_BYTE, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(Byte.class, Constants.TYPE_SOAP11_BYTE, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
-
- registerInternal(byte[].class, Constants.TYPE_SOAP11_HEXBINARY, new
HexSerializerFactory(), new HexDeserializerFactory());
- registerInternal(Byte[].class, Constants.TYPE_SOAP11_HEXBINARY, new
HexSerializerFactory(), new HexDeserializerFactory());
- registerInternal(byte[].class, Constants.TYPE_SOAP11_BASE64BINARY, new
Base64SerializerFactory(), new Base64DeserializerFactory());
- registerInternal(Byte[].class, Constants.TYPE_SOAP11_BASE64BINARY, new
Base64SerializerFactory(), new Base64DeserializerFactory());
- registerInternal(byte[].class, Constants.TYPE_SOAP11_BASE64, new
Base64SerializerFactory(), new Base64DeserializerFactory());
- registerInternal(Byte[].class, Constants.TYPE_SOAP11_BASE64, new
Base64SerializerFactory(), new Base64DeserializerFactory());
-
- registerInternal(double.class, Constants.TYPE_SOAP11_DOUBLE, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(Double.class, Constants.TYPE_SOAP11_DOUBLE, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
-
- registerInternal(float.class, Constants.TYPE_SOAP11_FLOAT, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(Float.class, Constants.TYPE_SOAP11_FLOAT, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
-
- registerInternal(int.class, Constants.TYPE_SOAP11_UNSIGNEDSHORT, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(Integer.class, Constants.TYPE_SOAP11_UNSIGNEDSHORT, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(int.class, Constants.TYPE_SOAP11_INT, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(Integer.class, Constants.TYPE_SOAP11_INT, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
-
- registerInternal(long.class, Constants.TYPE_SOAP11_UNSIGNEDINT, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(Long.class, Constants.TYPE_SOAP11_UNSIGNEDINT, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(long.class, Constants.TYPE_SOAP11_LONG, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(Long.class, Constants.TYPE_SOAP11_LONG, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
-
- registerInternal(short.class, Constants.TYPE_SOAP11_UNSIGNEDBYTE, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(Short.class, Constants.TYPE_SOAP11_UNSIGNEDBYTE, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(short.class, Constants.TYPE_SOAP11_SHORT, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(Short.class, Constants.TYPE_SOAP11_SHORT, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- }
-
- /**
- * Returns the encodingStyle URIs (as String[]) supported by this TypeMapping
instance.
- * A TypeMapping that contains only encoding style independent serializers and
deserializers
- * returns null from this method.
- *
- * @return Array of encodingStyle URIs for the supported encoding styles
- */
- public String[] getSupportedEncodings()
- {
- return new String[] { "encoded" };
- }
-
- /**
- * Sets the encodingStyle URIs supported by this TypeMapping instance. A TypeMapping
that contains only encoding
- * independent serializers and deserializers requires null as the parameter for this
method.
- *
- * @param encodingStyleURIs Array of encodingStyle URIs for the supported encoding
styles
- */
- public void setSupportedEncodings(String[] encodingStyleURIs)
- {
- throw new NotImplementedException();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/EncodedTypeMapping.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/EncodedTypeMapping.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/HandlerRegistryImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/HandlerRegistryImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/HandlerRegistryImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,120 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc;
-
-// $Id$
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.handler.HandlerChain;
-import javax.xml.rpc.handler.HandlerInfo;
-import javax.xml.rpc.handler.HandlerRegistry;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.core.jaxrpc.handler.ClientHandlerChain;
-import org.jboss.ws.metadata.umdm.EndpointMetaData;
-import org.jboss.ws.metadata.umdm.HandlerMetaDataJAXRPC;
-import org.jboss.ws.metadata.umdm.ServiceMetaData;
-import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
-
-/**
- * Provides support for the programmatic configuration of
- * handlers in a HandlerRegistry.
- *
- * A handler chain is registered per service endpoint, as indicated by the
- * qualified name of a port. The getHandlerChain returns the handler chain
- * (as a java.util.List) for the specified service endpoint. The returned
- * handler chain is configured using the java.util.List interface. Each element
- * in this list is required to be of the Java type
- * javax.xml.rpc.handler.HandlerInfo.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 20-Jul-2005
- */
-public class HandlerRegistryImpl implements HandlerRegistry
-{
- // provide logging
- private static Logger log = Logger.getLogger(HandlerRegistryImpl.class);
-
- // Map<QName,HandlerChain> the endpoint name to a HandlerChain
- private Map<QName, HandlerChain> handlerChains = new HashMap<QName,
HandlerChain>();
- // Maps the port name to a list of HandlerInfo objects
- private Map<QName, List<HandlerInfo>> handlerInfos = new HashMap<QName,
List<HandlerInfo>>();
- // The service this registry is associated with
- private ServiceMetaData serviceMetaData;
-
- public HandlerRegistryImpl(ServiceMetaData serviceMetaData)
- {
- this.serviceMetaData = serviceMetaData;
- }
-
- public List getHandlerChain(QName portName)
- {
- List<HandlerInfo> list = handlerInfos.get(portName);
- if (list == null)
- list = new ArrayList<HandlerInfo>();
-
- return new ArrayList(list);
-
- }
-
- public void setHandlerChain(QName portName, List chain)
- {
- registerClientHandlerChain(portName, chain, null);
- }
-
- /** Get the handler chain for the given endpoint name, maybe null.
- */
- HandlerChain getHandlerChainInstance(QName portName)
- {
- HandlerChain handlerChain = handlerChains.get(portName);
- return handlerChain;
- }
-
- /** Register a handler chain for the given endpoint name
- */
- void registerClientHandlerChain(QName portName, List<HandlerInfo> infos,
Set<String> roles)
- {
- ClientHandlerChain chain = new ClientHandlerChain(infos, roles);
- handlerChains.put(portName, chain);
- handlerInfos.put(portName, infos);
-
- EndpointMetaData epMetaData = serviceMetaData.getEndpoint(portName);
- if (epMetaData == null)
- throw new IllegalStateException("Cannot obtain endpoint meta data for:
" + portName);
-
- epMetaData.clearHandlers();
- for (HandlerInfo info : infos)
- {
- HandlerMetaDataJAXRPC handler = new HandlerMetaDataJAXRPC(epMetaData,
HandlerType.ENDPOINT);
- handler.setHandlerClassName(info.getHandlerClass().getName());
- handler.setSoapRoles(roles);
- log.debug("Add handler to: " + portName + handler);
- epMetaData.addHandler(handler);
- }
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/HandlerRegistryImpl.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/HandlerRegistryImpl.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/LiteralTypeMapping.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/LiteralTypeMapping.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/LiteralTypeMapping.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,112 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc;
-
-// $Id$
-
-import javax.activation.DataHandler;
-import javax.mail.internet.MimeMultipart;
-import javax.xml.soap.SOAPElement;
-import javax.xml.transform.Source;
-
-import org.jboss.util.NotImplementedException;
-import org.jboss.ws.Constants;
-import org.jboss.ws.core.jaxrpc.binding.*;
-import org.w3c.dom.Element;
-import java.awt.*;
-
-/**
- * This is the representation of a type mapping.
- * This TypeMapping implementation supports the literal encoding style.
- *
- * The TypeMapping instance maintains a tuple of the type
- * {XML typeQName, Java Class, SerializerFactory, DeserializerFactory}.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 10-Oct-2004
- */
-public class LiteralTypeMapping extends TypeMappingImpl
-{
-
- /**
- * Construct the default literal type mapping.
- * Registers javaTypes for all standard XMLSchema types specified by JAXRPC.
- *
- * Note, the order of registered types is important
- * The last xmlType wins for a given javaType
- *
- */
- public LiteralTypeMapping()
- {
- // XOP default mapping
- JBossXBSerializerFactory jbxbSF = new JBossXBSerializerFactory();
- JBossXBDeserializerFactory jbxbDF = new JBossXBDeserializerFactory();
-
- registerInternal(DataHandler.class, Constants.TYPE_XMIME_DEFAULT, jbxbSF, jbxbDF);
- registerInternal(DataHandler.class, Constants.TYPE_XMIME_DEFAULT, jbxbSF, jbxbDF);
- registerInternal(DataHandler.class, Constants.TYPE_XMIME_DEFAULT, jbxbSF, jbxbDF);
- registerInternal(DataHandler.class, Constants.TYPE_XMIME_DEFAULT, jbxbSF, jbxbDF);
- registerInternal(DataHandler.class, Constants.TYPE_XMIME_DEFAULT, jbxbSF, jbxbDF);
-
- registerInternal(String.class, Constants.TYPE_XMIME_DEFAULT, jbxbSF, jbxbDF);
- registerInternal(Image.class, Constants.TYPE_XMIME_DEFAULT, jbxbSF, jbxbDF);
- registerInternal(Source.class, Constants.TYPE_XMIME_DEFAULT, jbxbSF, jbxbDF);
- registerInternal(MimeMultipart.class, Constants.TYPE_XMIME_DEFAULT, jbxbSF,
jbxbDF);
-
- registerStandardLiteralTypes();
-
- // register default mime mappings
- registerInternal(DataHandler.class, Constants.TYPE_MIME_APPLICATION_XML, null,
null);
- registerInternal(DataHandler.class, Constants.TYPE_MIME_IMAGE_GIF, null, null);
- registerInternal(DataHandler.class, Constants.TYPE_MIME_IMAGE_JPEG, null, null);
- registerInternal(DataHandler.class, Constants.TYPE_MIME_TEXT_PLAIN, null, null);
- registerInternal(DataHandler.class, Constants.TYPE_MIME_TEXT_XML, null, null);
- registerInternal(MimeMultipart.class, Constants.TYPE_MIME_MULTIPART_MIXED, null,
null);
-
- // register mapping for xsd:anyType
- registerInternal(SOAPElement.class, Constants.TYPE_LITERAL_ANYTYPE, new
SOAPElementSerializerFactory(), new SOAPElementDeserializerFactory());
- registerInternal(Element.class, Constants.TYPE_LITERAL_ANYTYPE, new
ElementSerializerFactory(), new ElementDeserializerFactory());
- }
-
- /**
- * Returns the encodingStyle URIs (as String[]) supported by this TypeMapping
instance.
- * A TypeMapping that contains only encoding style independent serializers and
deserializers
- * returns null from this method.
- *
- * @return Array of encodingStyle URIs for the supported encoding styles
- */
- public String[] getSupportedEncodings()
- {
- return new String[] { "" };
- }
-
- /**
- * Sets the encodingStyle URIs supported by this TypeMapping instance. A TypeMapping
that contains only encoding
- * independent serializers and deserializers requires null as the parameter for this
method.
- *
- * @param encodingStyleURIs Array of encodingStyle URIs for the supported encoding
styles
- */
- public void setSupportedEncodings(String[] encodingStyleURIs)
- {
- throw new NotImplementedException();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/LiteralTypeMapping.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/LiteralTypeMapping.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ParameterWrapping.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ParameterWrapping.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ParameterWrapping.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,539 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.jaxrpc;
-
-// $Id$
-
-import java.beans.IntrospectionException;
-import java.beans.PropertyDescriptor;
-import java.lang.reflect.Method;
-import java.util.List;
-
-import javassist.ClassPool;
-import javassist.CtClass;
-import javassist.CtField;
-import javassist.CtNewMethod;
-import javassist.LoaderClassPath;
-import javassist.Modifier;
-
-import javax.jws.soap.SOAPBinding.ParameterStyle;
-import javax.xml.namespace.QName;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.jaxrpc.binding.JBossXBDeserializerFactory;
-import org.jboss.ws.core.jaxrpc.binding.JBossXBSerializerFactory;
-import org.jboss.ws.core.utils.JavaUtils;
-import org.jboss.ws.metadata.umdm.EndpointMetaData;
-import org.jboss.ws.metadata.umdm.OperationMetaData;
-import org.jboss.ws.metadata.umdm.ParameterMetaData;
-import org.jboss.ws.metadata.umdm.ServiceMetaData;
-import org.jboss.ws.metadata.umdm.TypeMappingMetaData;
-import org.jboss.ws.metadata.umdm.TypesMetaData;
-
-/** A helper class to wrap/unwrap ducument style request/response structures.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @since 06-Jun-2005
- */
-public class ParameterWrapping
-{
- // provide logging
- private static Logger log = Logger.getLogger(ParameterWrapping.class);
-
- private static void assertOperationMetaData(OperationMetaData opMetaData)
- {
- if (opMetaData.getStyle() != Style.DOCUMENT)
- throw new WSException("Unexpected style: " + opMetaData.getStyle());
-
- if (opMetaData.getParameterStyle() != ParameterStyle.WRAPPED)
- throw new WSException("Unexpected parameter style: " +
opMetaData.getParameterStyle());
- }
-
- public static boolean matchRequestParameters(OperationMetaData opMetaData, Class[]
paramTypes)
- {
- assertOperationMetaData(opMetaData);
-
- // [JBWS-1125] Support empty soap body elements
- if (opMetaData.getParameters().size() == 0)
- {
- log.debug("Detected document/literal/wrapped with no parameter
part");
- return true;
- }
-
- ParameterMetaData paramMetaData = opMetaData.getParameters().get(0);
- List<String> varNames = paramMetaData.getWrappedVariables();
- Class reqStructType = paramMetaData.getJavaType();
-
- log.debug("matchRequestParameters: " + reqStructType.getName());
- try
- {
- boolean pass = true;
- for (int i = 0; pass && i < varNames.size(); i++)
- {
- String varName = varNames.get(i);
- Method method = null;
- try
- {
- PropertyDescriptor pd = new PropertyDescriptor(varName, reqStructType);
- method = pd.getWriteMethod();
- }
- catch (IntrospectionException ex)
- {
- // jaxws-ri wsimport generates setter without the underscore
- if (varName.indexOf("_") > 0)
- {
- varName = varName.replace("_", "");
- PropertyDescriptor pd = new PropertyDescriptor(varName,
reqStructType);
- method = pd.getWriteMethod();
- }
- }
-
- if (method == null)
- throw new NoSuchMethodError("No write method for: " + varName);
-
- Class methodType = method.getParameterTypes()[0];
- Class paramType = paramTypes[i];
- pass = JavaUtils.isAssignableFrom(methodType, paramType);
- }
- return pass;
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Exception ex)
- {
- log.debug("Invalid request wrapper: " + ex);
- return false;
- }
- }
-
- public static boolean matchResponseParameters(OperationMetaData opMetaData, Class
returnType)
- {
- assertOperationMetaData(opMetaData);
-
- // [JBWS-1125] Support empty soap body elements
- if (opMetaData.getReturnParameter() == null)
- {
- log.debug("Detected document/literal/wrapped with no return part");
- return true;
- }
-
- ParameterMetaData paramMetaData = opMetaData.getReturnParameter();
- Class resStructType = paramMetaData.getJavaType();
-
- log.debug("matchResponseParameters: " + resStructType.getName());
- try
- {
- boolean pass = (returnType == void.class);
- if (pass == false)
- {
- // The return paramter is the wrapper bean
- // See: org.jboss.test.webservice.jbws718.JBWS718TestCase
- if (JavaUtils.isAssignableFrom(returnType, resStructType))
- pass = true;
- }
- if (pass == false)
- {
- try
- {
- resStructType.getConstructor(new Class[] { returnType });
- pass = true;
- }
- catch (NoSuchMethodException ex)
- {
- // jaxws-ri wsimport does not generate a ctor with return param type
- resStructType.getMethod("setResult", returnType);
- pass = true;
- }
- }
- return pass;
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Exception ex)
- {
- log.debug("Invalid response wrapper: " + ex);
- return false;
- }
- }
-
- public static Object wrapRequestParameters(OperationMetaData opMetaData, Object[]
inParams)
- {
- assertOperationMetaData(opMetaData);
-
- // [JBWS-1125] Support empty soap body elements
- if (opMetaData.getParameters().size() == 0)
- {
- log.debug("Detected document/literal/wrapped with no parameter
part");
- return null;
- }
-
- ParameterMetaData paramMetaData = opMetaData.getParameters().get(0);
- List<String> varNames = paramMetaData.getWrappedVariables();
- Class reqStructType = paramMetaData.getJavaType();
-
- // Message types can be wrapped
- if (paramMetaData.isMessageType())
- {
- if (inParams == null || inParams.length == 0)
- return null;
-
- if (inParams.length > 1)
- throw new IllegalStateException("Wrapped message parameter cannot have
multiple parts");
-
- return inParams[0];
- }
-
- log.debug("wrapRequestParameters: " + reqStructType.getName());
- try
- {
- Object reqStruct = reqStructType.newInstance();
- for (int i = 0; i < varNames.size(); i++)
- {
- String varName = varNames.get(i);
- Method method = null;
- try
- {
- PropertyDescriptor pd = new PropertyDescriptor(varName, reqStructType);
- method = pd.getWriteMethod();
- }
- catch (IntrospectionException ex)
- {
- // jaxws-ri wsimport generates setter without the underscore
- if (varName.indexOf("_") > 0)
- {
- varName = varName.replace("_", "");
- PropertyDescriptor pd = new PropertyDescriptor(varName,
reqStructType);
- method = pd.getWriteMethod();
- }
- }
-
- if (method == null)
- throw new NoSuchMethodError("No write method for: " + varName);
-
- Object value = inParams[i];
- log.debug(" " + method.getName() + ": " + (value != null
? value.getClass().getName() : null));
- method.invoke(reqStruct, new Object[] { value });
- }
-
- return reqStruct;
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Exception e)
- {
- throw new WSException("Cannot wrap request structure: " + e);
- }
- }
-
- public static Object[] unwrapRequestParameters(OperationMetaData opMetaData, Object
reqStruct)
- {
- assertOperationMetaData(opMetaData);
-
- if (reqStruct == null)
- throw new IllegalArgumentException("Request struct cannot be null");
-
- ParameterMetaData paramMetaData = opMetaData.getParameters().get(0);
- List<String> varNames = paramMetaData.getWrappedVariables();
- Class reqStructType = reqStruct.getClass();
-
- log.debug("unwrapRequestParameters: " + reqStructType.getName());
- Object[] inParams = new Object[varNames.size()];
- try
- {
- for (int i = 0; i < varNames.size(); i++)
- {
- String varName = varNames.get(i);
- Method method = null;
- try
- {
- PropertyDescriptor pd = new PropertyDescriptor(varName, reqStructType);
- method = pd.getReadMethod();
- }
- catch (IntrospectionException ex)
- {
- // jaxws-ri wsimport generates getter without the underscore
- if (varName.indexOf("_") > 0)
- {
- varName = varName.replace("_", "");
- PropertyDescriptor pd = new PropertyDescriptor(varName,
reqStructType);
- method = pd.getReadMethod();
- }
- }
-
- if (method == null)
- throw new NoSuchMethodError("No read method for: " + varName);
-
- Object value = method.invoke(reqStruct, new Object[] {});
- log.debug(" " + method.getName() + ": " + (value != null
? value.getClass().getName() : null));
- inParams[i] = value;
- }
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Exception e)
- {
- throw new IllegalArgumentException("Cannot unwrap request structure: "
+ e);
- }
-
- return inParams;
- }
-
- public static Object wrapResponseParameter(OperationMetaData opMetaData, Object
outParam)
- {
- assertOperationMetaData(opMetaData);
-
- // [JBWS-1125] Support empty soap body elements
- if (opMetaData.getReturnParameter() == null)
- {
- log.debug("Detected document/literal/wrapped with no return part");
- return null;
- }
-
- ParameterMetaData paramMetaData = opMetaData.getReturnParameter();
- List<String> varNames = paramMetaData.getWrappedVariables();
- Class resStructType = paramMetaData.getJavaType();
-
- // Message types can be wrapped
- if (paramMetaData.isMessageType())
- return outParam;
-
- if (outParam != null && outParam.getClass() == resStructType)
- {
- log.debug("Response parameter already wrapped" +
resStructType.getName());
- return outParam;
- }
-
- log.debug("wrapResponseParameter: " + resStructType.getName());
- try
- {
- Object resStruct = resStructType.newInstance();
- if (varNames.size() > 0)
- {
- String varName = varNames.get(0);
- Method method = null;
- try
- {
- PropertyDescriptor pd = new PropertyDescriptor(varName, resStructType);
- method = pd.getWriteMethod();
- }
- catch (IntrospectionException ex)
- {
- // jaxws-ri wsimport generates setter without the underscore
- if (varName.indexOf("_") > 0)
- {
- varName = varName.replace("_", "");
- PropertyDescriptor pd = new PropertyDescriptor(varName,
resStructType);
- method = pd.getWriteMethod();
- }
- }
-
- if (method == null)
- throw new NoSuchMethodError("No write method for: " + varName);
-
- Object value = outParam;
- log.debug(" " + method.getName() + ": " + (value != null
? value.getClass().getName() : null));
- method.invoke(resStruct, new Object[] { value });
- }
- return resStruct;
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Exception e)
- {
- throw new WSException("Cannot wrap response structure: " + e);
- }
- }
-
- public static Object unwrapResponseParameter(OperationMetaData opMetaData, Object
resStruct)
- {
- assertOperationMetaData(opMetaData);
-
- Object retValue = null;
- if (resStruct != null)
- {
- ParameterMetaData paramMetaData = opMetaData.getReturnParameter();
- List<String> varNames = paramMetaData.getWrappedVariables();
- Class resStructType = resStruct.getClass();
-
- log.debug("unwrapResponseParameter: " + resStructType.getName());
- try
- {
- if (varNames.size() > 0)
- {
- String varName = varNames.get(0);
- Method method = null;
- try
- {
- PropertyDescriptor pd = new PropertyDescriptor(varName,
resStructType);
- method = pd.getReadMethod();
- }
- catch (IntrospectionException ex)
- {
- // jaxws-ri wsimport generates getter without the underscore
- if (varName.indexOf("_") > 0)
- {
- varName = varName.replace("_", "");
- PropertyDescriptor pd = new PropertyDescriptor(varName,
resStructType);
- method = pd.getReadMethod();
- }
- }
-
- if (method == null)
- throw new NoSuchMethodError("No read method for: " +
varName);
-
- Object value = method.invoke(resStruct, new Object[] {});
- log.debug(" " + method.getName() + ": " + (value !=
null ? value.getClass().getName() : null));
- retValue = value;
- }
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Exception e)
- {
- throw new IllegalArgumentException("Cannot unwrap request structure:
" + e);
- }
- }
- return retValue;
- }
-
- /**
- * This is just a dummy marker class used to identify a generated
- * document/literal wrapped type
- *
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @version $Revision$
- */
- public static class WrapperType
- {
- }
-
- /**
- * Generates a wrapper type and assigns it to the passed ParameterMetaData
- * object. This routine requires the pmd to contain completed wrappedTypes
- * and wrappedVariables properties of the passed ParameterMetaData object.
- *
- * @param pmd a document/literal wrapped parameter
- */
- public static void generateWrapper(ParameterMetaData pmd, boolean addTypeMapping)
- {
- List<String> wrappedTypes = pmd.getWrappedTypes();
- List<String> wrappedVariables = pmd.getWrappedVariables();
- OperationMetaData operationMetaData = pmd.getOperationMetaData();
- EndpointMetaData endpointMetaData = operationMetaData.getEndpointMetaData();
- ServiceMetaData serviceMetaData = endpointMetaData.getServiceMetaData();
- ClassLoader loader = serviceMetaData.getUnifiedMetaData().getClassLoader();
-
- if (operationMetaData.isDocumentWrapped() == false)
- throw new WSException("Operation is not document/literal (wrapped)");
-
- if (wrappedTypes.size() == 0)
- throw new WSException("No wrapped types available");
-
- String serviceName = serviceMetaData.getQName().getLocalPart();
- String parameterName = pmd.getXmlName().getLocalPart();
- String endpointName = endpointMetaData.getQName().getLocalPart();
- String packageName =
endpointMetaData.getServiceEndpointInterface().getPackage().getName();
-
- String wrapperName = packageName + "._JBossWS_" + serviceName +
"_" + endpointName + "_" + parameterName;
- log.debug("Generating wrapper: " + wrapperName);
-
- Class wrapperType;
- try
- {
- ClassPool pool = new ClassPool(true);
- pool.appendClassPath(new LoaderClassPath(loader));
- CtClass clazz = pool.makeClass(wrapperName);
- clazz.setSuperclass(pool.get(WrapperType.class.getName()));
-
- for (int i = 0; i < wrappedTypes.size(); i++)
- {
- String typeName = wrappedTypes.get(i);
- String name = wrappedVariables.get(i);
-
- CtField field = new CtField(pool.get(typeName), name, clazz);
- field.setModifiers(Modifier.PRIVATE);
- clazz.addField(field);
-
- String capName = capitalize(name);
- clazz.addMethod(CtNewMethod.getter("get" + capName, field));
- clazz.addMethod(CtNewMethod.setter("set" + capName, field));
-
- if (pmd.getOperationMetaData().getReturnParameter() == pmd)
- {
- if (capName.equals("Result") == false)
- {
- clazz.addMethod(CtNewMethod.getter("getResult", field));
- clazz.addMethod(CtNewMethod.setter("setResult", field));
- }
- }
- }
-
- wrapperType = (Class)pool.toClass(clazz, loader);
- }
- catch (Exception e)
- {
- throw new WSException("Could not generate wrapper type: " +
wrapperName, e);
- }
-
- // Register type mapping if needed
- if (addTypeMapping)
- {
- QName xmlType = pmd.getXmlType();
-
- TypesMetaData typesMetaData = serviceMetaData.getTypesMetaData();
- TypeMappingMetaData tmMetaData = new TypeMappingMetaData(typesMetaData, xmlType,
wrapperName);
- typesMetaData.addTypeMapping(tmMetaData);
-
- TypeMappingImpl typeMapping = serviceMetaData.getTypeMapping();
- typeMapping.register(wrapperType, xmlType, new JBossXBSerializerFactory(), new
JBossXBDeserializerFactory());
- }
-
- pmd.setJavaTypeName(wrapperName);
- }
-
- private static String capitalize(String source)
- {
- if (source == null)
- return null;
-
- if (source.length() == 0)
- return source;
-
- char c = Character.toUpperCase(source.charAt(0));
-
- return c + source.substring(1);
- }
-}
\ No newline at end of file
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ParameterWrapping.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ParameterWrapping.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/SOAPFaultExceptionHelper.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/SOAPFaultExceptionHelper.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/SOAPFaultExceptionHelper.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,317 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc;
-
-// $Id$
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.JAXRPCException;
-import javax.xml.rpc.encoding.TypeMapping;
-import javax.xml.rpc.soap.SOAPFaultException;
-import javax.xml.soap.Detail;
-import javax.xml.soap.DetailEntry;
-import javax.xml.soap.MessageFactory;
-import javax.xml.soap.Name;
-import javax.xml.soap.SOAPBody;
-import javax.xml.soap.SOAPElement;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPFault;
-import javax.xml.soap.SOAPMessage;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.Constants;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.CommonMessageContext;
-import org.jboss.ws.core.jaxrpc.binding.BindingException;
-import org.jboss.ws.core.jaxrpc.binding.DeserializerFactoryBase;
-import org.jboss.ws.core.jaxrpc.binding.DeserializerSupport;
-import org.jboss.ws.core.jaxrpc.binding.SerializationContext;
-import org.jboss.ws.core.jaxrpc.binding.SerializerFactoryBase;
-import org.jboss.ws.core.jaxrpc.binding.SerializerSupport;
-import org.jboss.ws.core.soap.MessageContextAssociation;
-import org.jboss.ws.core.soap.MessageFactoryImpl;
-import org.jboss.ws.core.soap.NameImpl;
-import org.jboss.ws.core.soap.SOAPEnvelopeImpl;
-import org.jboss.ws.core.soap.SOAPFactoryImpl;
-import org.jboss.ws.core.utils.DOMUtils;
-import org.jboss.ws.core.utils.DOMWriter;
-import org.jboss.ws.metadata.umdm.FaultMetaData;
-import org.jboss.ws.metadata.umdm.OperationMetaData;
-import org.jboss.xb.binding.NamespaceRegistry;
-import org.w3c.dom.Element;
-
-/**
- * A Helper that translates between SOAPFaultException and SOAPFault.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 03-Feb-2005
- */
-public class SOAPFaultExceptionHelper
-{
- // provide logging
- private static Logger log = Logger.getLogger(SOAPFaultExceptionHelper.class);
-
- private static List<QName> allowedFaultCodes = new ArrayList<QName>();
- static
- {
- allowedFaultCodes.add(Constants.SOAP11_FAULT_CODE_CLIENT);
- allowedFaultCodes.add(Constants.SOAP11_FAULT_CODE_SERVER);
- allowedFaultCodes.add(Constants.SOAP11_FAULT_CODE_VERSION_MISMATCH);
- allowedFaultCodes.add(Constants.SOAP11_FAULT_CODE_MUST_UNDERSTAND);
- }
-
- /** Hide constructor */
- private SOAPFaultExceptionHelper()
- {
- }
-
- /** Factory method for FaultException for a given SOAPFault */
- public static SOAPFaultException getSOAPFaultException(SOAPFault soapFault)
- {
- QName faultCode = ((NameImpl)soapFault.getFaultCodeAsName()).toQName();
- String faultString = soapFault.getFaultString();
- String faultActor = soapFault.getFaultActor();
- Detail detail = soapFault.getDetail();
-
- SOAPFaultException faultEx = new SOAPFaultException(faultCode, faultString,
faultActor, detail);
-
- CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
- if (detail != null && msgContext != null)
- {
- SerializationContext serContext = msgContext.getSerializationContext();
- TypeMapping typeMapping = serContext.getTypeMapping();
-
- Iterator it = detail.getDetailEntries();
- while (it.hasNext())
- {
- DetailEntry deElement = (DetailEntry)it.next();
- Name deName = deElement.getElementName();
- QName xmlName = new QName(deName.getURI(), deName.getLocalName());
-
- OperationMetaData opMetaData = msgContext.getOperationMetaData();
- FaultMetaData faultMetaData = opMetaData.getFault(xmlName);
- if (faultMetaData != null)
- {
- log.debug("Deserialize fault: " + faultMetaData);
- QName xmlType = faultMetaData.getXmlType();
- Class javaType = faultMetaData.getJavaType();
-
- // Get the deserializer from the type mapping
- DeserializerFactoryBase desFactory =
(DeserializerFactoryBase)typeMapping.getDeserializer(javaType, xmlType);
- if (desFactory == null)
- throw new JAXRPCException("Cannot obtain deserializer factory for:
" + xmlType);
-
- // Try jaxb deserialization
- try
- {
- //
http://jira.jboss.org/jira/browse/JBWS-955
- // Cannot deserialize fault detail
- String prefix = deName.getPrefix();
- if (prefix.length() > 0)
- {
- String nsURI = deName.getURI();
- String attrValue = deElement.getAttribute("xmlns:" +
prefix);
- if (nsURI.length() > 0 && attrValue.length() == 0)
- deElement.addNamespaceDeclaration(prefix, nsURI);
- }
-
- String xmlFragment = DOMWriter.printNode(deElement, false);
- DeserializerSupport des =
(DeserializerSupport)desFactory.getDeserializer();
- Object userEx = des.deserialize(xmlName, xmlType, xmlFragment,
serContext);
- if (userEx == null || (userEx instanceof Exception) == false)
- throw new WSException("Invalid deserialization result: " +
userEx);
-
- faultEx.initCause((Exception)userEx);
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Exception ex)
- {
- log.error("Cannot deserialize fault detail", ex);
- }
- }
- else
- {
- log.debug("Cannot find fault meta data for: " + xmlName);
- }
- }
- }
-
- return faultEx;
- }
-
- /** Translate the request exception into a SOAPFault message.
- */
- public static SOAPMessage exceptionToFaultMessage(Exception reqEx)
- {
- // Get or create the SOAPFaultException
- SOAPFaultException faultEx;
- if (reqEx instanceof SOAPFaultException)
- {
- faultEx = (SOAPFaultException)reqEx;
- }
- else
- {
- QName faultCode = Constants.SOAP11_FAULT_CODE_CLIENT;
- String faultString = (reqEx.getMessage() != null ? reqEx.getMessage() :
reqEx.toString());
- faultEx = new SOAPFaultException(faultCode, faultString, null, null);
- faultEx.initCause(reqEx);
- }
-
- Throwable faultCause = faultEx.getCause();
- log.error("SOAP request exception", faultCause != null ? faultCause :
faultEx);
-
- try
- {
- SOAPMessage faultMessage = toSOAPMessage(faultEx);
- return faultMessage;
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Exception ex)
- {
- log.error("Error creating SOAPFault message", ex);
- throw new JAXRPCException("Cannot create SOAPFault message for: " +
faultEx);
- }
- }
-
- private static SOAPMessage toSOAPMessage(SOAPFaultException faultEx) throws
SOAPException
- {
- assertFaultCode(faultEx.getFaultCode());
-
- CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
- SerializationContext serContext = (msgContext != null ?
msgContext.getSerializationContext() : new SerializationContextJAXRPC());
- NamespaceRegistry nsRegistry = serContext.getNamespaceRegistry();
-
- MessageFactory factory = new MessageFactoryImpl();
- SOAPMessage soapMessage = factory.createMessage();
-
- SOAPEnvelopeImpl soapEnvelope =
(SOAPEnvelopeImpl)soapMessage.getSOAPPart().getEnvelope();
- SOAPBody soapBody = soapEnvelope.getBody();
-
- QName faultCode = faultEx.getFaultCode();
- if (faultCode.getNamespaceURI().length() > 0)
- faultCode = nsRegistry.registerQName(faultCode);
-
- String faultString = getValidFaultString(faultEx);
- SOAPFault soapFault = soapBody.addFault(new NameImpl(faultCode), faultString);
-
- String faultActor = faultEx.getFaultActor();
- if (faultActor != null)
- {
- SOAPElement soapElement = soapFault.addChildElement("faultactor");
- soapElement.addTextNode(faultActor);
- }
-
- Exception faultCause = (Exception)faultEx.getCause();
- Detail detail = faultEx.getDetail();
- if (detail != null)
- {
- soapFault.addChildElement(detail);
- }
- else if (faultCause != null && (faultCause instanceof RuntimeException) ==
false)
- {
- Class javaType = faultCause.getClass();
-
- TypeMapping typeMapping = serContext.getTypeMapping();
-
- OperationMetaData opMetaData = msgContext.getOperationMetaData();
- if (opMetaData != null && opMetaData.getFault(javaType) != null)
- {
- FaultMetaData faultMetaData = opMetaData.getFault(javaType);
- QName xmlName = faultMetaData.getXmlName();
- QName xmlType = faultMetaData.getXmlType();
-
- xmlName = nsRegistry.registerQName(xmlName);
-
- // Get the serializer from the type mapping
- SerializerFactoryBase serFactory =
(SerializerFactoryBase)typeMapping.getSerializer(javaType, xmlType);
- if (serFactory == null)
- throw new JAXRPCException("Cannot obtain serializer factory for:
" + xmlType);
-
- try
- {
- SerializerSupport ser = (SerializerSupport)serFactory.getSerializer();
- String xmlFragment = ser.serialize(xmlName, xmlType, faultCause,
serContext, null);
-
- SOAPFactoryImpl soapFactory = new SOAPFactoryImpl();
- Element domElement = DOMUtils.parse(xmlFragment);
- SOAPElement soapElement = soapFactory.createElement(domElement, true);
-
- detail = soapFault.addDetail();
- detail.addChildElement(soapElement);
- }
- catch (BindingException e)
- {
- throw new JAXRPCException(e);
- }
- catch (IOException e)
- {
- throw new JAXRPCException(e);
- }
- }
- else
- {
- log.debug("Cannot obtain fault meta data for: " + javaType);
- }
- }
-
- return soapMessage;
- }
-
- private static String getValidFaultString(SOAPFaultException faultEx)
- {
- String faultString = faultEx.getFaultString();
- if (faultString == null || faultString.length() == 0)
- faultString = "Unqualified " + faultEx.getFaultCode() + "
fault";
-
- return faultString;
- }
-
- private static void assertFaultCode(QName faultCode)
- {
- if (faultCode == null)
- throw new IllegalArgumentException("faultcode cannot be null");
-
- // For lazy folkes like the CTS that don't bother to give
- // a namesapce URI, assume they use a standard code
- String nsURI = faultCode.getNamespaceURI();
- if ("".equals(nsURI))
- {
- log.warn("Empty namespace URI with fault code '" + faultCode +
"', assuming: " + Constants.NS_SOAP11_ENV);
- faultCode = new QName(Constants.NS_SOAP11_ENV, faultCode.getLocalPart());
- }
-
- // WS-I allows non custom faultcodes if you use a non soap namespace
- if (Constants.NS_SOAP11_ENV.equals(nsURI) &&
allowedFaultCodes.contains(faultCode) == false)
- throw new IllegalArgumentException("Illegal faultcode '" +
faultCode + "', allowed values are: " + allowedFaultCodes);
- }
-}
\ No newline at end of file
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/SOAPFaultExceptionHelper.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/SOAPFaultExceptionHelper.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/SchemaGenerator.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/SchemaGenerator.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/SchemaGenerator.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,106 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc;
-
-// $Id$
-
-import java.util.HashMap;
-import java.util.Map;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.JAXRPCException;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.WSException;
-import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel;
-import org.jboss.ws.tools.JavaToXSD;
-
-/** A generator for XML schema that is used by unconfigured DII clients
- *
- * @author Thomas.Diesler(a)jboss.org
- * @author Anil.Saldhana(a)jboss.org
- * @since 03-Jun-2005
- */
-public class SchemaGenerator
-{
- // provide logging
- private static final Logger log = Logger.getLogger(SchemaGenerator.class);
-
- private boolean restrictToTargetNamespace = true;
-
- public JBossXSModel generateXSDSchema(QName xmlType, Class javaType)
- {
- log.debug("generateXSDSchema: [xmlType=" + xmlType +
",javaType=" + javaType.getName() + "]");
- try
- {
- assertXmlType(xmlType);
- String nsuri = xmlType.getNamespaceURI();
- Class componentType = javaType;
- while (componentType.isArray())
- componentType = componentType.getComponentType();
-
- JavaToXSD javaToXSD = new JavaToXSD();
-
- // Force all DII arrays to use the same array namespace for the component
- if (! componentType.isPrimitive())
- {
- Map<String, String> namespaceMap = new HashMap<String,
String>();
- namespaceMap.put(componentType.getPackage().getName(), nsuri);
- javaToXSD.setPackageNamespaceMap(namespaceMap);
- }
-
- JBossXSModel xsModel = javaToXSD.generateForSingleType(xmlType, javaType);
- if (xsModel == null)
- throw new WSException("Cannot generate XSModel");
-
- log.debug("\n" + xsModel.serialize());
- return xsModel;
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Exception e)
- {
- throw new JAXRPCException("Cannot generate xsdSchema for: " + xmlType,
e);
- }
- }
-
- /**
- * Flag that indicates that the types generated fall under the target namespace
- * default is false
- * @param restrictToTargetNamespace The restrictToTargetNamespace to set.
- */
- public void setRestrictToTargetNamespace(boolean restrictToTargetNamespace)
- {
- this.restrictToTargetNamespace = restrictToTargetNamespace;
- }
-
- /** Assert that the given namespace has a valid URI
- */
- private void assertXmlType(QName xmlType)
- {
- String nsURI = xmlType.getNamespaceURI();
- if (nsURI.length() == 0)
- throw new IllegalArgumentException("Invalid namespace for type: " +
xmlType);
- }
-}
\ No newline at end of file
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/SchemaGenerator.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/SchemaGenerator.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/SerializationContextJAXRPC.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/SerializationContextJAXRPC.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/SerializationContextJAXRPC.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,127 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.jaxrpc;
-
-// $Id$
-
-import javax.xml.namespace.QName;
-
-import org.apache.xerces.xs.XSModel;
-import org.jboss.logging.Logger;
-import org.jboss.ws.Constants;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.jaxrpc.binding.SerializationContext;
-import org.jboss.ws.core.jaxrpc.handler.SOAPMessageContextJAXRPC;
-import org.jboss.ws.core.soap.MessageContextAssociation;
-import org.jboss.ws.core.utils.JavaUtils;
-import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
-import org.jboss.ws.metadata.jaxrpcmapping.JavaXmlTypeMapping;
-import org.jboss.ws.metadata.jaxrpcmapping.PackageMapping;
-import org.jboss.ws.metadata.umdm.OperationMetaData;
-import org.jboss.ws.metadata.umdm.ServiceMetaData;
-import org.jboss.ws.metadata.umdm.TypesMetaData;
-
-/**
- * The serialization context for JAXRPC endpoints/clients
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 04-Dec-2004
- */
-public class SerializationContextJAXRPC extends SerializationContext
-{
- // provide logging
- private static final Logger log = Logger.getLogger(SerializationContextJAXRPC.class);
-
- // XML mapping from jaxrpc-mapping.xml
- private JavaWsdlMapping jaxrpcMapping;
-
- public JavaWsdlMapping getJavaWsdlMapping()
- {
- if (jaxrpcMapping == null)
- {
- log.debug("Generate jaxrpcMapping from typeMapping");
-
- jaxrpcMapping = new JavaWsdlMapping();
- for (QName xmlType : getTypeMapping().getRegisteredXmlTypes())
- {
- String nsURI = xmlType.getNamespaceURI();
- if (!Constants.NS_SCHEMA_XSD.equals(nsURI) &&
!Constants.NS_ATTACHMENT_MIME_TYPE.equals(nsURI))
- {
- Class javaType = getTypeMapping().getJavaType(xmlType);
- String javaTypeName = javaType.getName();
-
- Class componentType = javaType;
- while (componentType.isArray())
- componentType = componentType.getComponentType();
-
- if (JavaUtils.isPrimitive(componentType))
- componentType = JavaUtils.getWrapperType(componentType);
-
- Package packageObject = componentType.getPackage();
- String packageName = (packageObject != null) ? packageObject.getName() :
"";
- String packageType = jaxrpcMapping.getPackageNameForNamespaceURI(nsURI);
- if (packageName.equals(packageType) == false)
- {
- PackageMapping packageMapping = new PackageMapping(jaxrpcMapping);
- packageMapping.setNamespaceURI(nsURI);
- packageMapping.setPackageType(packageName);
- jaxrpcMapping.addPackageMapping(packageMapping);
- log.debug("Add package mapping: " + packageMapping);
- }
-
- // Do not add mappings for array types
- if (javaType.isArray())
- continue;
-
- JavaXmlTypeMapping xmlTypeMapping =
jaxrpcMapping.getTypeMappingForQName(xmlType);
- if (xmlTypeMapping == null)
- {
- xmlTypeMapping = new JavaXmlTypeMapping(jaxrpcMapping);
- xmlTypeMapping.setQNameScope("complexType");
- xmlTypeMapping.setJavaType(javaTypeName);
- xmlTypeMapping.setRootTypeQName(xmlType);
- jaxrpcMapping.addJavaXmlTypeMappings(xmlTypeMapping);
- log.debug("Add type mapping: " + xmlTypeMapping);
- }
- }
- }
- }
- return jaxrpcMapping;
- }
-
- public void setJavaWsdlMapping(JavaWsdlMapping jaxrpcMapping)
- {
- this.jaxrpcMapping = jaxrpcMapping;
- }
-
- public XSModel getXsModel()
- {
- SOAPMessageContextJAXRPC msgContext =
(SOAPMessageContextJAXRPC)MessageContextAssociation.peekMessageContext();
- if (msgContext == null)
- throw new WSException("MessageContext not available");
-
- OperationMetaData opMetaData = msgContext.getOperationMetaData();
- ServiceMetaData serviceMetaData =
opMetaData.getEndpointMetaData().getServiceMetaData();
- TypesMetaData typesMetaData = serviceMetaData.getTypesMetaData();
- return typesMetaData.getSchemaModel();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/SerializationContextJAXRPC.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/SerializationContextJAXRPC.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceExt.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceExt.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceExt.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,42 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc;
-
-//$Id$
-
-import javax.xml.rpc.Service;
-import javax.xml.rpc.handler.HandlerRegistry;
-
-/**
- * Extends the JAXRPC Service with JBoss propriatary behaviour
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 27-Jan-2005
- */
-public interface ServiceExt extends Service
-{
- /**
- * Get a HandlerRegistry that can be used to dynamically
- * change the client side handler chain
- */
- HandlerRegistry getDynamicHandlerRegistry();
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceExt.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceExt.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceFactoryImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceFactoryImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceFactoryImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,161 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc;
-
-// $Id$
-
-import java.net.URL;
-import java.util.Properties;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.Service;
-import javax.xml.rpc.ServiceException;
-import javax.xml.rpc.ServiceFactory;
-
-import org.jboss.logging.Logger;
-import org.jboss.util.NotImplementedException;
-
-/**
- * Service class acts as a factory for:
- * <ul>
- * <li>Dynamic proxy for the target service endpoint.
- * <li>Instance of the type javax.xml.rpc.Call for the dynamic invocation of a
- * remote operation on the target service endpoint.
- * <li>Instance of a generated stub class
- * </ul>
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 10-Oct-2004
- */
-public class ServiceFactoryImpl extends ServiceFactory
-{
- // provide logging
- private final Logger log = Logger.getLogger(ServiceFactoryImpl.class);
-
- /**
- * Create an instance of the generated service implementation class for a given
service interface, if available.
- *
- * @param serviceInterface Service interface
- * @return A Service
- * @throws ServiceException If there is any error while creating the specified
service, including the case where a
- * generated service implementation class cannot be located
- */
- public Service loadService(Class serviceInterface) throws ServiceException
- {
- throw new NotImplementedException();
- }
-
- /**
- * Create an instance of the generated service implementation class for a given
service interface, if available.
- * An implementation may use the provided wsdlDocumentLocation and properties to help
locate the generated implementation class.
- * If no such class is present, a ServiceException will be thrown.
- *
- * @param wsdlDocumentLocation URL for the WSDL document location for the service or
null
- * @param serviceInterface Service interface
- * @param props A set of implementation-specific properties to help
locate the generated service implementation class
- * @return A Service
- * @throws ServiceException If there is any error while creating the specified
service, including the case where a
- * generated service implementation class cannot be located
- */
- public Service loadService(URL wsdlDocumentLocation, Class serviceInterface,
Properties props) throws ServiceException
- {
- throw new NotImplementedException();
- }
-
- /**
- * Create an instance of the generated service implementation class for a given
service, if available.
- * The service is uniquely identified by the wsdlDocumentLocation and serviceName
arguments.
- * An implementation may use the provided properties to help locate the generated
implementation class.
- * If no such class is present, a ServiceException will be thrown.
- *
- * @param wsdlDocumentLocation URL for the WSDL document location for the service or
null
- * @param serviceName Qualified name for the service
- * @param props A set of implementation-specific properties to help
locate the generated service implementation class
- * @return A Service
- * @throws ServiceException If there is any error while creating the specified
service, including the case where a generated service implementation class cannot be
located
- */
- public Service loadService(URL wsdlDocumentLocation, QName serviceName, Properties
props) throws ServiceException
- {
- throw new NotImplementedException();
- }
-
- /**
- * Create a <code>Service</code> instance.
- *
- * @param serviceName QName for the service
- * @return Service.
- * @throws ServiceException If any error in creation of the specified service
- */
- public Service createService(QName serviceName) throws ServiceException
- {
- return new ServiceImpl(serviceName);
- }
-
- /**
- * Create a <code>Service</code> instance.
- *
- * @param wsdlURL URL for the WSDL document location
- * @param serviceName QName for the service.
- * @return Service.
- * @throws ServiceException If any error in creation of the specified service
- */
- public Service createService(URL wsdlURL, QName serviceName) throws ServiceException
- {
- ClassLoader cl = Thread.currentThread().getContextClassLoader();
-
- URL mappingURL = cl.getResource("META-INF/jaxrpc-mapping.xml");
- if (mappingURL != null)
- log.info("Use jaxrpc-mapping from: " + mappingURL);
-
- return createService(wsdlURL, serviceName, mappingURL, null);
- }
-
- /**
- * Create a <code>Service</code> instance.
- *
- * @param wsdlURL URL for the WSDL document location
- * @param serviceName QName for the service.
- * @param mappingURL URL for the jaxrpc-mapping.xml document location
- * @return Service.
- * @throws ServiceException If any error in creation of the specified service
- */
- public Service createService(URL wsdlURL, QName serviceName, URL mappingURL) throws
ServiceException
- {
- return createService(wsdlURL, serviceName, mappingURL, null);
- }
-
- /**
- * Create a <code>Service</code> instance.
- *
- * @param wsdlURL URL for the WSDL document location
- * @param serviceName QName for the service.
- * @param mappingURL URL for the jaxrpc-mapping.xml document location
- * @param securityURL URL for the jboss-ws-security.xml file
- * @return Service.
- * @throws ServiceException If any error in creation of the specified service
- */
- public Service createService(URL wsdlURL, QName serviceName, URL mappingURL, URL
securityURL) throws ServiceException
- {
- ServiceImpl service = new ServiceImpl(serviceName, wsdlURL, mappingURL,
securityURL);
- return service;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceFactoryImpl.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceFactoryImpl.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,409 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.jaxrpc;
-
-// $Id$
-
-import java.lang.reflect.Proxy;
-import java.net.URL;
-import java.net.URLClassLoader;
-import java.rmi.Remote;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Set;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.Call;
-import javax.xml.rpc.ServiceException;
-import javax.xml.rpc.encoding.TypeMappingRegistry;
-import javax.xml.rpc.handler.HandlerChain;
-import javax.xml.rpc.handler.HandlerRegistry;
-
-import org.jboss.ws.deployment.JSR109ClientMetaDataBuilder;
-import org.jboss.ws.metadata.j2ee.UnifiedServiceRefMetaData;
-import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
-import org.jboss.ws.metadata.umdm.EndpointMetaData;
-import org.jboss.ws.metadata.umdm.OperationMetaData;
-import org.jboss.ws.metadata.umdm.ServiceMetaData;
-import org.jboss.ws.metadata.umdm.UnifiedMetaData;
-import org.jboss.ws.metadata.wsse.WSSecurityConfiguration;
-
-/**
- * Service class acts as a factory for:
- * <ul>
- * <li>Dynamic proxy for the target service endpoint.
- * <li>Instance of the type javax.xml.rpc.Call for the dynamic invocation of a
- * remote operation on the target service endpoint.
- * <li>Instance of a generated stub class
- * </ul>
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 10-Oct-2004
- */
-public class ServiceImpl implements ServiceExt
-{
- // The service meta data that is associated with this JAXRPC Service
- private ServiceMetaData serviceMetaData;
-
- // The optional WSDL location
- private URL wsdlLocation;
-
- // The handler registry
- private HandlerRegistryImpl handlerRegistry;
-
- /**
- * Construct a Service without WSDL meta data
- */
- ServiceImpl(QName serviceName)
- {
- UnifiedMetaData wsMetaData = new UnifiedMetaData();
- serviceMetaData = new ServiceMetaData(wsMetaData, serviceName);
- handlerRegistry = new HandlerRegistryImpl(serviceMetaData);
- }
-
- /**
- * Construct a Service that has access to some WSDL meta data
- */
- ServiceImpl(QName serviceName, URL wsdlURL, URL mappingURL, URL securityURL)
- {
- this.wsdlLocation = wsdlURL;
- JSR109ClientMetaDataBuilder builder = new JSR109ClientMetaDataBuilder();
-
- ClassLoader ctxClassLoader = Thread.currentThread().getContextClassLoader();
- builder.setResourceLoader(new URLClassLoader(new URL[] {}, ctxClassLoader));
- builder.setClassLoader(ctxClassLoader);
-
- serviceMetaData = builder.buildMetaData(serviceName, wsdlURL, mappingURL,
securityURL, null);
- handlerRegistry = new HandlerRegistryImpl(serviceMetaData);
- }
-
- /**
- * Construct a Service that has access to some WSDL meta data
- */
- ServiceImpl(QName serviceName, URL wsdlURL, JavaWsdlMapping mappingURL,
WSSecurityConfiguration securityConfig, UnifiedServiceRefMetaData serviceRefMetaData)
- {
- this.wsdlLocation = wsdlURL;
- JSR109ClientMetaDataBuilder builder = new JSR109ClientMetaDataBuilder();
-
- ClassLoader ctxClassLoader = Thread.currentThread().getContextClassLoader();
- builder.setResourceLoader(new URLClassLoader(new URL[] {}, ctxClassLoader));
- builder.setClassLoader(ctxClassLoader);
-
- serviceMetaData = builder.buildMetaData(serviceName, wsdlURL, mappingURL,
securityConfig, serviceRefMetaData);
- handlerRegistry = new HandlerRegistryImpl(serviceMetaData);
- }
-
- public ServiceMetaData getServiceMetaData()
- {
- return serviceMetaData;
- }
-
- /**
- * Gets the location of the WSDL document for this Service.
- *
- * @return URL for the location of the WSDL document for this service
- */
- public URL getWSDLDocumentLocation()
- {
- return wsdlLocation;
- }
-
- /**
- * Gets the name of this service.
- *
- * @return Qualified name of this service
- */
- public QName getServiceName()
- {
- return serviceMetaData.getQName();
- }
-
- /**
- * Creates a Call instance.
- *
- * @param portName
- * Qualified name for the target service endpoint
- * @return Call instance
- * @throws javax.xml.rpc.ServiceException
- * If any error in the creation of the Call object
- */
- public Call createCall(QName portName) throws ServiceException
- {
- String nsURI = portName.getNamespaceURI();
- serviceMetaData.assertTargetNamespace(nsURI);
- return new CallImpl(this, portName, null);
- }
-
- /**
- * Creates a Call instance.
- *
- * @param portName
- * Qualified name for the target service endpoint
- * @param operationName
- * Name of the operation for which this Call object is to be
- * created.
- * @return Call instance
- * @throws javax.xml.rpc.ServiceException
- * If any error in the creation of the Call object
- */
- public Call createCall(QName portName, String operationName) throws ServiceException
- {
- String nsURI = portName.getNamespaceURI();
- serviceMetaData.assertTargetNamespace(nsURI);
- QName opName = new QName(nsURI, operationName);
- return new CallImpl(this, portName, opName);
- }
-
- /**
- * Creates a Call instance.
- *
- * @param portName
- * Qualified name for the target service endpoint
- * @param opName
- * Qualified name of the operation for which this Call object is
- * to be created.
- * @return Call instance
- * @throws javax.xml.rpc.ServiceException
- * If any error in the creation of the Call object
- */
- public Call createCall(QName portName, QName opName) throws ServiceException
- {
- serviceMetaData.assertTargetNamespace(portName.getNamespaceURI());
- serviceMetaData.assertTargetNamespace(opName.getNamespaceURI());
- return new CallImpl(this, portName, opName);
- }
-
- /**
- * Creates a Call object not associated with specific operation or target
- * service endpoint. This Call object needs to be configured using the
- * setter methods on the Call interface.
- *
- * @return Call object
- * @throws javax.xml.rpc.ServiceException
- * If any error in the creation of the Call object
- */
- public Call createCall() throws ServiceException
- {
- return new CallImpl(this);
- }
-
- /**
- * Gets an array of preconfigured Call objects for invoking operations on
- * the specified port. There is one Call object per operation that can be
- * invoked on the specified port. Each Call object is pre-configured and
- * does not need to be configured using the setter methods on Call
- * interface. <p/> Each invocation of the getCalls method returns a new
- * array of preconfigured Call objects <p/> This method requires the Service
- * implementation class to have access to the WSDL related metadata.
- *
- * @param portName
- * Qualified name for the target service endpoint
- * @return Call[] Array of pre-configured Call objects
- * @throws javax.xml.rpc.ServiceException
- * If this Service class does not have access to the required
- * WSDL metadata or if an illegal endpointName is specified.
- */
- public Call[] getCalls(QName portName) throws ServiceException
- {
- EndpointMetaData epMetaData = serviceMetaData.getEndpoint(portName);
- if (epMetaData == null)
- throw new ServiceException("Cannot find endpoint for name: " +
portName);
-
- List<Call> calls = new ArrayList<Call>();
- for (OperationMetaData opMetaData : epMetaData.getOperations())
- {
- Call call = createCall(portName, opMetaData.getQName());
- calls.add(call);
- }
-
- Call[] callArr = new Call[calls.size()];
- calls.toArray(callArr);
-
- return callArr;
- }
-
- /**
- * J2EE components should not use the getHandlerRegistry() method. A
- * container provider must throw a java.lang.UnsupportedOperationException
- * from the getHandlerRegistry() method of the Service Interface. Handler
- * support is documented in Chapter 6 Handlers.
- */
- public HandlerRegistry getHandlerRegistry()
- {
- throw new UnsupportedOperationException("Components should not use the
getHandlerRegistry() method.");
- }
-
- /**
- * Get a HandlerRegistry that can be used to dynamically change the client
- * side handler chain associated with a given endpoint.
- */
- public HandlerRegistry getDynamicHandlerRegistry()
- {
- return handlerRegistry;
- }
-
- /**
- * J2EE components should not use the getTypeMappingRegistry() method. A
- * container provider must throw a java.lang.UnsupportedOperationException
- * from the getTypeMappingRegistry() method of the Service Interface.
- */
- public TypeMappingRegistry getTypeMappingRegistry()
- {
- throw new UnsupportedOperationException("Components should not use the
getTypeMappingRegistry() method.");
- }
-
- /**
- * Returns an Iterator for the list of QNames of service endpoints grouped
- * by this service
- *
- * @return Returns java.util.Iterator with elements of type
- * javax.xml.namespace.QName
- * @throws javax.xml.rpc.ServiceException
- * If this Service class does not have access to the required
- * WSDL metadata
- */
- public Iterator getPorts() throws ServiceException
- {
- ArrayList<QName> list = new ArrayList<QName>();
- if (serviceMetaData != null)
- {
- for (EndpointMetaData epMetaData : serviceMetaData.getEndpoints())
- {
- list.add(epMetaData.getQName());
- }
- }
- return list.iterator();
- }
-
- /**
- * The getPort method returns either an instance of a generated stub
- * implementation class or a dynamic proxy. The parameter
- * serviceEndpointInterface specifies the service endpoint interface that is
- * supported by the returned stub or proxy. In the implementation of this
- * method, the JAX-RPC runtime system takes the responsibility of selecting
- * a protocol binding (and a port) and configuring the stub accordingly. The
- * returned Stub instance should not be reconfigured by the client.
- */
- public Remote getPort(Class seiClass) throws ServiceException
- {
- if (seiClass == null)
- throw new IllegalArgumentException("SEI class cannot be null");
-
- String seiName = seiClass.getName();
- if (Remote.class.isAssignableFrom(seiClass) == false)
- throw new ServiceException("SEI does not implement java.rmi.Remote: "
+ seiName);
-
- if (serviceMetaData == null)
- throw new ServiceException("Service meta data not available");
-
- try
- {
- EndpointMetaData epMetaData =
serviceMetaData.getEndpointByServiceEndpointInterface(seiName);
- if (epMetaData == null && serviceMetaData.getEndpoints().size() == 1)
- {
- epMetaData = serviceMetaData.getEndpoints().get(0);
- epMetaData.setServiceEndpointInterfaceName(seiName);
- }
-
- if (epMetaData == null)
- throw new ServiceException("Cannot find endpoint meta data for: " +
seiName);
-
- return createProxy(seiClass, epMetaData);
- }
- catch (ServiceException ex)
- {
- throw ex;
- }
- catch (Exception ex)
- {
- throw new ServiceException("Cannot create proxy", ex);
- }
- }
-
- /**
- * The getPort method returns either an instance of a generated stub
- * implementation class or a dynamic proxy. A service client uses this
- * dynamic proxy to invoke operations on the target service endpoint. The
- * serviceEndpointInterface specifies the service endpoint interface that is
- * supported by the created dynamic proxy or stub instance.
- */
- public Remote getPort(QName portName, Class seiClass) throws ServiceException
- {
- if (seiClass == null)
- throw new IllegalArgumentException("SEI class cannot be null");
-
- if (serviceMetaData == null)
- throw new ServiceException("Service meta data not available");
-
- String seiName = seiClass.getName();
- if (Remote.class.isAssignableFrom(seiClass) == false)
- throw new ServiceException("SEI does not implement java.rmi.Remote: "
+ seiName);
-
- EndpointMetaData epMetaData = serviceMetaData.getEndpoint(portName);
- if (epMetaData == null)
- throw new ServiceException("Cannot obtain endpoint meta data for: " +
portName);
-
- try
- {
- if (epMetaData.getServiceEndpointInterfaceName() == null)
- epMetaData.setServiceEndpointInterfaceName(seiName);
-
- return createProxy(seiClass, epMetaData);
- }
- catch (ServiceException ex)
- {
- throw ex;
- }
- catch (Exception ex)
- {
- throw new ServiceException("Cannot create proxy", ex);
- }
- }
-
- private Remote createProxy(Class seiClass, EndpointMetaData epMetaData) throws
Exception
- {
- CallImpl call = new CallImpl(this, epMetaData);
-
- CallProxy handler = new CallProxy(call);
- ClassLoader cl = epMetaData.getClassLoader();
- Remote proxy = (Remote)Proxy.newProxyInstance(cl, new Class[] { seiClass,
StubExt.class }, handler);
-
- return proxy;
- }
-
- /**
- * Get the handler chain for the given endpoint name, maybe null.
- */
- public HandlerChain getHandlerChain(QName portName)
- {
- return handlerRegistry.getHandlerChainInstance(portName);
- }
-
- /**
- * Register a handler chain for the given endpoint name
- */
- public void registerHandlerChain(QName portName, List infos, Set roles)
- {
- handlerRegistry.registerClientHandlerChain(portName, infos, roles);
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceImpl.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceImpl.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceObjectFactory.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceObjectFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceObjectFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,317 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-// $Id$
-package org.jboss.ws.core.jaxrpc;
-
-// $Id$
-
-import java.io.BufferedReader;
-import java.io.ByteArrayInputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.io.ObjectInputStream;
-import java.lang.reflect.InvocationHandler;
-import java.lang.reflect.Proxy;
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.net.URLClassLoader;
-import java.net.URLEncoder;
-import java.rmi.Remote;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.Hashtable;
-import java.util.List;
-import java.util.Set;
-
-import javax.naming.Context;
-import javax.naming.Name;
-import javax.naming.NamingException;
-import javax.naming.RefAddr;
-import javax.naming.Reference;
-import javax.naming.spi.ObjectFactory;
-import javax.xml.namespace.QName;
-import javax.xml.rpc.JAXRPCException;
-import javax.xml.rpc.Service;
-import javax.xml.rpc.handler.HandlerInfo;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.Constants;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.server.ServiceEndpoint;
-import org.jboss.ws.core.server.ServiceEndpointManager;
-import org.jboss.ws.core.server.ServiceEndpointManagerFactory;
-import org.jboss.ws.metadata.j2ee.UnifiedPortComponentRefMetaData;
-import org.jboss.ws.metadata.j2ee.UnifiedServiceRefMetaData;
-import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
-import org.jboss.ws.metadata.umdm.EndpointMetaData;
-import org.jboss.ws.metadata.umdm.HandlerMetaData;
-import org.jboss.ws.metadata.umdm.HandlerMetaDataJAXRPC;
-import org.jboss.ws.metadata.umdm.ServiceMetaData;
-import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerInitParam;
-import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
-import org.jboss.ws.metadata.wsse.WSSecurityConfiguration;
-
-/**
- * This ServiceObjectFactory reconstructs a javax.xml.rpc.Service
- * for a given WSDL when the webservice client does a JNDI lookup
- * <p/>
- * It uses the information provided by the service-ref element in application-client.xml
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 15-April-2004
- */
-public class ServiceObjectFactory implements ObjectFactory
-{
- // provide logging
- private static final Logger log = Logger.getLogger(ServiceObjectFactory.class);
-
- /**
- * Creates an object using the location or reference information specified.
- * <p/>
- *
- * @param obj The possibly null object containing location or reference
- * information that can be used in creating an object.
- * @param name The name of this object relative to
<code>nameCtx</code>,
- * or null if no name is specified.
- * @param nameCtx The context relative to which the <code>name</code>
- * parameter is specified, or null if <code>name</code>
is
- * relative to the default initial context.
- * @param environment The possibly null environment that is used in
- * creating the object.
- * @return The object created; null if an object cannot be created.
- * @throws Exception if this object factory encountered an exception
- * while attempting to create an object, and no other object
factories are
- * to be tried.
- * @see javax.naming.spi.NamingManager#getObjectInstance
- * @see javax.naming.spi.NamingManager#getURLContext
- */
- public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable
environment) throws Exception
- {
- try
- {
- Reference ref = (Reference)obj;
-
- // Unmarshall the ServiceRefMetaData
- UnifiedServiceRefMetaData serviceRefMetaData = null;
- RefAddr metaRefAddr = ref.get(ServiceReferenceable.SERVICE_REF_META_DATA);
- ByteArrayInputStream bais = new
ByteArrayInputStream((byte[])metaRefAddr.getContent());
- try
- {
- ObjectInputStream ois = new ObjectInputStream(bais);
- serviceRefMetaData = (UnifiedServiceRefMetaData)ois.readObject();
- ois.close();
- }
- catch (IOException e)
- {
- throw new NamingException("Cannot unmarshall service ref meta data,
cause: " + e.toString());
- }
-
- // reconstruct the resourceCl
- ClassLoader contextCL = Thread.currentThread().getContextClassLoader();
- URL url = new
URL((String)ref.get(ServiceReferenceable.DEPLOYMENT_URL).getContent());
- URLClassLoader resourceCL = new URLClassLoader(new URL[] { url }, contextCL);
- serviceRefMetaData.setResourceCL(resourceCL);
-
- // Rewrite the config-file content
- String configFile = serviceRefMetaData.getConfigFile();
- if (configFile != null)
- {
- try
- {
- new URL(configFile);
- }
- catch (MalformedURLException ex)
- {
- URL configURL = resourceCL.getResource(configFile);
- if (configURL != null)
- {
- configFile = configURL.toExternalForm();
- serviceRefMetaData.setConfigFile(configFile);
- }
- }
- }
-
- // Unmarshall the WSSecurityConfiguration
- WSSecurityConfiguration securityConfig = null;
- RefAddr wsseRefAddr = ref.get(ServiceReferenceable.SECURITY_CONFIG);
- if (wsseRefAddr != null)
- {
- bais = new ByteArrayInputStream((byte[])wsseRefAddr.getContent());
- try
- {
- ObjectInputStream ois = new ObjectInputStream(bais);
- securityConfig = (WSSecurityConfiguration)ois.readObject();
- ois.close();
- }
- catch (IOException e)
- {
- throw new NamingException("Cannot unmarshall security config, cause:
" + e.toString());
- }
- }
-
- ServiceImpl jaxrpcService = null;
- URL wsdlURL = serviceRefMetaData.getWsdlURL();
- if (wsdlURL != null)
- {
- log.debug("Create jaxrpc service from wsdl");
-
- // Create the actual service object
- QName serviceName = serviceRefMetaData.getServiceQName();
- JavaWsdlMapping javaWsdlMapping =
(JavaWsdlMapping)serviceRefMetaData.getJavaWsdlMapping();
- jaxrpcService = new ServiceImpl(serviceName, wsdlURL, javaWsdlMapping,
securityConfig, serviceRefMetaData);
- }
- else
- {
- log.debug("Create jaxrpc service with no wsdl");
- jaxrpcService = new ServiceImpl(new QName(Constants.NS_JBOSSWS_URI,
"AnonymousService"));
- }
-
- // Set any service level properties
- ServiceMetaData serviceMetaData = jaxrpcService.getServiceMetaData();
- serviceMetaData.setProperties(serviceRefMetaData.getCallProperties());
-
- // The web service client using a port-component-link, the contet is the URL to
- // the PortComponentLinkServlet that will return the actual endpoint address
- RefAddr pcLinkRef = ref.get(ServiceReferenceable.PORT_COMPONENT_LINK);
- if (pcLinkRef != null)
- {
- String pcLink = (String)pcLinkRef.getContent();
- log.debug("Resolving port-component-link: " + pcLink);
-
- // First try to obtain the endpoint address loacally
- String endpointAddress = null;
- try
- {
- ServiceEndpointManagerFactory factory =
ServiceEndpointManagerFactory.getInstance();
- ServiceEndpointManager epManager = factory.getServiceEndpointManager();
- ServiceEndpoint serviceEndpoint =
epManager.resolvePortComponentLink(pcLink);
- if (serviceEndpoint == null)
- throw new WSException("Cannot resolve port-component-link: "
+ pcLink);
-
- endpointAddress =
serviceEndpoint.getServiceEndpointInfo().getServerEndpointMetaData().getEndpointAddress();
- }
- catch (Exception ex)
- {
- // ignore, we are probably a remote client
- }
-
- // We may be remote in the esoteric case where an appclient uses the
port-comonent-link feature
- if (endpointAddress == null)
- {
- String servletPath =
(String)ref.get(ServiceReferenceable.PORT_COMPONENT_LINK_SERVLET).getContent();
- servletPath += "?pcLink=" + URLEncoder.encode(pcLink,
"UTF-8");
- InputStream is = new URL(servletPath).openStream();
- BufferedReader br = new BufferedReader(new InputStreamReader(is));
- endpointAddress = br.readLine();
- is.close();
- }
-
- log.debug("Resolved to: " + endpointAddress);
- if (serviceMetaData.getEndpoints().size() == 1)
- {
- EndpointMetaData epMetaData = serviceMetaData.getEndpoints().get(0);
- epMetaData.setEndpointAddress(endpointAddress);
- }
- else
- {
- log.warn("Cannot set endpoint address for port-component-link,
unsuported number of endpoints");
- }
- }
-
- /********************************************************
- * Setup the Proxy that implements the service-interface
- ********************************************************/
-
- // load the service interface class
- Class siClass = contextCL.loadClass(serviceRefMetaData.getServiceInterface());
- if (Service.class.isAssignableFrom(siClass) == false)
- throw new JAXRPCException("The service interface does not implement
javax.xml.rpc.Service: " + siClass.getName());
-
- // load all service endpoint interface classes
- UnifiedPortComponentRefMetaData[] pcrArray =
serviceRefMetaData.getPortComponentRefs();
- for (int i = 0; i < pcrArray.length; i++)
- {
- UnifiedPortComponentRefMetaData pcr = pcrArray[i];
- Class seiClass = contextCL.loadClass(pcr.getServiceEndpointInterface());
- if (Remote.class.isAssignableFrom(seiClass) == false)
- throw new IllegalArgumentException("The SEI does not implement
java.rmi.Remote: " + seiClass.getName());
- }
-
- // Setup the handler chain
- setupHandlerChain(jaxrpcService, serviceRefMetaData);
-
- InvocationHandler handler = new ServiceProxy(jaxrpcService, siClass);
- return Proxy.newProxyInstance(contextCL, new Class[] { siClass, ServiceExt.class
}, handler);
- }
- catch (Exception ex)
- {
- log.error("Cannot create service", ex);
- throw ex;
- }
- }
-
- /**
- * Setup the handler chain(s) for this service
- * <p/>
- * This registers a handler chain with the service for every endpoint
- * that has handlers configured in the <service-ref> element
- */
- private void setupHandlerChain(ServiceImpl jaxrpcService, UnifiedServiceRefMetaData
serviceRefMetaData) throws Exception
- {
- List<EndpointMetaData> endpoints =
jaxrpcService.getServiceMetaData().getEndpoints();
- for (EndpointMetaData epMetaData : endpoints)
- {
- QName portName = epMetaData.getQName();
-
- Set<String> handlerRoles = new HashSet<String>();
- ArrayList handlerInfos = new ArrayList();
- for (HandlerMetaData handlerMetaData :
epMetaData.getHandlerMetaData(HandlerType.ALL))
- {
- HandlerMetaDataJAXRPC jaxrpcMetaData =
(HandlerMetaDataJAXRPC)handlerMetaData;
- handlerRoles.addAll(jaxrpcMetaData.getSoapRoles());
-
- HashMap hConfig = new HashMap();
- for (HandlerInitParam param : jaxrpcMetaData.getInitParams())
- {
- hConfig.put(param.getParamName(), param.getParamValue());
- }
-
- Set<QName> headers = jaxrpcMetaData.getSoapHeaders();
- QName[] headerArr = new QName[headers.size()];
- headers.toArray(headerArr);
-
- Class hClass = jaxrpcMetaData.getHandlerClass();
- hConfig.put(HandlerType.class.getName(), jaxrpcMetaData.getHandlerType());
- HandlerInfo info = new HandlerInfo(hClass, hConfig, headerArr);
-
- log.debug("Adding client side handler to endpoint '" + portName
+ "': " + info);
- handlerInfos.add(info);
-
- // register the handlers with the client engine
- if (handlerInfos.size() > 0)
- jaxrpcService.registerHandlerChain(portName, handlerInfos, handlerRoles);
- }
- }
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceObjectFactory.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceObjectFactory.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceProxy.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceProxy.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceProxy.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,162 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-// $Id$
-package org.jboss.ws.core.jaxrpc;
-
-// $Id$
-
-import java.lang.reflect.InvocationHandler;
-import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Method;
-import java.rmi.Remote;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-
-import javax.xml.rpc.JAXRPCException;
-import javax.xml.rpc.Service;
-
-import org.jboss.logging.Logger;
-
-/**
- * This is the proxy that implements the service interface .
- * <p/>
- * Additionally it handles some ws4ee functionality that is not part of jaxrpc
behaviour.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 15-May-2004
- */
-public class ServiceProxy implements InvocationHandler
-{
- // provide logging
- private static final Logger log = Logger.getLogger(ServiceProxy.class);
-
- // The underlying jaxrpc service
- private ServiceImpl jaxrpcService;
-
- // The methods from java.lang.Object
- private List objectMethods = new ArrayList();
- // The methods from javax.xml.rpc.Service
- private List jaxrpcServiceMethods = new ArrayList();
- // The methods from the service interface, in case of javax.xml.rpc.Service it is
empty
- private List serviceInterfaceMethods = new ArrayList();
-
- // The cached getPort method
- private Method getPortMethod;
-
- /**
- * Construct a client side service proxy.
- * <p/>
- * This proxy implements the (generated) service interface.
- *
- * @param service The underlying {@link javax.xml.rpc.Service}
- * @param siClass The service interface, a subclass of {@link javax.xml.rpc.Service}
- */
- public ServiceProxy(ServiceImpl service, Class siClass)
- {
- this.jaxrpcService = service;
-
- // initialize java.lang.Object methods
- objectMethods.addAll(Arrays.asList(Object.class.getMethods()));
-
- // initialize javax.xml.rpc.Service methods
- jaxrpcServiceMethods.addAll(Arrays.asList(ServiceExt.class.getMethods()));
-
- // initialize SI methods
- if (siClass.getName().equals("javax.xml.rpc.Service") == false)
- serviceInterfaceMethods.addAll(Arrays.asList(siClass.getDeclaredMethods()));
-
- // initialize special ws4ee methods
- try
- {
- getPortMethod = Service.class.getMethod("getPort", new
Class[]{Class.class});
- }
- catch (NoSuchMethodException e)
- {
- throw new JAXRPCException(e.toString());
- }
- }
-
- /**
- * Processes a method invocation on a proxy instance and returns
- * the result.
- */
- public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
- {
- String methodName = method.getName();
-
- try
- {
- Object retObj = null;
- if (jaxrpcServiceMethods.contains(method))
- {
- log.debug("Invoke on jaxrpc service: " + methodName);
-
- if (method.getName().equals("getPort"))
- {
- Remote port = (Remote)method.invoke(jaxrpcService, args);
- return port;
- }
- else
- {
- retObj = method.invoke(jaxrpcService, args);
- return retObj;
- }
- }
- if (serviceInterfaceMethods.contains(method))
- {
- log.debug("Invoke on service interface: " + methodName);
-
- Class seiClass = method.getReturnType();
- retObj = getPortMethod.invoke(jaxrpcService, new Object[]{seiClass});
- return retObj;
- }
- if (objectMethods.contains(method))
- {
- log.debug("Invoke on object: " + methodName);
-
- retObj = method.invoke(jaxrpcService, args);
- return retObj;
- }
-
- throw new JAXRPCException("Don't know how to invoke: " + method);
- }
- catch (Exception e)
- {
- handleException(e);
- return null;
- }
- }
-
- /**
- * Log the client side exception
- */
- private void handleException(Exception ex) throws Throwable
- {
- Throwable th = ex;
- if (ex instanceof InvocationTargetException)
- th = ((InvocationTargetException)ex).getTargetException();
-
- log.error("Service error", th);
- throw th;
- }
-}
\ No newline at end of file
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceProxy.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceProxy.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceReferenceable.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceReferenceable.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceReferenceable.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,177 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-// $Id$
-package org.jboss.ws.core.jaxrpc;
-
-// $Id$
-
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-import java.io.ObjectOutputStream;
-import java.net.URL;
-
-import javax.naming.BinaryRefAddr;
-import javax.naming.NamingException;
-import javax.naming.Reference;
-import javax.naming.Referenceable;
-import javax.naming.StringRefAddr;
-
-import org.jboss.ws.core.server.ServiceEndpointManager;
-import org.jboss.ws.core.server.ServiceEndpointManagerFactory;
-import org.jboss.ws.deployment.UnifiedDeploymentInfo;
-import org.jboss.ws.metadata.j2ee.UnifiedPortComponentRefMetaData;
-import org.jboss.ws.metadata.j2ee.UnifiedServiceRefMetaData;
-import org.jboss.ws.metadata.j2ee.UnifiedWebMetaData;
-import org.jboss.ws.metadata.wsse.WSSecurityConfiguration;
-import org.jboss.ws.metadata.wsse.WSSecurityConfigurationFactory;
-
-/**
- * A JNDI reference to a javax.xml.rpc.Service
- * <p/>
- * It holds the information to reconstrut the javax.xml.rpc.Service
- * when the client does a JNDI lookup.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 15-April-2004
- */
-public class ServiceReferenceable implements Referenceable
-{
- public static final String SERVICE_REF_META_DATA = "SERVICE_REF_META_DATA";
- public static final String DEPLOYMENT_URL = "DEPLOYMENT_URL";
- public static final String SECURITY_CONFIG = "SECURITY_CONFIG";
- public static final String DESCRIPTOR_LOC = "DESCRIPTOR_LOC";
- public static final String PORT_COMPONENT_LINK = "PORT_COMPONENT_LINK";
- public static final String PORT_COMPONENT_LINK_SERVLET =
"PORT_COMPONENT_LINK_SERVLET";
-
- private UnifiedServiceRefMetaData refMetaData;
- private UnifiedDeploymentInfo udi;
-
- /**
- * A service referenceable for a WSDL document that is part of the deployment
- *
- * @param refMetaData The service-ref meta data
- * @param udi The client DeploymentInfo
- */
- public ServiceReferenceable(UnifiedServiceRefMetaData refMetaData,
UnifiedDeploymentInfo udi)
- {
- this.refMetaData = refMetaData;
- this.udi = udi;
- }
-
- /**
- * Retrieves the Reference of this object.
- *
- * @return The non-null Reference of this object.
- * @throws javax.naming.NamingException If a naming exception was encountered while
retrieving the reference.
- */
- public Reference getReference() throws NamingException
- {
- Reference myRef = new Reference(ServiceReferenceable.class.getName(),
ServiceObjectFactory.class.getName(), null);
-
- // The deployment URL of the web service client deployment
- // Add a reference to the client deployment URL
- URL deploymentURL = (udi.localUrl != null ? udi.localUrl : udi.url);
- myRef.add(new StringRefAddr(DEPLOYMENT_URL, deploymentURL.toExternalForm()));
-
- // Add a reference to the ServiceRefMetaData and WSDLDefinitions
- myRef.add(new BinaryRefAddr(SERVICE_REF_META_DATA, marshallServiceRef()));
-
- if (getSecurityConfigURL() != null)
- myRef.add(new BinaryRefAddr(SECURITY_CONFIG, marshallSecurityConfig()));
-
- // Add references to port component links
- UnifiedPortComponentRefMetaData[] pcrArr = refMetaData.getPortComponentRefs();
- for (int i = 0; i < pcrArr.length; i++)
- {
- UnifiedPortComponentRefMetaData pcr = pcrArr[i];
- String pcLink = pcr.getPortComponentLink();
- if (pcLink != null)
- {
- myRef.add(new StringRefAddr(PORT_COMPONENT_LINK, pcLink));
- try
- {
- ServiceEndpointManagerFactory factory =
ServiceEndpointManagerFactory.getInstance();
- ServiceEndpointManager epManager = factory.getServiceEndpointManager();
- String host = epManager.getWebServiceHost();
- int port = epManager.getWebServicePort();
-
- String servletURL = "http://" + host + ":" + port +
"/jbossws/pclink";
- myRef.add(new StringRefAddr(PORT_COMPONENT_LINK_SERVLET, servletURL));
- }
- catch (Exception ex)
- {
- throw new NamingException("Cannot obtain path to
PortComponentLinkServlet: " + ex);
- }
- }
- }
-
- return myRef;
- }
-
- /** Marshall the ServiceRefMetaData to an byte array
- */
- private byte[] marshallServiceRef() throws NamingException
- {
- refMetaData.getJavaWsdlMapping();
-
- ByteArrayOutputStream baos = new ByteArrayOutputStream(512);
- try
- {
- ObjectOutputStream oos = new ObjectOutputStream(baos);
- oos.writeObject(refMetaData);
- oos.close();
- }
- catch (IOException e)
- {
- throw new NamingException("Cannot marshall service ref meta data, cause:
" + e.toString());
- }
- return baos.toByteArray();
- }
-
- /** Marshall the WSSecurityConfiguration to an byte array
- */
- private byte[] marshallSecurityConfig() throws NamingException
- {
- ByteArrayOutputStream baos = new ByteArrayOutputStream(512);
- try
- {
- ObjectOutputStream oos = new ObjectOutputStream(baos);
- URL securityURL = getSecurityConfigURL();
- WSSecurityConfiguration securityConfig =
WSSecurityConfigurationFactory.newInstance().parse(securityURL);
- oos.writeObject(securityConfig);
- oos.close();
- }
- catch (IOException e)
- {
- throw new NamingException("Cannot marshall security config, cause: " +
e.toString());
- }
- return baos.toByteArray();
- }
-
- private URL getSecurityConfigURL()
- {
- ClassLoader ctxClassLoader = refMetaData.getResourceCL();
- String descriptorLoc = udi.metaData instanceof UnifiedWebMetaData ?
"WEB-INF" : "META-INF";
- URL securityURL = ctxClassLoader.getResource(descriptorLoc + "/" +
WSSecurityConfigurationFactory.CLIENT_RESOURCE_NAME);
- return securityURL;
- }
-}
\ No newline at end of file
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceReferenceable.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServiceReferenceable.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServletEndpointContextImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServletEndpointContextImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServletEndpointContextImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,94 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.jaxrpc;
-
-// $Id$
-
-import java.security.Principal;
-
-import javax.servlet.ServletContext;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import javax.servlet.http.HttpSession;
-import javax.xml.rpc.handler.MessageContext;
-import javax.xml.rpc.server.ServletEndpointContext;
-
-import org.jboss.ws.core.server.EndpointContext;
-import org.jboss.ws.core.soap.MessageContextAssociation;
-
-/**
- * Implementation of <code>ServletEndpointContext</code>
- *
- * @author <a href="mailto:jason@stacksmash.com">Jason T.
Greene</a>
- */
-public class ServletEndpointContextImpl implements ServletEndpointContext
-{
- private ServletContext context;
- private HttpServletRequest request;
- private HttpServletResponse response;
-
- public ServletEndpointContextImpl(EndpointContext context)
- {
- this.context = context.getServletContext();
- this.request = context.getHttpServletRequest();
- this.response = context.getHttpServletResponse();
- }
-
- public HttpSession getHttpSession()
- {
- return request.getSession();
- }
-
- public MessageContext getMessageContext()
- {
- return (MessageContext)MessageContextAssociation.peekMessageContext();
- }
-
- public ServletContext getServletContext()
- {
- return context;
- }
-
- public Principal getUserPrincipal()
- {
- return request.getUserPrincipal();
- }
-
- public boolean isUserInRole(String role)
- {
- return request.isUserInRole(role);
- }
-
- // BEGIN non-standard access methods
-
- public HttpServletRequest getHttpServletRequest()
- {
- return request;
- }
-
- public HttpServletResponse getHttpServletResponse()
- {
- return response;
- }
-
- // END non-standard access methods
-}
\ No newline at end of file
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServletEndpointContextImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/ServletEndpointContextImpl.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/StubExt.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/StubExt.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/StubExt.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,112 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc;
-
-import java.util.Iterator;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.ParameterMode;
-
-import org.jboss.ws.metadata.umdm.EndpointMetaData;
-
-// $Id$
-
-/**
- * An instance of a stub class represents a client side proxy or stub instance for the
target service endpoint.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 27-Jan-2005
- */
-public interface StubExt extends javax.xml.rpc.Stub
-{
- /** ClientTimeout property: org.jboss.ws.timeout */
- static final String PROPERTY_CLIENT_TIMEOUT = "org.jboss.ws.timeout";
- /** KeyStore property: org.jboss.ws.keyStore */
- static final String PROPERTY_KEY_STORE = "org.jboss.ws.keyStore";
- /** KeyStorePassword property: org.jboss.ws.keyStorePassword */
- static final String PROPERTY_KEY_STORE_PASSWORD =
"org.jboss.ws.keyStorePassword";
- /** KeyStoreType property: org.jboss.ws.keyStoreType */
- static final String PROPERTY_KEY_STORE_TYPE = "org.jboss.ws.keyStoreType";
- /** TrustStore property: org.jboss.ws.trustStore */
- static final String PROPERTY_TRUST_STORE = "org.jboss.ws.trustStore";
- /** TrustStorePassword property: org.jboss.ws.trustStorePassword */
- static final String PROPERTY_TRUST_STORE_PASSWORD =
"org.jboss.ws.trustStorePassword";
- /** TrustStoreType property: org.jboss.ws.trustStoreType */
- static final String PROPERTY_TRUST_STORE_TYPE =
"org.jboss.ws.trustStoreType";
- /** Authentication type, used to specify basic, etc) */
- static final String PROPERTY_AUTH_TYPE = "org.jboss.ws.authType";
- /** Authentication type, BASIC */
- static final String PROPERTY_AUTH_TYPE_BASIC =
"org.jboss.ws.authType.basic";
- /** Authentication type, WSEE */
- static final String PROPERTY_AUTH_TYPE_WSSE = "org.jboss.ws.authType.wsse";
- /** Enable MTOM on the stub */
- static final String PROPERTY_MTOM_ENABLED= "org.jboss.ws.mtom.enabled";
-
- /**
- * Get the endpoint meta data for this stub
- */
- EndpointMetaData getEndpointMetaData();
-
- /**
- * Add a header that is not bound to an input parameter.
- * A propriatory extension, that is not part of JAXRPC.
- *
- * @param xmlName The XML name of the header element
- * @param xmlType The XML type of the header element
- */
- void addUnboundHeader(QName xmlName, QName xmlType, Class javaType, ParameterMode
mode);
-
- /**
- * Get the header value for the given XML name.
- * A propriatory extension, that is not part of JAXRPC.
- *
- * @param xmlName The XML name of the header element
- * @return The header value, or null
- */
- Object getUnboundHeaderValue(QName xmlName);
-
- /**
- * Set the header value for the given XML name.
- * A propriatory extension, that is not part of JAXRPC.
- *
- * @param xmlName The XML name of the header element
- */
- void setUnboundHeaderValue(QName xmlName, Object value);
-
- /**
- * Clear all registered headers.
- * A propriatory extension, that is not part of JAXRPC.
- */
- void clearUnboundHeaders();
-
- /**
- * Remove the header for the given XML name.
- * A propriatory extension, that is not part of JAXRPC.
- */
- void removeUnboundHeader(QName xmlName);
-
- /**
- * Get an Iterator over the registered header XML names.
- * A propriatory extension, that is not part of JAXRPC.
- */
- Iterator getUnboundHeaders();
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/StubExt.java (from rev
1605, branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/StubExt.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/Style.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/Style.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/Style.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,62 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc;
-
-// $Id$
-
-/** A type-safe enumeration for encoding style.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 14-Oct-2004
- */
-public class Style
-{
- private String style;
-
- public static final Style RPC = new Style("rpc");
- public static final Style DOCUMENT = new Style("document");
-
- private Style(String style)
- {
- this.style = style;
- }
-
- public static Style getDefaultStyle()
- {
- return DOCUMENT;
- }
-
- public static Style valueOf(String style)
- {
- if (RPC.style.equals(style))
- return RPC;
- if (DOCUMENT.style.equals(style))
- return DOCUMENT;
-
- throw new IllegalArgumentException("Unsupported style: " + style);
- }
-
- public String toString()
- {
- return style;
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/Style.java (from rev
1605, branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/Style.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/TypeMappingImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/TypeMappingImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/TypeMappingImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,624 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc;
-
-// $Id$
-
-import java.math.BigDecimal;
-import java.math.BigInteger;
-import java.net.URI;
-import java.util.ArrayList;
-import java.util.Calendar;
-import java.util.Date;
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.encoding.DeserializerFactory;
-import javax.xml.rpc.encoding.SerializerFactory;
-import javax.xml.rpc.encoding.TypeMapping;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.Constants;
-import org.jboss.ws.core.jaxrpc.binding.Base64DeserializerFactory;
-import org.jboss.ws.core.jaxrpc.binding.Base64SerializerFactory;
-import org.jboss.ws.core.jaxrpc.binding.CalendarDeserializerFactory;
-import org.jboss.ws.core.jaxrpc.binding.CalendarSerializerFactory;
-import org.jboss.ws.core.jaxrpc.binding.DateDeserializerFactory;
-import org.jboss.ws.core.jaxrpc.binding.DateSerializerFactory;
-import org.jboss.ws.core.jaxrpc.binding.HexDeserializerFactory;
-import org.jboss.ws.core.jaxrpc.binding.HexSerializerFactory;
-import org.jboss.ws.core.jaxrpc.binding.QNameDeserializerFactory;
-import org.jboss.ws.core.jaxrpc.binding.QNameSerializerFactory;
-import org.jboss.ws.core.jaxrpc.binding.SimpleDeserializerFactory;
-import org.jboss.ws.core.jaxrpc.binding.SimpleSerializerFactory;
-import org.jboss.ws.core.utils.JavaUtils;
-
-/**
- * This is the representation of a type mapping.
- * This TypeMapping implementation supports the literal encoding style.
- *
- * The TypeMapping instance maintains a tuple of the type
- * {XML typeQName, Java Class, SerializerFactory, DeserializerFactory}.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 10-Oct-2004
- */
-public abstract class TypeMappingImpl implements TypeMapping
-{
- // provide logging
- private static final Logger log = Logger.getLogger(TypeMappingImpl.class);
-
- // Map<KeyPair,FactoryPair>
- private Map<KeyPair, FactoryPair> tupleMap = new LinkedHashMap<KeyPair,
FactoryPair>();
-
- /**
- * Gets the DeserializerFactory registered for the specified pair of Java type and XML
data type.
- * @param javaType Class of the Java type
- * @param xmlType QName of the XML type
- * @return Registered DeserializerFactory or null if there is no registered factory
- */
- public DeserializerFactory getDeserializer(Class javaType, QName xmlType)
- {
- FactoryPair fPair = getFactoryPair(xmlType, javaType);
- return (fPair != null ? fPair.getDeserializerFactory() : null);
- }
-
- /**
- * Gets the SerializerFactory registered for the specified pair of Java type and XML
data type.
- * @param javaType Class of the Java type
- * @param xmlType QName of the XML type
- * @return Registered SerializerFactory or null if there is no registered factory
- */
- public SerializerFactory getSerializer(Class javaType, QName xmlType)
- {
- FactoryPair fPair = getFactoryPair(xmlType, javaType);
- return (fPair != null ? fPair.getSerializerFactory() : null);
- }
-
- /**
- * Returns the encodingStyle URIs (as String[]) supported by this TypeMapping
instance.
- * A TypeMapping that contains only encoding style independent serializers and
deserializers
- * returns null from this method.
- *
- * @return Array of encodingStyle URIs for the supported encoding styles
- */
- public abstract String[] getSupportedEncodings();
-
- /**
- * Sets the encodingStyle URIs supported by this TypeMapping instance. A TypeMapping
that contains only encoding
- * independent serializers and deserializers requires null as the parameter for this
method.
- *
- * @param encodingStyleURIs Array of encodingStyle URIs for the supported encoding
styles
- */
- public abstract void setSupportedEncodings(String[] encodingStyleURIs);
-
- /**
- * Checks whether or not type mapping between specified XML type and Java type is
registered.
- * @param javaType Class of the Java type
- * @param xmlType QName of the XML type
- * @return boolean; true if type mapping between the specified XML type and Java type
is registered; otherwise false
- */
- public boolean isRegistered(Class javaType, QName xmlType)
- {
- return getFactoryPair(xmlType, javaType) != null;
- }
-
- /**
- * Registers SerializerFactory and DeserializerFactory for a specific type mapping
between an XML type and Java type.
- * This method replaces any existing registered SerializerFactory DeserializerFactory
instances.
- * @param javaType Class of the Java type
- * @param xmlType QName of the XML type
- * @param sf SerializerFactory
- * @param df DeserializerFactory
- * @throws javax.xml.rpc.JAXRPCException If any error during the registration
- */
- public void register(Class javaType, QName xmlType, SerializerFactory sf,
DeserializerFactory df)
- {
- log.debug("register: TypeMappingImpl@" + hashCode() + "
[xmlType=" + xmlType + ",javaType=" + javaType.getName() + ",sf="
+ sf + ",df=" + df + "]");
- registerInternal(javaType, xmlType, sf, df);
- }
-
- void registerInternal(Class javaType, QName xmlType, SerializerFactory sf,
DeserializerFactory df)
- {
- if (javaType == null)
- throw new IllegalArgumentException("javaType cannot be null for: " +
xmlType);
- if (xmlType == null)
- throw new IllegalArgumentException("xmlType cannot be null for: " +
javaType);
-
- KeyPair kPair = new KeyPair(xmlType, javaType);
- FactoryPair fPair = new FactoryPair(sf, df);
- tupleMap.put(kPair, fPair);
- }
-
- /**
- * Removes the DeserializerFactory registered for the specified pair of Java type and
XML data type.
- * @param javaType Class of the Java type
- * @param xmlType QName of the XML type
- * @throws javax.xml.rpc.JAXRPCException If there is error in removing the registered
DeserializerFactory
- */
- public void removeDeserializer(Class javaType, QName xmlType)
- {
- FactoryPair fPair = getFactoryPair(xmlType, javaType);
- if (fPair != null)
- fPair.setDeserializerFactory(null);
- }
-
- /**
- * Removes the SerializerFactory registered for the specified pair of Java type and
XML data type.
- * @param javaType Class of the Java type
- * @param xmlType QName of the XML type
- * @throws javax.xml.rpc.JAXRPCException If there is error in removing the registered
SerializerFactory
- */
- public void removeSerializer(Class javaType, QName xmlType)
- {
- FactoryPair fPair = getFactoryPair(xmlType, javaType);
- if (fPair != null)
- fPair.setSerializerFactory(null);
- }
-
- /** Get the list of registered XML types */
- public List<QName> getRegisteredXmlTypes()
- {
- List<QName> types = new ArrayList<QName>();
- for (KeyPair keyPair : getKeyPairs(null, null))
- {
- types.add(keyPair.getXmlType());
- }
- return types;
- }
-
- /** Get the list of registered Java types */
- public List<Class> getRegisteredJavaTypes()
- {
- List<Class> types = new ArrayList<Class>();
- for (KeyPair keyPair : getKeyPairs(null, null))
- {
- types.add(keyPair.getJavaType());
- }
- return types;
- }
-
- /** Get the Class that was registered last for this xmlType */
- public Class getJavaType(QName xmlType)
- {
- Class javaType = null;
-
- List keyPairList = getKeyPairs(xmlType, null);
- int size = keyPairList.size();
- if (size > 0)
- {
- KeyPair kPair = (KeyPair)keyPairList.get(size - 1);
- javaType = kPair.getJavaType();
- }
-
- return javaType;
- }
-
- /**
- * Get all of the Classes registered for this xmlType.
- */
- public List<Class> getJavaTypes(QName xmlType)
- {
- List<KeyPair> keyPairList = getKeyPairs(xmlType, null);
- List<Class> classes = new ArrayList<Class>(keyPairList.size());
-
- for (KeyPair current : keyPairList)
- {
- classes.add(current.getJavaType());
- }
-
- return classes;
- }
-
- /**
- * Get the Class that was registered last for this xmlType
- * If there are two Java Types registered for the xmlType
- * return the primitive type rather than the wrapper,
- * if available
- */
- public Class getJavaType(QName xmlType,boolean getPrimitive)
- {
- //Lets get the primitive type if available
- Class javaType = null;
-
- List keyPairList = getKeyPairs(xmlType, null);
- int size = keyPairList.size();
- if (size == 2 && getPrimitive)
- {
- KeyPair kPair1 = (KeyPair)keyPairList.get(0);
- Class javaType1 = kPair1.getJavaType();
- KeyPair kPair2 = (KeyPair)keyPairList.get(1);
- Class javaType2 = kPair2.getJavaType();
- if(javaType2.isPrimitive() && !javaType1.isPrimitive())
- javaType = javaType2;
- else
- if(javaType1.isPrimitive() && !javaType2.isPrimitive())
- javaType = javaType1;
- else
- javaType = javaType2; //Fallback on the most latest
- }
- else
- return getJavaType(xmlType);
-
- return javaType;
- }
-
- /** Get the Class name that was registered last for this xmlType */
- public String getJavaTypeName(QName xmlType)
- {
- Class javaType = getJavaType(xmlType);
- return (javaType != null ? javaType.getName() : null);
- }
-
- /** Get the QName that was registered last for this javaType */
- public QName getXMLType(Class javaType)
- {
- QName xmlType = null;
-
- List keyPairList = getKeyPairs(null, javaType);
- int size = keyPairList.size();
- if (size > 0)
- {
- KeyPair kPair = (KeyPair)keyPairList.get(size - 1);
- xmlType = kPair.getXmlType();
- }
-
- return xmlType;
- }
-
- /**
- * Get the QName that was registered last for this javaType
- * @param javaType class for which XML Type is needed
- * @param tryAssignable If the xmlType is not registered for javaType
- * should a base class type be checked?
- *
- */
- public QName getXMLType(Class javaType, boolean tryAssignable)
- {
- if(tryAssignable) return getXMLType(javaType);
-
- QName xmlType = null;
-
- List keyPairList = getKeyPairs(null, javaType, tryAssignable);
- int size = keyPairList.size();
- if (size > 0)
- {
- KeyPair kPair = (KeyPair)keyPairList.get(size - 1);
- xmlType = kPair.getXmlType();
- }
-
- return xmlType;
- }
-
- /**
- * Get the serializer/deserializer factory pair for the given xmlType, javaType
- * Both xmlType, javaType may be null. In that case, this implementation still
- * returns a FactoryPair if there is only one possible match.
- */
- List<KeyPair> getKeyPairs(QName xmlType, Class javaType)
- {
- List<KeyPair> keyPairList = new ArrayList<KeyPair>();
-
- // Getting the exact matching pair
- if (xmlType != null && javaType != null)
- {
- for (KeyPair entry : tupleMap.keySet())
- {
- if (xmlType.equals(entry.getXmlType()) && entry.getJavaType() ==
javaType)
- {
- keyPairList.add(entry);
- }
- }
- // No exact match, try assignable
- if (keyPairList.size() == 0)
- {
- for (KeyPair entry : tupleMap.keySet())
- {
- if (xmlType.equals(entry.getXmlType()) &&
JavaUtils.isAssignableFrom(entry.getJavaType(), javaType))
- {
- keyPairList.add(entry);
- }
- }
- }
- }
-
- // Getting the pair for a given xmlType
- else if (xmlType != null && javaType == null)
- {
- for (KeyPair entry : tupleMap.keySet())
- {
- if (xmlType.equals(entry.getXmlType()))
- {
- keyPairList.add(entry);
- }
- }
- }
-
- // Getting the pair for a given javaType
- else if (xmlType == null && javaType != null)
- {
- for (KeyPair entry : tupleMap.keySet())
- {
- if (entry.getJavaType() == javaType)
- {
- keyPairList.add(entry);
- }
- }
- // No exact match, try assignable
- if (keyPairList.size() == 0)
- {
- for (KeyPair entry : tupleMap.keySet())
- {
- if (JavaUtils.isAssignableFrom(entry.getJavaType(), javaType))
- {
- keyPairList.add(entry);
- }
- }
- }
- }
-
- // Getting the all pairs
- else if (xmlType == null && javaType == null)
- {
- keyPairList.addAll(tupleMap.keySet());
- }
-
- return keyPairList;
- }
-
- /**
- * Get the serializer/deserializer factory pair for the given xmlType, javaType
- * Both xmlType, javaType may be null. In that case, this implementation still
- * returns a FactoryPair if there is only one possible match.
- * <br>Note: This method does not try for the base class, if no keypair exists
for the
- * javaType in question.
- */
- List<KeyPair> getKeyPairs(QName xmlType, Class javaType, boolean tryAssignable)
- {
- if(tryAssignable) return getKeyPairs( xmlType, javaType);
-
- List<KeyPair> keyPairList = new ArrayList<KeyPair>();
-
- // Getting the exact matching pair
- if (xmlType != null && javaType != null)
- {
- for (KeyPair entry : tupleMap.keySet())
- {
- if (xmlType.equals(entry.getXmlType()) && entry.getJavaType() ==
javaType)
- {
- keyPairList.add(entry);
- }
- }
- }
-
- // Getting the pair for a given xmlType
- else if (xmlType != null && javaType == null)
- {
- for (KeyPair entry : tupleMap.keySet())
- {
- if (xmlType.equals(entry.getXmlType()))
- {
- keyPairList.add(entry);
- }
- }
- }
-
- // Getting the pair for a given javaType
- else if (xmlType == null && javaType != null)
- {
- for (KeyPair entry : tupleMap.keySet())
- {
- if (entry.getJavaType() == javaType)
- {
- keyPairList.add(entry);
- }
- }
- }
-
- // Getting the all pairs
- else if (xmlType == null && javaType == null)
- {
- keyPairList.addAll(tupleMap.keySet());
- }
-
- return keyPairList;
- }
-
- /**
- * Get the serializer/deserializer factory pair for the given xmlType, javaType
- * Both xmlType, javaType may be null. In that case, this implementation still
- * returns a FactoryPair that was last registered
- */
- FactoryPair getFactoryPair(QName xmlType, Class javaType)
- {
- FactoryPair fPair = null;
-
- List<KeyPair> keyPairList = getKeyPairs(xmlType, javaType);
- int size = keyPairList.size();
- if (size > 0)
- {
- KeyPair kPair = keyPairList.get(size - 1);
- fPair = (FactoryPair)tupleMap.get(kPair);
- }
-
- return fPair;
- }
-
- protected void registerStandardLiteralTypes()
- {
- registerInternal(BigDecimal.class, Constants.TYPE_LITERAL_DECIMAL, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
-
- registerInternal(BigInteger.class, Constants.TYPE_LITERAL_POSITIVEINTEGER, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(BigInteger.class, Constants.TYPE_LITERAL_NEGATIVEINTEGER, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(BigInteger.class, Constants.TYPE_LITERAL_NONPOSITIVEINTEGER, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(BigInteger.class, Constants.TYPE_LITERAL_NONNEGATIVEINTEGER, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(BigInteger.class, Constants.TYPE_LITERAL_UNSIGNEDLONG, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(BigInteger.class, Constants.TYPE_LITERAL_INTEGER, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
-
- registerInternal(Date.class, Constants.TYPE_LITERAL_DATETIME, new
DateSerializerFactory(), new DateDeserializerFactory());
-
- registerInternal(Calendar.class, Constants.TYPE_LITERAL_DATE, new
CalendarSerializerFactory(), new CalendarDeserializerFactory());
- registerInternal(Calendar.class, Constants.TYPE_LITERAL_TIME, new
CalendarSerializerFactory(), new CalendarDeserializerFactory());
- registerInternal(Calendar.class, Constants.TYPE_LITERAL_DATETIME, new
CalendarSerializerFactory(), new CalendarDeserializerFactory());
-
- registerInternal(QName.class, Constants.TYPE_LITERAL_QNAME, new
QNameSerializerFactory(), new QNameDeserializerFactory());
-
- registerInternal(String.class, Constants.TYPE_LITERAL_ANYSIMPLETYPE, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(String.class, Constants.TYPE_LITERAL_DURATION, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(String.class, Constants.TYPE_LITERAL_GDAY, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(String.class, Constants.TYPE_LITERAL_GMONTH, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(String.class, Constants.TYPE_LITERAL_GMONTHDAY, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(String.class, Constants.TYPE_LITERAL_GYEAR, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(String.class, Constants.TYPE_LITERAL_GYEARMONTH, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(String.class, Constants.TYPE_LITERAL_ID, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(String.class, Constants.TYPE_LITERAL_LANGUAGE, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(String.class, Constants.TYPE_LITERAL_NAME, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(String.class, Constants.TYPE_LITERAL_NCNAME, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(String.class, Constants.TYPE_LITERAL_NMTOKEN, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(String.class, Constants.TYPE_LITERAL_NORMALIZEDSTRING, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(String.class, Constants.TYPE_LITERAL_TOKEN, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(String.class, Constants.TYPE_LITERAL_STRING, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
-
- registerInternal(String[].class, Constants.TYPE_LITERAL_NMTOKENS, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
-
- registerInternal(URI.class, Constants.TYPE_LITERAL_ANYURI, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
-
- registerInternal(boolean.class, Constants.TYPE_LITERAL_BOOLEAN, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(Boolean.class, Constants.TYPE_LITERAL_BOOLEAN, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
-
- registerInternal(byte.class, Constants.TYPE_LITERAL_BYTE, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(Byte.class, Constants.TYPE_LITERAL_BYTE, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
-
- registerInternal(Byte[].class, Constants.TYPE_LITERAL_HEXBINARY, new
HexSerializerFactory(), new HexDeserializerFactory());
- registerInternal(byte[].class, Constants.TYPE_LITERAL_HEXBINARY, new
HexSerializerFactory(), new HexDeserializerFactory());
-
- registerInternal(Byte[].class, Constants.TYPE_LITERAL_BASE64BINARY, new
Base64SerializerFactory(), new Base64DeserializerFactory());
- registerInternal(byte[].class, Constants.TYPE_LITERAL_BASE64BINARY, new
Base64SerializerFactory(), new Base64DeserializerFactory());
-
- registerInternal(double.class, Constants.TYPE_LITERAL_DOUBLE, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(Double.class, Constants.TYPE_LITERAL_DOUBLE, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
-
- registerInternal(float.class, Constants.TYPE_LITERAL_FLOAT, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(Float.class, Constants.TYPE_LITERAL_FLOAT, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
-
- registerInternal(int.class, Constants.TYPE_LITERAL_UNSIGNEDSHORT, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(Integer.class, Constants.TYPE_LITERAL_UNSIGNEDSHORT, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(int.class, Constants.TYPE_LITERAL_INT, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(Integer.class, Constants.TYPE_LITERAL_INT, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
-
- registerInternal(long.class, Constants.TYPE_LITERAL_UNSIGNEDINT, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(Long.class, Constants.TYPE_LITERAL_UNSIGNEDINT, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(long.class, Constants.TYPE_LITERAL_LONG, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(Long.class, Constants.TYPE_LITERAL_LONG, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
-
- registerInternal(short.class, Constants.TYPE_LITERAL_UNSIGNEDBYTE, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(Short.class, Constants.TYPE_LITERAL_UNSIGNEDBYTE, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(short.class, Constants.TYPE_LITERAL_SHORT, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- registerInternal(Short.class, Constants.TYPE_LITERAL_SHORT, new
SimpleSerializerFactory(), new SimpleDeserializerFactory());
- }
-
- /** A tuple of the type {XML typeQName, Java Class, SerializerFactory,
DeserializerFactory}.
- */
- public static class KeyPair
- {
- private QName xmlType;
- private Class javaType;
-
- public KeyPair(QName xmlType, Class javaType)
- {
- this.javaType = javaType;
- this.xmlType = xmlType;
- }
-
- public Class getJavaType()
- {
- return javaType;
- }
-
- public QName getXmlType()
- {
- return xmlType;
- }
-
- public boolean equals(Object o)
- {
- if (this == o) return true;
- if (!(o instanceof KeyPair)) return false;
-
- final KeyPair keyPair = (KeyPair)o;
-
- if (!javaType.equals(keyPair.javaType)) return false;
- if (!xmlType.equals(keyPair.xmlType)) return false;
-
- return true;
- }
-
- public int hashCode()
- {
- int result;
- result = xmlType.hashCode();
- result = 29 * result + javaType.hashCode();
- return result;
- }
-
- public String toString()
- {
- return "[xmlType=" + xmlType + ",javaType=" +
javaType.getName() + "]";
- }
- }
-
- /** A tuple of the type {XML typeQName, Java Class, SerializerFactory,
DeserializerFactory}.
- */
- public static class FactoryPair
- {
- private SerializerFactory serializerFactory;
- private DeserializerFactory deserializerFactory;
-
- FactoryPair(SerializerFactory sf, DeserializerFactory df)
- {
- this.deserializerFactory = df;
- this.serializerFactory = sf;
- }
-
- public DeserializerFactory getDeserializerFactory()
- {
- return deserializerFactory;
- }
-
- public SerializerFactory getSerializerFactory()
- {
- return serializerFactory;
- }
-
- public void setDeserializerFactory(DeserializerFactory df)
- {
- this.deserializerFactory = df;
- }
-
- public void setSerializerFactory(SerializerFactory sf)
- {
- this.serializerFactory = sf;
- }
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/TypeMappingImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/TypeMappingImpl.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/TypeMappingRegistryImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/TypeMappingRegistryImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/TypeMappingRegistryImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,164 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc;
-
-// $Id$
-
-import java.util.HashMap;
-import java.util.Map;
-
-import javax.xml.rpc.JAXRPCException;
-import javax.xml.rpc.encoding.TypeMapping;
-import javax.xml.rpc.encoding.TypeMappingRegistry;
-
-import org.jboss.util.NotImplementedException;
-import org.jboss.ws.Constants;
-
-/**
- * This defines a registry of TypeMapping instances for encoding styles.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 04-Dec-2004
- */
-public class TypeMappingRegistryImpl implements TypeMappingRegistry
-{
- // The registered typeMapping for the literal encoding style
- private Map<String, TypeMappingImpl> typeMappings = new HashMap<String,
TypeMappingImpl>();
-
- public TypeMappingRegistryImpl()
- {
- typeMappings.put(Constants.URI_LITERAL_ENC, new LiteralTypeMapping());
- typeMappings.put(Constants.URI_SOAP11_ENC, new EncodedTypeMapping());
- }
-
- /**
- * Removes all registered TypeMappings and encodingStyleURIs from this
TypeMappingRegistry.
- */
- public void clear()
- {
- typeMappings.clear();
- }
-
- /**
- * Gets the registered default TypeMapping instance.
- * This method returns null if there is no registered default TypeMapping in the
registry.
- * @return The registered default TypeMapping instance or null
- */
- public TypeMapping getDefaultTypeMapping()
- {
- return typeMappings.get(Constants.URI_LITERAL_ENC);
- }
-
- /**
- * Registers the TypeMapping instance that is default for all encoding styles
supported by the TypeMappingRegistry.
- * A default TypeMapping should include serializers and deserializers that are
independent of and usable with any
- * encoding style. Successive invocations of the registerDefault method replace any
existing default TypeMapping instance.
- *
- * If the default TypeMapping is registered, any other TypeMapping instances
registered through the
- * TypeMappingRegistry.register method (for a set of encodingStyle URIs) override the
default TypeMapping.
- *
- * @param mapping TypeMapping instance
- * @throws javax.xml.rpc.JAXRPCException If there is an error in the registration of
the default TypeMapping
- */
- public void registerDefault(TypeMapping mapping)
- {
- throw new NotImplementedException();
- }
-
- /**
- * Creates a new empty TypeMapping object.
- * @return TypeMapping instance
- */
- public TypeMapping createTypeMapping()
- {
- throw new NotImplementedException();
- }
-
- /**
- * Returns the registered TypeMapping for the specified encodingStyle URI. If there is
no registered TypeMapping for
- * the specified encodingStyleURI, this method returns null.
- * @param encodingStyleURI Encoding style specified as an URI
- * @return TypeMapping for the specified encodingStyleURI or null
- */
- public TypeMapping getTypeMapping(String encodingStyleURI)
- {
- assertEncodingStyle(encodingStyleURI);
- return typeMappings.get(encodingStyleURI);
- }
-
- /**
- * Returns a list of registered encodingStyle URIs in this TypeMappingRegistry
instance.
- * @return Array of the registered encodingStyle URIs
- */
- public String[] getRegisteredEncodingStyleURIs()
- {
- return new String[]{Constants.URI_LITERAL_ENC, Constants.URI_SOAP11_ENC};
- }
-
- /**
- * Registers a TypeMapping instance with the TypeMappingRegistry.
- * This method replaces any existing registered TypeMapping instance for the specified
encodingStyleURI.
- *
- * @param encodingStyleURI An encoding style specified as an URI.
- * @param mapping TypeMapping instance
- * @return Previous TypeMapping associated with the specified encodingStyleURI, or
null if there was no
- * TypeMapping associated with the specified encodingStyleURI
- * @throws javax.xml.rpc.JAXRPCException If there is an error in the registration of
the TypeMapping for the specified encodingStyleURI.
- */
- public TypeMapping register(String encodingStyleURI, TypeMapping mapping)
- {
- throw new NotImplementedException();
- }
-
- /**
- * Unregisters a TypeMapping instance, if present, from the specified
encodingStyleURI.
- * @param encodingStyleURI Encoding style specified as an URI
- * @return TypeMapping instance that has been unregistered or null if there was no
- * TypeMapping registered for the specified encodingStyleURI
- */
- public TypeMapping unregisterTypeMapping(String encodingStyleURI)
- {
- throw new NotImplementedException();
- }
-
- /**
- * Removes a TypeMapping from the TypeMappingRegistry.
- * A TypeMapping is associated with 1 or more encodingStyleURIs. This method
unregisters the specified
- * TypeMapping instance from all associated encodingStyleURIs and then removes this
TypeMapping
- * instance from the registry.
- *
- * @param mapping TypeMapping to be removed
- * @return true if specified TypeMapping is removed from the TypeMappingRegistry;
- * false if the specified TypeMapping was not in the TypeMappingRegistry
- */
- public boolean removeTypeMapping(TypeMapping mapping)
- {
- throw new NotImplementedException();
- }
-
- /** Assert the literal encoding style */
- private void assertEncodingStyle(String encURI)
- {
- if (Constants.URI_LITERAL_ENC.equals(encURI) == false &&
Constants.URI_SOAP11_ENC.equals(encURI) == false)
- throw new JAXRPCException("Unsupported encoding style: " + encURI);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/TypeMappingRegistryImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/TypeMappingRegistryImpl.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/UnqualifiedCallParameter.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/UnqualifiedCallParameter.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/UnqualifiedCallParameter.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,47 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc;
-
-// $Id$
-
-import javax.xml.namespace.QName;
-
-/**
- * This type is used in DII clients that do not qualify the call parameter with a java
type.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 02-Aug-2005
- */
-public class UnqualifiedCallParameter
-{
- private QName xmlType;
-
- public UnqualifiedCallParameter(QName xmlType)
- {
- this.xmlType = xmlType;
- }
-
- public String toString()
- {
- return getClass().getName() + "[xmlType=" + xmlType +"]";
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/UnqualifiedCallParameter.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/UnqualifiedCallParameter.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/UnqualifiedFaultException.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/UnqualifiedFaultException.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/UnqualifiedFaultException.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,47 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc;
-
-// $Id$
-
-import javax.xml.namespace.QName;
-
-/**
- * This type is used in when there is no XML/Java mapping available.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 02-Aug-2005
- */
-public class UnqualifiedFaultException extends Exception
-{
- private QName xmlType;
-
- public UnqualifiedFaultException(QName xmlType)
- {
- this.xmlType = xmlType;
- }
-
- public String toString()
- {
- return getClass().getName() + "[xmlType=" + xmlType +"]";
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/UnqualifiedFaultException.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/UnqualifiedFaultException.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/Use.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/Use.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/Use.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,74 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc;
-
-import org.jboss.ws.Constants;
-
-// $Id$
-
-/** A type-safe enumeration for encoding use.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 16-Oct-2005
- */
-public class Use
-{
- private String use;
-
- public static final Use LITERAL = new Use("literal");
- public static final Use ENCODED = new Use("encoded");
-
- private Use(String use)
- {
- this.use = use;
- }
-
- public static Use getDefaultUse()
- {
- return LITERAL;
- }
-
- public static Use valueOf(String encodingStyle)
- {
- if (Constants.URI_LITERAL_ENC.equals(encodingStyle) ||
LITERAL.use.equals(encodingStyle))
- return LITERAL;
- if (Constants.URI_SOAP11_ENC.equals(encodingStyle) ||
ENCODED.use.equals(encodingStyle))
- return ENCODED;
-
- throw new IllegalArgumentException("Unsupported encoding style: " +
encodingStyle);
- }
-
- public String toURI()
- {
- String encURI = null;
- if (this == LITERAL)
- encURI = Constants.URI_LITERAL_ENC;
- else if (this == ENCODED)
- encURI = Constants.URI_SOAP11_ENC;
- return encURI;
- }
-
- public String toString()
- {
- return use;
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/Use.java (from rev
1605, branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/Use.java)
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding (from rev
1605, branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/Base64Deserializer.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/Base64Deserializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/Base64Deserializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,80 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-// $Id$
-
-import javax.xml.namespace.QName;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.core.utils.DOMUtils;
-import org.jboss.ws.extensions.xop.XOPContext;
-import org.jboss.ws.extensions.xop.jaxrpc.XOPUnmarshallerImpl;
-import org.jboss.ws.WSException;
-import org.jboss.xb.binding.SimpleTypeBindings;
-import org.jboss.xb.binding.sunday.xop.XOPUnmarshaller;
-import org.jboss.xb.binding.sunday.unmarshalling.SchemaBinding;
-import org.w3c.dom.Element;
-
-import java.io.IOException;
-
-/**
- * Deserializer for Base64
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 04-Dec-2004
- */
-public class Base64Deserializer extends DeserializerSupport
-{
- // provide logging
- private static final Logger log = Logger.getLogger(Base64Deserializer.class);
-
- public Object deserialize(QName xmlName, QName xmlType, String xmlFragment,
SerializationContext serContext) throws BindingException
- {
- log.debug("deserialize: [xmlName=" + xmlName + ",xmlType=" +
xmlType + "]");
-
- byte[] value = null;
-
- String valueStr = unwrapValueStr(xmlFragment);
-
- if(XOPContext.isXOPMessage())
- {
- try
- {
- Element xopInclude = DOMUtils.parse(valueStr);
- String cid = xopInclude.getAttribute("href");
- XOPUnmarshaller xopUnmarshaller = new XOPUnmarshallerImpl();
- value = xopUnmarshaller.getAttachmentAsByteArray(cid);
- }
- catch (IOException e)
- {
- throw new WSException("Failed to parse xopInclude element");
- }
- }
- else if (valueStr != null)
- {
- value = SimpleTypeBindings.unmarshalBase64(valueStr);
- }
-
- return value;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/Base64Deserializer.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/Base64Deserializer.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/Base64DeserializerFactory.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/Base64DeserializerFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/Base64DeserializerFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,40 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-
-// $Id$
-
-
-/**
- * DeserializerFactory for base64.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 04-Dec-2004
- */
-public class Base64DeserializerFactory extends DeserializerFactoryBase
-{
- public DeserializerSupport getDeserializer()
- {
- return new Base64Deserializer();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/Base64DeserializerFactory.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/Base64DeserializerFactory.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/Base64Serializer.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/Base64Serializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/Base64Serializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,74 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-// $Id$
-
-import javax.xml.namespace.QName;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.core.utils.JavaUtils;
-import org.jboss.ws.extensions.xop.XOPContext;
-import org.jboss.ws.extensions.xop.jaxrpc.XOPMarshallerImpl;
-import org.jboss.xb.binding.NamespaceRegistry;
-import org.jboss.xb.binding.SimpleTypeBindings;
-import org.jboss.xb.binding.sunday.xop.XOPMarshaller;
-import org.jboss.xb.binding.sunday.xop.XOPObject;
-import org.w3c.dom.NamedNodeMap;
-
-/**
- * Serializer for base64
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 04-Dec-2004
- */
-public class Base64Serializer extends SerializerSupport
-{
- // provide logging
- private static final Logger log = Logger.getLogger(Base64Serializer.class);
-
- public String serialize(QName xmlName, QName xmlType, Object value,
SerializationContext serContext, NamedNodeMap attributes) throws BindingException
- {
- log.debug("serialize: [xmlName=" + xmlName + ",xmlType=" +
xmlType + "]");
-
- String xmlFragment = null;
- NamespaceRegistry nsRegistry = serContext.getNamespaceRegistry();
-
- if(XOPContext.isXOPMessage())
- {
- XOPMarshaller xopMarshaller = new XOPMarshallerImpl();
- XOPObject xopObject = new XOPObject(value);
- xopObject.setContentType("application/octet-stream");
- String cid = xopMarshaller.addMtomAttachment(xopObject,
xmlName.getNamespaceURI(), xmlType.getLocalPart() );
- String xopInclude = "<xop:Include
xmlns:xop='http://www.w3.org/2004/08/xop/include'
href='"+cid+"'/>";
- xmlFragment = wrapValueStr(xmlName, xopInclude, nsRegistry, attributes, false);
- }
- else
- {
- value = JavaUtils.getPrimitiveValue(value);
- String valueStr = SimpleTypeBindings.marshalBase64((byte[])value);
- xmlFragment = wrapValueStr(xmlName, valueStr, nsRegistry, attributes, true);
- }
-
- return xmlFragment;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/Base64Serializer.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/Base64Serializer.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/Base64SerializerFactory.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/Base64SerializerFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/Base64SerializerFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,40 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-
-// $Id$
-
-
-/**
- * SerializerFactory for base64Binary.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 04-Dec-2004
- */
-public class Base64SerializerFactory extends SerializerFactoryBase
-{
- public SerializerSupport getSerializer()
- {
- return new Base64Serializer();
- }
-}
\ No newline at end of file
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/Base64SerializerFactory.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/Base64SerializerFactory.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/BindingException.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/BindingException.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/BindingException.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,92 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-// $Id$
-
-/** An exception that may occur during message binding
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 16-Oct-2004
- */
-public class BindingException extends Exception
-{
- /**
- * Constructs a new exception with <code>null</code> as its detail
message.
- * The cause is not initialized, and may subsequently be initialized by a
- * call to {@link #initCause}.
- */
- public BindingException()
- {
- }
-
- /**
- * Constructs a new exception with the specified detail message. The
- * cause is not initialized, and may subsequently be initialized by
- * a call to {@link #initCause}.
- *
- * @param message the detail message. The detail message is saved for
- * later retrieval by the {@link #getMessage()} method.
- */
- public BindingException(String message)
- {
- super(message);
- }
-
- /**
- * Constructs a new exception with the specified cause and a detail
- * message of <tt>(cause==null ? null : cause.toString())</tt> (which
- * typically contains the class and detail message of <tt>cause</tt>).
- * This constructor is useful for exceptions that are little more than
- * wrappers for other throwables (for example, {@link
- * java.security.PrivilegedActionException}).
- *
- * @param cause the cause (which is saved for later retrieval by the
- * {@link #getCause()} method). (A <tt>null</tt> value is
- * permitted, and indicates that the cause is nonexistent or
- * unknown.)
- * @since 1.4
- */
- public BindingException(Throwable cause)
- {
- super(cause);
- }
-
- /**
- * Constructs a new exception with the specified detail message and
- * cause. <p>Note that the detail message associated with
- * <code>cause</code> is <i>not</i> automatically incorporated
in
- * this exception's detail message.
- *
- * @param message the detail message (which is saved for later retrieval
- * by the {@link #getMessage()} method).
- * @param cause the cause (which is saved for later retrieval by the
- * {@link #getCause()} method). (A <tt>null</tt> value is
- * permitted, and indicates that the cause is nonexistent or
- * unknown.)
- * @since 1.4
- */
- public BindingException(String message, Throwable cause)
- {
- super(message, cause);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/BindingException.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/BindingException.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/CalendarDeserializer.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/CalendarDeserializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/CalendarDeserializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,57 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-// $Id$
-
-import java.util.Calendar;
-
-import javax.xml.namespace.QName;
-
-import org.jboss.logging.Logger;
-import org.jboss.xb.binding.SimpleTypeBindings;
-
-/**
- * @author Thomas.Diesler(a)jboss.org
- * @since 04-Dec-2004
- * @see <a
href="http://www.w3.org/TR/xmlschema-2/#dateTime">XML Schema
3.2.16</a>
- */
-public class CalendarDeserializer extends DeserializerSupport
-{
- // provide logging
- private static final Logger log = Logger.getLogger(CalendarDeserializer.class);
-
- public Object deserialize(QName xmlName, QName xmlType, String xmlFragment,
SerializationContext serContext) throws BindingException
- {
- log.debug("deserialize: [xmlName=" + xmlName + ",xmlType=" +
xmlType + "]");
-
- Calendar value = null;
-
- String valueStr = unwrapValueStr(xmlFragment);
- if (valueStr != null)
- {
- value = SimpleTypeBindings.unmarshalDateTime(valueStr);
- }
-
- return value;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/CalendarDeserializer.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/CalendarDeserializer.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/CalendarDeserializerFactory.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/CalendarDeserializerFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/CalendarDeserializerFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,41 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-
-// $Id$
-
-
-/**
- * A CalendarDeserializer Factory
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 04-Dec-2004
- */
-public class CalendarDeserializerFactory extends DeserializerFactoryBase
-{
-
- public DeserializerSupport getDeserializer()
- {
- return new CalendarDeserializer();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/CalendarDeserializerFactory.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/CalendarDeserializerFactory.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/CalendarSerializer.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/CalendarSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/CalendarSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,55 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-// $Id$
-
-import java.util.Calendar;
-
-import javax.xml.namespace.QName;
-
-import org.jboss.logging.Logger;
-import org.jboss.xb.binding.NamespaceRegistry;
-import org.jboss.xb.binding.SimpleTypeBindings;
-import org.w3c.dom.NamedNodeMap;
-
-/**
- * @author Thomas.Diesler(a)jboss.org
- * @since 04-Dec-2004
- * @see <a
href="http://www.w3.org/TR/xmlschema-2/#dateTime">XML Schema
3.2.16</a>
- */
-public class CalendarSerializer extends SerializerSupport
-{
- // provide logging
- private static final Logger log = Logger.getLogger(CalendarSerializer.class);
-
- public String serialize(QName xmlName, QName xmlType, Object value,
SerializationContext serContext, NamedNodeMap attributes) throws BindingException
- {
- log.debug("serialize: [xmlName=" + xmlName + ",xmlType=" +
xmlType + "]");
-
- String valueStr = SimpleTypeBindings.marshalDateTime((Calendar)value);
-
- NamespaceRegistry nsRegistry = serContext.getNamespaceRegistry();
- String xmlFragment = wrapValueStr(xmlName, valueStr, nsRegistry, attributes,
true);
- return xmlFragment;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/CalendarSerializer.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/CalendarSerializer.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/CalendarSerializerFactory.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/CalendarSerializerFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/CalendarSerializerFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,38 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-
-// $Id$
-
-
-/**
- * @author Thomas.Diesler(a)jboss.org
- * @since 04-Dec-2004
- */
-public class CalendarSerializerFactory extends SerializerFactoryBase
-{
- public SerializerSupport getSerializer()
- {
- return new CalendarSerializer();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/CalendarSerializerFactory.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/CalendarSerializerFactory.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ComplexTypeDeserializer.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ComplexTypeDeserializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ComplexTypeDeserializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,36 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.jaxrpc.binding;
-
-
-// $Id$
-
-/**
- * A Deserializer that can handle complex types by delegating to JAXB.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 04-Dec-2004
- */
-public abstract class ComplexTypeDeserializer extends DeserializerSupport
-{
-
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ComplexTypeDeserializer.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ComplexTypeDeserializer.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ComplexTypeSerializer.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ComplexTypeSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ComplexTypeSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,36 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.jaxrpc.binding;
-
-
-// $Id$
-
-/**
- * A Serializer that can handle complex types by delegating to JAXB.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 04-Dec-2004
- */
-public abstract class ComplexTypeSerializer extends SerializerSupport
-{
-
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ComplexTypeSerializer.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ComplexTypeSerializer.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DateDeserializer.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DateDeserializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DateDeserializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,58 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-// $Id$
-
-import java.util.Calendar;
-import java.util.Date;
-
-import javax.xml.namespace.QName;
-
-import org.jboss.logging.Logger;
-import org.jboss.xb.binding.SimpleTypeBindings;
-
-/**
- * @author Thomas.Diesler(a)jboss.org
- * @since 04-Dec-2004
- */
-public class DateDeserializer extends DeserializerSupport
-{
- // provide logging
- private static final Logger log = Logger.getLogger(DateDeserializer.class);
-
- public Object deserialize(QName xmlName, QName xmlType, String xmlFragment,
SerializationContext serContext) throws BindingException
- {
- log.debug("deserialize: [xmlName=" + xmlName + ",xmlType=" +
xmlType + "]");
-
- Date value = null;
-
- String valueStr = unwrapValueStr(xmlFragment);
- if (valueStr != null)
- {
- Calendar cal = SimpleTypeBindings.unmarshalDateTime(valueStr);
- value = cal.getTime();
- }
-
- return value;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DateDeserializer.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DateDeserializer.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DateDeserializerFactory.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DateDeserializerFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DateDeserializerFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,40 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-
-// $Id$
-
-
-/**
- * A DateDeserializer Factory
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 04-Dec-2004
- */
-public class DateDeserializerFactory extends DeserializerFactoryBase
-{
- public DeserializerSupport getDeserializer()
- {
- return new DateDeserializer();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DateDeserializerFactory.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DateDeserializerFactory.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DateSerializer.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DateSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DateSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,65 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-// $Id$
-
-import java.util.Calendar;
-import java.util.Date;
-import java.util.GregorianCalendar;
-
-import javax.xml.namespace.QName;
-
-import org.jboss.logging.Logger;
-import org.jboss.xb.binding.NamespaceRegistry;
-import org.jboss.xb.binding.SimpleTypeBindings;
-import org.w3c.dom.NamedNodeMap;
-
-/**
- * Serializer for Dates.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 04-Dec-2004
- * @see <a
href="http://www.w3.org/TR/xmlschema-2/#dateTime">XML Schema
3.2.16</a>
- */
-public class DateSerializer extends SerializerSupport
-{
- // provide logging
- private static final Logger log = Logger.getLogger(DateSerializer.class);
-
- public String serialize(QName xmlName, QName xmlType, Object value,
SerializationContext serContext, NamedNodeMap attributes) throws BindingException
- {
- log.debug("serialize: [xmlName=" + xmlName + ",xmlType=" +
xmlType + "]");
- if (value != null)
- {
- Calendar cal = new GregorianCalendar();
- cal.setTime((Date)value);
- value = cal;
- }
-
- String valueStr = SimpleTypeBindings.marshalDateTime((Calendar)value);
-
- NamespaceRegistry nsRegistry = serContext.getNamespaceRegistry();
- String xmlFragment = wrapValueStr(xmlName, valueStr, nsRegistry, attributes,
true);
- return xmlFragment;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DateSerializer.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DateSerializer.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DateSerializerFactory.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DateSerializerFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DateSerializerFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,40 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-
-// $Id$
-
-
-/**
- * SerializerFactory for Date primitives
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 04-Dec-2004
- */
-public class DateSerializerFactory extends SerializerFactoryBase
-{
- public SerializerSupport getSerializer()
- {
- return new DateSerializer();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DateSerializerFactory.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DateSerializerFactory.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DeserializerFactoryBase.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DeserializerFactoryBase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DeserializerFactoryBase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,50 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-// $Id$
-
-import java.util.Iterator;
-
-import javax.xml.rpc.encoding.Deserializer;
-import javax.xml.rpc.encoding.DeserializerFactory;
-
-import org.jboss.util.NotImplementedException;
-
-/**
- * @author Thomas.Diesler(a)jboss.org
- * @since 04-Dec-2004
- */
-public abstract class DeserializerFactoryBase implements DeserializerFactory
-{
- public abstract DeserializerSupport getDeserializer() throws BindingException;
-
- public Deserializer getDeserializerAs(String mechanismType)
- {
- throw new NotImplementedException();
- }
-
- public Iterator getSupportedMechanismTypes()
- {
- throw new NotImplementedException();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DeserializerFactoryBase.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DeserializerFactoryBase.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DeserializerSupport.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DeserializerSupport.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DeserializerSupport.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,93 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.jaxrpc.binding;
-
-// $Id$
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.encoding.Deserializer;
-
-import org.jboss.util.NotImplementedException;
-import org.jboss.ws.core.utils.XMLPredefinedEntityReferenceResolver;
-
-/** The base class for all Deserializers.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 04-Dec-2004
- */
-public abstract class DeserializerSupport implements Deserializer
-{
-
- /** Deserialize an XML fragment to an object value
- *
- * @param xmlName The root element name of the resulting fragment
- * @param xmlType The associated schema type
- * @param xmlFragment The XML fragment to deserialize
- * @param serContext The serialization context
- */
- public abstract Object deserialize(QName xmlName, QName xmlType, String xmlFragment,
SerializationContext serContext) throws BindingException;
-
- /** Unwrap the value string from the XML fragment
- *
- * @return The value string or null if the startTag contains a xsi:nil='true'
attribute
- */
- protected String unwrapValueStr(String xmlFragment)
- {
- // We only scan for :nil if the xmlFragment is an empty element
- if (isEmptyElement(xmlFragment))
- {
- return (isNil(xmlFragment) ? null : "");
- }
-
- int endOfStartTag = xmlFragment.indexOf(">");
- int startOfEndTag = xmlFragment.lastIndexOf("</");
- if (endOfStartTag < 0 || startOfEndTag < 0)
- throw new IllegalArgumentException("Invalid XML fragment: " +
xmlFragment);
-
- String valueStr = xmlFragment.substring(endOfStartTag + 1, startOfEndTag);
-
- return XMLPredefinedEntityReferenceResolver.resolve(valueStr);
- }
-
- protected boolean isEmptyElement(String xmlFragment)
- {
- return xmlFragment.startsWith("<") &&
xmlFragment.endsWith("/>");
- }
-
- protected boolean isNil(String xmlFragment)
- {
- boolean isNil = false;
- if (isEmptyElement(xmlFragment))
- {
- int endOfStartTag = xmlFragment.indexOf(">");
- String startTag = xmlFragment.substring(0, endOfStartTag);
- isNil = startTag.indexOf(":nil='1'") > 0 ||
startTag.indexOf(":nil=\"1\"") > 0;
- isNil = isNil || startTag.indexOf(":nil='true'") > 0 ||
startTag.indexOf(":nil=\"true\"") > 0;
- }
- return isNil;
- }
-
- public String getMechanismType()
- {
- throw new NotImplementedException();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DeserializerSupport.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/DeserializerSupport.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ElementDeserializer.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ElementDeserializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ElementDeserializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,62 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-// $Id$
-
-import javax.xml.namespace.QName;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.core.utils.DOMUtils;
-import org.w3c.dom.Element;
-
-/**
- * A deserializer that can handle xsd:anyType
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 23-Jun-2005
- */
-public class ElementDeserializer extends DeserializerSupport
-{
- // provide logging
- private static final Logger log = Logger.getLogger(ElementDeserializer.class);
-
- /** Deserialize the given simple xmlString
- */
- public Object deserialize(QName xmlName, QName xmlType, String xmlFragment,
SerializationContext serContext) throws BindingException
- {
- log.debug("deserialize: [xmlName=" + xmlName + ",xmlType=" +
xmlType + "]");
- try
- {
- Element domElement = DOMUtils.parse(xmlFragment);
- return domElement;
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Exception ex)
- {
- throw new BindingException();
- }
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ElementDeserializer.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ElementDeserializer.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ElementDeserializerFactory.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ElementDeserializerFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ElementDeserializerFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,40 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-
-// $Id$
-
-
-/**
- * A factory for a Deserializer that can handle XMLSchema simple types.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 18-Oct-2004
- */
-public class ElementDeserializerFactory extends DeserializerFactoryBase
-{
- public DeserializerSupport getDeserializer()
- {
- return new ElementDeserializer();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ElementDeserializerFactory.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ElementDeserializerFactory.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ElementSerializer.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ElementSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ElementSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,62 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-// $Id$
-
-import javax.xml.namespace.QName;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.core.utils.DOMWriter;
-import org.w3c.dom.Element;
-import org.w3c.dom.NamedNodeMap;
-
-/**
- * A serializer that can handle xsd:anyType
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 18-Oct-2004
- */
-public class ElementSerializer extends SerializerSupport
-{
- // provide logging
- private static final Logger log = Logger.getLogger(ElementSerializer.class);
-
- /** Marshal the value for a given XMLSchema type
- * @param xmlType local part of the schema type
- * @param value the value to marshal
- * @param serContext
- * @return the string representation od the value
- */
- public String serialize(QName xmlName, QName xmlType, Object value,
SerializationContext serContext, NamedNodeMap attributes)
- throws BindingException
- {
- log.debug("serialize: [xmlName=" + xmlName + ",xmlType=" +
xmlType + "]");
- if (value == null)
- throw new IllegalArgumentException("Element value cannot be null");
- if ((value instanceof Element) == false)
- throw new IllegalArgumentException("Value is not a Element: " +
value.getClass().getName());
-
- String xmlFragment = DOMWriter.printNode((Element)value, false);
- return xmlFragment;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ElementSerializer.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ElementSerializer.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ElementSerializerFactory.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ElementSerializerFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ElementSerializerFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,39 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-
-// $Id$
-
-/**
- * A factory for a Serializer that can handle xsd:anyType
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 23-Jun-2005
- */
-public class ElementSerializerFactory extends SerializerFactoryBase
-{
- public SerializerSupport getSerializer()
- {
- return new ElementSerializer();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ElementSerializerFactory.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/ElementSerializerFactory.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/HexDeserializer.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/HexDeserializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/HexDeserializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,57 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-// $Id$
-
-import javax.xml.namespace.QName;
-
-import org.jboss.logging.Logger;
-import org.jboss.xb.binding.SimpleTypeBindings;
-
-/**
- * Deserializer for hexBinary.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 04-Dec-2004
- * @see <a
href="http://www.w3.org/TR/xmlschema-2/#hexBinary">XML Schema
3.2.16</a>
- */
-public class HexDeserializer extends DeserializerSupport
-{
- // provide logging
- private static final Logger log = Logger.getLogger(HexDeserializer.class);
-
- public Object deserialize(QName xmlName, QName xmlType, String xmlFragment,
SerializationContext serContext) throws BindingException
- {
- log.debug("deserialize: [xmlName=" + xmlName + ",xmlType=" +
xmlType + "]");
-
- byte[] value = null;
-
- String valueStr = unwrapValueStr(xmlFragment);
- if (valueStr != null)
- {
- value = SimpleTypeBindings.unmarshalHexBinary(valueStr);
- }
-
- return value;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/HexDeserializer.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/HexDeserializer.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/HexDeserializerFactory.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/HexDeserializerFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/HexDeserializerFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,40 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-
-// $Id$
-
-
-/**
- * DeserializerFactory for hexBinary.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 04-Dec-2004
- */
-public class HexDeserializerFactory extends DeserializerFactoryBase
-{
- public DeserializerSupport getDeserializer()
- {
- return new HexDeserializer();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/HexDeserializerFactory.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/HexDeserializerFactory.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/HexSerializer.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/HexSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/HexSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,57 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-// $Id$
-
-import javax.xml.namespace.QName;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.core.utils.JavaUtils;
-import org.jboss.xb.binding.NamespaceRegistry;
-import org.jboss.xb.binding.SimpleTypeBindings;
-import org.w3c.dom.NamedNodeMap;
-
-/**
- * Serializer for hexBinary.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 04-Dec-2004
- * @see <a
href="http://www.w3.org/TR/xmlschema-2/#hexBinary">XML Schema
3.2.16</a>
- */
-public class HexSerializer extends SerializerSupport
-{
- // provide logging
- private static final Logger log = Logger.getLogger(HexSerializer.class);
-
- public String serialize(QName xmlName, QName xmlType, Object value,
SerializationContext serContext, NamedNodeMap attributes) throws BindingException
- {
- log.debug("serialize: [xmlName=" + xmlName + ",xmlType=" +
xmlType + "]");
-
- value = JavaUtils.getPrimitiveValue(value);
- String valueStr = SimpleTypeBindings.marshalHexBinary((byte[])value);
-
- NamespaceRegistry nsRegistry = serContext.getNamespaceRegistry();
- String xmlFragment = wrapValueStr(xmlName, valueStr, nsRegistry, attributes,
true);
- return xmlFragment;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/HexSerializer.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/HexSerializer.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/HexSerializerFactory.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/HexSerializerFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/HexSerializerFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,40 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-
-// $Id$
-
-
-/**
- * SerializerFactory for hexBinary.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 04-Dec-2004
- */
-public class HexSerializerFactory extends SerializerFactoryBase
-{
- public SerializerSupport getSerializer()
- {
- return new HexSerializer();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/HexSerializerFactory.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/HexSerializerFactory.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/JBossXBDeserializer.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/JBossXBDeserializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/JBossXBDeserializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,110 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.jaxrpc.binding;
-
-// $Id$
-
-import java.io.ByteArrayInputStream;
-
-import javax.xml.namespace.QName;
-
-import org.apache.xerces.xs.XSModel;
-import org.jboss.logging.Logger;
-import org.jboss.ws.core.jaxrpc.SerializationContextJAXRPC;
-import org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBConstants;
-import org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBUnmarshaller;
-import org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBUnmarshallerImpl;
-import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
-
-/**
- * A Deserializer that can handle complex types by delegating to JAXB.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 04-Dec-2004
- */
-public class JBossXBDeserializer extends ComplexTypeDeserializer
-{
- // provide logging
- private static final Logger log = Logger.getLogger(JBossXBDeserializer.class);
-
- private JBossXBUnmarshaller unmarshaller;
-
- public JBossXBDeserializer() throws BindingException
- {
- // Get the JAXB marshaller for complex objects
- unmarshaller = new JBossXBUnmarshallerImpl();
- }
-
- /**
- * For unmarshalling the WS layer passes to the JAXB layer
- *
- * - required self contained xml content
- * - required map of packaged or generated XSDSchema
- * - optional QName of the root complex type
- * - optional instance of JavaWsdlMapping
- *
- * The xmlType is redundant if the root element name corresponds to a global element
definition in schema.
- * If the java mapping is null, default mapping rules apply.
- *
- * The result is an object instance or null.
- * In case of an unmarshalling problem a descriptive exception is thrown.
- */
- public Object deserialize(QName xmlName, QName xmlType, String val,
SerializationContext serContext) throws BindingException
- {
- log.debug("deserialize: [xmlName=" + xmlName + ",xmlType=" +
xmlType + "]");
-
- // Expect the specific JAXRPC serialization context
- SerializationContextJAXRPC jaxrpcContext = (SerializationContextJAXRPC)serContext;
-
- Object value = null;
- String typeName = xmlType.getLocalPart();
-
- try
- {
- // Get the parsed model
- XSModel model = jaxrpcContext.getXsModel();
-
- // Get the jaxrpc-mapping.xml meta data
- JavaWsdlMapping jaxrpcMapping = jaxrpcContext.getJavaWsdlMapping();
-
- unmarshaller.setProperty(JBossXBConstants.JBXB_XS_MODEL, model);
- unmarshaller.setProperty(JBossXBConstants.JBXB_ROOT_QNAME, xmlName);
- unmarshaller.setProperty(JBossXBConstants.JBXB_TYPE_QNAME, xmlType);
- unmarshaller.setProperty(JBossXBConstants.JBXB_JAVA_MAPPING, jaxrpcMapping);
-
- ByteArrayInputStream ins = new
ByteArrayInputStream(val.getBytes("UTF-8"));
- value = unmarshaller.unmarshal(ins);
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Exception ex)
- {
- throw new BindingException(ex);
- }
-
- log.debug("deserialized: " + (value != null ? value.getClass().getName()
: null));
- return value;
-
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/JBossXBDeserializer.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/JBossXBDeserializer.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/JBossXBDeserializerFactory.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/JBossXBDeserializerFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/JBossXBDeserializerFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,40 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-
-// $Id$
-
-/**
- * A factory for a Deserializer that can handle complex types
- * by delegating to JAXB.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 04-Dec-2004
- */
-public class JBossXBDeserializerFactory extends DeserializerFactoryBase
-{
- public DeserializerSupport getDeserializer() throws BindingException
- {
- return new JBossXBDeserializer();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/JBossXBDeserializerFactory.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/JBossXBDeserializerFactory.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/JBossXBSerializer.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/JBossXBSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/JBossXBSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,122 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.jaxrpc.binding;
-
-// $Id$
-
-import org.apache.xerces.xs.XSModel;
-import org.jboss.logging.Logger;
-import org.jboss.ws.core.jaxrpc.SerializationContextJAXRPC;
-import org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBConstants;
-import org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBMarshaller;
-import org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBMarshallerImpl;
-import org.jboss.ws.core.jaxrpc.binding.jbossxb.XercesXSMarshallerImpl;
-import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
-import org.w3c.dom.NamedNodeMap;
-
-import javax.xml.namespace.QName;
-import java.io.StringWriter;
-
-/**
- * A Serializer that can handle complex types by delegating to JAXB.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 04-Dec-2004
- */
-public class JBossXBSerializer extends ComplexTypeSerializer
-{
- // provide logging
- private static final Logger log = Logger.getLogger(JBossXBSerializer.class);
-
- private JBossXBMarshaller marshaller;
-
- public JBossXBSerializer() throws BindingException
- {
- // Get the JAXB marshaller for complex objects
- marshaller = new JBossXBMarshallerImpl();
- }
-
- /**
- * For marshalling the WS layer passes to the JAXB layer
- *
- * - optional java object instance
- * - required map of packaged or generated XSDSchema
- * - required QName of the root element
- * - optional QName of the root complex type
- * - optional instance of JavaWsdlMapping
- *
- * If the object value is null, the corresponding XML representation of the nillable
element should be marshalled.
- * The xmlType is redundant if the xmlName corresponds to a global element definition
in schema.
- * If the java mapping is null, default mapping rules apply.
- *
- * The result is a self contained (i.e. contains all namespace definitions) XML
document without the XML declaration.
- * In case of an marshalling problem a descriptive exception is thrown.
- */
- public String serialize(QName xmlName, QName xmlType, Object value,
SerializationContext serContext, NamedNodeMap attributes) throws BindingException
- {
- log.debug("serialize: [xmlName=" + xmlName + ",xmlType=" +
xmlType + "]");
-
- // Expect the specific JAXRPC serialization context
- SerializationContextJAXRPC jaxrpcContext = (SerializationContextJAXRPC)serContext;
-
- try
- {
- // Get the parsed model
- XSModel model = jaxrpcContext.getXsModel();
-
- // Get the jaxrpc-mapping.xml object graph
- JavaWsdlMapping jaxrpcMapping = jaxrpcContext.getJavaWsdlMapping();
-
- // schemabinding marshaller is the default delegate
- JBossXBMarshaller delegate = marshaller;
-
- if(value instanceof Exception)
- {
- // todo: CTS workaround for custom exceptions, clarify when Alexey is back
- // causes NPE in MarshallerImpl:458
- delegate = new XercesXSMarshallerImpl();
- }
-
- // marshalling context
- delegate.setProperty(JBossXBConstants.JBXB_XS_MODEL, model);
- delegate.setProperty(JBossXBConstants.JBXB_TYPE_QNAME, xmlType);
- delegate.setProperty(JBossXBConstants.JBXB_ROOT_QNAME, xmlName);
- delegate.setProperty(JBossXBConstants.JBXB_JAVA_MAPPING, jaxrpcMapping);
-
- // marshall
- StringWriter strwr = new StringWriter();
- delegate.marshal(value, strwr);
- String xmlFragment = strwr.toString();
-
- log.debug("serialized: " + xmlFragment);
- return xmlFragment;
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Exception ex)
- {
- throw new BindingException(ex);
- }
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/JBossXBSerializer.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/JBossXBSerializer.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/JBossXBSerializerFactory.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/JBossXBSerializerFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/JBossXBSerializerFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,41 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-
-// $Id$
-
-
-/**
- * A factory for a Serializer that can handle complex types
- * by delegating to JAXB.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 04-Dec-2004
- */
-public class JBossXBSerializerFactory extends SerializerFactoryBase
-{
- public SerializerSupport getSerializer() throws BindingException
- {
- return new JBossXBSerializer();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/JBossXBSerializerFactory.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/JBossXBSerializerFactory.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/NullValueSerializer.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/NullValueSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/NullValueSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,65 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.jaxrpc.binding;
-
-// $Id$
-
-import javax.xml.namespace.QName;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.Constants;
-import org.jboss.xb.binding.NamespaceRegistry;
-import org.w3c.dom.NamedNodeMap;
-
-/**
- * Serializer for null values.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 24-Jun-2005
- */
-public class NullValueSerializer extends SerializerSupport
-{
- // provide logging
- private static final Logger log = Logger.getLogger(NullValueSerializer.class);
-
- /**
- * Serializes an object null value.
- *
- * If a message part of an RPC parameter is defined like this
- *
- * <message name='SomeMessage'>
- * <part name='partName' element='someElement'/>
- * </message>
- *
- * it is possible that the element definition does not allow
- * null values. In that case an error should be generated.
- */
- public String serialize(QName xmlName, QName xmlType, Object value,
SerializationContext serContext, NamedNodeMap attributes) throws BindingException
- {
- log.debug("serialize: [xmlName=" + xmlName + ",xmlType=" +
xmlType + "]");
-
- NamespaceRegistry nsRegistry = serContext.getNamespaceRegistry();
- nsRegistry.registerURI(Constants.NS_SCHEMA_XSI, Constants.PREFIX_XSI);
- String xmlFragment = wrapValueStr(xmlName, null, nsRegistry, attributes, true);
- return xmlFragment;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/NullValueSerializer.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/NullValueSerializer.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/QNameDeserializer.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/QNameDeserializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/QNameDeserializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,95 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.jaxrpc.binding;
-
-// $Id$
-
-import java.io.IOException;
-
-import javax.xml.namespace.QName;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.core.utils.DOMUtils;
-import org.jboss.xb.binding.NamespaceRegistry;
-import org.jboss.xb.binding.SimpleTypeBindings;
-import org.w3c.dom.Element;
-import org.w3c.dom.NamedNodeMap;
-import org.w3c.dom.Node;
-
-/**
- * @author Thomas.Diesler(a)jboss.org
- * @since 04-Dec-2004
- */
-public class QNameDeserializer extends DeserializerSupport
-{
- // provide logging
- private static final Logger log = Logger.getLogger(QNameDeserializer.class);
-
- public Object deserialize(QName xmlName, QName xmlType, String xmlFragment,
SerializationContext serContext) throws BindingException
- {
- log.debug("deserialize: [xmlName=" + xmlName + ",xmlType=" +
xmlType + "]");
-
- QName value = null;
-
- NamespaceRegistry nsRegistry = serContext.getNamespaceRegistry();
- String valueStr = unwrapValueStr(xmlFragment, nsRegistry);
- if (valueStr != null)
- {
- value = SimpleTypeBindings.unmarshalQName(valueStr, nsRegistry);
- }
-
- return value;
- }
-
- /** Unwrap the value string from the XML fragment
- * @return The value string or null if the startTag contains a xsi:nil='true'
attribute
- */
- protected String unwrapValueStr(String xmlFragment, NamespaceRegistry nsRegistry)
- {
- if (isEmptyElement(xmlFragment) == false)
- {
- // Register namespace declarations
- try
- {
- Element el = DOMUtils.parse(xmlFragment);
- NamedNodeMap attribs = el.getAttributes();
- for (int i = 0; i < attribs.getLength(); i++)
- {
- Node attr = attribs.item(i);
- String nodeName = attr.getNodeName();
- if (nodeName.startsWith("xmlns:"))
- {
- String prefix = nodeName.substring(6);
- String nsURI = attr.getNodeValue();
- nsRegistry.registerURI(nsURI, prefix);
- }
- }
- }
- catch (IOException e)
- {
- throw new IllegalArgumentException("Cannot parse xmlFragment: " +
xmlFragment);
- }
- }
-
- return super.unwrapValueStr(xmlFragment);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/QNameDeserializer.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/QNameDeserializer.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/QNameDeserializerFactory.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/QNameDeserializerFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/QNameDeserializerFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,38 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-
-// $Id$
-
-
-/**
- * @author Thomas.Diesler(a)jboss.org
- * @since 04-Dec-2004
- */
-public class QNameDeserializerFactory extends DeserializerFactoryBase
-{
- public DeserializerSupport getDeserializer()
- {
- return new QNameDeserializer();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/QNameDeserializerFactory.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/QNameDeserializerFactory.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/QNameSerializer.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/QNameSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/QNameSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,75 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-// $Id$
-
-import javax.xml.namespace.QName;
-
-import org.jboss.logging.Logger;
-import org.jboss.xb.binding.NamespaceRegistry;
-import org.jboss.xb.binding.SimpleTypeBindings;
-import org.w3c.dom.NamedNodeMap;
-
-/**
- * Serializer for QNames.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 04-Dec-2004
- */
-public class QNameSerializer extends SerializerSupport
-{
- // provide logging
- private static final Logger log = Logger.getLogger(QNameSerializer.class);
-
- public String serialize(QName xmlName, QName xmlType, Object value,
SerializationContext serContext, NamedNodeMap attributes) throws BindingException
- {
- log.debug("serialize: [xmlName=" + xmlName + ",xmlType=" +
xmlType + "]");
-
- QName qnameValue = (QName)value;
- String nsURI = qnameValue.getNamespaceURI();
-
- NamespaceRegistry nsRegistry = serContext.getNamespaceRegistry();
-
- // Remove prefix and register again
- if (nsURI.length() > 0)
- {
- qnameValue = new QName(qnameValue.getNamespaceURI(),
qnameValue.getLocalPart());
- qnameValue = nsRegistry.registerQName(qnameValue);
- }
-
- String valueStr = SimpleTypeBindings.marshalQName(qnameValue, nsRegistry);
- String xmlFragment = wrapValueStr(xmlName, valueStr, nsRegistry, attributes,
true);
-
- // Insert the NS declaration for the qnameValue
- if (nsURI.length() > 0)
- {
- StringBuilder buffer = new StringBuilder(xmlFragment);
- int indexGT = xmlFragment.indexOf(">");
- String prefix = qnameValue.getPrefix();
- buffer.insert(indexGT, " xmlns:" + prefix + "='" + nsURI
+ "'");
- xmlFragment = buffer.toString();
- }
-
- return xmlFragment;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/QNameSerializer.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/QNameSerializer.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/QNameSerializerFactory.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/QNameSerializerFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/QNameSerializerFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,40 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-
-// $Id$
-
-
-/**
- * SerializerFactory for QName primitive
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 04-Dec-2004
- */
-public class QNameSerializerFactory extends SerializerFactoryBase
-{
- public SerializerSupport getSerializer()
- {
- return new QNameSerializer();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/QNameSerializerFactory.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/QNameSerializerFactory.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPArrayDeserializer.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPArrayDeserializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPArrayDeserializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,186 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.jaxrpc.binding;
-
-// $Id$
-
-import java.lang.reflect.Array;
-import java.util.Arrays;
-import java.util.Iterator;
-import java.util.StringTokenizer;
-
-import javax.xml.namespace.QName;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.Constants;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.jaxrpc.TypeMappingImpl;
-import org.jboss.ws.core.utils.DOMUtils;
-import org.jboss.ws.core.utils.DOMWriter;
-import org.jboss.ws.core.utils.JavaUtils;
-import org.jboss.ws.metadata.umdm.ParameterMetaData;
-import org.w3c.dom.Element;
-
-/**
- * A Deserializer that can handle SOAP encoded arrays.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 31-Oct-2005
- */
-public class SOAPArrayDeserializer extends DeserializerSupport
-{
- // provide logging
- private static final Logger log = Logger.getLogger(SOAPArrayDeserializer.class);
-
- private DeserializerSupport compDeserializer;
-
- public SOAPArrayDeserializer() throws BindingException
- {
- }
-
- /**
- */
- public Object deserialize(QName xmlName, QName xmlType, String xmlFragment,
SerializationContext serContext) throws BindingException
- {
- log.debug("deserialize: [xmlName=" + xmlName + ",xmlType=" +
xmlType + "]");
- try
- {
- ParameterMetaData paramMetaData =
(ParameterMetaData)serContext.getProperty(ParameterMetaData.class.getName());
- QName compXmlType = paramMetaData.getSOAPArrayCompType();
- QName compXmlName = paramMetaData.getXmlName();
-
- Element arrayElement = DOMUtils.parse(xmlFragment);
- int[] arrDims = getDimensionsFromAttribute(arrayElement);
- Class compJavaType = getComponentTypeFromAttribute(arrayElement, serContext);
- Object[] retArray = (Object[])Array.newInstance(compJavaType, arrDims);
-
- TypeMappingImpl typeMapping = serContext.getTypeMapping();
- if (compXmlType == null)
- {
- compXmlType = typeMapping.getXMLType(compJavaType);
- paramMetaData.setSOAPArrayCompType(compXmlType);
- }
-
- if (compXmlType == null)
- throw new WSException("Cannot obtain component xmlType for: " +
compJavaType);
-
- // Get the component type deserializer factory
- log.debug("Get component deserializer for: [javaType=" +
compJavaType.getName() + ",xmlType=" + compXmlType + "]");
- DeserializerFactoryBase compDeserializerFactory =
(DeserializerFactoryBase)typeMapping.getDeserializer(compJavaType, compXmlType);
- if (compDeserializerFactory == null)
- {
- log.warn("Cannot obtain component deserializer for: [javaType=" +
compJavaType.getName() + ",xmlType=" + compXmlType + "]");
- compDeserializerFactory =
(DeserializerFactoryBase)typeMapping.getDeserializer(null, compXmlType);
- }
- if (compDeserializerFactory == null)
- throw new WSException("Cannot obtain component deserializer for: "
+ compXmlType);
-
- // Get the component type deserializer
- compDeserializer =
(DeserializerSupport)compDeserializerFactory.getDeserializer();
-
- if (arrDims.length < 1 || 2 < arrDims.length)
- throw new WSException("Unsupported array dimensions: " +
Arrays.asList(arrDims));
-
- Iterator it = DOMUtils.getChildElements(arrayElement);
- if (arrDims.length == 1)
- {
- Object[] subArr = retArray;
- deserializeMemberValues(compXmlName, compXmlType, serContext, it, subArr);
- }
- if (arrDims.length == 2)
- {
- for (int i = 0; i < arrDims[0]; i++)
- {
- Object[] subArr = (Object[])retArray[i];
- deserializeMemberValues(compXmlName, compXmlType, serContext, it,
subArr);
- }
- }
-
- log.debug("deserialized: " + retArray.getClass().getName());
- return retArray;
- }
- catch (RuntimeException e)
- {
- throw e;
- }
- catch (Exception e)
- {
- throw new BindingException(e);
- }
- }
-
- private void deserializeMemberValues(QName compXmlName, QName compXmlType,
SerializationContext serContext, Iterator it, Object[] subArr) throws BindingException
- {
- int dim = subArr.length;
- for (int i = 0; i < dim; i++)
- {
- Object compValue = null;
- if (it.hasNext())
- {
- Element childElement = (Element)it.next();
- String compXMLFragment = DOMWriter.printNode(childElement, false);
- compValue = compDeserializer.deserialize(compXmlName, compXmlType,
compXMLFragment, serContext);
- compValue = JavaUtils.getWrapperValue(compValue);
- }
- subArr[i] = compValue;
- }
- }
-
- private int[] getDimensionsFromAttribute(Element arrayElement)
- {
- QName attrQName = new QName(Constants.URI_SOAP11_ENC, "arrayType");
- QName arrayType = DOMUtils.getAttributeValueAsQName(arrayElement, attrQName);
- if (arrayType == null)
- throw new WSException("Cannot obtain attribute: " + attrQName);
-
- String localPart = arrayType.getLocalPart();
- int dimIndex = localPart.indexOf("[");
-
- String dimStr = localPart.substring(dimIndex);
- StringTokenizer st = new StringTokenizer(dimStr, "[,]");
- int[] arrDims = new int[st.countTokens()];
- for (int i = 0; st.hasMoreTokens(); i++)
- arrDims[i] = new Integer(st.nextToken()).intValue();
-
- return arrDims;
- }
-
- private Class getComponentTypeFromAttribute(Element arrayElement, SerializationContext
serContext)
- {
- QName attrQName = new QName(Constants.URI_SOAP11_ENC, "arrayType");
- QName arrayType = DOMUtils.getAttributeValueAsQName(arrayElement, attrQName);
- if (arrayType == null)
- throw new WSException("Cannot obtain attribute: " + attrQName);
-
- String nsURI = arrayType.getNamespaceURI();
- String localPart = arrayType.getLocalPart();
- int dimIndex = localPart.indexOf("[");
- QName compXmlType = new QName(nsURI, localPart.substring(0, dimIndex));
-
- TypeMappingImpl typeMapping = serContext.getTypeMapping();
- Class javaType = typeMapping.getJavaType(compXmlType);
- if (javaType == null)
- throw new WSException("Cannot obtain javaType for: " + compXmlType);
-
- return JavaUtils.getWrapperType(javaType);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPArrayDeserializer.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPArrayDeserializer.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPArrayDeserializerFactory.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPArrayDeserializerFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPArrayDeserializerFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,39 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-
-// $Id$
-
-/**
- * A factory for a Deserializer that can handle SOAP encoded arrays.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 31-Oct-2005
- */
-public class SOAPArrayDeserializerFactory extends DeserializerFactoryBase
-{
- public DeserializerSupport getDeserializer() throws BindingException
- {
- return new SOAPArrayDeserializer();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPArrayDeserializerFactory.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPArrayDeserializerFactory.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPArraySerializer.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPArraySerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPArraySerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,205 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.jaxrpc.binding;
-
-// $Id$
-
-import javax.xml.namespace.QName;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.Constants;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.jaxrpc.TypeMappingImpl;
-import org.jboss.ws.core.utils.JavaUtils;
-import org.jboss.ws.metadata.umdm.ParameterMetaData;
-import org.w3c.dom.NamedNodeMap;
-
-/**
- * A Serializer that can handle SOAP encoded arrays.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 31-Oct-2005
- */
-public class SOAPArraySerializer extends SerializerSupport
-{
- // provide logging
- private static final Logger log = Logger.getLogger(SOAPArraySerializer.class);
-
- private SerializerSupport compSerializer;
- private NullValueSerializer nullSerializer;
- private boolean isArrayComponentType;
- private boolean xsiNamespaceInserted;
- private StringBuilder xmlFragment;
-
- public SOAPArraySerializer() throws BindingException
- {
- nullSerializer = new NullValueSerializer();
- }
-
- /**
- */
- public String serialize(QName xmlName, QName xmlType, Object value,
SerializationContext serContext, NamedNodeMap attributes) throws BindingException
- {
- log.debug("serialize: [xmlName=" + xmlName + ",xmlType=" +
xmlType + ",valueType=" + value.getClass().getName() + "]");
- try
- {
- ParameterMetaData paramMetaData =
(ParameterMetaData)serContext.getProperty(ParameterMetaData.class.getName());
- QName compXmlType = paramMetaData.getSOAPArrayCompType();
- QName compXmlName = paramMetaData.getXmlName();
- Class javaType = paramMetaData.getJavaType();
-
- Class compJavaType = javaType.getComponentType();
- isArrayComponentType = isArrayJavaType(compJavaType) &&
isArrayXmlType(compXmlType);
- while (compJavaType.getComponentType() != null && isArrayComponentType
== false)
- {
- compJavaType = compJavaType.getComponentType();
- isArrayComponentType = isArrayJavaType(compJavaType) &&
isArrayXmlType(compXmlType);
- }
-
- TypeMappingImpl typeMapping = serContext.getTypeMapping();
- if (compXmlType == null)
- {
- compXmlType = typeMapping.getXMLType(compJavaType);
- paramMetaData.setSOAPArrayCompType(compXmlType);
- }
-
- if (compXmlType == null)
- throw new WSException("Cannot obtain component xmlType for: " +
compJavaType);
-
- // Get the component type serializer factory
- log.debug("Get component serializer for: [javaType=" +
compJavaType.getName() + ",xmlType=" + compXmlType + "]");
- SerializerFactoryBase compSerializerFactory =
(SerializerFactoryBase)typeMapping.getSerializer(compJavaType, compXmlType);
- if (compSerializerFactory == null)
- {
- log.warn("Cannot obtain component serializer for: [javaType=" +
compJavaType.getName() + ",xmlType=" + compXmlType + "]");
- compSerializerFactory =
(SerializerFactoryBase)typeMapping.getSerializer(null, compXmlType);
- }
- if (compSerializerFactory == null)
- throw new WSException("Cannot obtain component serializer for: " +
compXmlType);
-
- // Get the component type serializer
- compSerializer = (SerializerSupport)compSerializerFactory.getSerializer();
-
- // Get the corresponding wrapper type
- if (JavaUtils.isPrimitive(value.getClass()))
- value = JavaUtils.getWrapperValue(value);
-
- xmlFragment = new StringBuilder("<" + Constants.PREFIX_SOAP11_ENC +
":Array ");
- if (value instanceof Object[])
- {
- Object[] objArr = (Object[])value;
- String arrayDim = "" + objArr.length;
-
- // Get multiple array dimension
- Object[] subArr = (Object[])value;
- while (isArrayComponentType == false && subArr.length > 0
&& subArr[0] instanceof Object[])
- {
- subArr = (Object[])subArr[0];
- arrayDim += "," + subArr.length;
- }
-
- compXmlType = serContext.getNamespaceRegistry().registerQName(compXmlType);
- String arrayType = Constants.PREFIX_SOAP11_ENC + ":arrayType='"
+ compXmlType.getPrefix() + ":" + compXmlType.getLocalPart() + "[" +
arrayDim + "]'";
- String compns = " xmlns:" + compXmlType.getPrefix() +
"='" + compXmlType.getNamespaceURI() + "'";
- xmlFragment.append(arrayType + compns + ">");
-
- serializeArrayComponents(compXmlName, compXmlType, serContext, objArr);
- }
- else
- {
- throw new WSException("Unsupported array type: " + javaType);
- }
- xmlFragment.append("</" + Constants.PREFIX_SOAP11_ENC +
":Array>");
-
- log.debug("serialized: " + xmlFragment);
- return xmlFragment.toString();
- }
- catch (RuntimeException e)
- {
- throw e;
- }
- catch (Exception e)
- {
- throw new BindingException(e);
- }
- }
-
- private void serializeArrayComponents(QName compXmlName, QName compXmlType,
SerializationContext serContext, Object[] objArr) throws BindingException
- {
- for (Object compValue : objArr)
- {
- if (isArrayComponentType == false && compValue instanceof Object[])
- {
- serializeArrayComponents(compXmlName, compXmlType, serContext,
(Object[])compValue);
- }
- else
- {
- SerializerSupport ser = compSerializer;
-
- // Null component value
- if (compValue == null)
- {
- ser = nullSerializer;
- if (xsiNamespaceInserted == false)
- {
- xsiNamespaceInserted = true;
- int insIndex = ("<" + Constants.PREFIX_SOAP11_ENC +
":Array ").length();
- xmlFragment.insert(insIndex, "xmlns:" + Constants.PREFIX_XSI
+ "='" + Constants.NS_SCHEMA_XSI + "' ");
- }
- }
-
- String compFragment = ser.serialize(compXmlName, compXmlType, compValue,
serContext, null);
- xmlFragment.append(compFragment);
- }
- }
- }
-
- /** True for all array xmlTypes, i.e. nmtokens, base64Binary, hexBinary
- *
- * FIXME: This method should be removed as soon as we can reliably get the SOAP
- * arrayType from wsdl + schema.
- */
- private boolean isArrayXmlType(QName xmlType)
- {
- boolean isArrayType = Constants.TYPE_SOAP11_BASE64.equals(xmlType);
- isArrayType = isArrayType || Constants.TYPE_SOAP11_BASE64.equals(xmlType);
- isArrayType = isArrayType || Constants.TYPE_SOAP11_BASE64BINARY.equals(xmlType);
- isArrayType = isArrayType || Constants.TYPE_SOAP11_HEXBINARY.equals(xmlType);
- isArrayType = isArrayType || Constants.TYPE_SOAP11_NMTOKENS.equals(xmlType);
- isArrayType = isArrayType || Constants.TYPE_LITERAL_BASE64BINARY.equals(xmlType);
- isArrayType = isArrayType || Constants.TYPE_LITERAL_HEXBINARY.equals(xmlType);
- isArrayType = isArrayType || Constants.TYPE_LITERAL_NMTOKENS.equals(xmlType);
- return isArrayType;
- }
-
- /** True for all array javaTypes, i.e. String[], Byte[], byte[]
- *
- * FIXME: This method should be removed as soon as we can reliably get the SOAP
- * arrayType from wsdl + schema.
- */
- private boolean isArrayJavaType(Class javaType)
- {
- boolean isBinaryType = String[].class.equals(javaType) ||
Byte[].class.equals(javaType) || byte[].class.equals(javaType);
- return isBinaryType;
- }
-
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPArraySerializer.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPArraySerializer.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPArraySerializerFactory.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPArraySerializerFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPArraySerializerFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,40 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-
-// $Id$
-
-
-/**
- * A factory for a Serializer that can handle SOAP encoded arrays.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 31-Oct-2005
- */
-public class SOAPArraySerializerFactory extends SerializerFactoryBase
-{
- public SerializerSupport getSerializer() throws BindingException
- {
- return new SOAPArraySerializer();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPArraySerializerFactory.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPArraySerializerFactory.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPElementDeserializer.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPElementDeserializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPElementDeserializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,64 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-// $Id$
-
-import javax.xml.namespace.QName;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.core.soap.SOAPElementImpl;
-import org.jboss.ws.core.soap.SOAPFactoryImpl;
-import org.jboss.ws.core.utils.DOMUtils;
-import org.w3c.dom.Element;
-
-/**
- * A deserializer that can handle xsd:anyType
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 23-Jun-2005
- */
-public class SOAPElementDeserializer extends DeserializerSupport
-{
- // provide logging
- private static final Logger log = Logger.getLogger(SOAPElementDeserializer.class);
-
- public Object deserialize(QName xmlName, QName xmlType, String xmlFragment,
SerializationContext serContext) throws BindingException
- {
- log.debug("deserialize: [xmlName=" + xmlName + ",xmlType=" +
xmlType + "]");
- try
- {
- Element domElement = DOMUtils.parse(xmlFragment);
- SOAPFactoryImpl soapFactory = new SOAPFactoryImpl();
- SOAPElementImpl soapElement = soapFactory.createElement(domElement, true);
- return soapElement;
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Exception ex)
- {
- throw new BindingException();
- }
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPElementDeserializer.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPElementDeserializer.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPElementDeserializerFactory.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPElementDeserializerFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPElementDeserializerFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,40 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-
-// $Id$
-
-
-/**
- * A factory for a Deserializer that can handle XMLSchema simple types.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 18-Oct-2004
- */
-public class SOAPElementDeserializerFactory extends DeserializerFactoryBase
-{
- public DeserializerSupport getDeserializer()
- {
- return new SOAPElementDeserializer();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPElementDeserializerFactory.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPElementDeserializerFactory.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPElementSerializer.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPElementSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPElementSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,61 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-// $Id$
-
-import javax.xml.namespace.QName;
-import javax.xml.soap.SOAPElement;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.core.utils.DOMWriter;
-import org.w3c.dom.NamedNodeMap;
-
-/**
- * A serializer that can handle xsd:anyType
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 18-Oct-2004
- */
-public class SOAPElementSerializer extends SerializerSupport
-{
- // provide logging
- private static final Logger log = Logger.getLogger(SOAPElementSerializer.class);
-
- /** Marshal the value for a given XMLSchema type
- * @param xmlType local part of the schema type
- * @param value the value to marshal
- * @param serContext
- * @return the string representation od the value
- */
- public String serialize(QName xmlName, QName xmlType, Object value,
SerializationContext serContext, NamedNodeMap attributes) throws BindingException
- {
- log.debug("serialize: [xmlName=" + xmlName + ",xmlType=" +
xmlType + "]");
- if (value == null)
- throw new IllegalArgumentException("SOAPElement value cannot be
null");
- if ((value instanceof SOAPElement) == false)
- throw new IllegalArgumentException("Value is not a SOAPElement: " +
value.getClass().getName());
-
- String xmlFragment = DOMWriter.printNode((SOAPElement)value, false);
- return xmlFragment;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPElementSerializer.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPElementSerializer.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPElementSerializerFactory.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPElementSerializerFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPElementSerializerFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,39 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-
-// $Id$
-
-/**
- * A factory for a Serializer that can handle xsd:anyType
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 23-Jun-2005
- */
-public class SOAPElementSerializerFactory extends SerializerFactoryBase
-{
- public SerializerSupport getSerializer()
- {
- return new SOAPElementSerializer();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPElementSerializerFactory.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SOAPElementSerializerFactory.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SerializationContext.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SerializationContext.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SerializationContext.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,71 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.jaxrpc.binding;
-
-// $Id$
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.jboss.ws.core.jaxrpc.TypeMappingImpl;
-import org.jboss.xb.binding.NamespaceRegistry;
-
-/**
- * An abstract serialization context
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 04-Dec-2004
- */
-public abstract class SerializationContext
-{
- // The type mapping that is valid for this serialization context
- private TypeMappingImpl typeMapping;
- // The namespace registry that is valid for this serialization context
- private NamespaceRegistry namespaceRegistry = new NamespaceRegistry();
- // An arbitrary property bag
- private Map<Object, Object> properties = new HashMap<Object, Object>();
-
- public Object getProperty(Object key)
- {
- return properties.get(key);
- }
-
- public void setProperty(Object key, Object value)
- {
- properties.put(key, value);
- }
-
- public TypeMappingImpl getTypeMapping()
- {
- return typeMapping;
- }
-
- public void setTypeMapping(TypeMappingImpl typeMapping)
- {
- this.typeMapping = typeMapping;
- }
-
- public NamespaceRegistry getNamespaceRegistry()
- {
- return namespaceRegistry;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SerializationContext.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SerializationContext.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SerializerFactoryBase.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SerializerFactoryBase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SerializerFactoryBase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,50 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-// $Id$
-
-import java.util.Iterator;
-
-import javax.xml.rpc.encoding.Serializer;
-import javax.xml.rpc.encoding.SerializerFactory;
-
-import org.jboss.util.NotImplementedException;
-
-/**
- * @author Thomas.Diesler(a)jboss.org
- * @since 04-Dec-2004
- */
-public abstract class SerializerFactoryBase implements SerializerFactory
-{
- public abstract SerializerSupport getSerializer() throws BindingException;
-
- public Serializer getSerializerAs(String mechanismType)
- {
- throw new NotImplementedException();
- }
-
- public Iterator getSupportedMechanismTypes()
- {
- throw new NotImplementedException();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SerializerFactoryBase.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SerializerFactoryBase.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SerializerSupport.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SerializerSupport.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SerializerSupport.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,164 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.jaxrpc.binding;
-
-// $Id$
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.encoding.Serializer;
-
-import org.jboss.util.NotImplementedException;
-import org.jboss.ws.Constants;
-import org.jboss.xb.binding.NamespaceRegistry;
-import org.w3c.dom.NamedNodeMap;
-import org.w3c.dom.Node;
-
-/**
- * The base class for all Serializers.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @since 04-Dec-2004
- */
-public abstract class SerializerSupport implements Serializer
-{
- /** Serialize an object value to an XML fragment
- *
- * @param xmlName The root element name of the resulting fragment
- * @param xmlType The associated schema type
- * @param value The value to serialize
- * @param serContext The serialization context
- * @param attributes TODO
- * @param attributes The attributes on this element
- */
- public abstract String serialize(QName xmlName, QName xmlType, Object value,
SerializationContext serContext, NamedNodeMap attributes) throws BindingException;
-
- /** Wrap the value string in a XML fragment with the given name
- */
- protected String wrapValueStr(QName xmlName, String valueStr, NamespaceRegistry
nsRegistry, NamedNodeMap attributes, boolean normalize)
- {
- String nsURI = xmlName.getNamespaceURI();
- String localPart = xmlName.getLocalPart();
- String prefix = xmlName.getPrefix();
-
- StringBuilder nsAttr = new StringBuilder("");
- if (attributes != null)
- {
- for (int i = 0; i < attributes.getLength(); i++)
- {
- Node attr = attributes.item(i);
- String attrName = attr.getNodeName();
- String attrValue = attr.getNodeValue();
- nsAttr.append(" " + attrName + "='" + attrValue +
"'");
- }
- }
-
- String elName;
- if (nsURI.length() > 0)
- {
- xmlName = nsRegistry.registerQName(xmlName);
- prefix = xmlName.getPrefix();
- elName = prefix + ":" + localPart;
-
- String xmlns = " xmlns:" + prefix + "='" + nsURI +
"'";
- if (nsAttr.indexOf(xmlns) < 0)
- {
- nsAttr.append(xmlns);
- }
- }
- else
- {
- elName = localPart;
- }
-
- String xmlFragment;
- if (valueStr == null)
- {
- String xmlns = " xmlns:" + Constants.PREFIX_XSI + "='" +
Constants.NS_SCHEMA_XSI + "'";
- xmlFragment = "<" + elName + nsAttr + " " +
Constants.PREFIX_XSI + ":nil='1'" + xmlns + "/>";
- }
- else
- {
- if(normalize)
- valueStr = normalize(valueStr);
- xmlFragment = "<" + elName + nsAttr + ">" + valueStr +
"</" + elName + ">";
- }
-
- return xmlFragment;
- }
-
- public String getMechanismType()
- {
- throw new NotImplementedException();
- }
-
- private String normalize(String valueStr)
- {
- // We assume most strings will not contain characters that need
"escaping",
- // and optimize for this case.
- boolean found = false;
- int i = 0;
-
- outer: for (; i < valueStr.length(); i++)
- {
- switch (valueStr.charAt(i))
- {
- case '<':
- case '>':
- case '&':
- case '"':
- found = true;
- break outer;
- }
- }
-
- if (!found)
- return valueStr;
-
- // Resume where we left off
- StringBuilder builder = new StringBuilder();
- builder.append(valueStr.substring(0, i));
- for (; i < valueStr.length(); i++)
- {
- char c = valueStr.charAt(i);
- switch (c)
- {
- case '<':
- builder.append("<");
- break;
- case '>':
- builder.append(">");
- break;
- case '&':
- builder.append("&");
- break;
- case '"':
- builder.append(""");
- break;
- default:
- builder.append(c);
- }
- }
-
- return builder.toString();
- }
-}
\ No newline at end of file
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SerializerSupport.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SerializerSupport.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SimpleDeserializer.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SimpleDeserializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SimpleDeserializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,56 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.jaxrpc.binding;
-
-// $Id$
-
-import org.jboss.logging.Logger;
-import org.jboss.xb.binding.SimpleTypeBindings;
-
-import javax.xml.namespace.QName;
-
-/**
- * A deserializer that can handle XMLSchema simple types.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 22-Oct-2004
- */
-public class SimpleDeserializer extends DeserializerSupport
-{
- // provide logging
- private static final Logger log = Logger.getLogger(SimpleDeserializer.class);
-
- public Object deserialize(QName xmlName, QName xmlType, String xmlFragment,
SerializationContext serContext) throws BindingException
- {
- log.debug("deserialize: [xmlName=" + xmlName + ",xmlType=" +
xmlType + "]");
-
- Object value = null;
- String valueStr = unwrapValueStr(xmlFragment);
-
- if (valueStr != null)
- {
- value = SimpleTypeBindings.unmarshal(xmlType.getLocalPart(), valueStr,
serContext.getNamespaceRegistry());
- }
-
- return value;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SimpleDeserializer.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SimpleDeserializer.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SimpleDeserializerFactory.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SimpleDeserializerFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SimpleDeserializerFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,40 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-
-// $Id$
-
-
-/**
- * A factory for a Deserializer that can handle XMLSchema simple types.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 18-Oct-2004
- */
-public class SimpleDeserializerFactory extends DeserializerFactoryBase
-{
- public DeserializerSupport getDeserializer()
- {
- return new SimpleDeserializer();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SimpleDeserializerFactory.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SimpleDeserializerFactory.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SimpleSerializer.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SimpleSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SimpleSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,71 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.jaxrpc.binding;
-
-// $Id$
-
-import javax.xml.namespace.QName;
-
-import org.jboss.logging.Logger;
-import org.jboss.util.NotImplementedException;
-import org.jboss.xb.binding.NamespaceRegistry;
-import org.jboss.xb.binding.SimpleTypeBindings;
-import org.w3c.dom.NamedNodeMap;
-
-/**
- * A serializer that can handle XMLSchema simple types.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 18-Oct-2004
- */
-public class SimpleSerializer extends SerializerSupport
-{
- // provide logging
- private static final Logger log = Logger.getLogger(SimpleSerializer.class);
-
- /** Marshal the value for a given XMLSchema type
- * @param xmlType local part of the schema type
- * @param value the value to marshal
- * @param serContext
- * @return the string representation od the value
- */
- public String serialize(QName xmlName, QName xmlType, Object value,
SerializationContext serContext, NamedNodeMap attributes) throws BindingException
- {
- log.debug("serialize: [xmlName=" + xmlName + ",xmlType=" +
xmlType + "]");
-
- String valueStr;
- String typeName = xmlType.getLocalPart();
- NamespaceRegistry nsRegistry = serContext.getNamespaceRegistry();
-
- if ("base64Binary".equals(typeName))
- {
- throw new NotImplementedException();
- }
- else
- {
- valueStr = SimpleTypeBindings.marshal(xmlType.getLocalPart(), value,
nsRegistry);
- }
-
- String xmlFragment = wrapValueStr(xmlName, valueStr, nsRegistry, attributes,
true);
- return xmlFragment;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SimpleSerializer.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SimpleSerializer.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SimpleSerializerFactory.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SimpleSerializerFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SimpleSerializerFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,40 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding;
-
-
-// $Id$
-
-
-/**
- * A factory for a Serializer that can handle XMLSchema simple types.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 18-Oct-2004
- */
-public class SimpleSerializerFactory extends SerializerFactoryBase
-{
- public SerializerSupport getSerializer()
- {
- return new SimpleSerializer();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SimpleSerializerFactory.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/SimpleSerializerFactory.java)
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBConstants.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBConstants.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBConstants.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,43 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding.jbossxb;
-
-// $Id$
-
-/** JBossXB Constants
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 18-Oct-2004
- */
-public interface JBossXBConstants
-{
- /** Set this property with a Reader to the xsdSchema */
- String JBXB_SCHEMA_READER = "org.jboss.xb.xsd.reader";
- /** Set this property with a the QName of the root element */
- String JBXB_ROOT_QNAME = "org.jboss.xb.root.qname";
- /** Set this property with a the QName of the root type */
- String JBXB_TYPE_QNAME = "org.jboss.xb.type.qname";
- /** Set this property with an instance of JavaWsdlMapping */
- String JBXB_JAVA_MAPPING = "org.jboss.xb.java.mapping";
- /** Set this property to the XSModel to pull schema info from */
- String JBXB_XS_MODEL = "org.jboss.xb.xsd.xsmodel";
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBConstants.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBConstants.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBMarshaller.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBMarshaller.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBMarshaller.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,48 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding.jbossxb;
-
-import org.xml.sax.ContentHandler;
-import org.w3c.dom.Node;
-
-import java.io.Writer;
-import java.io.OutputStream;
-
-/**
- * @author Heiko Braun <heiko.braun(a)jboss.com>
- * @version $Id$
- * @since Jul 5, 2006
- */
-public interface JBossXBMarshaller {
-
- void marshal(Object obj, Writer writer) throws MarshalException;
-
- void marshal(Object obj, ContentHandler handler);
-
- void marshal(Object obj, Node node);
-
- void marshal(Object obj, OutputStream os) throws MarshalException;
-
- Object getProperty(String name);
-
- void setProperty(String name, Object value);
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBMarshaller.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBMarshaller.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBMarshallerImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBMarshallerImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBMarshallerImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,233 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.jaxrpc.binding.jbossxb;
-
-// $Id$
-
-import org.jboss.logging.Logger;
-import org.jboss.util.NotImplementedException;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.utils.JavaUtils;
-import org.jboss.ws.extensions.xop.jaxrpc.XOPMarshallerImpl;
-import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
-import org.jboss.ws.metadata.jaxrpcmapping.JavaXmlTypeMapping;
-import org.jboss.ws.metadata.jaxrpcmapping.VariableMapping;
-import org.jboss.xb.binding.Constants;
-
-import org.jboss.xb.binding.sunday.marshalling.MarshallerImpl;
-import org.jboss.xb.binding.sunday.unmarshalling.SchemaBinding;
-import org.w3c.dom.Node;
-import org.xml.sax.ContentHandler;
-
-import javax.xml.namespace.QName;
-import java.io.OutputStream;
-import java.io.OutputStreamWriter;
-import java.io.Writer;
-import java.util.HashMap;
-
-/**
- * An implementation of a JAXB Marshaller that uses the JBossXB schema binding
marshaller.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @author Heiko.Braun(a)jboss.org
- * @since 05-Jul-2006
- */
-public class JBossXBMarshallerImpl implements JBossXBMarshaller {
-
- // provide logging
- private static final Logger log = Logger.getLogger(JBossXBMarshallerImpl.class);
-
- // The marshaller properties
- private HashMap properties = new HashMap();
-
- private MarshallerImpl delegate;
-
- public JBossXBMarshallerImpl()
- {
-
- //ClassInfos.disableCache();
-
- delegate = new MarshallerImpl();
- delegate.setProperty(org.jboss.xb.binding.Marshaller.PROP_OUTPUT_XML_VERSION,
"false");
- delegate.setProperty(org.jboss.xb.binding.Marshaller.PROP_OUTPUT_INDENTATION,
"false");
- delegate.declareNamespace("xsi", Constants.NS_XML_SCHEMA_INSTANCE);
- delegate.setSupportNil(true);
- }
-
- /**
- * Marshal the content tree rooted at obj into a Writer.
- */
- public void marshal(Object obj, Writer writer) throws MarshalException
- {
- assertRequiredProperties();
-
- try
- {
- QName xmlName = (QName)getProperty(JBossXBConstants.JBXB_ROOT_QNAME);
- delegate.addRootElement(xmlName);
-
- QName xmlType = (QName)getProperty(JBossXBConstants.JBXB_TYPE_QNAME);
- boolean isAnonymousType = (xmlType != null &&
xmlType.getLocalPart().startsWith(">"));
- if (xmlType != null && !isAnonymousType)
- {
- delegate.setRootTypeQName(xmlType);
- }
-
- if (xmlName.getNamespaceURI().length() > 0)
- {
- String prefix = xmlName.getPrefix();
- String nsURI = xmlName.getNamespaceURI();
- delegate.declareNamespace(prefix, nsURI);
- }
-
- // wildcards still need to be mapped
- // todo: cleanup XB API
- JavaWsdlMapping wsdlMapping =
(JavaWsdlMapping)getProperty(JBossXBConstants.JBXB_JAVA_MAPPING);
- if (wsdlMapping != null)
- {
- JavaXmlTypeMapping[] javaXmlMappings = wsdlMapping.getJavaXmlTypeMappings();
- if (javaXmlMappings != null)
- {
- for (int i = 0; i < javaXmlMappings.length; ++i)
- {
- JavaXmlTypeMapping javaXmlMapping = javaXmlMappings[i];
- VariableMapping[] variableMappings =
javaXmlMapping.getVariableMappings();
-
- if (variableMappings != null)
- {
- String clsName = javaXmlMapping.getJavaType();
- Class cls = JavaUtils.loadJavaType(clsName,
Thread.currentThread().getContextClassLoader());
- QName clsQName = javaXmlMapping.getRootTypeQName();
-
- if (clsQName != null)
- {
- // TODO: legacy API usage, see JBWS-1091
- if
("complexType".equalsIgnoreCase(javaXmlMapping.getQnameScope()))
- {
- delegate.mapClassToXsiType(cls, clsQName.getNamespaceURI(),
clsQName.getLocalPart());
- }
- }
-
- for (int j = 0; j < variableMappings.length; ++j)
- {
- VariableMapping variableMapping = variableMappings[j];
- if (variableMapping.getXmlWildcard())
- {
- delegate.mapFieldToWildcard(cls, "_any",
JBossXBSupport.getWildcardMarshaller());
- }
- }
- }
- }
- }
- }
-
- // the actual marshalling
- SchemaBinding schemaBinding =
JBossXBSupport.getOrCreateSchemaBinding(properties);
- schemaBinding.setXopMarshaller(new XOPMarshallerImpl());
- delegate.marshal(schemaBinding, null, obj, writer);
- }
- catch (RuntimeException e)
- {
- throw e;
- }
- catch (Exception e)
- {
- throw new MarshalException(e);
- }
- }
-
- /**
- * Marshal the content tree rooted at obj into SAX2 events.
- */
- public void marshal(Object obj, ContentHandler handler)
- {
- throw new NotImplementedException();
- }
-
- /**
- * Marshal the content tree rooted at obj into a DOM tree.
- */
- public void marshal(Object obj, Node node)
- {
- throw new NotImplementedException();
- }
-
- /**
- * Marshal the content tree rooted at obj into an output stream.
- */
- public void marshal(Object obj, OutputStream os) throws MarshalException
- {
- marshal(obj, new OutputStreamWriter(os));
- }
-
- /**
- * Get the particular property in the underlying implementation of
- * Marshaller.
- */
- public Object getProperty(String name)
- {
- if (name == null)
- throw new IllegalArgumentException("name parameter is null");
-
- return properties.get(name);
- }
-
- /**
- * Set the particular property in the underlying implementation of
- * Marshaller.
- *
- */
- public void setProperty(String name, Object value)
- {
- if (name == null)
- throw new IllegalArgumentException("name parameter is null");
-
- properties.put(name, value);
- }
-
- /**
- * Get a DOM tree view of the content tree(Optional).
- */
- public Node getNode(Object contentTree)
- {
- throw new NotImplementedException();
- }
-
- /**
- * Assert the required properties
- */
- private void assertRequiredProperties()
- {
- if (getProperty(JBossXBConstants.JBXB_SCHEMA_READER) == null &&
getProperty(JBossXBConstants.JBXB_XS_MODEL) == null)
- throw new WSException("Cannot find required property: " +
JBossXBConstants.JBXB_XS_MODEL);
-
- if (getProperty(JBossXBConstants.JBXB_JAVA_MAPPING) == null)
- throw new WSException("Cannot find required property: " +
JBossXBConstants.JBXB_JAVA_MAPPING);
-
- QName xmlName = (QName)getProperty(JBossXBConstants.JBXB_ROOT_QNAME);
- if (xmlName == null)
- throw new WSException("Cannot find required property: " +
JBossXBConstants.JBXB_ROOT_QNAME);
-
- if (xmlName.getNamespaceURI().length() > 0 &&
xmlName.getPrefix().length() == 0)
- throw new IllegalArgumentException("The given root element name must be
prefix qualified: " + xmlName);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBMarshallerImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBMarshallerImpl.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBSupport.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBSupport.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBSupport.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,106 +0,0 @@
-package org.jboss.ws.core.jaxrpc.binding.jbossxb;
-
-import java.util.Map;
-
-import javax.xml.namespace.QName;
-
-import org.jboss.ws.core.CommonMessageContext;
-import org.jboss.ws.core.soap.MessageContextAssociation;
-import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
-import org.jboss.ws.metadata.umdm.EndpointMetaData;
-import org.jboss.ws.metadata.umdm.OperationMetaData;
-import org.jboss.ws.metadata.umdm.ServiceMetaData;
-import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel;
-import org.jboss.xb.binding.MarshallingContext;
-import org.jboss.xb.binding.ObjectLocalMarshaller;
-import org.jboss.xb.binding.sunday.unmarshalling.SchemaBinding;
-import org.jboss.xb.util.Dom2Sax;
-import org.w3c.dom.Element;
-import org.xml.sax.ContentHandler;
-import org.xml.sax.SAXException;
-
-/**
- * @author Heiko Braun <heiko.braun(a)jboss.com>
- * @since May 31, 2006
- */
-public class JBossXBSupport {
-
- /**
- * Setup SchemaBinding associated with the ServiceMetaData.
- * In case of an unconfigured call it will be generated from JAXB properties.
- * <p>
- * The SchemaBinding expects to have an element binding for the
- * incomming xml element. Because the same element name can be reused
- * by various operations with different xml types, we have to add the
- * element binding on every invocation.
- *
- * @see JBossXBConstants#JBXB_ROOT_QNAME
- * @see JBossXBConstants#JBXB_TYPE_QNAME
- */
- public static SchemaBinding getOrCreateSchemaBinding(Map properties)
- {
- SchemaBinding schemaBinding = null;
- SchemaBindingBuilder bindingBuilder = new SchemaBindingBuilder();
-
- QName xmlName = (QName)properties.get(JBossXBConstants.JBXB_ROOT_QNAME);
- QName xmlType = (QName)properties.get(JBossXBConstants.JBXB_TYPE_QNAME);
-
- // Get the eagerly initialized SchemaBinding from the ServiceMetaData
- CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
- if (msgContext != null)
- {
- OperationMetaData opMetaData = msgContext.getOperationMetaData();
- EndpointMetaData epMetaData = opMetaData.getEndpointMetaData();
- ServiceMetaData serviceMetaData = epMetaData.getServiceMetaData();
- schemaBinding = serviceMetaData.getSchemaBinding();
- }
-
- // In case of an unconfigured call generate the SchemaBinding from JAXB properties
- if (schemaBinding == null)
- {
- JBossXSModel xsModel =
(JBossXSModel)properties.get(JBossXBConstants.JBXB_XS_MODEL);
- JavaWsdlMapping wsdlMapping =
(JavaWsdlMapping)properties.get(JBossXBConstants.JBXB_JAVA_MAPPING);
- schemaBinding = bindingBuilder.buildSchemaBinding(xsModel, wsdlMapping);
- }
-
- // The SchemaBinding expects to have an element binding for the
- // incomming xml element. Because the same element name can be reused
- // by various operations with different xml types, we have to add the
- // element binding on every invocation.
- bindingBuilder.bindParameterToElement(schemaBinding, xmlName, xmlType);
-
- return schemaBinding;
- }
-
- /**
- * Create a Marshaller that serializes
- * <code>org.w3c.dom.Element</code>'s to a
<code>org.xml.sax.ContentHandler</code>
- *
- * @return ObjectLocalMarshaller
- *
- * @see org.jboss.xb.binding.MarshallingContext#getContentHandler()
- */
- public static ObjectLocalMarshaller getWildcardMarshaller()
- {
- return new ObjectLocalMarshaller() {
- public void marshal(MarshallingContext ctx, Object o)
- {
- if (o == null)
- {
- return;
- }
-
- Element e = (Element)o;
- ContentHandler ch = ctx.getContentHandler();
- try
- {
- Dom2Sax.dom2sax(e, ch);
- }
- catch (SAXException e1)
- {
- throw new IllegalStateException("Failed to marshal DOM element "
+ new QName(e.getNamespaceURI(), e.getLocalName()) + ": " + e1.getMessage());
- }
- }
- };
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBSupport.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBSupport.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBUnmarshaller.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBUnmarshaller.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBUnmarshaller.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,37 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.binding.jbossxb;
-
-import java.io.InputStream;
-
-/**
- * @author Heiko Braun <heiko.braun(a)jboss.com>
- * @version $Id$
- * @since Jul 5, 2006
- */
-public interface JBossXBUnmarshaller {
- Object unmarshal(InputStream is) throws UnmarshalException;
-
- Object getProperty(String name);
-
- void setProperty(String name, Object value);
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBUnmarshaller.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBUnmarshaller.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBUnmarshallerImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBUnmarshallerImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBUnmarshallerImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,107 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.jaxrpc.binding.jbossxb;
-
-// $Id$
-
-import org.jboss.ws.WSException;
-import org.jboss.ws.extensions.xop.jaxrpc.XOPUnmarshallerImpl;
-import org.jboss.xb.binding.JBossXBException;
-import org.jboss.xb.binding.UnmarshallerFactory;
-import org.jboss.xb.binding.sunday.unmarshalling.SchemaBinding;
-
-import java.io.InputStream;
-import java.util.HashMap;
-
-/**
- * An implementation of a JAXB Unmarshaller.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @author Alexey.Loubyansky(a)jboss.org
- * @since 18-Oct-2004
- */
-public class JBossXBUnmarshallerImpl implements JBossXBUnmarshaller
-{
- // The marshaller properties
- private HashMap<String, Object> properties = new HashMap<String,
Object>();
-
- /**
- * Unmarshal XML data from the specified InputStream and return the resulting content
tree.
- */
- public Object unmarshal(InputStream is) throws UnmarshalException
- {
- assertRequiredProperties();
-
- org.jboss.xb.binding.Unmarshaller unm =
UnmarshallerFactory.newInstance().newUnmarshaller();
- SchemaBinding schemaBinding = JBossXBSupport.getOrCreateSchemaBinding(properties);
-
- XOPUnmarshallerImpl xopUnmarshaller = new XOPUnmarshallerImpl();
- schemaBinding.setXopUnmarshaller(xopUnmarshaller);
-
- try
- {
- return unm.unmarshal(is, schemaBinding);
- }
- catch (JBossXBException e)
- {
- throw new UnmarshalException(e.getMessage(), e);
- }
- }
-
- /**
- * Get the particular property in the underlying implementation of Unmarshaller.
- */
- public Object getProperty(String name)
- {
- if (name == null)
- throw new IllegalArgumentException("name parameter is null");
-
- return properties.get(name);
- }
-
- /**
- * Set the particular property in the underlying implementation of Unmarshaller.
- */
- public void setProperty(String name, Object value)
- {
- if (name == null)
- throw new IllegalArgumentException("name parameter is null");
-
- properties.put(name, value);
- }
-
-
- /** Assert the required properties
- */
- private void assertRequiredProperties()
- {
- if (getProperty(JBossXBConstants.JBXB_XS_MODEL) == null)
- {
- throw new WSException("Cannot find required property: " +
JBossXBConstants.JBXB_XS_MODEL);
- }
-
- if (getProperty(JBossXBConstants.JBXB_JAVA_MAPPING) == null)
- {
- throw new WSException("Cannot find required property: " +
JBossXBConstants.JBXB_JAVA_MAPPING);
- }
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBUnmarshallerImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/JBossXBUnmarshallerImpl.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/MarshalException.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/MarshalException.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/MarshalException.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,52 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.jaxrpc.binding.jbossxb;
-
-/**
- * A marshal exception.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 06-Jun-2006
- */
-public class MarshalException extends Exception
-{
-
- public MarshalException()
- {
- super();
- }
-
- public MarshalException(String msg, Throwable th)
- {
- super(msg, th);
- }
-
- public MarshalException(String msg)
- {
- super(msg);
- }
-
- public MarshalException(Throwable th)
- {
- super(th);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/MarshalException.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/MarshalException.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/SchemaBindingBuilder.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/SchemaBindingBuilder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/SchemaBindingBuilder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,613 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.jaxrpc.binding.jbossxb;
-
-// $Id$
-
-import org.apache.xerces.xs.XSModel;
-import org.jboss.logging.Logger;
-import org.jboss.util.xml.JBossEntityResolver;
-import org.jboss.ws.Constants;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.utils.JBossWSEntityResolver;
-import org.jboss.ws.extensions.xop.jaxrpc.JBossXBContentAdapter;
-import org.jboss.ws.metadata.jaxrpcmapping.*;
-import org.jboss.xb.binding.metadata.ClassMetaData;
-import org.jboss.xb.binding.metadata.PackageMetaData;
-import org.jboss.xb.binding.metadata.PropertyMetaData;
-import org.jboss.xb.binding.metadata.ValueMetaData;
-import org.jboss.xb.binding.sunday.unmarshalling.*;
-import org.jboss.xb.binding.sunday.unmarshalling.impl.runtime.RtElementHandler;
-import org.w3c.dom.Element;
-import org.w3c.dom.Text;
-import org.xml.sax.Attributes;
-
-import javax.xml.namespace.NamespaceContext;
-import javax.xml.namespace.QName;
-import javax.xml.soap.SOAPElement;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPFactory;
-import java.util.ArrayList;
-import java.util.Iterator;
-
-/**
- * Create SchemaBinding from XSModel and jaxrpc-mapping.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @author Alexey.Loubyansky(a)jboss.org
- * @since 18-Oct-2004
- * @see XSModel
- * @see JavaWsdlMapping
- */
-public class SchemaBindingBuilder
-{
- // provide logging
- private static final Logger log = Logger.getLogger(SchemaBindingBuilder.class);
-
- /**
- * Creates and initializes an instance of SchemaBinding
- */
- public SchemaBinding buildSchemaBinding(XSModel model, JavaWsdlMapping wsdlMapping)
- {
- JBossEntityResolver resolver = new JBossWSEntityResolver();
- SchemaBinding schemaBinding = XsdBinder.bind(model, new
DefaultSchemaResolver(resolver));
-
- schemaBinding.setIgnoreLowLine(false);
- schemaBinding.setIgnoreUnresolvedFieldOrClass(false);
- schemaBinding.setUnmarshalListsToArrays(true); // note: default jaxb2.0 is false!
- schemaBinding.setSimpleContentProperty("_value");
- schemaBinding.setUseNoArgCtorIfFound(true);
- if (wsdlMapping != null)
- {
- bindSchemaToJava(schemaBinding, wsdlMapping);
- }
-
- // setup MTOM handler
- JBossXBContentAdapter.register(schemaBinding);
-
- return schemaBinding;
- }
-
- /** Merges JavaWsdlMapping into SchemaBinding
- */
- private void bindSchemaToJava(SchemaBinding schemaBinding, JavaWsdlMapping
wsdlMapping)
- {
- if (log.isTraceEnabled())
- log.trace("bindSchemaToJava: " + schemaBinding);
-
- for (PackageMapping packageMapping : wsdlMapping.getPackageMappings())
- {
- processPackageMapping(schemaBinding, packageMapping);
- }
-
- for (JavaXmlTypeMapping typeMapping : wsdlMapping.getJavaXmlTypeMappings())
- {
- processJavaXmlTypeMapping(schemaBinding, typeMapping);
- }
- }
-
- private void processPackageMapping(SchemaBinding schemaBinding, PackageMapping
packageMapping)
- {
- PackageMetaData packageMetaData = schemaBinding.getPackageMetaData();
- if (packageMetaData == null)
- {
- packageMetaData = new PackageMetaData();
- schemaBinding.setPackageMetaData(packageMetaData);
- }
-
- if (log.isTraceEnabled())
- log.trace("Bound namespace " + packageMapping.getNamespaceURI() +
" to package " + packageMapping.getPackageType());
-
- packageMetaData.setName(packageMapping.getPackageType());
- }
-
- private void processJavaXmlTypeMapping(SchemaBinding schemaBinding, JavaXmlTypeMapping
typeMapping)
- {
- String javaType = typeMapping.getJavaType();
- if (javaType.endsWith("[]"))
- {
- processArrayType(schemaBinding, typeMapping);
- }
- else
- {
- processNonArrayType(schemaBinding, typeMapping);
- }
- }
-
- private void processArrayType(SchemaBinding schemaBinding, JavaXmlTypeMapping
typeMapping)
- {
- QName xmlType = getXmlType(typeMapping);
- log.trace("Ignore array type: " + xmlType);
- }
-
- private void processNonArrayType(SchemaBinding schemaBinding, JavaXmlTypeMapping
typeMapping)
- {
- QName xmlType = getXmlType(typeMapping);
- String javaType = typeMapping.getJavaType();
- log.trace("processNonArrayType: [xmlType=" + xmlType +
",javaType=" + javaType + "]");
-
- TypeBinding typeBinding = getTypeBinding(schemaBinding, typeMapping);
- if (typeBinding != null)
- {
- // Set the java type, but skip SimpleTypes
- boolean isSimpleTypeBinding = (typeBinding instanceof SimpleTypeBinding);
- if(isSimpleTypeBinding == false)
- {
- ClassMetaData classMetaData = typeBinding.getClassMetaData();
- if (classMetaData == null)
- {
- classMetaData = new ClassMetaData();
- typeBinding.setClassMetaData(classMetaData);
- }
- classMetaData.setImpl(javaType);
-
- // exception mapping drives whether we should use the noarg ctor
- JavaWsdlMapping wsdlMapping = typeMapping.getJavaWsdlMapping();
- for (ExceptionMapping aux : wsdlMapping.getExceptionMappings())
- {
- if (javaType.equals(aux.getExceptionType()))
- {
- classMetaData.setUseNoArgCtor(false);
- break;
- }
- }
-
- if (log.isTraceEnabled())
- {
- QName typeQName = typeBinding.getQName();
- log.trace("Bound: [xmlType=" + typeQName + ",javaType=" +
javaType + "]");
- }
- }
-
- VariableMapping[] variableMappings = typeMapping.getVariableMappings();
- for (VariableMapping varMapping : variableMappings)
- {
- if (varMapping.getXmlElementName() != null)
- {
- processXmlElementName(typeBinding, varMapping);
- }
- else if (varMapping.getXmlAttributeName() != null)
- {
- processXmlAttributeName(typeBinding, varMapping);
- }
- else if (varMapping.getXmlWildcard())
- {
- processWildcard(typeBinding, varMapping);
- }
- }
- }
- else
- {
- log.warn("Cannot obtain type binding for: " + xmlType);
- }
- }
-
- private void processXmlAttributeName(TypeBinding typeBinding, VariableMapping
varMapping)
- {
- String xmlAttrName = varMapping.getXmlAttributeName();
- log.trace("processXmlAttributeName: " + xmlAttrName);
-
- QName xmlName = new QName(xmlAttrName);
- AttributeBinding attrBinding = typeBinding.getAttribute(xmlName);
- if (attrBinding == null)
- {
- Iterator i = typeBinding.getAttributes().iterator();
- while (i.hasNext())
- {
- AttributeBinding auxBinding = (AttributeBinding)i.next();
- if (auxBinding.getQName().getLocalPart().equals(xmlAttrName))
- {
- if (attrBinding != null)
- log.warn("Ambiguous binding for attribute: " + xmlAttrName);
-
- attrBinding = auxBinding;
- }
- }
- }
-
- if (attrBinding == null)
- {
- // attributeFormDefault="qualified"
- String nsURI = typeBinding.getQName().getNamespaceURI();
- if (Constants.SOAP11_ATTR_MUST_UNDERSTAND.equals(xmlAttrName) ||
Constants.SOAP11_ATTR_ACTOR.equals(xmlAttrName)
- || Constants.SOAP11_ATTR_ROLE.equals(xmlAttrName))
- {
- nsURI = Constants.NS_SOAP11_ENV;
- }
- QName auxName = new QName(nsURI, xmlAttrName);
- attrBinding = typeBinding.getAttribute(auxName);
- }
-
- if (attrBinding == null)
- {
- QName typeQName = typeBinding.getQName();
- throw new WSException("Attribute " + xmlName + " found in
jaxrpc-mapping but not in the schema: " + typeQName);
- }
-
- String javaVariableName = varMapping.getJavaVariableName();
- PropertyMetaData prop = new PropertyMetaData();
- prop.setName(javaVariableName);
- attrBinding.setPropertyMetaData(prop);
-
- if (log.isTraceEnabled())
- log.trace("Bound attribute " + xmlName + " to property " +
prop.getName());
- }
-
- private void processXmlElementName(TypeBinding typeBinding, VariableMapping
varMapping)
- {
- QName xmlName = new QName(varMapping.getXmlElementName());
- log.trace("processXmlElementName: " + xmlName);
-
- ElementBinding element = typeBinding.getElement(xmlName);
- QName typeQName = typeBinding.getQName();
- if (element == null && typeQName != null)
- {
- // elementFormDefault="qualified"
- String nsURI = typeQName.getNamespaceURI();
- QName auxName = new QName(nsURI, varMapping.getXmlElementName());
- element = typeBinding.getElement(auxName);
- }
-
- if (element == null)
- {
- // <element ref=
- ParticleBinding particle = typeBinding.getParticle();
- if (particle != null)
- {
- TermBinding term = particle.getTerm();
- if (term instanceof ModelGroupBinding)
- {
- Iterator iterator = ((ModelGroupBinding)term).getParticles().iterator();
- element = findLocalPathElement(iterator, new String[] {
varMapping.getXmlElementName() }, 0);
- }
- }
- }
-
- if (element == null)
- throw new WSException("Element " + xmlName + " found in
jaxrpc-mapping but not in the schema: " + typeQName);
-
- String javaVariableName = varMapping.getJavaVariableName();
- if (javaVariableName != null)
- {
- PropertyMetaData prop = new PropertyMetaData();
- prop.setName(javaVariableName);
- element.setPropertyMetaData(prop);
-
- if (log.isTraceEnabled())
- log.trace("Bound element " + xmlName + " to property " +
prop.getName());
- }
- }
-
- private void processWildcard(TypeBinding typeBinding, VariableMapping varMapping)
- {
- log.trace("processWildcard: " + typeBinding.getQName());
-
- PropertyMetaData prop = null;
- String javaVariableName = varMapping.getJavaVariableName();
- if (javaVariableName != null)
- {
- prop = new PropertyMetaData();
- prop.setName(javaVariableName);
- }
-
- if (prop == null)
- {
- prop = new PropertyMetaData();
- prop.setName("_any");
- }
-
- WildcardBinding wildcard = typeBinding.getWildcard();
- wildcard.setUnresolvedElementHandler(new SoapElementHandler());
- wildcard.setUnresolvedCharactersHandler(new SoapCharactersHandler());
- wildcard.setPropertyMetaData(prop);
-
- if (log.isTraceEnabled())
- log.trace("Bound wildcard of " + typeBinding.getQName() + " to
property " + prop.getName());
- }
-
- private TypeBinding getTypeBinding(SchemaBinding schemaBinding, JavaXmlTypeMapping
typeMapping)
- {
- String qnameScope = typeMapping.getQnameScope();
- QName anonymousTypeQName = typeMapping.getAnonymousTypeQName();
- if (anonymousTypeQName != null)
- {
- return getAnonymousTypeBinding(schemaBinding, anonymousTypeQName);
- }
-
- QName xmlType = typeMapping.getRootTypeQName();
-
- TypeBinding typeBinding = null;
- if ("complexType".equals(qnameScope) ||
"simpleType".equals(qnameScope))
- {
- typeBinding = schemaBinding.getType(xmlType);
- if (typeBinding == null)
- {
- log.warn("Type definition not found in schema: " + xmlType);
- }
- }
- else if ("element".equals(qnameScope))
- {
- ElementBinding element = schemaBinding.getElement(xmlType);
- if (element != null)
- {
- typeBinding = element.getType();
- }
- else
- {
- log.warn("Global element not found in schema: " + xmlType);
- }
- }
- else
- {
- throw new WSException("Unexpected qname-scope for " +
typeMapping.getJavaType() + ": " + qnameScope);
- }
- return typeBinding;
- }
-
- public TypeBinding getAnonymousTypeBinding(SchemaBinding schemaBinding, QName
typeQName)
- {
- String expression = typeQName.getLocalPart();
- if (log.isTraceEnabled())
- log.trace("Searching for anonymous expression: " + expression);
-
- ArrayList list = new ArrayList(10);
-
- for (int i = 0, begin = -1; i < expression.length(); i++)
- {
- if (expression.charAt(i) == '>')
- {
- if (begin != -1)
- {
- list.add(expression.substring(begin, i));
- begin = -1;
- }
- }
- else
- {
- if (begin == -1)
- begin = i;
- else if (i == expression.length() - 1)
- list.add(expression.substring(begin));
- }
- }
-
- ElementBinding element = findLocalPathElement(schemaBinding.getElements(),
((String[])list.toArray(new String[0])));
- if (element == null)
- element = findLocalPathElementInTypes(schemaBinding.getTypes(),
((String[])list.toArray(new String[0])));
-
- if (element == null)
- return null;
-
- return element.getType();
- }
-
- public void bindParameterToElement(SchemaBinding schemaBinding, QName xmlName, QName
xmlType)
- {
- TypeBinding typeBinding;
- boolean isAnonymousType = xmlType.getLocalPart().startsWith(">");
- if (isAnonymousType)
- {
- typeBinding = getAnonymousTypeBinding(schemaBinding, xmlType);
- }
- else
- {
- typeBinding = schemaBinding.getType(xmlType);
- }
-
- if (typeBinding != null)
- {
- if(!isAnonymousType)
- schemaBinding.addElement(xmlName, typeBinding);
- }
- else if (xmlType.equals(Constants.TYPE_LITERAL_ANYTYPE) == false)
- {
- throw new WSException("Root type " + xmlType + " not found in the
schema.");
- }
- }
-
- private ElementBinding findLocalPathElement(Iterator elements, String[] path)
- {
- while (elements.hasNext())
- {
- ElementBinding element = (ElementBinding)elements.next();
- element = findLocalPathElement(element, path, 0);
- if (element != null)
- return element;
- }
-
- return null;
- }
-
- private ElementBinding findLocalPathElementInTypes(Iterator types, String[] path)
- {
- while (types.hasNext())
- {
- TypeBinding type = (TypeBinding)types.next();
- if (type.getQName().getLocalPart().equals(path[0]))
- {
- ParticleBinding particle = type.getParticle();
- if (particle == null)
- continue;
-
- TermBinding term = particle.getTerm();
- if (!term.isModelGroup())
- continue;
-
- return
findLocalPathElement(((ModelGroupBinding)term).getParticles().iterator(), path, 1);
- }
- }
-
- return null;
- }
-
- private ElementBinding findLocalPathElement(ElementBinding element, String[] path, int
pos)
- {
- String name = path[pos];
- if (!name.equals(element.getQName().getLocalPart()))
- return null;
-
- // End of path
- if (path.length - 1 == pos)
- return element;
-
- ParticleBinding particle = element.getType().getParticle();
- if (particle == null)
- return null;
-
- TermBinding term = particle.getTerm();
- if (!term.isModelGroup())
- return null;
-
- ModelGroupBinding group = (ModelGroupBinding)term;
- Iterator i = group.getParticles().iterator();
-
- // Increase depth
- return findLocalPathElement(i, path, pos + 1);
- }
-
- private ElementBinding findLocalPathElement(Iterator particles, String[] path, int
pos)
- {
- while (particles.hasNext())
- {
- TermBinding term = ((ParticleBinding)particles.next()).getTerm();
- if (term instanceof ElementBinding)
- {
- ElementBinding element = (ElementBinding)term;
- element = findLocalPathElement(element, path, pos);
- if (element != null)
- return element;
-
- }
- else if (term instanceof ModelGroupBinding)
- {
- Iterator i = ((ModelGroupBinding)term).getParticles().iterator();
- ElementBinding element = findLocalPathElement(i, path, pos);
- if (element != null)
- return element;
- }
- }
-
- return null;
- }
-
- /** Get the <root-type-qname>, fall back to <anonymous-type-qname>
- */
- private QName getXmlType(JavaXmlTypeMapping typeMapping)
- {
- QName xmlType = typeMapping.getRootTypeQName();
- if (xmlType == null && typeMapping.getAnonymousTypeQName() != null)
- xmlType = typeMapping.getAnonymousTypeQName();
-
- return xmlType;
- }
-
- // Inner
-
- public static class SoapCharactersHandler extends CharactersHandler
- {
- public Object unmarshalEmpty(QName qName, TypeBinding typeBinding, NamespaceContext
nsCtx, ValueMetaData valueMetaData)
- {
- return "";
- }
-
- public Object unmarshal(QName qName, TypeBinding typeBinding, NamespaceContext
nsCtx, ValueMetaData valueMetaData, String value)
- {
- return value;
- }
-
- public void setValue(QName qName, ElementBinding element, Object owner, Object
value)
- {
- SOAPElement e = (SOAPElement)owner;
- Text textNode = e.getOwnerDocument().createTextNode((String)value);
- e.appendChild(textNode);
- }
- }
-
- public static class SoapElementHandler extends RtElementHandler implements
ParticleHandler
- {
- private SOAPFactory factory;
-
- public Object startParticle(Object parent, QName elementName, ParticleBinding
particle, Attributes attrs, NamespaceContext nsCtx)
- {
- SOAPFactory factory = getFactory();
- SOAPElement element = null;
- try
- {
- String prefix = elementName.getPrefix();
- String ns = elementName.getNamespaceURI();
- if (ns != null && ns.length() > 0)
- {
- prefix = nsCtx.getPrefix(ns);
- }
-
- element = factory.createElement(elementName.getLocalPart(), prefix, ns);
- }
- catch (SOAPException e)
- {
- throw new IllegalStateException("Failed to create SOAPElement",
e);
- }
-
- if (attrs != null)
- {
- for (int i = 0; i < attrs.getLength(); ++i)
- {
- element.setAttribute(attrs.getLocalName(i), attrs.getValue(i));
- }
- }
-
- return element;
- }
-
- public Object endParticle(Object o, QName elementName, ParticleBinding particle)
- {
- return o;
- }
-
- public void setParent(Object parent, Object o, QName elementName, ParticleBinding
particle, ParticleBinding parentParticle)
- {
- if (parent instanceof SOAPElement)
- {
- ((SOAPElement)parent).appendChild((Element)o);
- }
- else
- {
- super.setParent(parent, o, elementName, particle, parentParticle);
- }
- }
-
- private SOAPFactory getFactory()
- {
- if (factory == null)
- {
- try
- {
- factory = SOAPFactory.newInstance();
- }
- catch (SOAPException e)
- {
- throw new IllegalStateException("Failed to create soap element
factory", e);
- }
- }
- return factory;
- }
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/SchemaBindingBuilder.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/SchemaBindingBuilder.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/UnmarshalException.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/UnmarshalException.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/UnmarshalException.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,52 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.jaxrpc.binding.jbossxb;
-
-/**
- * A marshal exception.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 06-Jun-2006
- */
-public class UnmarshalException extends Exception
-{
-
- public UnmarshalException()
- {
- super();
- }
-
- public UnmarshalException(String msg, Throwable th)
- {
- super(msg, th);
- }
-
- public UnmarshalException(String msg)
- {
- super(msg);
- }
-
- public UnmarshalException(Throwable th)
- {
- super(th);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/UnmarshalException.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/UnmarshalException.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/XercesXSMarshallerImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/XercesXSMarshallerImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/XercesXSMarshallerImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,250 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.jaxrpc.binding.jbossxb;
-
-// $Id$
-
-import org.apache.xerces.xs.XSModel;
-import org.jboss.logging.Logger;
-import org.jboss.util.NotImplementedException;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.utils.JavaUtils;
-import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
-import org.jboss.ws.metadata.jaxrpcmapping.JavaXmlTypeMapping;
-import org.jboss.ws.metadata.jaxrpcmapping.VariableMapping;
-import org.jboss.xb.binding.Constants;
-import org.jboss.xb.binding.MappingObjectModelProvider;
-import org.jboss.xb.binding.XercesXsMarshaller;
-import org.w3c.dom.Node;
-import org.xml.sax.ContentHandler;
-
-import javax.xml.namespace.QName;
-import java.io.OutputStream;
-import java.io.OutputStreamWriter;
-import java.io.Writer;
-import java.util.HashMap;
-
-/**
- * An implementation of a JAXB Marshaller that user XercesXSMarshaller impl.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 18-Oct-2004
- */
-public class XercesXSMarshallerImpl implements JBossXBMarshaller
-{
-
- // provide logging
- private static final Logger log = Logger.getLogger(XercesXSMarshallerImpl.class);
-
- // The marshaller properties
- private HashMap properties = new HashMap();
-
- private XercesXsMarshaller delegate;
-
- public XercesXSMarshallerImpl()
- {
- delegate = new XercesXsMarshaller();
- delegate.setProperty(XercesXsMarshaller.PROP_OUTPUT_XML_VERSION,
"false");
- delegate.setProperty(XercesXsMarshaller.PROP_OUTPUT_INDENTATION,
"false");
- delegate.declareNamespace("xsi", Constants.NS_XML_SCHEMA_INSTANCE);
- delegate.setSupportNil(true);
- delegate.setSimpleContentProperty("_value");
- }
-
- /**
- * Marshal the content tree rooted at obj into a Writer.
- */
- public void marshal(Object obj, Writer writer) throws MarshalException
- {
- assertRequiredProperties();
-
- try
- {
- QName xmlName = (QName)getProperty(JBossXBConstants.JBXB_ROOT_QNAME);
- delegate.addRootElement(xmlName);
-
- QName xmlType = (QName)getProperty(JBossXBConstants.JBXB_TYPE_QNAME);
- if (xmlType != null)
- {
- delegate.setRootTypeQName(xmlType);
- }
-
- if (xmlName.getNamespaceURI().length() > 0)
- {
- String prefix = xmlName.getPrefix();
- String nsURI = xmlName.getNamespaceURI();
- delegate.declareNamespace(prefix, nsURI);
- }
-
- MappingObjectModelProvider provider = new MappingObjectModelProvider();
- provider.setIgnoreLowLine(false);
- provider.setIgnoreNotFoundField(false);
-
- // todo complete wsdl mapping merge
- JavaWsdlMapping wsdlMapping =
(JavaWsdlMapping)getProperty(JBossXBConstants.JBXB_JAVA_MAPPING);
- if (wsdlMapping != null)
- {
- JavaXmlTypeMapping[] javaXmlMappings = wsdlMapping.getJavaXmlTypeMappings();
- if (javaXmlMappings != null)
- {
- for (int i = 0; i < javaXmlMappings.length; ++i)
- {
- JavaXmlTypeMapping javaXmlMapping = javaXmlMappings[i];
- VariableMapping[] variableMappings =
javaXmlMapping.getVariableMappings();
- if (variableMappings != null)
- {
- String clsName = javaXmlMapping.getJavaType();
- Class cls = JavaUtils.loadJavaType(clsName,
Thread.currentThread().getContextClassLoader());
- QName clsQName = javaXmlMapping.getRootTypeQName();
-
- if (clsQName != null)
- {
- if ("element".equals(javaXmlMapping.getQnameScope()))
- {
- delegate.mapClassToGlobalElement(cls, clsQName.getLocalPart(),
clsQName.getNamespaceURI(), null, provider);
- }
- else
- {
- delegate.mapClassToGlobalType(cls, clsQName.getLocalPart(),
clsQName.getNamespaceURI(), null, provider);
- delegate.mapClassToXsiType(cls, clsQName.getNamespaceURI(),
clsQName.getLocalPart());
- }
- }
-
- for (int j = 0; j < variableMappings.length; ++j)
- {
- VariableMapping variableMapping = variableMappings[j];
- String javaName = variableMapping.getJavaVariableName();
- if (variableMapping.getXmlElementName() != null)
- {
- String xmlElementName = variableMapping.getXmlElementName();
- provider.mapFieldToElement(cls, javaName, "",
xmlElementName, null);
- }
- else if (variableMapping.getXmlAttributeName() != null)
- {
- log.trace("Unmapped attribute: " + javaName);
- }
- else if (variableMapping.getXmlWildcard())
- {
- delegate.mapFieldToWildcard(cls, "_any",
JBossXBSupport.getWildcardMarshaller());
- }
- else
- {
- log.warn("Unmapped variable: " + javaName);
- }
- }
- }
- }
- }
- }
-
- if (getProperty(JBossXBConstants.JBXB_XS_MODEL) != null)
- {
- XSModel model = (XSModel)getProperty(JBossXBConstants.JBXB_XS_MODEL);
- delegate.marshal(model, provider, obj, writer);
- }
- }
- catch (RuntimeException e)
- {
- throw e;
- }
- catch (Exception e)
- {
- throw new MarshalException(e);
- }
- }
-
- /**
- * Marshal the content tree rooted at obj into SAX2 events.
- */
- public void marshal(Object obj, ContentHandler handler)
- {
- throw new NotImplementedException();
- }
-
- /**
- * Marshal the content tree rooted at obj into a DOM tree.
- */
- public void marshal(Object obj, Node node)
- {
- throw new NotImplementedException();
- }
-
- /**
- * Marshal the content tree rooted at obj into an output stream.
- */
- public void marshal(Object obj, OutputStream os) throws MarshalException
- {
- marshal(obj, new OutputStreamWriter(os));
- }
-
- /**
- * Get the particular property in the underlying implementation of
- * Marshaller.
- */
- public Object getProperty(String name)
- {
- if (name == null)
- throw new IllegalArgumentException("name parameter is null");
-
- return properties.get(name);
- }
-
- /**
- * Set the particular property in the underlying implementation of
- * Marshaller.
- *
- */
- public void setProperty(String name, Object value)
- {
- if (name == null)
- throw new IllegalArgumentException("name parameter is null");
-
- properties.put(name, value);
- }
-
- /**
- * Get a DOM tree view of the content tree(Optional).
- */
- public Node getNode(Object contentTree)
- {
- throw new NotImplementedException();
- }
-
- /**
- * Assert the required properties
- */
- private void assertRequiredProperties()
- {
- if (getProperty(JBossXBConstants.JBXB_SCHEMA_READER) == null &&
getProperty(JBossXBConstants.JBXB_XS_MODEL) == null)
- throw new WSException("Cannot find required property: " +
JBossXBConstants.JBXB_XS_MODEL);
-
- if (getProperty(JBossXBConstants.JBXB_JAVA_MAPPING) == null)
- throw new WSException("Cannot find required property: " +
JBossXBConstants.JBXB_JAVA_MAPPING);
-
- QName xmlName = (QName)getProperty(JBossXBConstants.JBXB_ROOT_QNAME);
- if (xmlName == null)
- throw new WSException("Cannot find required property: " +
JBossXBConstants.JBXB_ROOT_QNAME);
-
- if (xmlName.getNamespaceURI().length() > 0 &&
xmlName.getPrefix().length() == 0)
- throw new IllegalArgumentException("The given root element name must be
prefix qualified: " + xmlName);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/XercesXSMarshallerImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/binding/jbossxb/XercesXSMarshallerImpl.java)
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler (from rev
1605, branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/ClientHandlerChain.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/ClientHandlerChain.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/ClientHandlerChain.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,43 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.handler;
-
-// $Id$
-
-import java.util.List;
-import java.util.Set;
-
-
-/**
- * Represents a list of handlers. All elements in the
- * HandlerChain are of the type javax.xml.rpc.handler.Handler.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 06-May-2004
- */
-public class ClientHandlerChain extends HandlerChainBaseImpl
-{
- public ClientHandlerChain(List infos, Set roles)
- {
- super(infos, roles);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/ClientHandlerChain.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/ClientHandlerChain.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/HandlerChainBaseImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/HandlerChainBaseImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/HandlerChainBaseImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,730 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.jaxrpc.handler;
-
-// $Id$
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.List;
-import java.util.ListIterator;
-import java.util.Map;
-import java.util.Set;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.JAXRPCException;
-import javax.xml.rpc.handler.Handler;
-import javax.xml.rpc.handler.HandlerChain;
-import javax.xml.rpc.handler.HandlerInfo;
-import javax.xml.rpc.handler.MessageContext;
-import javax.xml.rpc.soap.SOAPFaultException;
-import javax.xml.soap.Name;
-import javax.xml.soap.SOAPEnvelope;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPHeaderElement;
-import javax.xml.soap.SOAPPart;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.Constants;
-import org.jboss.ws.core.CommonMessageContext;
-import org.jboss.ws.core.soap.SOAPElementImpl;
-import org.jboss.ws.core.soap.SOAPElementWriter;
-import org.jboss.ws.core.soap.SOAPEnvelopeImpl;
-import org.jboss.ws.core.soap.SOAPMessageImpl;
-import org.jboss.ws.metadata.umdm.EndpointMetaData;
-import org.jboss.ws.metadata.umdm.OperationMetaData;
-import org.jboss.ws.metadata.umdm.ParameterMetaData;
-import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
-
-/**
- * Represents a list of handlers. All elements in the
- * HandlerChain are of the type javax.xml.rpc.handler.Handler.
- * <p/>
- * Abstracts the policy and mechanism for the invocation of the registered handlers.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 06-May-2004
- */
-public abstract class HandlerChainBaseImpl implements HandlerChain
-{
- private static Logger log = Logger.getLogger(HandlerChainBaseImpl.class);
-
- public static final int STATE_DOES_NOT_EXIST = 0;
- public static final int STATE_CREATED = 1;
- public static final int STATE_READY = 2;
- public static final int STATE_DESTROYED = 3;
-
- // The List<Entry> objects
- protected List<HandlerEntry> handlers = new ArrayList<HandlerEntry>();
- // The roles associated with the handler chain
- protected Set<String> roles = new HashSet<String>();
- // The index of the first handler that returned false during processing
- protected int falseIndex = -1;
- // The state of this handler chain
- protected int state;
-
- /**
- * Constructs a handler chain with the given handlers infos
- */
- public HandlerChainBaseImpl(List<HandlerInfo> infos, Set<String> roles)
- {
- log.debug("Create a handler chain for roles: " + roles);
- addHandlersToChain(infos, roles);
- }
-
- /** Get the list of handler infos
- */
- public List<HandlerInfo> getHandlerInfos()
- {
- List<HandlerInfo> list = new ArrayList<HandlerInfo>();
- for (int i = 0; i < handlers.size(); i++)
- {
- HandlerEntry entry = (HandlerEntry)handlers.get(i);
- list.add(entry.info);
- }
- return list;
- }
-
- /**
- * Initialize the a handler chain with the given handlers infos
- *
- * @throws javax.xml.rpc.JAXRPCException If any error during initialization
- */
- private void addHandlersToChain(List<HandlerInfo> infos, Set<String>
roleSet)
- {
- try
- {
- if (infos != null)
- {
- for (HandlerInfo info : infos)
- {
- HandlerWrapper handler = new
HandlerWrapper((Handler)info.getHandlerClass().newInstance());
- HandlerType type =
(HandlerType)info.getHandlerConfig().get(HandlerType.class.getName());
- handlers.add(new HandlerEntry(handler, info, type));
- }
- }
- if (roleSet != null)
- {
- roles.addAll(roleSet);
- }
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Exception ex)
- {
- throw new JAXRPCException("Cannot initialize handler chain", ex);
- }
-
- // set state to created
- state = STATE_CREATED;
- }
-
- /**
- * Get the state of this handler chain
- */
- public int getState()
- {
- return state;
- }
-
- /**
- * Initializes the configuration for a HandlerChain.
- *
- * @param config Configuration for the initialization of this handler chain
- * @throws javax.xml.rpc.JAXRPCException If any error during initialization
- */
- public void init(Map config)
- {
- log.debug("init: [config=" + config + "]");
- for (int i = 0; i < handlers.size(); i++)
- {
- HandlerEntry entry = (HandlerEntry)handlers.get(i);
- entry.handler.init(entry.info);
- }
-
- // set state to ready
- state = STATE_READY;
- }
-
- /**
- * Indicates the end of lifecycle for a HandlerChain.
- *
- * @throws javax.xml.rpc.JAXRPCException If any error during destroy
- */
- public void destroy()
- {
- log.debug("destroy");
- for (int i = 0; i < handlers.size(); i++)
- {
- HandlerEntry entry = (HandlerEntry)handlers.get(i);
- entry.handler.destroy();
- }
- handlers.clear();
-
- // set state to destroyed
- state = STATE_DESTROYED;
- }
-
- /**
- * Gets SOAP actor roles registered for this HandlerChain at this SOAP node. The
returned array includes the
- * special SOAP actor next.
- *
- * @return SOAP Actor roles as URIs
- */
- public String[] getRoles()
- {
- Set<String> auxlist = new HashSet<String>(roles);
- auxlist.add(Constants.URI_SOAP11_NEXT_ACTOR);
- String[] roleArr = new String[auxlist.size()];
- auxlist.toArray(roleArr);
- return roleArr;
- }
-
- /**
- * Sets SOAP Actor roles for this HandlerChain. This specifies the set of roles in
which this HandlerChain is to act
- * for the SOAP message processing at this SOAP node. These roles assumed by a
HandlerChain must be invariant during
- * the processing of an individual SOAP message through the HandlerChain.
- * <p/>
- * A HandlerChain always acts in the role of the special SOAP actor next. Refer to the
SOAP specification for the
- * URI name for this special SOAP actor. There is no need to set this special role
using this method.
- *
- * @param soapActorNames URIs for SOAP actor name
- */
- public void setRoles(String[] soapActorNames)
- {
- List<String> newRoles = Arrays.asList(soapActorNames);
- log.debug("setRoles: " + newRoles);
-
- roles.clear();
- roles.addAll(newRoles);
- }
-
- /**
- * Initiates the request processing for this handler chain.
- *
- * @param msgContext MessageContext parameter provides access to the request SOAP
message.
- * @return Returns true if all handlers in chain have been processed. Returns false if
a handler in the chain returned false from its handleRequest method.
- * @throws javax.xml.rpc.JAXRPCException if any processing error happens
- */
- public boolean handleRequest(MessageContext msgContext)
- {
- return handleRequestInternal(msgContext, HandlerType.ALL);
- }
-
- public boolean handleRequest(MessageContext msgContext, HandlerType type)
- {
- return handleRequestInternal(msgContext, type);
- }
-
- private boolean handleRequestInternal(MessageContext msgContext, HandlerType type)
- {
- boolean doNext = true;
-
- if (handlers.size() > 0)
- {
- log.debug("Enter: handleRequest");
-
- SOAPMessageContextJAXRPC jaxrpcContext = (SOAPMessageContextJAXRPC)msgContext;
- jaxrpcContext.setProperty(CommonMessageContext.ALLOW_EXPAND_TO_DOM,
Boolean.TRUE);
-
- // Replace handlers that did not survive the previous call
- replaceDirtyHandlers();
-
- int handlerIndex = 0;
- Handler currHandler = null;
- try
- {
- String lastMessageTrace = null;
- for (; doNext && handlerIndex < handlers.size(); handlerIndex++)
- {
- HandlerEntry handlerEntry = (HandlerEntry)handlers.get(handlerIndex);
- if (type == HandlerType.ALL || type == handlerEntry.getType())
- {
- currHandler = handlerEntry.getHandler();
-
- if (log.isTraceEnabled())
- {
- SOAPPart soapPart = jaxrpcContext.getMessage().getSOAPPart();
- lastMessageTrace = traceSOAPPart("BEFORE handleRequest - "
+ currHandler, soapPart, lastMessageTrace);
- }
-
- doNext = currHandler.handleRequest(msgContext);
-
- if (log.isTraceEnabled())
- {
- SOAPPart soapPart = jaxrpcContext.getMessage().getSOAPPart();
- lastMessageTrace = traceSOAPPart("AFTER handleRequest - "
+ currHandler, soapPart, lastMessageTrace);
- }
- }
- }
- }
- catch (RuntimeException e)
- {
- log.error("RuntimeException in request handler", e);
- doNext = false;
- throw e;
- }
- finally
- {
- // we start at this index in the response chain
- if (doNext == false)
- falseIndex = (handlerIndex - 1);
-
- jaxrpcContext.removeProperty(CommonMessageContext.ALLOW_EXPAND_TO_DOM);
- log.debug("Exit: handleRequest with status: " + doNext);
- }
- }
-
- return doNext;
- }
-
- /**
- * Initiates the response processing for this handler chain.
- * <p/>
- * In this implementation, the response handler chain starts processing from the same
Handler
- * instance (that returned false) and goes backward in the execution sequence.
- *
- * @return Returns true if all handlers in chain have been processed.
- * Returns false if a handler in the chain returned false from its
handleResponse method.
- * @throws javax.xml.rpc.JAXRPCException if any processing error happens
- */
- public boolean handleResponse(MessageContext msgContext)
- {
- return handleResponseInternal(msgContext, HandlerType.ALL);
- }
-
- public boolean handleResponse(MessageContext msgContext, HandlerType type)
- {
- return handleResponseInternal(msgContext, type);
- }
-
- private boolean handleResponseInternal(MessageContext msgContext, HandlerType type)
- {
- boolean doNext = true;
-
- if (handlers.size() > 0)
- {
- log.debug("Enter: handleResponse");
-
- SOAPMessageContextJAXRPC jaxrpcContext = (SOAPMessageContextJAXRPC)msgContext;
- jaxrpcContext.setProperty(CommonMessageContext.ALLOW_EXPAND_TO_DOM,
Boolean.TRUE);
-
- int handlerIndex = handlers.size() - 1;
- if (falseIndex != -1)
- handlerIndex = falseIndex;
-
- Handler currHandler = null;
- try
- {
- String lastMessageTrace = null;
- for (; doNext && handlerIndex >= 0; handlerIndex--)
- {
- HandlerEntry handlerEntry = (HandlerEntry)handlers.get(handlerIndex);
- if (type == HandlerType.ALL || type == handlerEntry.getType())
- {
- currHandler = handlerEntry.getHandler();
-
- if (log.isTraceEnabled())
- {
- SOAPPart soapPart = jaxrpcContext.getMessage().getSOAPPart();
- lastMessageTrace = traceSOAPPart("BEFORE handleResponse -
" + currHandler, soapPart, lastMessageTrace);
- }
-
- doNext = currHandler.handleResponse(msgContext);
-
- if (log.isTraceEnabled())
- {
- SOAPPart soapPart = jaxrpcContext.getMessage().getSOAPPart();
- lastMessageTrace = traceSOAPPart("AFTER handleResponse - "
+ currHandler, soapPart, lastMessageTrace);
- }
- }
- }
- }
- catch (RuntimeException rte)
- {
- log.error("RuntimeException in response handler", rte);
- doNext = false;
- throw rte;
- }
- finally
- {
- // we start at this index in the fault chain
- if (doNext == false)
- falseIndex = (handlerIndex - 1);
-
- jaxrpcContext.removeProperty(CommonMessageContext.ALLOW_EXPAND_TO_DOM);
- log.debug("Exit: handleResponse with status: " + doNext);
- }
- }
-
- return doNext;
- }
-
- /**
- * Initiates the SOAP fault processing for this handler chain.
- * <p/>
- * In this implementation, the fault handler chain starts processing from the same
Handler
- * instance (that returned false) and goes backward in the execution sequence.
- *
- * @return Returns true if all handlers in chain have been processed.
- * Returns false if a handler in the chain returned false from its handleFault
method.
- * @throws javax.xml.rpc.JAXRPCException if any processing error happens
- */
- public boolean handleFault(MessageContext msgContext)
- {
- boolean doNext = true;
-
- if (handlers.size() > 0)
- {
- log.debug("Enter: handleFault");
-
- SOAPMessageContextJAXRPC jaxrpcContext = (SOAPMessageContextJAXRPC)msgContext;
- jaxrpcContext.setProperty(CommonMessageContext.ALLOW_EXPAND_TO_DOM,
Boolean.TRUE);
-
- try
- {
- int handlerIndex = handlers.size() - 1;
- if (falseIndex != -1)
- handlerIndex = falseIndex;
-
- Handler currHandler = null;
- for (; doNext && handlerIndex >= 0; handlerIndex--)
- {
- currHandler = ((HandlerEntry)handlers.get(handlerIndex)).getHandler();
- log.debug("Handle fault: " + currHandler);
- doNext = currHandler.handleFault(msgContext);
- }
- }
- finally
- {
- jaxrpcContext.removeProperty(CommonMessageContext.ALLOW_EXPAND_TO_DOM);
- log.debug("Exit: handleFault with status: " + doNext);
- }
- }
-
- return doNext;
- }
-
- /** Trace the SOAPPart, do nothing if the String representation is equal to the last
one.
- */
- protected String traceSOAPPart(String logMsg, SOAPPart soapPart, String
lastMessageTrace)
- {
- try
- {
- SOAPEnvelopeImpl soapEnv = (SOAPEnvelopeImpl)soapPart.getEnvelope();
- String envStr = SOAPElementWriter.writeElement((SOAPElementImpl)soapEnv, true);
- if (envStr.equals(lastMessageTrace))
- {
- log.trace(logMsg + ": unchanged");
- }
- else
- {
- log.trace(logMsg + "\n" + envStr);
- lastMessageTrace = envStr;
- }
- return lastMessageTrace;
- }
- catch (Exception ex)
- {
- log.error("Cannot trace SOAP message", ex);
- return null;
- }
- }
-
- /**
- * Replace handlers that did not survive the previous call
- */
- protected void replaceDirtyHandlers()
- {
- for (int i = 0; i < handlers.size(); i++)
- {
- HandlerEntry entry = (HandlerEntry)handlers.get(i);
- if (entry.handler.getState() == HandlerWrapper.DOES_NOT_EXIST)
- {
- log.debug("Replacing dirty handler: " + entry.handler);
- try
- {
- HandlerWrapper handler = new
HandlerWrapper((Handler)entry.info.getHandlerClass().newInstance());
- entry.handler = handler;
- handler.init(entry.info);
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Exception ex)
- {
- log.error("Cannot create handler instance for: " + entry.info,
ex);
- }
- }
- }
- }
-
- /**
- * Get the handler at the requested position
- */
- protected Handler getHandlerAt(int pos)
- {
- if (pos < 0 || handlers.size() <= pos)
- throw new IllegalArgumentException("No handler at position: " + pos);
-
- HandlerEntry entry = (HandlerEntry)handlers.get(pos);
- return entry.handler;
- }
-
- /**
- * R1027 A RECEIVER MUST generate a "soap:MustUnderstand" fault when a
- * message contains a mandatory header block (i.e., one that has a
- * soap:mustUnderstand attribute with the value "1") targeted at the
- * receiver (via soap:actor) that the receiver does not understand.
- */
- public static void checkMustUnderstand(CommonMessageContext msgContext, String[]
roles)
- {
- SOAPHeaderElement mustUnderstandHeaderElement = null;
- List roleList = (roles != null ? Arrays.asList(roles) : new ArrayList());
- try
- {
- SOAPMessageImpl soapMessage = (SOAPMessageImpl)msgContext.getSOAPMessage();
-
- // A SOAPHeaderElement is possibly bound to the endpoint operation
- // in order to check that we need a the opMetaData
- OperationMetaData opMetaData = msgContext.getOperationMetaData();
- if (opMetaData == null)
- {
- // The security handler must have decrypted the incomming message
- // before the dispatch target operation can be known
- EndpointMetaData epMetaData = msgContext.getEndpointMetaData();
- opMetaData = soapMessage.getOperationMetaData(epMetaData);
- }
-
- SOAPEnvelope soapEnvelope = soapMessage.getSOAPPart().getEnvelope();
- if (soapEnvelope != null && soapEnvelope.getHeader() != null)
- {
- Iterator it = soapEnvelope.getHeader().examineAllHeaderElements();
- while (it.hasNext() && mustUnderstandHeaderElement == null)
- {
- SOAPHeaderElement soapHeaderElement = (SOAPHeaderElement)it.next();
- Name name = soapHeaderElement.getElementName();
- QName xmlName = new QName(name.getURI(), name.getLocalName());
-
- ParameterMetaData paramMetaData = (opMetaData != null ?
opMetaData.getParameter(xmlName) : null);
- boolean isBoundHeader = (paramMetaData != null &&
paramMetaData.isInHeader());
-
- if (soapHeaderElement.getMustUnderstand() && isBoundHeader ==
false)
- {
- String actor = soapHeaderElement.getActor();
- boolean noActor = (actor == null || actor.length() == 0);
- boolean nextActor = Constants.URI_SOAP11_NEXT_ACTOR.equals(actor);
- if (noActor || nextActor || roleList.contains(actor))
- {
- mustUnderstandHeaderElement = soapHeaderElement;
- }
- }
- }
- }
- }
- catch (SOAPException ex)
- {
- log.error("Cannot check mustUnderstand for headers", ex);
- }
-
- if (mustUnderstandHeaderElement != null)
- {
- QName faultCode = Constants.SOAP11_FAULT_CODE_MUST_UNDERSTAND;
- String faultString = "Unprocessed 'mustUnderstand' header element:
" + mustUnderstandHeaderElement.getElementName();
- throw new SOAPFaultException(faultCode, faultString, null, null);
- }
- }
-
- /**
- * An entry in the handler list
- */
- private class HandlerEntry
- {
- private HandlerWrapper handler;
- private HandlerInfo info;
- private HandlerType type;
-
- public HandlerEntry(HandlerWrapper handler, HandlerInfo info, HandlerType type)
- {
- if (handler == null || info == null)
- throw new IllegalStateException("Invalid handler entry");
-
- if (type == null)
- {
- log.debug("Using handler type default: " + HandlerType.ENDPOINT);
- type = HandlerType.ENDPOINT;
- }
-
- this.handler = handler;
- this.info = info;
- this.type = type;
- }
-
- public Handler getHandler()
- {
- return handler;
- }
-
- public HandlerInfo getInfo()
- {
- return info;
- }
-
- public HandlerType getType()
- {
- return type;
- }
- }
-
- // java.util.List interface
****************************************************************************************
-
- public boolean remove(Object o)
- {
- return handlers.remove(o);
- }
-
- public boolean containsAll(Collection c)
- {
- return handlers.containsAll(c);
- }
-
- public boolean removeAll(Collection c)
- {
- return handlers.removeAll(c);
- }
-
- public boolean retainAll(Collection c)
- {
- return handlers.retainAll(c);
- }
-
- public int hashCode()
- {
- return handlers.hashCode();
- }
-
- public boolean equals(Object o)
- {
- return handlers.equals(o);
- }
-
- public Iterator iterator()
- {
- return handlers.iterator();
- }
-
- public List subList(int fromIndex, int toIndex)
- {
- return handlers.subList(fromIndex, toIndex);
- }
-
- public ListIterator listIterator()
- {
- return handlers.listIterator();
- }
-
- public ListIterator listIterator(int index)
- {
- return handlers.listIterator(index);
- }
-
- public int size()
- {
- return handlers.size();
- }
-
- public void clear()
- {
- handlers.clear();
- }
-
- public boolean isEmpty()
- {
- return handlers.isEmpty();
- }
-
- public Object[] toArray()
- {
- return handlers.toArray();
- }
-
- public Object get(int index)
- {
- return handlers.get(index);
- }
-
- public Object remove(int index)
- {
- return handlers.remove(index);
- }
-
- public void add(int index, Object element)
- {
- handlers.add(index, (HandlerEntry)element);
- }
-
- public int indexOf(Object elem)
- {
- return handlers.indexOf(elem);
- }
-
- public int lastIndexOf(Object elem)
- {
- return handlers.lastIndexOf(elem);
- }
-
- public boolean add(Object o)
- {
- return handlers.add((HandlerEntry)o);
- }
-
- public boolean contains(Object elem)
- {
- return handlers.contains(elem);
- }
-
- public boolean addAll(int index, Collection c)
- {
- return handlers.addAll(index, c);
- }
-
- public boolean addAll(Collection c)
- {
- return handlers.addAll(c);
- }
-
- public Object set(int index, Object element)
- {
- return handlers.set(index, (HandlerEntry)element);
- }
-
- public Object[] toArray(Object[] a)
- {
- return handlers.toArray(a);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/HandlerChainBaseImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/HandlerChainBaseImpl.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/HandlerDelegateJAXRPC.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/HandlerDelegateJAXRPC.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/HandlerDelegateJAXRPC.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,200 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.jaxrpc.handler;
-
-// $Id$
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.handler.HandlerChain;
-import javax.xml.rpc.handler.HandlerInfo;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.core.server.HandlerDelegate;
-import org.jboss.ws.core.server.ServiceEndpointInfo;
-import org.jboss.ws.core.soap.MessageContextAssociation;
-import org.jboss.ws.extensions.xop.XOPContext;
-import org.jboss.ws.metadata.umdm.HandlerMetaData;
-import org.jboss.ws.metadata.umdm.HandlerMetaDataJAXRPC;
-import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
-import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerInitParam;
-import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
-
-/** Delegates to JAXRPC handlers
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 19-Jan-2005
- */
-public class HandlerDelegateJAXRPC implements HandlerDelegate
-{
- // provide logging
- private static Logger log = Logger.getLogger(HandlerDelegateJAXRPC.class);
-
- // This endpoints handler chain
- private ServerHandlerChain preHandlerChain;
- // This endpoints handler chain
- private ServerHandlerChain jaxrpcHandlerChain;
- // This endpoints handler chain
- private ServerHandlerChain postHandlerChain;
-
- public HandlerDelegateJAXRPC()
- {
- }
-
- public boolean callRequestHandlerChain(ServiceEndpointInfo seInfo, HandlerType type)
- {
- SOAPMessageContextJAXRPC msgContext =
(SOAPMessageContextJAXRPC)MessageContextAssociation.peekMessageContext();
- ServerEndpointMetaData sepMetaData = seInfo.getServerEndpointMetaData();
-
- // Initialize the handler chain
- if (sepMetaData.isHandlersInitialized() == false)
- {
- initHandlerChain(seInfo, HandlerType.PRE);
- initHandlerChain(seInfo, HandlerType.ENDPOINT);
- initHandlerChain(seInfo, HandlerType.POST);
- sepMetaData.setHandlersInitialized(true);
- }
-
- boolean status = true;
- String[] roles = null;
-
- HandlerChain handlerChain = null;
- if (type == HandlerType.PRE)
- handlerChain = preHandlerChain;
- else if (type == HandlerType.ENDPOINT)
- handlerChain = jaxrpcHandlerChain;
- else if (type == HandlerType.POST)
- handlerChain = postHandlerChain;
-
- if (handlerChain != null)
- {
- roles = handlerChain.getRoles();
- status = handlerChain.handleRequest(msgContext);
- }
-
- // BP-1.0 R1027
- if (type == HandlerType.POST)
- HandlerChainBaseImpl.checkMustUnderstand(msgContext, roles);
-
- return status;
- }
-
- public boolean callResponseHandlerChain(ServiceEndpointInfo seInfo, HandlerType type)
- {
- SOAPMessageContextJAXRPC msgContext =
(SOAPMessageContextJAXRPC)MessageContextAssociation.peekMessageContext();
-
- HandlerChain handlerChain = null;
- if (type == HandlerType.PRE)
- handlerChain = preHandlerChain;
- else if (type == HandlerType.ENDPOINT)
- handlerChain = jaxrpcHandlerChain;
- else if (type == HandlerType.POST)
- handlerChain = postHandlerChain;
-
- boolean status = (handlerChain != null ? handlerChain.handleResponse(msgContext) :
true);
-
- if(type == HandlerType.ENDPOINT)
- XOPContext.visitAndRestoreXOPData();
-
- return status;
- }
-
- public boolean callFaultHandlerChain(ServiceEndpointInfo seInfo, HandlerType type,
Exception ex)
- {
- SOAPMessageContextJAXRPC msgContext =
(SOAPMessageContextJAXRPC)MessageContextAssociation.peekMessageContext();
-
- HandlerChain handlerChain = null;
- if (type == HandlerType.PRE)
- handlerChain = preHandlerChain;
- else if (type == HandlerType.ENDPOINT)
- handlerChain = jaxrpcHandlerChain;
- else if (type == HandlerType.POST)
- handlerChain = postHandlerChain;
-
- boolean status = (handlerChain != null ? handlerChain.handleFault(msgContext) :
true);
-
- if(type == HandlerType.ENDPOINT)
- XOPContext.visitAndRestoreXOPData();
-
- return status;
- }
-
- /**
- * Init the handler chain
- */
- private void initHandlerChain(ServiceEndpointInfo seInfo, HandlerType type)
- {
- Set<String> handlerRoles = new HashSet<String>();
- List<HandlerInfo> hInfos = new ArrayList<HandlerInfo>();
-
- ServerEndpointMetaData sepMetaData = seInfo.getServerEndpointMetaData();
- for (HandlerMetaData handlerMetaData : sepMetaData.getHandlerMetaData(type))
- {
- HandlerMetaDataJAXRPC jaxrpcMetaData = (HandlerMetaDataJAXRPC)handlerMetaData;
- handlerRoles.addAll(jaxrpcMetaData.getSoapRoles());
-
- HashMap<String, Object> hConfig = new HashMap<String, Object>();
- for (HandlerInitParam param : jaxrpcMetaData.getInitParams())
- {
- hConfig.put(param.getParamName(), param.getParamValue());
- }
-
- Set<QName> headers = jaxrpcMetaData.getSoapHeaders();
- QName[] headerArr = new QName[headers.size()];
- headers.toArray(headerArr);
-
- Class hClass = jaxrpcMetaData.getHandlerClass();
- hConfig.put(HandlerType.class.getName(), jaxrpcMetaData.getHandlerType());
- HandlerInfo info = new HandlerInfo(hClass, hConfig, headerArr);
-
- log.debug("Adding server side handler to service '" +
sepMetaData.getQName() + "': " + info);
- hInfos.add(info);
- }
-
- initHandlerChain(seInfo, hInfos, handlerRoles, type);
- }
-
- private void initHandlerChain(ServiceEndpointInfo seInfo, List<HandlerInfo>
hInfos, Set<String> handlerRoles, HandlerType type)
- {
- log.debug("Init handler chain with [" + hInfos.size() + "]
handlers");
-
- ServerHandlerChain handlerChain = new ServerHandlerChain(hInfos, handlerRoles,
type);
- if (type == HandlerType.PRE)
- preHandlerChain = handlerChain;
- else if (type == HandlerType.ENDPOINT)
- jaxrpcHandlerChain = handlerChain;
- else if (type == HandlerType.POST)
- postHandlerChain = handlerChain;
-
- if (handlerChain.getState() == ServerHandlerChain.STATE_CREATED)
- {
- // what is the config for a handler chain?
- handlerChain.init(null);
- }
- }
-
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/HandlerDelegateJAXRPC.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/HandlerDelegateJAXRPC.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/HandlerWrapper.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/HandlerWrapper.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/HandlerWrapper.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,201 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.handler;
-
-// $Id$
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.JAXRPCException;
-import javax.xml.rpc.handler.Handler;
-import javax.xml.rpc.handler.HandlerInfo;
-import javax.xml.rpc.handler.MessageContext;
-import javax.xml.rpc.soap.SOAPFaultException;
-
-import org.jboss.logging.Logger;
-
-/**
- * A wrapper arround a {@link javax.xml.rpc.handler.Handler} that takes care of its
lifecycle.
- *
- * @author thomas.diesler(a)jboss.org
- */
-public class HandlerWrapper implements Handler
-{
- private static Logger log = Logger.getLogger(HandlerWrapper.class);
-
- public final static int DOES_NOT_EXIST = 0;
- public final static int METHOD_READY = 1;
-
- // The states as string
- private static String[] stateNames = new String[]{"DOES_NOT_EXIST",
"METHOD_READY"};
-
- // The handler to delegate to
- private Handler delegate;
- // The handler state
- private int state;
-
- /**
- * Delegate to the given handler
- */
- public HandlerWrapper(Handler handler)
- {
- delegate = handler;
- state = DOES_NOT_EXIST; // this is somewhat a lie ;-)
- }
-
- /**
- * Get the current state
- */
- public int getState()
- {
- return state;
- }
-
- /**
- * Get the current state as string
- */
- public String getStateAsString()
- {
- return stateNames[state];
- }
-
- /**
- * Gets the header blocks processed by this Handler instance.
- */
- public QName[] getHeaders()
- {
- return delegate.getHeaders();
- }
-
- /**
- * The init method enables the Handler instance to initialize itself.
- */
- public void init(HandlerInfo config) throws JAXRPCException
- {
- log.debug("init: " + delegate);
- delegate.init(config);
- state = METHOD_READY;
- }
-
- /**
- * The destroy method indicates the end of lifecycle for a Handler instance.
- */
- public void destroy() throws JAXRPCException
- {
- log.debug("destroy: " + delegate);
- state = DOES_NOT_EXIST;
- delegate.destroy();
- }
-
- /**
- * The handleRequest method processes the request message.
- */
- public boolean handleRequest(MessageContext msgContext) throws JAXRPCException,
SOAPFaultException
- {
- if (state == DOES_NOT_EXIST)
- {
- log.warn("Handler is in state DOES_NOT_EXIST, skipping
Handler.handleRequest for: " + delegate);
- return true;
- }
-
- try
- {
- return delegate.handleRequest(msgContext);
- }
- catch (RuntimeException e)
- {
- return handleRuntimeException(e);
- }
- }
-
- /**
- * The handleResponse method processes the response SOAP message.
- */
- public boolean handleResponse(MessageContext msgContext)
- {
- if (state == DOES_NOT_EXIST)
- {
- log.warn("Handler is in state DOES_NOT_EXIST, skipping
Handler.handleResponse for: " + delegate);
- return true;
- }
-
- try
- {
- return delegate.handleResponse(msgContext);
- }
- catch (RuntimeException e)
- {
- return handleRuntimeException(e);
- }
- }
-
- /**
- * The handleFault method processes the SOAP faults based on the SOAP message
processing model.
- */
- public boolean handleFault(MessageContext msgContext)
- {
- if (state == DOES_NOT_EXIST)
- {
- log.warn("Handler is in state DOES_NOT_EXIST, skipping Handler.handleFault
for: " + delegate);
- return true;
- }
-
- try
- {
- return delegate.handleFault(msgContext);
- }
- catch (RuntimeException e)
- {
- return handleRuntimeException(e);
- }
- }
-
- /**
- * As defined by JAX-RPC, a RuntimeException(other than SOAPFaultException) thrown
from any method of
- * the Handler results in the destroymethod being invoked and transition to the �Does
Not Exist� state.
- */
- private boolean handleRuntimeException(RuntimeException e)
- {
- if ((e instanceof SOAPFaultException) == false)
- {
- log.warn("RuntimeException in handler method, transition to
DOES_NOT_EXIST");
- destroy();
- }
-
- throw e;
- }
-
- /**
- * Returns a hash code value for the object.
- */
- public int hashCode()
- {
- return delegate.hashCode();
- }
-
- /**
- * Returns a string representation of the object.
- */
- public String toString()
- {
- return "[state=" + getStateAsString() + ",handler=" + delegate
+ "]";
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/HandlerWrapper.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/HandlerWrapper.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/MessageContextJAXRPC.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/MessageContextJAXRPC.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/MessageContextJAXRPC.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,91 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.jaxrpc.handler;
-
-// $Id$
-
-import javax.xml.rpc.handler.MessageContext;
-import javax.xml.soap.SOAPMessage;
-
-import org.jboss.ws.core.CommonMessageContext;
-import org.jboss.ws.core.jaxrpc.SerializationContextJAXRPC;
-import org.jboss.ws.core.jaxrpc.binding.SerializationContext;
-import org.jboss.ws.metadata.umdm.EndpointMetaData;
-import org.jboss.ws.metadata.umdm.ServiceMetaData;
-import org.jboss.xb.binding.NamespaceRegistry;
-
-/**
- * The message context that is processed by a handler
- * in the handle method.
- * <p/>
- * Provides methods to manage a property set.
- * MessageContext properties enable handlers in a handler chain to share
- * processing related state.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 06-May-2004
- */
-public class MessageContextJAXRPC extends CommonMessageContext implements MessageContext
-{
- public static final String SERVLET_CONTEXT =
"javax.xml.ws.servlet.context";
- public static final String SERVLET_REQUEST =
"javax.xml.ws.servlet.request";
- public static final String SERVLET_RESPONSE =
"javax.xml.ws.servlet.response";
- public static final String SERVLET_SESSION =
"javax.xml.ws.servlet.session";
-
- // The SOAP message
- private SOAPMessage message;
- // The serialization context for this message ctx
- private SerializationContext serContext;
-
- public SOAPMessage getMessage()
- {
- return message;
- }
-
- public void setMessage(SOAPMessage message)
- {
- this.message = message;
- }
-
- /** Get or create the serialization context
- */
- public SerializationContext getSerializationContext()
- {
- if (serContext == null)
- {
- EndpointMetaData epMetaData = getEndpointMetaData();
- ServiceMetaData serviceMetaData = epMetaData.getServiceMetaData();
-
- SerializationContextJAXRPC jaxrpcContext = new SerializationContextJAXRPC();
- jaxrpcContext.setTypeMapping(serviceMetaData.getTypeMapping());
- jaxrpcContext.setJavaWsdlMapping(serviceMetaData.getJavaWsdlMapping());
- serContext = jaxrpcContext;
- }
- return serContext;
- }
-
- /** Gets the namespace registry for this message context */
- public NamespaceRegistry getNamespaceRegistry()
- {
- return getSerializationContext().getNamespaceRegistry();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/MessageContextJAXRPC.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/MessageContextJAXRPC.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/SOAPMessageContextJAXRPC.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/SOAPMessageContextJAXRPC.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/SOAPMessageContextJAXRPC.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,75 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.jaxrpc.handler;
-
-// $Id$
-
-import javax.xml.rpc.handler.soap.SOAPMessageContext;
-import javax.xml.soap.SOAPMessage;
-
-/**
- * Provides access to the SOAP message for either RPC request or response.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 14-Dec-2004
- */
-public class SOAPMessageContextJAXRPC extends MessageContextJAXRPC implements
SOAPMessageContext
-{
- /** Default constuctor
- */
- public SOAPMessageContextJAXRPC()
- {
- }
-
- /** Gets the SOAPMessage from this message context
- *
- * @return Returns the SOAPMessage; returns null if no SOAPMessage is present in this
message context
- */
- public SOAPMessage getMessage()
- {
- return getSOAPMessage();
- }
-
- /** Sets the SOAPMessage in this message context
- *
- * @param message SOAP message
- * @throws javax.xml.rpc.JAXRPCException If any error during the setting of the
SOAPMessage in this message context
- * @throws UnsupportedOperationException - If this operation is not supported
- */
- public void setMessage(SOAPMessage message)
- {
- setSOAPMessage(message);
- }
-
- /**
- * Gets the SOAP actor roles associated with an execution of the HandlerChain and its
contained Handler instances.
- * Note that SOAP actor roles apply to the SOAP node and are managed using
HandlerChain.setRoles and HandlerChain.getRoles.
- * Handler instances in the HandlerChain use this information about the SOAP actor
roles to process the SOAP header blocks.
- * Note that the SOAP actor roles are invariant during the processing of SOAP message
through the HandlerChain.
- *
- * @return Array of URIs for SOAP actor roles
- */
- public String[] getRoles()
- {
- return new String[0];
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/SOAPMessageContextJAXRPC.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/SOAPMessageContextJAXRPC.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/ServerHandlerChain.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/ServerHandlerChain.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/ServerHandlerChain.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,62 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.jaxrpc.handler;
-
-// $Id$
-
-import java.util.List;
-import java.util.Set;
-
-import javax.xml.rpc.handler.MessageContext;
-
-import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
-
-/**
- * Represents a list of handlers. All elements in the
- * HandlerChain are of the type javax.xml.rpc.handler.Handler.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 06-May-2004
- */
-public class ServerHandlerChain extends HandlerChainBaseImpl
-{
- // The required type of the handler
- private HandlerType type;
-
- public ServerHandlerChain(List infos, Set roles, HandlerType type)
- {
- super(infos, roles);
- this.type = type;
- }
-
- public boolean handleRequest(MessageContext msgContext)
- {
- boolean doNext = super.handleRequest(msgContext);
- return doNext;
- }
-
- public boolean handleResponse(MessageContext msgContext)
- {
- boolean doNext = super.handleResponse(msgContext);
- return doNext;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/ServerHandlerChain.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/jaxrpc/handler/ServerHandlerChain.java)
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server (from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/AbstractServiceEndpointInvoker.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/AbstractServiceEndpointInvoker.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/AbstractServiceEndpointInvoker.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,298 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.server;
-
-// $Id$
-
-import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Method;
-
-import javax.management.MBeanException;
-import javax.xml.namespace.QName;
-import javax.xml.rpc.soap.SOAPFaultException;
-import javax.xml.soap.Name;
-import javax.xml.soap.SOAPBody;
-import javax.xml.soap.SOAPBodyElement;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPHeader;
-import javax.xml.soap.SOAPMessage;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.Constants;
-import org.jboss.ws.core.CommonBinding;
-import org.jboss.ws.core.CommonBindingProvider;
-import org.jboss.ws.core.CommonMessageContext;
-import org.jboss.ws.core.EndpointInvocation;
-import org.jboss.ws.core.jaxrpc.SOAPFaultExceptionHelper;
-import org.jboss.ws.core.jaxrpc.handler.HandlerDelegateJAXRPC;
-import org.jboss.ws.core.soap.MessageContextAssociation;
-import org.jboss.ws.core.soap.SOAPMessageImpl;
-import org.jboss.ws.core.utils.JavaUtils;
-import org.jboss.ws.metadata.umdm.EndpointMetaData;
-import org.jboss.ws.metadata.umdm.OperationMetaData;
-import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
-import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
-
-/** An implementation handles invocations on the endpoint
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 19-Jan-2005
- */
-public abstract class AbstractServiceEndpointInvoker implements ServiceEndpointInvoker,
HandlerDelegate
-{
- // provide logging
- private static Logger log = Logger.getLogger(AbstractServiceEndpointInvoker.class);
-
- protected CommonBindingProvider bindingProvider;
- protected HandlerDelegate handlerDelegate;
-
- /** Initialize the service endpoint */
- public void initServiceEndpoint(ServiceEndpointInfo seInfo)
- {
- ServerEndpointMetaData sepMetaData = seInfo.getServerEndpointMetaData();
- bindingProvider = new CommonBindingProvider(sepMetaData);
- handlerDelegate = new HandlerDelegateJAXRPC();
- }
-
- /** Load the SEI implementation bean if necessary */
- protected abstract Class loadServiceEndpoint(ServiceEndpointInfo seInfo) throws
ClassNotFoundException;
-
- /** Create the instance of the SEI implementation bean if necessary */
- protected abstract Object createServiceEndpoint(ServiceEndpointInfo seInfo, Object
context, Class seiImplClass) throws IllegalAccessException,
- InstantiationException;
-
- /** Invoke the instance of the SEI implementation bean */
- protected abstract void invokeServiceEndpoint(ServiceEndpointInfo seInfo, Object
seiImpl, EndpointInvocation epInv);
-
- /** Destroy the instance of the SEI implementation bean if necessary */
- protected abstract void destroyServiceEndpoint(ServiceEndpointInfo seInfo, Object
seiImpl);
-
- public boolean callRequestHandlerChain(ServiceEndpointInfo seInfo, HandlerType type)
- {
- return handlerDelegate.callRequestHandlerChain(seInfo, type);
- }
-
- public boolean callResponseHandlerChain(ServiceEndpointInfo seInfo, HandlerType type)
- {
- return handlerDelegate.callResponseHandlerChain(seInfo, type);
- }
-
- public boolean callFaultHandlerChain(ServiceEndpointInfo seInfo, HandlerType type,
Exception ex)
- {
- return handlerDelegate.callFaultHandlerChain(seInfo, type, ex);
- }
-
- /** Invoke the the service endpoint */
- public SOAPMessage invoke(ServiceEndpointInfo seInfo, Object context) throws
Exception
- {
- CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
- EndpointMetaData epMetaData = msgContext.getEndpointMetaData();
- SOAPMessageImpl reqMessage = (SOAPMessageImpl)msgContext.getSOAPMessage();
-
- // Load the endpoint implementation bean
- Class seImpl = loadServiceEndpoint(seInfo);
-
- // Create an instance of the endpoint implementation bean
- Object seInstance = createServiceEndpoint(seInfo, context, seImpl);
-
- try
- {
- boolean oneway = false;
- CommonBinding binding = null;
- EndpointInvocation epInv = null;
- OperationMetaData opMetaData = null;
-
- // call the handler chain
- boolean handlersPass = callRequestHandlerChain(seInfo, HandlerType.PRE);
-
- // Unbind the request message
- if (handlersPass)
- {
- // Get the binding from the provideer
- binding = bindingProvider.getCommonBinding();
-
- // Get the operation meta data from the SOAP message
- opMetaData = getDispatchDestination(epMetaData, reqMessage);
- msgContext.setOperationMetaData(opMetaData);
- oneway = opMetaData.isOneWayOperation();
-
- // Unbind the request message
- epInv = binding.unbindRequestMessage(opMetaData, reqMessage);
- }
-
- handlersPass = handlersPass && callRequestHandlerChain(seInfo,
HandlerType.ENDPOINT);
- handlersPass = handlersPass && callRequestHandlerChain(seInfo,
HandlerType.POST);
-
- if (handlersPass)
- {
- // Invoke the service endpoint
- msgContext.setProperty(CommonMessageContext.ALLOW_EXPAND_TO_DOM,
Boolean.TRUE);
- try
- {
- invokeServiceEndpoint(seInfo, seInstance, epInv);
- }
- finally
- {
- msgContext.removeProperty(CommonMessageContext.ALLOW_EXPAND_TO_DOM);
- }
-
- // Bind the response message
- SOAPMessage resMessage = (SOAPMessage)binding.bindResponseMessage(opMetaData,
epInv);
- msgContext.setSOAPMessage(resMessage);
- }
-
- // call the handler chain
- if (oneway == false)
- {
- handlersPass = callResponseHandlerChain(seInfo, HandlerType.POST);
- handlersPass = handlersPass && callResponseHandlerChain(seInfo,
HandlerType.ENDPOINT);
- handlersPass = handlersPass && callResponseHandlerChain(seInfo,
HandlerType.PRE);
- }
-
- SOAPMessage resMessage = msgContext.getSOAPMessage();
- return resMessage;
- }
- catch (Exception ex)
- {
- try
- {
- SOAPMessage faultMessage =
SOAPFaultExceptionHelper.exceptionToFaultMessage(ex);
- msgContext.setSOAPMessage(faultMessage);
-
- // call the handler chain
- boolean handlersPass = callFaultHandlerChain(seInfo, HandlerType.POST, ex);
- handlersPass = handlersPass && callFaultHandlerChain(seInfo,
HandlerType.ENDPOINT, ex);
- handlersPass = handlersPass && callFaultHandlerChain(seInfo,
HandlerType.PRE, ex);
- }
- catch (Exception subEx)
- {
- log.warn("Cannot process handlerChain.handleFault, ignoring: ",
subEx);
- }
- throw ex;
- }
- finally
- {
- destroyServiceEndpoint(seInfo, seInstance);
- }
- }
-
- private OperationMetaData getDispatchDestination(EndpointMetaData epMetaData,
SOAPMessageImpl reqMessage) throws SOAPException
- {
- OperationMetaData opMetaData = reqMessage.getOperationMetaData(epMetaData);
- SOAPHeader soapHeader = reqMessage.getSOAPHeader();
-
- // Report a MustUnderstand fault
- if (opMetaData == null)
- {
- String faultString;
- SOAPBody soapBody = reqMessage.getSOAPBody();
- if (soapBody.getChildElements().hasNext())
- {
- SOAPBodyElement soapBodyElement =
(SOAPBodyElement)soapBody.getChildElements().next();
- Name soapName = soapBodyElement.getElementName();
- faultString = "Endpoint " + epMetaData.getQName() + " does not
contain operation meta data for: " + soapName;
- }
- else
- {
- faultString = "Endpoint " + epMetaData.getQName() + " does not
contain operation meta data for empty soap body";
- }
-
- // R2724 If an INSTANCE receives a message that is inconsistent with its WSDL
description, it SHOULD generate a soap:Fault
- // with a faultcode of "Client", unless a "MustUnderstand"
or "VersionMismatch" fault is generated.
- if (soapHeader != null &&
soapHeader.examineMustUnderstandHeaderElements(Constants.URI_SOAP11_NEXT_ACTOR).hasNext())
- {
- QName faultCode = Constants.SOAP11_FAULT_CODE_MUST_UNDERSTAND;
- throw new SOAPFaultException(faultCode, faultString, null, null);
- }
- else
- {
- QName faultCode = Constants.SOAP11_FAULT_CODE_CLIENT;
- throw new SOAPFaultException(faultCode, faultString, null, null);
- }
- }
- return opMetaData;
- }
-
- protected Method getImplMethod(Class implClass, Method seiMethod) throws
ClassNotFoundException, NoSuchMethodException
- {
- String methodName = seiMethod.getName();
- Class[] paramTypes = seiMethod.getParameterTypes();
- for (int i = 0; i < paramTypes.length; i++)
- {
- Class paramType = paramTypes[i];
- if (JavaUtils.isPrimitive(paramType) == false)
- {
- String paramTypeName = paramType.getName();
- paramType = JavaUtils.loadJavaType(paramTypeName);
- paramTypes[i] = paramType;
- }
- }
-
- Method implMethod = implClass.getMethod(methodName, paramTypes);
- return implMethod;
- }
-
- /** handle invokation exceptions */
- public void handleInvocationException(Throwable th) throws SOAPFaultException
- {
- if (th instanceof RuntimeException)
- throw (RuntimeException)th;
-
- if (th instanceof InvocationTargetException)
- {
- InvocationTargetException targetException = (InvocationTargetException)th;
- Throwable targetEx = targetException.getTargetException();
- if (targetEx instanceof SOAPFaultException)
- {
- throw (SOAPFaultException)targetEx;
- }
- else
- {
- String faultString = targetEx.toString();
- SOAPFaultException soapFaultEx = new
SOAPFaultException(Constants.SOAP11_FAULT_CODE_CLIENT, faultString, null, null);
- soapFaultEx.initCause(targetEx);
- throw soapFaultEx;
- }
- }
-
- if (th instanceof MBeanException)
- {
- Exception targetEx = ((MBeanException)th).getTargetException();
- if (targetEx instanceof SOAPFaultException)
- {
- throw (SOAPFaultException)targetEx;
- }
- else
- {
- String faultString = targetEx.toString();
- SOAPFaultException soapFaultEx = new
SOAPFaultException(Constants.SOAP11_FAULT_CODE_CLIENT, faultString, null, null);
- soapFaultEx.initCause(targetEx);
- throw soapFaultEx;
- }
- }
-
- String faultString = th.toString();
- SOAPFaultException soapFaultEx = new
SOAPFaultException(Constants.SOAP11_FAULT_CODE_CLIENT, faultString, null, null);
- soapFaultEx.initCause(th);
- throw soapFaultEx;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/AbstractServiceEndpointInvoker.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/AbstractServiceEndpointInvoker.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/EndpointContext.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/EndpointContext.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/EndpointContext.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,76 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.server;
-
-// $Id$
-
-import javax.servlet.ServletContext;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import javax.servlet.http.HttpSession;
-import javax.xml.rpc.handler.MessageContext;
-
-import org.jboss.ws.core.soap.MessageContextAssociation;
-
-/**
- * Implementation of ServletEndpointContext
- *
- * @author Thomas.Diesler(a)jboss.org
- */
-public class EndpointContext
-{
- private ServletContext context;
- private HttpServletRequest request;
- private HttpServletResponse response;
-
- public EndpointContext(ServletContext context, HttpServletRequest request,
HttpServletResponse response)
- {
- this.context = context;
- this.request = request;
- this.response = response;
- }
-
- public HttpSession getHttpSession()
- {
- return request.getSession();
- }
-
- public MessageContext getMessageContext()
- {
- return (MessageContext)MessageContextAssociation.peekMessageContext();
- }
-
- public ServletContext getServletContext()
- {
- return context;
- }
-
- public HttpServletRequest getHttpServletRequest()
- {
- return request;
- }
-
- public HttpServletResponse getHttpServletResponse()
- {
- return response;
- }
-}
\ No newline at end of file
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/EndpointContext.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/EndpointContext.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/HandlerDelegate.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/HandlerDelegate.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/HandlerDelegate.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,40 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.server;
-
-// $Id$
-
-import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
-
-/** An implementation of handles invocations on the endpoint
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 19-Jan-2005
- */
-public interface HandlerDelegate
-{
- public boolean callRequestHandlerChain(ServiceEndpointInfo seInfo, HandlerType type);
-
- public boolean callResponseHandlerChain(ServiceEndpointInfo seInfo, HandlerType
type);
-
- public boolean callFaultHandlerChain(ServiceEndpointInfo seInfo, HandlerType type,
Exception ex);
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/HandlerDelegate.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/HandlerDelegate.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/HeaderSource.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/HeaderSource.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/HeaderSource.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,49 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.server;
-
-import javax.xml.soap.MimeHeaders;
-
-/**
- * Generic abstraction of a source that allows getting and setting
- * of transport specific MIME headers.
- *
- * @author <a href="mailto:jason@stacksmash.com">Jason T.
Greene</a>
- */
-public interface HeaderSource
-{
- /**
- * Gets the MIME headers from an inbound source. An implementation may
- * return <code>null</code> if the transport does not provide headers.
- *
- * @return the MIME headers
- */
- public MimeHeaders getMimeHeaders();
-
- /**
- * Sets the MIME headers for an outbound source. An implementation may
- * return <code>null</code> if the transport does not provide headers.
- *
- * @param headers the MIME headers
- */
- public void setMimeHeaders(MimeHeaders headers);
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/HeaderSource.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/HeaderSource.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/KernelLocator.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/KernelLocator.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/KernelLocator.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,54 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.server;
-
-//$Id: WebServiceDeployer.java 312 2006-05-11 10:49:22Z thomas.diesler(a)jboss.com $
-
-import org.jboss.kernel.Kernel;
-import org.jboss.kernel.spi.dependency.KernelControllerContext;
-import org.jboss.kernel.spi.dependency.KernelControllerContextAware;
-
-/**
- * Locate the single instance of the kernel
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 12-May-2006
- */
-public class KernelLocator implements KernelControllerContextAware
-{
- private static Kernel kernel;
-
- public static Kernel getKernel()
- {
- return kernel;
- }
-
- public void setKernelControllerContext(KernelControllerContext context) throws
Exception
- {
- kernel = context.getKernel();
- }
-
- public void unsetKernelControllerContext(KernelControllerContext arg0) throws
Exception
- {
- kernel = null;
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/KernelLocator.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/KernelLocator.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/MessageContextPropertyHelper.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/MessageContextPropertyHelper.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/MessageContextPropertyHelper.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,41 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.server;
-
-/**
- * Interface to be implemented by property helpers to assist the retrieval
- * of objects added to the property context.
- *
- * If an instance of MessageContextPropertyHelper is added to the
- * CommonMessageContext a call to get for the same property will return
- * the result of callig get on the helper instead of returning the helper
- * itself.
- *
- * @author darran.lofthouse(a)jboss.com
- * @since Oct 22, 2006
- */
-public interface MessageContextPropertyHelper
-{
-
- public Object get();
-
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/MessageContextPropertyHelper.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/MessageContextPropertyHelper.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServerConfig.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServerConfig.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServerConfig.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,46 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.server;
-
-// $Id: ServiceEndpointManagerFactory.java 293 2006-05-08 16:31:50Z
thomas.diesler(a)jboss.com $
-
-import java.io.File;
-
-/**
- * Interface to container independent config
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 08-May-2006
- */
-public interface ServerConfig
-{
- static final String BEAN_NAME = "ServerConfig";
-
- File getServerTempDir();
-
- File getServerDataDir();
-
- int getWebServicePort();
-
- int getWebServiceSecurePort();
-
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServerConfig.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServerConfig.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServerConfigFactory.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServerConfigFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServerConfigFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,57 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.server;
-
-import org.jboss.kernel.spi.registry.KernelRegistry;
-import org.jboss.logging.Logger;
-
-// $Id: ServiceEndpointManagerFactory.java 293 2006-05-08 16:31:50Z
thomas.diesler(a)jboss.com $
-
-/**
- * Factory to container independent config
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 08-May-2006
- */
-public class ServerConfigFactory
-{
- // provide logging
- private static final Logger log = Logger.getLogger(ServerConfigFactory.class);
-
- private static ServerConfigFactory instance = new ServerConfigFactory();
-
- // Hide ctor
- protected ServerConfigFactory()
- {
- }
-
- public static ServerConfigFactory getInstance()
- {
- return instance;
- }
-
- public ServerConfig getServerConfig()
- {
- KernelRegistry registry = KernelLocator.getKernel().getRegistry();
- return (ServerConfig)registry.getEntry(ServerConfig.BEAN_NAME).getTarget();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServerConfigFactory.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServerConfigFactory.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpoint.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpoint.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpoint.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,285 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.server;
-
-// $Id$
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.io.OutputStreamWriter;
-import java.net.URL;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.JAXRPCException;
-import javax.xml.rpc.soap.SOAPFaultException;
-import javax.xml.soap.MimeHeaders;
-import javax.xml.soap.SOAPEnvelope;
-import javax.xml.soap.SOAPMessage;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.Constants;
-import org.jboss.ws.core.CommonMessageContext;
-import org.jboss.ws.core.jaxrpc.SOAPFaultExceptionHelper;
-import org.jboss.ws.core.jaxrpc.binding.BindingException;
-import org.jboss.ws.core.soap.MessageContextAssociation;
-import org.jboss.ws.core.soap.MessageFactoryImpl;
-import org.jboss.ws.core.soap.SOAPElementImpl;
-import org.jboss.ws.core.soap.SOAPElementWriter;
-import org.jboss.ws.core.soap.SOAPMessageImpl;
-import org.jboss.ws.core.utils.DOMWriter;
-import org.jboss.ws.extensions.xop.XOPContext;
-import org.jboss.ws.metadata.umdm.EndpointMetaData;
-import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
-import org.w3c.dom.Document;
-
-/**
- * This object registered with the ServiceEndpointManager service.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 16-Jan-2005
- */
-public class ServiceEndpoint
-{
- // provide logging
- private static Logger log = Logger.getLogger(ServiceEndpoint.class);
- private static Logger msgLog = Logger.getLogger("jbossws.SOAPMessage");
-
- /** Endpoint type enum */
- public enum State
- {
- CREATED, STARTED, STOPED, DESTROYED
- }
-
- // The deployment info for this endpoint
- protected ServiceEndpointInfo seInfo;
- // Some metrics for this endpoint
- protected ServiceEndpointMetrics seMetrics;
-
- public ServiceEndpoint(ServiceEndpointInfo seInfo)
- {
- this.seInfo = seInfo;
- this.seInfo.setState(State.CREATED);
- this.seMetrics = new ServiceEndpointMetrics(seInfo.getServiceEndpointID());
- }
-
- public State getState()
- {
- return seInfo.getState();
- }
-
- public ServiceEndpointInfo getServiceEndpointInfo()
- {
- return seInfo;
- }
-
- public ServiceEndpointMetrics getServiceEndpointMetrics()
- {
- return seMetrics;
- }
-
- public void create() throws Exception
- {
- seInfo.setState(State.CREATED);
- }
-
- public void start() throws Exception
- {
- seMetrics.start();
- seInfo.setState(State.STARTED);
- }
-
- public void stop()
- {
- seMetrics.stop();
- seInfo.setState(State.STOPED);
- log.debug("Stop Endpoint" + seMetrics);
- }
-
- public void destroy()
- {
- seInfo.setState(State.DESTROYED);
- }
-
- /** Handle a WSDL request or a request for an included resource
- */
- public void handleWSDLRequest(OutputStream outStream, URL reqURL, String resPath)
throws IOException
- {
- ServiceEndpointInfo sepInfo = getServiceEndpointInfo();
- EndpointMetaData epMetaData = sepInfo.getServerEndpointMetaData();
-
- String wsdlHost = reqURL.getHost();
-
- ServiceEndpointManagerFactory factory =
ServiceEndpointManagerFactory.getInstance();
- ServiceEndpointManager epManager = factory.getServiceEndpointManager();
- if (epManager.getWebServiceHost().equals(ServiceEndpointManager.UNDEFINED_HOSTNAME)
== false)
- {
- wsdlHost = epManager.getWebServiceHost();
- }
- log.debug("WSDL request, using host: " + wsdlHost);
-
- WSDLRequestHandler wsdlRequestHandler = new WSDLRequestHandler(epMetaData);
- Document document = wsdlRequestHandler.getDocumentForPath(reqURL, wsdlHost,
resPath);
-
- OutputStreamWriter writer = new OutputStreamWriter(outStream);
- new DOMWriter(writer).setPrettyprint(true).print(document.getDocumentElement());
- outStream.flush();
- outStream.close();
- }
-
- /**
- * Handle a request to this web service endpoint
- */
- public SOAPMessage handleRequest(HeaderSource headerSource, EndpointContext context,
InputStream inputStream) throws BindingException
- {
- CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
- ServerEndpointMetaData epMetaData = seInfo.getServerEndpointMetaData();
-
- long beginProcessing = 0;
- ClassLoader ctxClassLoader = Thread.currentThread().getContextClassLoader();
- try
- {
- State state = seInfo.getState();
- if (state != State.STARTED)
- {
- QName faultCode = Constants.SOAP11_FAULT_CODE_SERVER;
- String faultString = "Endpoint cannot handle requests in state: " +
state;
- throw new SOAPFaultException(faultCode, faultString, null, null);
- }
-
- log.debug("BEGIN handleRequest: " + seInfo.getServiceEndpointID());
- beginProcessing = seMetrics.processRequestMessage();
-
- MessageFactoryImpl msgFactory = new MessageFactoryImpl();
- msgFactory.setStyle(epMetaData.getStyle());
-
- MimeHeaders headers = (headerSource != null ? headerSource.getMimeHeaders() :
null);
- SOAPMessageImpl reqMessage = (SOAPMessageImpl)msgFactory.createMessage(headers,
inputStream);
-
- // Associate current message with message context
- msgContext.setSOAPMessage(reqMessage);
-
- // debug the incomming message
- if (msgLog.isTraceEnabled())
- {
- SOAPEnvelope soapEnv = reqMessage.getSOAPPart().getEnvelope();
- String envStr = SOAPElementWriter.writeElement((SOAPElementImpl)soapEnv,
true);
- msgLog.trace("Incomming SOAPMessage\n" + envStr);
- }
-
- // Set the thread context class loader
- ClassLoader classLoader = epMetaData.getClassLoader();
- Thread.currentThread().setContextClassLoader(classLoader);
-
- // Invoke the service endpoint
- ServiceEndpointInvoker seInvoker = seInfo.getInvoker();
- SOAPMessage resMessage = seInvoker.invoke(seInfo, context);
-
- postProcessResponse(headerSource, resMessage);
-
- return resMessage;
- }
- catch (Exception ex)
- {
- SOAPMessage resMessage = msgContext.getSOAPMessage();
-
- // In case we have an exception before the invoker is called
- // we create the fault message here.
- if (resMessage == null || ((SOAPMessageImpl)resMessage).isFaultMessage() ==
false)
- {
- resMessage = SOAPFaultExceptionHelper.exceptionToFaultMessage(ex);
- msgContext.setSOAPMessage(resMessage);
- }
-
- postProcessResponse(headerSource, resMessage);
- return resMessage;
- }
- finally
- {
- try
- {
- SOAPMessage soapMessage = msgContext.getSOAPMessage();
- if (soapMessage != null && soapMessage.getSOAPPart().getEnvelope() !=
null)
- {
- if (soapMessage.getSOAPPart().getEnvelope().getBody().getFault() != null)
- {
- seMetrics.processFaultMessage(beginProcessing);
- }
- else
- {
- seMetrics.processResponseMessage(beginProcessing);
- }
- }
- }
- catch (Exception ex)
- {
- log.error("Cannot process metrics", ex);
- }
-
- // Reset the thread context class loader
- Thread.currentThread().setContextClassLoader(ctxClassLoader);
- log.debug("END handleRequest: " + seInfo.getServiceEndpointID());
- }
- }
-
- /** Set response mime headers
- */
- private void postProcessResponse(HeaderSource headerSource, SOAPMessage resMessage)
- {
- try
- {
- // Set the outbound headers
- if (headerSource != null)
- {
- XOPContext.eagerlyCreateAttachments();
- resMessage.saveChanges();
- headerSource.setMimeHeaders(resMessage.getMimeHeaders());
- }
-
- // debug the outgoing message
- if (msgLog.isTraceEnabled())
- {
- resMessage.saveChanges();
- SOAPEnvelope soapEnv = resMessage.getSOAPPart().getEnvelope();
- if (soapEnv != null)
- {
- String envStr = SOAPElementWriter.writeElement((SOAPElementImpl)soapEnv,
true);
- msgLog.trace("Outgoing SOAPMessage\n" + envStr);
- }
- }
- }
- catch (Exception ex)
- {
- throw new JAXRPCException("Cannot create or send response message",
ex);
- }
- }
-
- /**
- * Returns a string representation of the object.
- */
- public String toString()
- {
- StringBuilder buffer = new StringBuilder(seInfo.toString());
- buffer.append("\n state=" + seInfo.getState());
- return buffer.toString();
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpoint.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpoint.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointInfo.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointInfo.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointInfo.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,149 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.server;
-
-// $Id$
-
-import javax.management.ObjectName;
-
-import org.jboss.ws.WSException;
-import org.jboss.ws.deployment.UnifiedDeploymentInfo;
-import org.jboss.ws.deployment.UnifiedDeploymentInfo.DeploymentType;
-import org.jboss.ws.metadata.j2ee.UnifiedApplicationMetaData;
-import org.jboss.ws.metadata.j2ee.UnifiedBeanMetaData;
-import org.jboss.ws.metadata.j2ee.UnifiedMessageDrivenMetaData;
-import org.jboss.ws.metadata.j2ee.UnifiedSessionMetaData;
-import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
-
-/**
- * This object registered with the EndpointManager service.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 16-Jan-2005
- */
-public class ServiceEndpointInfo
-{
- /** Endpoint type enum */
- public enum EndpointType
- {
- JSE, SLSB21, SLSB30, MDB21
- }
-
- // The deployment info for this endpoint
- private UnifiedDeploymentInfo udi;
- // The endpoint type
- private EndpointType type;
- // The endpoint meta data
- private ServerEndpointMetaData sepMetaData;
- // The service endpoint invoker
- private ServiceEndpointInvoker seInvoker;
- // The current state of the endpoint
- private ServiceEndpoint.State state;
-
- public ServiceEndpointInfo(UnifiedDeploymentInfo udi, ServerEndpointMetaData
sepMetaData)
- {
- this.udi = udi;
- this.sepMetaData = sepMetaData;
-
- // Set the endpoint type
- if (udi.type == DeploymentType.JSR109_JSE || udi.type == DeploymentType.JSR181_JSE
|| udi.type == DeploymentType.JAXWS_PROVIDER_JSE)
- {
- this.type = EndpointType.JSE;
- }
- else if (udi.type == DeploymentType.JSR109_EJB21 || udi.type ==
DeploymentType.JSR181_EJB21 || udi.type == DeploymentType.JAXWS_PROVIDER_EJB21)
- {
- String ejbName = sepMetaData.getLinkName();
- if (ejbName == null)
- throw new WSException("Cannot obtain ejb-link from port
component");
-
- UnifiedApplicationMetaData applMetaData =
(UnifiedApplicationMetaData)udi.metaData;
- UnifiedBeanMetaData beanMetaData =
(UnifiedBeanMetaData)applMetaData.getBeanByEjbName(ejbName);
- if (beanMetaData == null)
- throw new WSException("Cannot obtain ejb meta data for: " +
ejbName);
-
- if (beanMetaData instanceof UnifiedSessionMetaData)
- {
- this.type = EndpointType.SLSB21;
- }
- else if (beanMetaData instanceof UnifiedMessageDrivenMetaData)
- {
- this.type = EndpointType.MDB21;
- }
- }
- else if (udi.type == DeploymentType.JSR181_EJB3 || udi.type ==
DeploymentType.JAXWS_PROVIDER_EJB3)
- {
- this.type = EndpointType.SLSB30;
- }
-
- if (type == null)
- throw new WSException("Unsupported endpoint type: " + type);
- }
-
- public ServerEndpointMetaData getServerEndpointMetaData()
- {
- return sepMetaData;
- }
-
- public ObjectName getServiceEndpointID()
- {
- return sepMetaData.getServiceEndpointID();
- }
-
- public UnifiedDeploymentInfo getUnifiedDeploymentInfo()
- {
- return udi;
- }
-
- public EndpointType getType()
- {
- return type;
- }
-
- public ServiceEndpointInvoker getInvoker()
- {
- return seInvoker;
- }
-
- public void setInvoker(ServiceEndpointInvoker seInvoker)
- {
- this.seInvoker = seInvoker;
- }
-
- public ServiceEndpoint.State getState()
- {
- return state;
- }
-
- public void setState(ServiceEndpoint.State state)
- {
- this.state = state;
- }
-
- /**
- * Returns a string representation of the object.
- */
- public String toString()
- {
- StringBuilder buffer = new StringBuilder("[id=" + getServiceEndpointID()
+ "state=" + state + "]");
- return buffer.toString();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointInfo.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointInfo.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointInvoker.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointInvoker.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointInvoker.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,40 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.server;
-
-// $Id$
-
-import javax.xml.soap.SOAPMessage;
-
-/** An implementation handles invocations on the endpoint
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 19-Jan-2005
- */
-public interface ServiceEndpointInvoker
-{
- /** Initialize the service endpoint */
- public void initServiceEndpoint(ServiceEndpointInfo seInfo);
-
- /** Invoke the the service endpoint */
- public SOAPMessage invoke(ServiceEndpointInfo seInfo, Object endpointContext) throws
Exception;
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointInvoker.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointInvoker.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointInvokerJSE.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointInvokerJSE.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointInvokerJSE.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,108 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.server;
-
-// $Id$
-
-import java.lang.reflect.Method;
-
-import javax.xml.rpc.ServiceException;
-import javax.xml.rpc.server.ServiceLifecycle;
-import javax.xml.rpc.server.ServletEndpointContext;
-import javax.xml.rpc.soap.SOAPFaultException;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.EndpointInvocation;
-import org.jboss.ws.core.jaxrpc.ServletEndpointContextImpl;
-import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
-
-/**
- * Handles invocations on JSE endpoints.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 19-Jan-2005
- */
-public class ServiceEndpointInvokerJSE extends AbstractServiceEndpointInvoker implements
ServiceEndpointInvoker
-{
- // provide logging
- private Logger log = Logger.getLogger(ServiceEndpointInvokerJSE.class);
-
- /** Load the SEI implementation bean if necessary */
- public Class loadServiceEndpoint(ServiceEndpointInfo seInfo) throws
ClassNotFoundException
- {
- ServerEndpointMetaData epMetaData = seInfo.getServerEndpointMetaData();
- ClassLoader cl = epMetaData.getClassLoader();
- String seiImplName = epMetaData.getServiceEndpointImplName();
- Class seiImplClass = cl.loadClass(seiImplName);
- return seiImplClass;
- }
-
- /** Create an instance of the SEI implementation bean if necessary */
- public Object createServiceEndpoint(ServiceEndpointInfo seInfo, Object context, Class
seiImplClass) throws IllegalAccessException, InstantiationException
- {
- Object seiImpl = seiImplClass.newInstance();
- if (seiImpl instanceof ServiceLifecycle && context != null)
- {
- try
- {
- ServiceLifecycle serviceLifecycle = ((ServiceLifecycle)seiImpl);
- ServletEndpointContext servletEndpointContext = new
ServletEndpointContextImpl((EndpointContext)context);
- serviceLifecycle.init(servletEndpointContext);
- }
- catch (ServiceException ex)
- {
- throw new WSException(ex);
- }
- }
- return seiImpl;
- }
-
- /** Invoke an instance of the SEI implementation bean */
- public void invokeServiceEndpoint(ServiceEndpointInfo seInfo, Object seiImpl,
EndpointInvocation epInv) throws SOAPFaultException
- {
- log.debug("invokeServiceEndpoint: " + epInv.getJavaMethod().getName());
- try
- {
- Class implClass = seiImpl.getClass();
- Method seiMethod = epInv.getJavaMethod();
- Method implMethod = getImplMethod(implClass, seiMethod);
-
- Object[] args = epInv.getRequestPayload();
- Object retObj = implMethod.invoke(seiImpl, args);
- epInv.setReturnValue(retObj);
- }
- catch (Exception e)
- {
- handleInvocationException(e);
- }
- }
-
- /** Destroy an instance of the SEI implementation bean if necessary */
- public void destroyServiceEndpoint(ServiceEndpointInfo seInfo, Object seiImpl)
- {
- if (seiImpl instanceof ServiceLifecycle)
- {
- ((ServiceLifecycle)seiImpl).destroy();
- }
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointInvokerJSE.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointInvokerJSE.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointManager.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointManager.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointManager.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,647 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.server;
-
-// $Id$
-
-import java.io.ByteArrayInputStream;
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.io.PrintWriter;
-import java.io.StringWriter;
-import java.lang.reflect.Constructor;
-import java.net.InetAddress;
-import java.net.URL;
-import java.net.UnknownHostException;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-import java.util.concurrent.ConcurrentHashMap;
-
-import javax.management.MBeanServer;
-import javax.management.MBeanServerFactory;
-import javax.management.ObjectName;
-import javax.servlet.ServletContext;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import javax.xml.soap.SOAPEnvelope;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPMessage;
-import javax.xml.soap.SOAPPart;
-import javax.xml.ws.addressing.AddressingProperties;
-import javax.xml.ws.addressing.JAXWSAConstants;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.CommonMessageContext;
-import org.jboss.ws.core.jaxrpc.handler.MessageContextJAXRPC;
-import org.jboss.ws.core.jaxrpc.handler.SOAPMessageContextJAXRPC;
-import org.jboss.ws.core.soap.MessageContextAssociation;
-import org.jboss.ws.core.soap.SOAPConnectionImpl;
-import org.jboss.ws.core.utils.ThreadLocalAssociation;
-import org.jboss.ws.extensions.addressing.AddressingConstantsImpl;
-import org.jboss.ws.metadata.umdm.HandlerMetaData;
-import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
-import org.jboss.ws.metadata.umdm.UnifiedMetaData;
-import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
-
-/**
- * A service that manages JBossWS endpoints.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 15-Jan-2005
- */
-public class ServiceEndpointManager implements ServiceEndpointManagerMBean
-{
- // provide logging
- private static final Logger log = Logger.getLogger(ServiceEndpointManager.class);
-
- // Default bean name
- public static final String BEAN_NAME = "ServiceEndpointManager";
- // The host name that is returned if there is no other defined
- public static String UNDEFINED_HOSTNAME = "jbossws.undefined.host";
-
- // maps serviceID to EndpointInfo
- private Map<ObjectName, ServiceEndpoint> registry = new
ConcurrentHashMap<ObjectName, ServiceEndpoint>();
-
- // The webservice host name that will be used when updating the wsdl
- private String webServiceHost = UNDEFINED_HOSTNAME;
- // The webservice port that will be used when updating the wsdl
- private int webServicePort;
- // The webservice port that will be used when updating the wsdl
- private int webServiceSecurePort;
- // Whether we should always modify the soap address to the deployed endpoing location
- private boolean alwaysModifySOAPAddress;
- // The name of the invoker that handles invocations on JSE endpoints
- private String serviceEndpointInvokerJSE;
- // The name of the invoker that handles invocations on EJB2.1 endpoints
- private String serviceEndpointInvokerEJB21;
- // The name of the invoker that handles invocations on EJB3 endpoints
- private String serviceEndpointInvokerEJB3;
- // The name of the invoker that handles invocations on MDB endpoints
- private String serviceEndpointInvokerMDB;
-
- public String getWebServiceHost()
- {
- return webServiceHost;
- }
-
- public int getWebServicePort()
- {
- if (webServicePort <= 0)
- {
- ServerConfigFactory factory = ServerConfigFactory.getInstance();
- ServerConfig config = factory.getServerConfig();
- webServicePort = config.getWebServicePort();
- }
-
- return webServicePort;
- }
-
- public int getWebServiceSecurePort()
- {
- if (webServiceSecurePort <= 0)
- {
- ServerConfigFactory factory = ServerConfigFactory.getInstance();
- ServerConfig config = factory.getServerConfig();
- webServiceSecurePort = config.getWebServiceSecurePort();
- }
-
- return webServiceSecurePort;
- }
-
- public boolean isAlwaysModifySOAPAddress()
- {
- return alwaysModifySOAPAddress;
- }
-
- public void setWebServiceHost(String host) throws UnknownHostException
- {
- if (host == null || host.trim().length() == 0)
- {
- log.debug("Using undefined host: " + UNDEFINED_HOSTNAME);
- host = UNDEFINED_HOSTNAME;
- }
- if ("0.0.0.0".equals(host))
- {
- InetAddress localHost = InetAddress.getLocalHost();
- log.debug("Using local host: " + localHost.getHostName());
- host = localHost.getHostName();
- }
- this.webServiceHost = host;
- }
-
- public void setWebServicePort(int port)
- {
- this.webServicePort = port;
- }
-
- public void setWebServiceSecurePort(int port)
- {
- this.webServiceSecurePort = port;
- }
-
- public void setAlwaysModifySOAPAddress(boolean modify)
- {
- this.alwaysModifySOAPAddress = modify;
- }
-
- public String getServiceEndpointInvokerEJB21()
- {
- return serviceEndpointInvokerEJB21;
- }
-
- public void setServiceEndpointInvokerEJB21(String invoker)
- {
- this.serviceEndpointInvokerEJB21 = invoker;
- }
-
- public String getServiceEndpointInvokerEJB3()
- {
- return serviceEndpointInvokerEJB3;
- }
-
- public void setServiceEndpointInvokerEJB3(String invoker)
- {
- this.serviceEndpointInvokerEJB3 = invoker;
- }
-
- public String getServiceEndpointInvokerMDB()
- {
- return serviceEndpointInvokerMDB;
- }
-
- public void setServiceEndpointInvokerMDB(String invoker)
- {
- this.serviceEndpointInvokerMDB = invoker;
- }
-
- public String getServiceEndpointInvokerJSE()
- {
- return serviceEndpointInvokerJSE;
- }
-
- public void setServiceEndpointInvokerJSE(String invoker)
- {
- this.serviceEndpointInvokerJSE = invoker;
- }
-
- public List<ObjectName> getServiceEndpoints()
- {
- ArrayList<ObjectName> list = new ArrayList<ObjectName>();
- list.addAll(registry.keySet());
- return list;
- }
-
- /** Get service endpoint for a given serviceID
- *
- * The keys into the registry are:
- *
- * [deploment.ear]/[deployment.war]#WsdlService/PortName
- * [deploment.ear]/[deployment.jar]#ServiceName/PortName
- *
- */
- public ServiceEndpoint getServiceEndpointByID(ObjectName sepID)
- {
- ServiceEndpoint wsEndpoint = (ServiceEndpoint)registry.get(sepID);
- if (wsEndpoint == null)
- log.warn("No ServiceEndpoint found for serviceID: " + sepID);
-
- return wsEndpoint;
- }
-
- /** Resolve a port-component-link, like:
- *
- * [deployment.war]#PortComponentName
- * [deployment.jar]#PortComponentName
- *
- */
- public ServiceEndpoint resolvePortComponentLink(String pcLink)
- {
- String pcName = pcLink;
- int hashIndex = pcLink.indexOf("#");
- if (hashIndex > 0)
- {
- pcName = pcLink.substring(hashIndex + 1);
- }
-
- ServiceEndpoint serviceEndpoint = null;
- for (ObjectName sepID : registry.keySet())
- {
- ServiceEndpoint auxEndpoint = registry.get(sepID);
- ServiceEndpointInfo sepInfo = auxEndpoint.getServiceEndpointInfo();
- if (pcName.equals(sepInfo.getServerEndpointMetaData().getPortComponentName()))
- {
- if (serviceEndpoint != null)
- {
- log.warn("Multiple service endoints found for: " + pcLink);
- serviceEndpoint = null;
- break;
- }
- serviceEndpoint = auxEndpoint;
- }
- }
-
- if (serviceEndpoint == null)
- log.warn("No ServiceEndpoint found for pcLink: " + pcLink);
-
- return serviceEndpoint;
- }
-
- /** Show the registered webservices
- */
- public String showServiceEndpointTable()
- {
- StringWriter sw = new StringWriter();
- PrintWriter pw = new PrintWriter(sw);
-
- pw.println("<h3>Registered Service Endpoints</h3>");
-
- pw.println("<table>");
-
pw.println("<tr><td>ServiceEndpointID</td><td>ServiceEndpointAddress</td><td> </td></tr>");
- Iterator it = registry.entrySet().iterator();
- while (it.hasNext())
- {
- Map.Entry entry = (Map.Entry)it.next();
- ObjectName sepID = (ObjectName)entry.getKey();
- ServiceEndpoint wsEndpoint = (ServiceEndpoint)entry.getValue();
- ServiceEndpointInfo seInfo = wsEndpoint.getServiceEndpointInfo();
- String endpointAddress =
seInfo.getServerEndpointMetaData().getEndpointAddress();
- pw.println("<tr><td>" + sepID.getCanonicalName() +
"</td><td><a href='" + endpointAddress +
"?wsdl'>" + endpointAddress +
"?wsdl</a></td></tr>");
- }
- pw.println("</table>");
- pw.close();
-
- return sw.toString();
- }
-
- /** Get the endpoint metrics
- */
- public ServiceEndpointMetrics getServiceEndpointMetrics(ObjectName sepID)
- {
- ServiceEndpoint wsEndpoint = getServiceEndpointByID(sepID);
- return (wsEndpoint != null ? wsEndpoint.getServiceEndpointMetrics() : null);
- }
-
- /** Show endpoint metrics
- */
- public String showServiceEndpointMetrics(ObjectName sepID)
- {
- StringWriter sw = new StringWriter();
- PrintWriter pw = new PrintWriter(sw);
-
- ServiceEndpointMetrics seMetrics = getServiceEndpointMetrics(sepID);
- if (seMetrics != null)
- {
- pw.println("<h3>Service Endpoint Metrics</h3>");
-
- pw.println("<table>");
- pw.println("<tr><td>EndpointID</td><td>" +
seMetrics.getEndpointID() + "</td></tr>");
- pw.println("<tr><td>Start Time</td><td>" +
seMetrics.getStartTime() + "</td></tr>");
- pw.println("<tr><td>Stop Time</td><td>" +
seMetrics.getStopTime() + "</td></tr>");
- pw.println("<tr><td>Request Count</td><td>" +
seMetrics.getRequestCount() + "</td></tr>");
- pw.println("<tr><td>Response Count</td><td>" +
seMetrics.getRequestCount() + "</td></tr>");
- pw.println("<tr><td>Fault Count</td><td>" +
seMetrics.getResponseCount() + "</td></tr>");
- pw.println("<tr><td>Max Processing
Time</td><td>" + seMetrics.getMaxProcessingTime() +
"</td></tr>");
- pw.println("<tr><td>Min Processing
Time</td><td>" + seMetrics.getMinProcessingTime() +
"</td></tr>");
- pw.println("<tr><td>Avg Processing
Time</td><td>" + seMetrics.getAverageProcessingTime() +
"</td></tr>");
- pw.println("<tr><td>Total Processing
Time</td><td>" + seMetrics.getTotalProcessingTime() +
"</td></tr>");
- pw.println("</table>");
- pw.close();
- }
- return sw.toString();
- }
-
- public void processWSDLRequest(ObjectName sepID, OutputStream outStream, URL
requestURL, String resourcePath) throws Exception
- {
- ServiceEndpoint wsEndpoint = getServiceEndpointByID(sepID);
- if (wsEndpoint == null)
- throw new WSException("Cannot obtain endpoint for: " + sepID);
-
- wsEndpoint.handleWSDLRequest(outStream, requestURL, resourcePath);
- }
-
- public void processSOAPRequest(ObjectName sepID, InputStream inStream, OutputStream
outStream, EndpointContext context) throws Exception
- {
- ServiceEndpoint wsEndpoint = getServiceEndpointByID(sepID);
- if (wsEndpoint == null)
- throw new WSException("Cannot obtain endpoint for: " + sepID);
-
- // Get the type of the endpoint
- ServerEndpointMetaData sepMetaData =
wsEndpoint.getServiceEndpointInfo().getServerEndpointMetaData();
-
- MessageContextPropertyHelper httpSession = new HttpSessionPropertyHelper(context);
- ServletContext servletContext = context.getServletContext();
- HttpServletRequest httpRequest = context.getHttpServletRequest();
- HttpServletResponse httpResponse = context.getHttpServletResponse();
- ServletHeaderSource headerSource = new ServletHeaderSource(httpRequest,
httpResponse);
-
- // Associate a message context with the current thread
- CommonMessageContext msgContext = new SOAPMessageContextJAXRPC();
- msgContext.setProperty(MessageContextJAXRPC.SERVLET_CONTEXT, servletContext);
- msgContext.setProperty(MessageContextJAXRPC.SERVLET_REQUEST, httpRequest);
- msgContext.setProperty(MessageContextJAXRPC.SERVLET_RESPONSE, httpResponse);
- msgContext.setProperty(MessageContextJAXRPC.SERVLET_SESSION, httpSession);
- msgContext.setEndpointMetaData(sepMetaData);
-
- MessageContextAssociation.pushMessageContext(msgContext);
- try
- {
- SOAPMessage resMessage = wsEndpoint.handleRequest(headerSource, context,
inStream);
-
- //Map<String, List<String>> headers = (Map<String,
List<String>>)msgContext.getProperty(MessageContextJAXWS.HTTP_RESPONSE_HEADERS);
- //if (headers != null)
- // headerSource.setHeaderMap(headers);
-
- //Integer code =
(Integer)msgContext.getProperty(MessageContextJAXWS.HTTP_RESPONSE_CODE);
- //if (code != null)
- // httpResponse.setStatus(code.intValue());
-
- SOAPPart part = resMessage.getSOAPPart();
- if (part == null)
- throw new SOAPException("Cannot obtain SOAPPart from response
message");
-
- // R1126 An INSTANCE MUST return a "500 Internal Server Error" HTTP
status code
- // if the response envelope is a Fault.
- //
- // Also, a one-way operation must show up as empty content, and can be detected
- // by a null envelope.
- SOAPEnvelope soapEnv = part.getEnvelope();
- boolean isFault = soapEnv != null && soapEnv.getBody().getFault() !=
null;
- if (isFault && httpResponse != null)
- {
- httpResponse.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
- }
-
- sendResponse(outStream, msgContext, isFault);
- }
- finally
- {
- outStream.flush();
- outStream.close();
-
- // Reset the message context association
- MessageContextAssociation.popMessageContext();
-
- // clear thread local storage
- ThreadLocalAssociation.clear();
- }
- }
-
- private void sendResponse(OutputStream outputStream, CommonMessageContext msgContext,
boolean isFault) throws SOAPException, IOException
- {
- SOAPMessage soapMessage = msgContext.getSOAPMessage();
- String wsaTo = null;
-
- // Get the destination from the AddressingProperties
- AddressingProperties outProps =
(AddressingProperties)msgContext.getProperty(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_OUTBOUND);
- if (outProps != null && outProps.getTo() != null)
- {
- AddressingConstantsImpl ADDR = new AddressingConstantsImpl();
- wsaTo = outProps.getTo().getURI().toString();
- if (wsaTo.equals(ADDR.getAnonymousURI()))
- wsaTo = null;
- }
- if (wsaTo != null)
- {
- log.debug("Sending response to addressing destination: " + wsaTo);
- new SOAPConnectionImpl().callOneWay(soapMessage, wsaTo);
- }
- else
- {
- soapMessage.writeTo(outputStream);
- }
- }
-
- /** Process the given SOAPRequest and return the corresponding SOAPResponse
- */
- public String processSOAPRequest(ObjectName sepID, String inMessage) throws Exception
- {
- log.debug("processSOAPRequest: " + sepID);
-
- ByteArrayInputStream inputStream = new
ByteArrayInputStream(inMessage.getBytes("UTF-8"));
- ByteArrayOutputStream outputStream = new ByteArrayOutputStream(512);
-
- processSOAPRequest(sepID, inputStream, outputStream, null);
-
- String outMsg = new String(outputStream.toByteArray());
- return outMsg;
- }
-
- /** Get the ServiceEndpointInvoker for this type of service endpoint
- */
- private ServiceEndpointInvoker getServiceEndpointInvoker(ServiceEndpointInfo seInfo)
throws ClassNotFoundException, InstantiationException, IllegalAccessException
- {
- ServiceEndpointInvoker seInvoker = null;
-
- ClassLoader cl = Thread.currentThread().getContextClassLoader();
- if (seInfo.getType() == ServiceEndpointInfo.EndpointType.JSE)
- {
- Class seInvokerClass = cl.loadClass(serviceEndpointInvokerJSE);
- seInvoker = (ServiceEndpointInvoker)seInvokerClass.newInstance();
- }
- else if (seInfo.getType() == ServiceEndpointInfo.EndpointType.SLSB21)
- {
- Class seInvokerClass = cl.loadClass(serviceEndpointInvokerEJB21);
- seInvoker = (ServiceEndpointInvoker)seInvokerClass.newInstance();
- }
- else if (seInfo.getType() == ServiceEndpointInfo.EndpointType.SLSB30)
- {
- Class seInvokerClass = cl.loadClass(serviceEndpointInvokerEJB3);
- seInvoker = (ServiceEndpointInvoker)seInvokerClass.newInstance();
- }
- else if (seInfo.getType() == ServiceEndpointInfo.EndpointType.MDB21)
- {
- Class seInvokerClass = cl.loadClass(serviceEndpointInvokerMDB);
- seInvoker = (ServiceEndpointInvoker)seInvokerClass.newInstance();
- }
-
- if (seInvoker == null)
- throw new WSException("Cannot obtain service endpoint invoker");
-
- return seInvoker;
- }
-
- /** Get the list of HandlerInfos associated with a given service endpoint
- */
- public List<HandlerMetaData> getHandlerMetaData(ObjectName sepID)
- {
- ServiceEndpoint wsEndpoint = getServiceEndpointByID(sepID);
- if (wsEndpoint == null)
- throw new WSException("Cannot find service endpoint: " + sepID);
-
- List<HandlerMetaData> handlers = null;
- if (wsEndpoint != null)
- {
- ServerEndpointMetaData sepMetaData =
wsEndpoint.getServiceEndpointInfo().getServerEndpointMetaData();
- handlers = sepMetaData.getHandlerMetaData(HandlerType.ALL);
- }
- return handlers;
- }
-
- /**
- * Dynamically change the list of handlers associated with a given service endpoint
- * The endpoint is expected to be in STOPED state
- */
- public void setHandlerMetaData(ObjectName sepID, List<HandlerMetaData>
handlers)
- {
- ServiceEndpoint wsEndpoint = getServiceEndpointByID(sepID);
- if (wsEndpoint == null)
- throw new WSException("Cannot find service endpoint: " + sepID);
-
- ServiceEndpointInfo sepInfo = wsEndpoint.getServiceEndpointInfo();
- if (sepInfo.getState() != ServiceEndpoint.State.STOPED)
- throw new WSException("Endpoint expected to be in STOPED state");
-
- ServerEndpointMetaData sepMetaData =
wsEndpoint.getServiceEndpointInfo().getServerEndpointMetaData();
- sepMetaData.clearHandlers();
-
- for (HandlerMetaData handlerMetaData : handlers)
- {
- handlerMetaData.setEndpointMetaData(sepMetaData);
- sepMetaData.addHandler(handlerMetaData);
- }
- }
-
- /** Create a service endpoint
- */
- public void createServiceEndpoint(ServiceEndpointInfo seInfo) throws Exception
- {
- ObjectName sepID = seInfo.getServiceEndpointID();
- if (registry.get(sepID) != null)
- throw new WSException("Service already registerd: " + sepID);
-
- ServiceEndpointInvoker seInvoker = getServiceEndpointInvoker(seInfo);
- seInvoker.initServiceEndpoint(seInfo);
- seInfo.setInvoker(seInvoker);
-
- // Load/Create the service endpoint impl
- ClassLoader ctxLoader = Thread.currentThread().getContextClassLoader();
- ServerEndpointMetaData epMetaData = seInfo.getServerEndpointMetaData();
- String managedEndpointBean = epMetaData.getManagedEndpointBean();
- Class seClass = ctxLoader.loadClass(managedEndpointBean);
- Constructor ctor = seClass.getConstructor(new Class[] { ServiceEndpointInfo.class
});
- ServiceEndpoint wsEndpoint = (ServiceEndpoint)ctor.newInstance(new Object[] {
seInfo });
- wsEndpoint.create();
-
- // Register the endpoint with the MBeanServer
- registry.put(sepID, wsEndpoint);
-
- log.debug("WebService created: " + sepID);
- }
-
- /** Start a service endpoint
- */
- public void startServiceEndpoint(ObjectName sepID) throws Exception
- {
- ServiceEndpoint wsEndpoint = getServiceEndpointByID(sepID);
- if (wsEndpoint == null)
- throw new WSException("Cannot find service endpoint: " + sepID);
-
- wsEndpoint.start();
-
- ServiceEndpointInfo seInfo = wsEndpoint.getServiceEndpointInfo();
- log.info("WebService started: " +
seInfo.getServerEndpointMetaData().getEndpointAddress());
- }
-
- /** Stop a service endpoint
- */
- public void stopServiceEndpoint(ObjectName sepID) throws Exception
- {
- ServiceEndpoint wsEndpoint = getServiceEndpointByID(sepID);
- if (wsEndpoint == null)
- throw new WSException("Cannot find service endpoint: " + sepID);
-
- wsEndpoint.stop();
-
- ServiceEndpointInfo seInfo = wsEndpoint.getServiceEndpointInfo();
- log.info("WebService stopped: " +
seInfo.getServerEndpointMetaData().getEndpointAddress());
- }
-
- /** Destroy a service endpoint
- */
- public void destroyServiceEndpoint(ObjectName sepID) throws Exception
- {
- ServiceEndpoint wsEndpoint = getServiceEndpointByID(sepID);
- if (wsEndpoint == null)
- throw new WSException("Cannot find service endpoint: " + sepID);
-
- wsEndpoint.destroy();
-
- // Remove the endpoint from the MBeanServer
- registry.remove(sepID);
-
- ServiceEndpointInfo seInfo = wsEndpoint.getServiceEndpointInfo();
- log.debug("WebService destroyed: " +
seInfo.getServerEndpointMetaData().getEndpointAddress());
- }
-
- public void create() throws Exception
- {
- log.info(UnifiedMetaData.getImplementationVersion());
- MBeanServer server = getJMXServer();
- if (server != null)
- {
- server.registerMBean(this, OBJECT_NAME);
- }
- }
-
- public void destroy() throws Exception
- {
- log.debug("Destroy service endpoint manager");
- MBeanServer server = getJMXServer();
- if (server != null)
- {
- server.unregisterMBean(OBJECT_NAME);
- }
- }
-
- private MBeanServer getJMXServer()
- {
- MBeanServer server = null;
- ArrayList servers = MBeanServerFactory.findMBeanServer(null);
- if (servers.size() > 0)
- {
- server = (MBeanServer)servers.get(0);
- }
- return server;
- }
-
- public static class HttpSessionPropertyHelper implements MessageContextPropertyHelper
- {
-
- private EndpointContext context;
-
- public HttpSessionPropertyHelper(final EndpointContext context)
- {
- this.context = context;
- }
-
- public Object get()
- {
- return context.getHttpSession();
- }
-
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointManager.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointManager.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointManagerFactory.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointManagerFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointManagerFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,55 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.server;
-
-import org.jboss.kernel.spi.registry.KernelRegistry;
-import org.jboss.kernel.spi.registry.KernelRegistryEntry;
-
-// $Id: ServiceEndpointManagerFactory.java 320 2006-05-14 17:55:53Z
thomas.diesler(a)jboss.com $
-
-/**
- * Factory to the singleton instance of the ServiceEndpointManager
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 08-May-2006
- */
-public class ServiceEndpointManagerFactory
-{
- private static ServiceEndpointManagerFactory instance = new
ServiceEndpointManagerFactory();
-
- // Hide ctor
- private ServiceEndpointManagerFactory()
- {
- }
-
- public static ServiceEndpointManagerFactory getInstance()
- {
- return instance;
- }
-
- public ServiceEndpointManager getServiceEndpointManager()
- {
- KernelRegistry registry = KernelLocator.getKernel().getRegistry();
- KernelRegistryEntry entry = registry.getEntry(ServiceEndpointManager.BEAN_NAME);
- return (ServiceEndpointManager)entry.getTarget();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointManagerFactory.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointManagerFactory.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointManagerMBean.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointManagerMBean.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointManagerMBean.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,58 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.server;
-
-import java.net.UnknownHostException;
-import java.util.List;
-
-import javax.management.ObjectName;
-
-import org.jboss.ws.core.utils.ObjectNameFactory;
-import org.jboss.ws.metadata.umdm.HandlerMetaData;
-
-/**
- * MBean interface.
- * @since 15-April-2004
- */
-public interface ServiceEndpointManagerMBean
-{
- // default object name
- static final ObjectName OBJECT_NAME =
ObjectNameFactory.create("jboss.ws:service=ServiceEndpointManager");
-
- String getWebServiceHost();
- void setWebServiceHost(String host) throws UnknownHostException;
-
- int getWebServicePort();
- void setWebServicePort(int port);
-
- int getWebServiceSecurePort();
- void setWebServiceSecurePort(int port);
-
- boolean isAlwaysModifySOAPAddress();
- void setAlwaysModifySOAPAddress(boolean modify);
-
- public List<HandlerMetaData> getHandlerMetaData(ObjectName sepID);
- public void setHandlerMetaData(ObjectName sepID, List<HandlerMetaData>
handlers);
-
- void startServiceEndpoint(ObjectName sepID) throws Exception;
- void stopServiceEndpoint(ObjectName sepID) throws Exception;
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointManagerMBean.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointManagerMBean.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointMetrics.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointMetrics.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointMetrics.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,175 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.server;
-
-// $Id$
-
-import java.io.Serializable;
-import java.util.Date;
-
-import javax.management.ObjectName;
-
-/**
- * Service Endpoint Metrics
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 14-Dec-2005
- */
-public class ServiceEndpointMetrics implements Serializable
-{
- private static final long serialVersionUID = -7730514070812711512L;
-
- // The unique service endpointID
- private ObjectName endpointID;
-
- private Date startTime;
- private Date stopTime;
- private long requestCount;
- private long responseCount;
- private long faultCount;
- private long maxProcessingTime;
- private long minProcessingTime;
- private long avgProcessingTime;
- private long totalProcessingTime;
-
- public ServiceEndpointMetrics(ObjectName endpointID)
- {
- this.endpointID = endpointID;
- }
-
- public void start()
- {
- startTime = new Date();
- stopTime = null;
- requestCount = 0;
- responseCount = 0;
- faultCount = 0;
- maxProcessingTime = 0;
- minProcessingTime = 0;
- avgProcessingTime = 0;
- totalProcessingTime = 0;
- }
-
- public void stop()
- {
- stopTime = new Date();
- }
-
- public long processRequestMessage()
- {
- requestCount++;
- return System.currentTimeMillis();
- }
-
- public void processResponseMessage(long beginTime)
- {
- responseCount++;
- processAnyMessage(beginTime);
- }
-
- public void processFaultMessage(long beginTime)
- {
- faultCount++;
- processAnyMessage(beginTime);
- }
-
- private void processAnyMessage(long beginTime)
- {
- if (beginTime > 0)
- {
- long procTime = System.currentTimeMillis() - beginTime;
-
- if (minProcessingTime == 0)
- minProcessingTime = procTime;
-
- maxProcessingTime = Math.max(maxProcessingTime, procTime);
- minProcessingTime = Math.min(minProcessingTime, procTime);
- totalProcessingTime = totalProcessingTime + procTime;
- avgProcessingTime = totalProcessingTime / (responseCount + faultCount);
- }
- }
-
- public ObjectName getEndpointID()
- {
- return endpointID;
- }
-
- public Date getStartTime()
- {
- return startTime;
- }
-
- public Date getStopTime()
- {
- return stopTime;
- }
-
- public long getMinProcessingTime()
- {
- return minProcessingTime;
- }
-
- public long getMaxProcessingTime()
- {
- return maxProcessingTime;
- }
-
- public long getAverageProcessingTime()
- {
- return avgProcessingTime;
- }
-
- public long getTotalProcessingTime()
- {
- return totalProcessingTime;
- }
-
- public long getRequestCount()
- {
- return requestCount;
- }
-
- public long getFaultCount()
- {
- return faultCount;
- }
-
- public long getResponseCount()
- {
- return responseCount;
- }
-
- public String toString()
- {
- StringBuilder buffer = new StringBuilder("\nEndpoint Metrics: " +
endpointID);
- buffer.append("\n startTime=" + startTime);
- buffer.append("\n stopTime=" + stopTime);
- buffer.append("\n requestCount=" + requestCount);
- buffer.append("\n responseCount=" + responseCount);
- buffer.append("\n faultCount=" + faultCount);
- buffer.append("\n maxProcessingTime=" + maxProcessingTime);
- buffer.append("\n minProcessingTime=" + minProcessingTime);
- buffer.append("\n avgProcessingTime=" + avgProcessingTime);
- buffer.append("\n totalProcessingTime=" + totalProcessingTime);
- return buffer.toString();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointMetrics.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServiceEndpointMetrics.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServletHeaderSource.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServletHeaderSource.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServletHeaderSource.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,115 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.server;
-
-// $Id$
-
-import java.util.ArrayList;
-import java.util.Enumeration;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import javax.xml.soap.MimeHeader;
-import javax.xml.soap.MimeHeaders;
-
-/**
- * Implementation of <code>HeaderSource</code> that pulls header
- * information from an HttpServlet.
- *
- * @author <a href="mailto:jason@stacksmash.com">Jason T.
Greene</a>
- * @author Thomas.Diesler(a)jboss.org
- */
-public class ServletHeaderSource implements HeaderSource
-{
- private HttpServletRequest req;
- private HttpServletResponse res;
-
- public ServletHeaderSource(HttpServletRequest req, HttpServletResponse res)
- {
- this.req = req;
- this.res = res;
- }
-
- public MimeHeaders getMimeHeaders()
- {
- Enumeration e = req.getHeaderNames();
- if (e == null)
- return null;
-
- MimeHeaders headers = new MimeHeaders();
-
- while (e.hasMoreElements())
- {
- String name = (String)e.nextElement();
- headers.addHeader(name, req.getHeader(name));
- }
-
- return headers;
- }
-
- public Map<String, List<String>> getHeaderMap()
- {
- Map<String, List<String>> headerMap = new HashMap<String,
List<String>>();
-
- Enumeration e = req.getHeaderNames();
- if (e != null)
- {
- while (e.hasMoreElements())
- {
- String name = (String)e.nextElement();
- List<String> values = new ArrayList<String>();
- values.add(req.getHeader(name));
- headerMap.put(name, values);
- }
- }
-
- return headerMap;
- }
-
- public void setMimeHeaders(MimeHeaders headers)
- {
- Iterator i = headers.getAllHeaders();
- while (i.hasNext())
- {
- MimeHeader header = (MimeHeader)i.next();
- res.addHeader(header.getName(), header.getValue());
- }
- }
-
- public void setHeaderMap(Map<String, List<String>> headers)
- {
- Iterator<String> it = headers.keySet().iterator();
- while (it.hasNext())
- {
- String name = it.next();
- List<String> values = headers.get(name);
- for (String value : values)
- {
- res.addHeader(name, value);
- }
- }
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServletHeaderSource.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/ServletHeaderSource.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/StandardEndpointServlet.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/StandardEndpointServlet.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/StandardEndpointServlet.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,166 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.server;
-
-// $Id: AbstractServiceEndpointServlet.java 396 2006-05-23 09:48:45Z
thomas.diesler(a)jboss.com $
-
-import java.io.IOException;
-import java.io.Writer;
-import java.net.URL;
-
-import javax.management.ObjectName;
-import javax.servlet.ServletConfig;
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import javax.xml.rpc.JAXRPCException;
-
-import org.jboss.logging.Logger;
-import org.jboss.util.NotImplementedException;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.jaxrpc.ServletEndpointContextImpl;
-import org.jboss.ws.core.utils.ObjectNameFactory;
-import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
-
-/**
- * A servlet that is installed for every web service endpoint.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 15-Jan-2005
- */
-public class StandardEndpointServlet extends HttpServlet
-{
- // provide logging
- private static final Logger log = Logger.getLogger(StandardEndpointServlet.class);
-
- protected ObjectName sepId;
- protected ServiceEndpointManager epManager;
-
- public void init(ServletConfig config) throws ServletException
- {
- super.init(config);
- initServiceEndpointManager();
- }
-
- public void destroy()
- {
- super.destroy();
- }
-
- public void service(HttpServletRequest req, HttpServletResponse res) throws
ServletException, IOException
- {
- if (sepId == null)
- {
- String contextPath = req.getContextPath();
- initServiceEndpoint(contextPath);
- }
- super.service(req, res);
- }
-
- public void doGet(HttpServletRequest req, HttpServletResponse res) throws
ServletException, IOException
- {
- // Process a WSDL request
- if (req.getParameter("wsdl") != null ||
req.getParameter("WSDL") != null)
- {
- res.setContentType("text/xml");
- try
- {
- // For the base document the resourcePath should be null
- String resourcePath = (String)req.getParameter("resource");
- URL requestURL = new URL(req.getRequestURL().toString());
- epManager.processWSDLRequest(sepId, res.getOutputStream(), requestURL,
resourcePath);
- }
- catch (Exception ex)
- {
- handleException(ex);
- }
- }
- else
- {
- res.setStatus(405);
- res.setContentType("text/plain");
- Writer out = res.getWriter();
- out.write("HTTP GET not supported");
- out.flush();
- out.close();
- }
- }
-
- public void doPost(HttpServletRequest req, HttpServletResponse res) throws
ServletException, IOException
- {
- log.debug("doPost: " + req.getRequestURI());
-
- try
- {
- EndpointContext context = new EndpointContext(getServletContext(), req, res);
- epManager.processSOAPRequest(sepId, req.getInputStream(), res.getOutputStream(),
context);
- }
- catch (Exception ex)
- {
- handleException(ex);
- }
- }
-
- private void handleException(Exception ex) throws ServletException
- {
- log.error("Error processing web service request", ex);
-
- if (ex instanceof JAXRPCException)
- throw (JAXRPCException)ex;
-
- throw new ServletException(ex);
- }
-
- protected void initServiceEndpointManager()
- {
- ServiceEndpointManagerFactory factory =
ServiceEndpointManagerFactory.getInstance();
- epManager = factory.getServiceEndpointManager();
- }
-
- /** Initialize the service endpoint
- */
- protected void initServiceEndpoint(String contextPath)
- {
- String servletName = getServletName();
- if (contextPath.startsWith("/"))
- contextPath = contextPath.substring(1);
-
- for (ObjectName sepId : epManager.getServiceEndpoints())
- {
- String context =
sepId.getKeyProperty(ServerEndpointMetaData.SEPID_PROPERTY_CONTEXT);
- String endpoint =
sepId.getKeyProperty(ServerEndpointMetaData.SEPID_PROPERTY_ENDPOINT);
- if (servletName.equals(endpoint) && contextPath.equals(context))
- {
- this.sepId = sepId;
- break;
- }
- }
-
- if (sepId == null)
- {
- ObjectName oname = ObjectNameFactory.create(ServerEndpointMetaData.SEPID_DOMAIN
+ ":" + ServerEndpointMetaData.SEPID_PROPERTY_CONTEXT + "=" +
contextPath
- + "," + ServerEndpointMetaData.SEPID_PROPERTY_ENDPOINT +
"=" + servletName);
- throw new WSException("Cannot obtain endpoint for: " + oname);
- }
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/StandardEndpointServlet.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/StandardEndpointServlet.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/WSDLFilePublisher.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/WSDLFilePublisher.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/WSDLFilePublisher.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,328 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.server;
-
-// $Id$
-
-import java.io.File;
-import java.io.FileOutputStream;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.Writer;
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.util.Iterator;
-import java.util.List;
-
-import javax.wsdl.Definition;
-import javax.wsdl.Import;
-import javax.wsdl.factory.WSDLFactory;
-
-import org.jboss.logging.Logger;
-import org.jboss.util.NotImplementedException;
-import org.jboss.ws.Constants;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.utils.DOMUtils;
-import org.jboss.ws.core.utils.IOUtils;
-import org.jboss.ws.deployment.UnifiedDeploymentInfo;
-import org.jboss.ws.metadata.umdm.ServiceMetaData;
-import org.jboss.ws.metadata.umdm.UnifiedMetaData;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.tools.wsdl.WSDLWriter;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-
-/** A helper class that publishes the wsdl files and their imports to the
server/data/wsdl directory.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 02-June-2004
- */
-public class WSDLFilePublisher
-{
- // provide logging
- private static final Logger log = Logger.getLogger(WSDLFilePublisher.class);
-
- // The deployment info for the web service archive
- private UnifiedDeploymentInfo udi;
- // The expected wsdl location in the deployment
- private String expLocation;
-
- public WSDLFilePublisher(UnifiedDeploymentInfo udi)
- {
- this.udi = udi;
-
- String archiveName = udi.shortName;
- if (archiveName.endsWith(".jar") ||
archiveName.endsWith(".ejb3"))
- expLocation = "META-INF/wsdl/";
- else if (archiveName.endsWith(".war"))
- expLocation = "WEB-INF/wsdl/";
- else throw new WSException("Can only publish wsdl from WAR or JAR
deployment");
- }
-
- /** Publish the deployed wsdl file to the data directory
- */
- public void publishWsdlFiles(UnifiedMetaData wsMetaData) throws IOException
- {
- String deploymentName = udi.getCanonicalName();
-
- // For each service
- for (ServiceMetaData serviceMetaData : wsMetaData.getServices())
- {
- String wsdlFile = serviceMetaData.getWsdlFile();
- log.debug("Publish WSDL file: " + wsdlFile);
-
- if (wsdlFile != null)
- {
- File targetFile = getPublishLocation(deploymentName, serviceMetaData);
- targetFile.getParentFile().mkdirs();
-
- // Get the wsdl definition and write it to the wsdl publish location
- try
- {
- Writer fWriter = IOUtils.getCharsetFileWriter(targetFile,
Constants.DEFAULT_XML_CHARSET);
- WSDLDefinitions wsdlDefinitions = serviceMetaData.getWsdlDefinitions();
- new WSDLWriter(wsdlDefinitions).write(fWriter,
Constants.DEFAULT_XML_CHARSET);
-
- URL wsdlPublishURL = targetFile.toURL();
- log.info("WSDL published to: " + wsdlPublishURL);
-
- // delete wsdl temp file
- ServerConfigFactory factory = ServerConfigFactory.getInstance();
- ServerConfig config = factory.getServerConfig();
- if
(wsdlFile.startsWith(config.getServerTempDir().toURL().toExternalForm()))
- {
- new File(wsdlFile).delete();
- }
-
- // udpate the wsdl file location
- serviceMetaData.setWsdlFile(wsdlPublishURL.toExternalForm());
-
- // Process the wsdl imports
- Definition wsdl11Definition = wsdlDefinitions.getWsdlOneOneDefinition();
- if (wsdl11Definition != null)
- {
- publishWsdlImports(targetFile.toURL(), wsdl11Definition);
-
- // Publish XMLSchema imports
- Document document = wsdlDefinitions.getWsdlDocument();
- publishSchemaImports(targetFile.toURL(),
document.getDocumentElement());
- }
- else
- {
- throw new NotImplementedException("WSDL-2.0 imports");
- }
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Exception e)
- {
- throw new WSException("Cannot publish wsdl to: " + targetFile,
e);
- }
- }
- }
- }
-
- /** Publish the wsdl imports for a given wsdl definition
- */
- private void publishWsdlImports(URL parentURL, Definition parentDefinition) throws
Exception
- {
- String baseURI = parentURL.toExternalForm();
-
- Iterator it = parentDefinition.getImports().values().iterator();
- while (it.hasNext())
- {
- for (Import wsdlImport : (List<Import>)it.next())
- {
- String locationURI = wsdlImport.getLocationURI();
- Definition subdef = wsdlImport.getDefinition();
-
- // its an external import, don't publish locally
- if (locationURI.startsWith("http://") == false)
- {
- URL targetURL = new URL(baseURI.substring(0,
baseURI.lastIndexOf("/") + 1) + locationURI);
- File targetFile = new File(targetURL.getPath());
- targetFile.getParentFile().mkdirs();
-
- WSDLFactory wsdlFactory = WSDLFactory.newInstance();
- javax.wsdl.xml.WSDLWriter wsdlWriter = wsdlFactory.newWSDLWriter();
- FileWriter fw = new FileWriter(targetFile);
- wsdlWriter.writeWSDL(subdef, fw);
- fw.close();
-
- log.debug("WSDL import published to: " + targetURL);
-
- // recursivly publish imports
- publishWsdlImports(targetURL, subdef);
-
- // Publish XMLSchema imports
- Element subdoc = DOMUtils.parse(targetURL.openStream());
- publishSchemaImports(targetURL, subdoc);
- }
- }
- }
- }
-
- /** Publish the schema imports for a given wsdl definition
- */
- private void publishSchemaImports(URL parentURL, Element element) throws Exception
- {
- String baseURI = parentURL.toExternalForm();
-
- Iterator it = DOMUtils.getChildElements(element);
- while (it.hasNext())
- {
- Element childElement = (Element)it.next();
- if ("import".equals(childElement.getLocalName()) ||
"include".equals(childElement.getLocalName()))
- {
- String schemaLocation =
childElement.getAttribute("schemaLocation");
- if (schemaLocation.length() > 0)
- {
- if (schemaLocation.startsWith("http://") == false)
- {
- URL xsdURL = new URL(baseURI.substring(0,
baseURI.lastIndexOf("/") + 1) + schemaLocation);
- File targetFile = new File(xsdURL.getPath());
- targetFile.getParentFile().mkdirs();
-
- String deploymentName = udi.getCanonicalName();
-
- // get the resource path
- int index = baseURI.indexOf(deploymentName);
- String resourcePath = baseURI.substring(index +
deploymentName.length());
- resourcePath = resourcePath.substring(0,
resourcePath.lastIndexOf("/"));
- if (resourcePath.length() > 0)
- resourcePath = resourcePath + "/";
-
- resourcePath = expLocation + resourcePath + schemaLocation;
- InputStream is = udi.localCl.getResourceAsStream(resourcePath);
- if (is == null)
- throw new IllegalArgumentException("Cannot find schema import
in deployment: " + resourcePath);
-
- FileOutputStream fos = new FileOutputStream(targetFile);
- IOUtils.copyStream(fos, is);
- fos.close();
- is.close();
-
- log.debug("XMLSchema import published to: " + xsdURL);
-
- // recursivly publish imports
- Element subdoc = DOMUtils.parse(xsdURL.openStream());
- publishSchemaImports(xsdURL, subdoc);
- }
- }
- }
- else
- {
- publishSchemaImports(parentURL, childElement);
- }
- }
- }
-
- /**
- * Delete the published wsdl
- */
- public void unpublishWsdlFiles() throws IOException
- {
- String deploymentDir = (udi.parent != null ? udi.parent.shortName :
udi.shortName);
- ServerConfig config = ServerConfigFactory.getInstance().getServerConfig();
- File serviceDir = new File(config.getServerDataDir().getCanonicalPath() +
"/wsdl/" + deploymentDir);
- deleteWsdlPublishDirectory(serviceDir);
- }
-
- /**
- * Delete the published wsdl document, traversing down the dir structure
- */
- private void deleteWsdlPublishDirectory(File dir) throws IOException
- {
- String[] files = dir.list();
- for (int i = 0; files != null && i < files.length; i++)
- {
- String fileName = files[i];
- File file = new File(dir + "/" + fileName);
- if (file.isDirectory())
- {
- deleteWsdlPublishDirectory(file);
- }
- else
- {
- if (file.delete() == false)
- log.warn("Cannot delete published wsdl document: " +
file.toURL());
- }
- }
-
- // delete the directory as well
- dir.delete();
- }
-
- /**
- * Get the file publish location
- */
- private File getPublishLocation(String archiveName, ServiceMetaData serviceMetaData)
throws IOException
- {
- // Only file URLs are supported in <wsdl-publish-location>
- String publishLocation = serviceMetaData.getWsdlPublishLocation();
- boolean predefinedLocation = publishLocation != null &&
publishLocation.startsWith("file:");
-
- File locationFile = null;
- if (predefinedLocation == false)
- {
- ServerConfig config = ServerConfigFactory.getInstance().getServerConfig();
- locationFile = new File(config.getServerDataDir().getCanonicalPath() +
"/wsdl/" + archiveName);
- }
- else
- {
- try
- {
- locationFile = new File(new URL(publishLocation).getPath());
- }
- catch (MalformedURLException e)
- {
- throw new IllegalArgumentException("Invalid publish location: " +
e.getMessage());
- }
- }
-
- // make sure we don't have a leadig '/'
- String wsdlFile = serviceMetaData.getWsdlFile();
- if (wsdlFile.startsWith("/"))
- wsdlFile = wsdlFile.substring(1);
-
- File wsdlLocation;
- if (wsdlFile.startsWith(expLocation))
- {
- wsdlFile = wsdlFile.substring(expLocation.length());
- wsdlLocation = new File(locationFile + "/" + wsdlFile);
- }
- else if (wsdlFile.startsWith("file:/"))
- {
- wsdlFile = wsdlFile.substring(wsdlFile.lastIndexOf("/") + 1);
- wsdlLocation = new File(locationFile + "/" + wsdlFile);
- }
- else
- {
- throw new WSException("Invalid wsdlFile '" + wsdlFile +
"', expected in: " + expLocation);
- }
-
- return wsdlLocation;
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/WSDLFilePublisher.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/WSDLFilePublisher.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/WSDLRequestHandler.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/WSDLRequestHandler.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/WSDLRequestHandler.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,176 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.server;
-
-// $Id$
-
-import java.io.File;
-import java.io.IOException;
-import java.net.MalformedURLException;
-import java.net.URL;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.core.utils.DOMUtils;
-import org.jboss.ws.metadata.umdm.EndpointMetaData;
-import org.w3c.dom.Attr;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
-
-/**
- * Handles the delivery of the WSDL and its included artifacts.
- * It rewrites the include URL's.
- *
- *
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3871263#...
- *
- * For a discussion of this topic.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 23-Mar-2005
- */
-public class WSDLRequestHandler
-{
- // provide logging
- private Logger log = Logger.getLogger(WSDLRequestHandler.class);
-
- private EndpointMetaData epMetaData;
-
- public WSDLRequestHandler(EndpointMetaData epMetaData)
- {
- this.epMetaData = epMetaData;
- }
-
- /**
- * Get the WSDL resource for a given resource path
- * <p/>
- * Use path value of null to get the root document
- *
- * @param resPath The wsdl resource to get, can be null for the top level wsdl
- * @return A wsdl document, or null if it cannot be found
- */
- public Document getDocumentForPath(URL reqURL, String wsdlHost, String resPath) throws
IOException
- {
- String wsdlLocation = epMetaData.getServiceMetaData().getWsdlFile();
- if (wsdlLocation == null)
- throw new IllegalStateException("Cannot obtain wsdlFile from endpoint meta
data");
-
- Document wsdlDoc;
-
- // The WSDLFilePublisher should set the location to an URL
- URL wsdlURL = new URL(wsdlLocation);
-
- // get the root wsdl
- if (resPath == null)
- {
- Element wsdlElement = DOMUtils.parse(wsdlURL.openStream());
- wsdlDoc = wsdlElement.getOwnerDocument();
- }
-
- // get some imported resource
- else
- {
- String impResourcePath = new File(wsdlURL.getPath()).getParent() +
File.separatorChar + resPath;
- File impResourceFile = new File(impResourcePath);
-
- Element wsdlElement = DOMUtils.parse(impResourceFile.toURL().openStream());
- wsdlDoc = wsdlElement.getOwnerDocument();
- }
-
- modifyAddressReferences(reqURL, wsdlHost, resPath, wsdlDoc.getDocumentElement());
- return wsdlDoc;
- }
-
- /**
- * Modify the location of wsdl and schema imports
- */
- private void modifyAddressReferences(URL reqURL, String wsdlHost, String resPath,
Element element) throws MalformedURLException
- {
- // map wsdl definition imports
- NodeList nlist = element.getChildNodes();
- for (int i = 0; i < nlist.getLength(); i++)
- {
- Node childNode = nlist.item(i);
- if (childNode.getNodeType() == Node.ELEMENT_NODE)
- {
- Element childElement = (Element)childNode;
- String nodeName = childElement.getLocalName();
- if ("import".equals(nodeName) ||
"include".equals(nodeName))
- {
- Attr locationAttr =
childElement.getAttributeNode("schemaLocation");
- if (locationAttr == null)
- locationAttr = childElement.getAttributeNode("location");
-
- if (locationAttr != null)
- {
- String orgLocation = locationAttr.getNodeValue();
- boolean isAbsolute = orgLocation.startsWith("http://") ||
orgLocation.startsWith("https://");
- if (isAbsolute == false &&
orgLocation.startsWith(reqURL.getPath()) == false)
- {
- String newResourcePath = orgLocation;
-
- if (resPath != null && resPath.indexOf("/") >
0)
- newResourcePath = resPath.substring(0,
resPath.lastIndexOf("/") + 1) + orgLocation;
-
- String reqProtocol = reqURL.getProtocol();
- int reqPort = reqURL.getPort();
- String hostAndPort = wsdlHost + (reqPort > 0 ? ":" +
reqPort : "");
- String reqPath = reqURL.getPath();
-
- String newLocation = reqProtocol + "://" + hostAndPort +
reqPath + "?wsdl&resource=" + newResourcePath;
- locationAttr.setNodeValue(newLocation);
-
- log.debug("Mapping import from '" + orgLocation +
"' to '" + newLocation + "'");
- }
- }
- }
- else if ("address".equals(nodeName))
- {
- Attr locationAttr = childElement.getAttributeNode("location");
- if (locationAttr != null)
- {
- String orgLocation = locationAttr.getNodeValue();
-
- URL locURL = new URL(orgLocation);
- String locProtocol = locURL.getProtocol();
- String locPath = locURL.getPath();
- if (reqURL.getProtocol().equals(locProtocol) &&
reqURL.getPath().equals(locPath))
- {
- int locPort = locURL.getPort();
- String hostAndPort = wsdlHost + (locPort > 0 ? ":" +
locPort : "");
-
- String newLocation = locProtocol + "://" + hostAndPort +
locPath;
- locationAttr.setNodeValue(newLocation);
-
- log.debug("Mapping address from '" + orgLocation +
"' to '" + newLocation + "'");
- }
- }
- }
- else
- {
- modifyAddressReferences(reqURL, wsdlHost, resPath, childElement);
- }
- }
- }
- }
-
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/server/WSDLRequestHandler.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/server/WSDLRequestHandler.java)
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap (from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/AttrImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/AttrImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/AttrImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,85 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.soap;
-
-import org.w3c.dom.Attr;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-import org.w3c.dom.TypeInfo;
-
-/**
- * Facade for DOM Attr. Helps ensure that the propper SAAJ entities are returned
- * after DOM calls are made.
- *
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @version $Revision$
- */
-public class AttrImpl extends NodeImpl implements Attr
-{
- private SOAPElementImpl element;
-
- private Attr attr;
-
- public AttrImpl(SOAPElementImpl element, Attr attr)
- {
- super(attr);
- this.attr = attr;
- this.element = element;
- }
-
- public String getName()
- {
- return attr.getName();
- }
-
- public Element getOwnerElement()
- {
- return element;
- }
-
- public Document getOwnerDocument()
- {
- return element.getOwnerDocument();
- }
-
- public boolean getSpecified()
- {
- return attr.getSpecified();
- }
-
- public String getValue()
- {
- return attr.getValue();
- }
-
- public TypeInfo getSchemaTypeInfo()
- {
- // TODO Implement DOM3
- return null;
- }
-
- public boolean isId()
- {
- // TODO Implement DOM3
- return false;
- }
-}
\ No newline at end of file
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/AttrImpl.java (from rev
1605, branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/AttrImpl.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/DetailEntryImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/DetailEntryImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/DetailEntryImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,45 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.soap;
-
-import javax.xml.soap.DetailEntry;
-import javax.xml.soap.Name;
-
-/**
- * The content for a Detail object, giving details for a SOAPFault object.
- * A DetailEntry object, which carries information about errors related to the SOAPBody
object that contains it,
- * is application-specific.
- *
- * @author Thomas.Diesler(a)jboss.org
- */
-public class DetailEntryImpl extends SOAPElementImpl implements DetailEntry
-{
- public DetailEntryImpl(Name name)
- {
- super(name);
- }
-
- public DetailEntryImpl(SOAPElementImpl soapElement)
- {
- super(soapElement);
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/DetailEntryImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/DetailEntryImpl.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/DetailImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/DetailImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/DetailImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,60 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.soap;
-
-import java.util.Iterator;
-
-import javax.xml.soap.Detail;
-import javax.xml.soap.DetailEntry;
-import javax.xml.soap.Name;
-import javax.xml.soap.SOAPException;
-
-/**
- * A container for DetailEntry objects. DetailEntry objects give detailed error
information that is application-specific
- * and related to the SOAPBody object that contains it.
- *
- * A Detail object, which is part of a SOAPFault object, can be retrieved using the
method SOAPFault.getDetail.
- *
- * The Detail interface provides two methods. One creates a new DetailEntry object and
also automatically adds
- * it to the Detail object. The second method gets a list of the DetailEntry objects
contained in a Detail object.
- *
- * @author Thomas.Diesler(a)jboss.org
- */
-public class DetailImpl extends SOAPFaultElementImpl implements Detail
-{
- public DetailImpl()
- {
- super("detail");
- }
-
- public DetailEntry addDetailEntry(Name name) throws SOAPException
- {
- DetailEntryImpl detailEntry = new DetailEntryImpl(name);
- addChildElement(detailEntry);
- return detailEntry;
- }
-
- public Iterator getDetailEntries()
- {
- return getChildElements();
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/DetailImpl.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/DetailImpl.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/DocumentFragmentImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/DocumentFragmentImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/DocumentFragmentImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,231 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.soap;
-
-import org.w3c.dom.DOMException;
-import org.w3c.dom.Document;
-import org.w3c.dom.DocumentFragment;
-import org.w3c.dom.NamedNodeMap;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
-import org.w3c.dom.UserDataHandler;
-
-/**
- * An implementation of a DOM Document fragment. This just delegates to
- *
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @version $Revision$
- */
-public class DocumentFragmentImpl implements DocumentFragment
-{
- private DocumentFragment delegate;
-
- public DocumentFragmentImpl(DocumentFragment fragment)
- {
- this.delegate = fragment;
- }
-
- public Node appendChild(Node arg0) throws DOMException
- {
- return delegate.appendChild(arg0);
- }
-
- public Node cloneNode(boolean arg0)
- {
- return delegate.cloneNode(arg0);
- }
-
- public short compareDocumentPosition(Node arg0) throws DOMException
- {
- return delegate.compareDocumentPosition(arg0);
- }
-
- public NamedNodeMap getAttributes()
- {
- return delegate.getAttributes();
- }
-
- public String getBaseURI()
- {
- return delegate.getBaseURI();
- }
-
- public NodeList getChildNodes()
- {
- return delegate.getChildNodes();
- }
-
- public Object getFeature(String arg0, String arg1)
- {
- return delegate.getFeature(arg0, arg1);
- }
-
- public Node getFirstChild()
- {
- return delegate.getFirstChild();
- }
-
- public Node getLastChild()
- {
- return delegate.getLastChild();
- }
-
- public String getLocalName()
- {
- return delegate.getLocalName();
- }
-
- public String getNamespaceURI()
- {
- return delegate.getNamespaceURI();
- }
-
- public Node getNextSibling()
- {
- return delegate.getNextSibling();
- }
-
- public String getNodeName()
- {
- return delegate.getNodeName();
- }
-
- public short getNodeType()
- {
- return delegate.getNodeType();
- }
-
- public String getNodeValue() throws DOMException
- {
- return delegate.getNodeValue();
- }
-
- public Document getOwnerDocument()
- {
- return delegate.getOwnerDocument();
- }
-
- public Node getParentNode()
- {
- return delegate.getParentNode();
- }
-
- public String getPrefix()
- {
- return delegate.getPrefix();
- }
-
- public Node getPreviousSibling()
- {
- return delegate.getPreviousSibling();
- }
-
- public String getTextContent() throws DOMException
- {
- return delegate.getTextContent();
- }
-
- public Object getUserData(String arg0)
- {
- return delegate.getUserData(arg0);
- }
-
- public boolean hasAttributes()
- {
- return delegate.hasAttributes();
- }
-
- public boolean hasChildNodes()
- {
- return delegate.hasChildNodes();
- }
-
- public Node insertBefore(Node arg0, Node arg1) throws DOMException
- {
- return delegate.insertBefore(arg0, arg1);
- }
-
- public boolean isDefaultNamespace(String arg0)
- {
- return delegate.isDefaultNamespace(arg0);
- }
-
- public boolean isEqualNode(Node arg0)
- {
- return delegate.isEqualNode(arg0);
- }
-
- public boolean isSameNode(Node arg0)
- {
- return delegate.isSameNode(arg0);
- }
-
- public boolean isSupported(String arg0, String arg1)
- {
- return delegate.isSupported(arg0, arg1);
- }
-
- public String lookupNamespaceURI(String arg0)
- {
- return delegate.lookupNamespaceURI(arg0);
- }
-
- public String lookupPrefix(String arg0)
- {
- return delegate.lookupPrefix(arg0);
- }
-
- public void normalize()
- {
- delegate.normalize();
- }
-
- public Node removeChild(Node arg0) throws DOMException
- {
- return delegate.removeChild(arg0);
- }
-
- public Node replaceChild(Node arg0, Node arg1) throws DOMException
- {
- return delegate.replaceChild(arg0, arg1);
- }
-
- public void setNodeValue(String arg0) throws DOMException
- {
- delegate.setNodeValue(arg0);
- }
-
- public void setPrefix(String arg0) throws DOMException
- {
- delegate.setPrefix(arg0);
- }
-
- public void setTextContent(String arg0) throws DOMException
- {
- delegate.setTextContent(arg0);
- }
-
- public Object setUserData(String arg0, Object arg1, UserDataHandler arg2)
- {
- return delegate.setUserData(arg0, arg1, arg2);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/DocumentFragmentImpl.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/DocumentFragmentImpl.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/EndpointInfo.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/EndpointInfo.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/EndpointInfo.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,109 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.soap;
-
-// $Id$
-
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.Map;
-import java.util.Properties;
-
-import org.jboss.ws.metadata.umdm.EndpointMetaData;
-
-/** A wrapper object that associates the target address with some metadata
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 20-Jul-2005
- */
-public class EndpointInfo
-{
- private String targetAddress;
- private Map<String, Object> properties;
-
- public EndpointInfo(EndpointMetaData epMetaData, String targetAddress, Map<String,
Object> callProps)
- {
- this.targetAddress = targetAddress;
- this.properties = new HashMap<String, Object>();
-
- // Add the service properties
- Properties serviceProps = epMetaData.getServiceMetaData().getProperties();
- if (serviceProps != null)
- {
- Iterator it = serviceProps.entrySet().iterator();
- while (it.hasNext())
- {
- Map.Entry entry = (Map.Entry)it.next();
- String key = (String)entry.getKey();
- Object val = entry.getValue();
- properties.put(key, val);
- }
- }
-
- // Add the endpoint properties
- Properties epProps = epMetaData.getProperties();
- if (epProps != null)
- {
- Iterator it = epProps.entrySet().iterator();
- while (it.hasNext())
- {
- Map.Entry entry = (Map.Entry)it.next();
- String key = (String)entry.getKey();
- Object val = entry.getValue();
- properties.put(key, val);
- }
- }
-
- // Add the call properties
- if (callProps != null)
- {
- properties.putAll(callProps);
- }
- }
-
- public Map<String, Object> getProperties()
- {
- return properties;
- }
-
- public String getTargetAddress()
- {
- return targetAddress;
- }
-
- public boolean equals(Object obj)
- {
- if (!(obj instanceof EndpointInfo))
- return false;
- return toString().equals(obj.toString());
- }
-
- public int hashCode()
- {
- return toString().hashCode();
- }
-
- public String toString()
- {
- return "[addr=" + targetAddress + ",props=" + properties +
"]";
- }
-}
\ No newline at end of file
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/EndpointInfo.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/EndpointInfo.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/MessageContextAssociation.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/MessageContextAssociation.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/MessageContextAssociation.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,78 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.soap;
-
-// $Id$
-
-import java.util.Stack;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.core.CommonMessageContext;
-import org.jboss.ws.core.utils.ThreadLocalAssociation;
-
-/**
- * A thread local association with the current message context
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 14-Dec-2004
- */
-public class MessageContextAssociation
-{
- // provide logging
- private static Logger log = Logger.getLogger(MessageContextAssociation.class);
-
-
- public static void pushMessageContext(CommonMessageContext msgContext)
- {
- log.debug("pushMessageContext: " + msgContext);
- Stack<CommonMessageContext> stack =
ThreadLocalAssociation.localMsgContextAssoc().get();
- if (stack == null)
- {
- stack = new Stack<CommonMessageContext>();
- ThreadLocalAssociation.localMsgContextAssoc().set(stack);
- }
- stack.push(msgContext);
- }
-
- public static CommonMessageContext peekMessageContext()
- {
- CommonMessageContext msgContext = null;
- Stack<CommonMessageContext> stack =
ThreadLocalAssociation.localMsgContextAssoc().get();
- if (stack != null && stack.isEmpty() == false)
- {
- msgContext = stack.peek();
- }
- return msgContext;
- }
-
- public static CommonMessageContext popMessageContext()
- {
- CommonMessageContext msgContext = null;
- Stack<CommonMessageContext> stack =
ThreadLocalAssociation.localMsgContextAssoc().get();
- if (stack != null && stack.isEmpty() == false)
- {
- msgContext = stack.pop();
- }
- log.debug("popMessageContext: " + msgContext);
- return msgContext;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/MessageContextAssociation.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/MessageContextAssociation.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/MessageFactoryImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/MessageFactoryImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/MessageFactoryImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,257 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.soap;
-
-// $Id$
-
-import java.io.ByteArrayInputStream;
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.Collection;
-import java.util.Iterator;
-
-import javax.mail.internet.ContentType;
-import javax.mail.internet.ParseException;
-import javax.xml.soap.AttachmentPart;
-import javax.xml.soap.MessageFactory;
-import javax.xml.soap.MimeHeader;
-import javax.xml.soap.MimeHeaders;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPMessage;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.Constants;
-import org.jboss.ws.core.CommonMessageContext;
-import org.jboss.ws.core.jaxrpc.Style;
-import org.jboss.ws.core.soap.attachment.MimeConstants;
-import org.jboss.ws.core.soap.attachment.MultipartRelatedDecoder;
-import org.jboss.ws.core.utils.IOUtils;
-
-/**
- * MessageFactory implementation
- *
- * @author Thomas.Diesler(a)jboss.org
- */
-public class MessageFactoryImpl extends MessageFactory
-{
- private static Logger log = Logger.getLogger(MessageFactoryImpl.class);
-
- // The envelope URI used by the MessageFactory
- private String envelopeURI = Constants.NS_SOAP11_ENV;
-
- // The style used by this MessageFactory
- private Style style;
-
- /**
- * Get the SOAP envelope URI this factory will use when creating envelopes.
- */
- public String getEnvelopeURI()
- {
- return envelopeURI;
- }
-
- /**
- * Set the SOAP envelope URI this factory will use when creating envelopes.
- */
- public void setEnvelopeURI(String envelopeURI)
- {
- this.envelopeURI = envelopeURI;
- }
-
- /**
- * Get the Style this message factory will use
- */
- public Style getStyle()
- {
- if (style == null)
- {
- CommonMessageContext msgContext =
MessageContextAssociation.peekMessageContext();
- if (msgContext != null && msgContext.getOperationMetaData() != null)
- {
- style = msgContext.getOperationMetaData().getStyle();
- }
- log.trace("Using style: " + style);
- }
- return style;
- }
-
- public void setStyle(Style style)
- {
- this.style = style;
- }
-
- /**
- * Creates a new SOAPMessage object with the default SOAPPart, SOAPEnvelope,
- * SOAPBody, and SOAPHeader objects. Profile-specific message factories can
- * choose to prepopulate the SOAPMessage object with profile-specific
- * headers.
- *
- * Content can be added to this message's SOAPPart object, and the message
- * can be sent "as is" when a message containing only a SOAP part is
- * sufficient. Otherwise, the SOAPMessage object needs to create one or more
- * AttachmentPart objects and add them to itself. Any content that is not in
- * XML format must be in an AttachmentPart object.
- *
- * @return a new SOAPMessage object
- * @throws javax.xml.soap.SOAPException
- * if a SOAP error occurs
- */
- public SOAPMessage createMessage() throws SOAPException
- {
- SOAPMessageImpl soapMessage = new SOAPMessageImpl();
- SOAPPartImpl soapPart = (SOAPPartImpl)soapMessage.getSOAPPart();
- new SOAPEnvelopeImpl(soapPart, envelopeURI);
- return soapMessage;
- }
-
- /**
- * Internalizes the contents of the given InputStream object into a new
- * SOAPMessage object and returns the SOAPMessage object.
- *
- * @param mimeHeaders
- * the transport-specific headers passed to the message in a
- * transport-independent fashion for creation of the message
- * @param ins
- * the InputStream object that contains the data for a message
- * @return a new SOAPMessage object containing the data from the given
- * InputStream object
- * @throws java.io.IOException
- * if there is a problem in reading data from the input stream
- * @throws javax.xml.soap.SOAPException
- * if the message is invalid
- */
- public SOAPMessage createMessage(MimeHeaders mimeHeaders, InputStream ins) throws
IOException, SOAPException
- {
- return createMessageInternal(mimeHeaders, ins, false);
- }
-
- public SOAPMessage createMessageInternal(MimeHeaders mimeHeaders, InputStream ins,
boolean ignoreParseError) throws IOException, SOAPException
- {
- if (mimeHeaders == null)
- {
- mimeHeaders = new MimeHeaders();
- }
- else if (log.isTraceEnabled())
- {
- Iterator<MimeHeader> itMimeHeaders = mimeHeaders.getAllHeaders();
- while (itMimeHeaders.hasNext())
- {
- MimeHeader mh = itMimeHeaders.next();
- log.trace(mh);
- }
- }
-
- ContentType contentType = getContentType(mimeHeaders);
- log.debug("createMessage: [contentType=" + contentType + "]");
-
- // Debug the incoming message
- if (log.isTraceEnabled())
- {
- ByteArrayOutputStream baos = new ByteArrayOutputStream(1024);
- IOUtils.copyStream(baos, ins);
- byte[] bytes = baos.toByteArray();
-
- log.trace("createMessage\n" + new String(bytes));
- ins = new ByteArrayInputStream(bytes);
- }
-
- Collection<AttachmentPart> attachments = null;
- if (isMultipartRelatedContent(contentType))
- {
- MultipartRelatedDecoder decoder;
- try
- {
- decoder = new MultipartRelatedDecoder(contentType);
- decoder.decodeMultipartRelatedMessage(ins);
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (IOException ex)
- {
- throw ex;
- }
- catch (Exception ex)
- {
- throw new SOAPException("Cannot decode multipart related message",
ex);
- }
-
- ins = decoder.getRootPart().getDataHandler().getInputStream();
- attachments = decoder.getRelatedParts();
- }
- else if (isSoapContent(contentType) == false)
- {
- throw new SOAPException("Unsupported content type: " + contentType);
- }
-
- SOAPMessageImpl soapMessage = new SOAPMessageImpl();
- if (mimeHeaders != null)
- soapMessage.setMimeHeaders(mimeHeaders);
-
- if (attachments != null)
- soapMessage.setAttachments(attachments);
-
- // Get the SOAPEnvelope builder
- PayloadBuilder payloadBuilder = new SAAJPayloadBuilderDOM(getStyle());
-
- // Build the payload
- payloadBuilder.build(soapMessage, ins, ignoreParseError);
-
- return soapMessage;
- }
-
- private static ContentType getContentType(MimeHeaders headers) throws SOAPException
- {
- ContentType contentType = null;
- try
- {
- String[] type = headers.getHeader(MimeConstants.CONTENT_TYPE);
- if (type != null)
- {
- contentType = new ContentType(type[0]);
- }
- else
- {
- contentType = new ContentType(MimeConstants.TYPE_SOAP11);
- }
- return contentType;
- }
- catch (ParseException e)
- {
- throw new SOAPException("Could not parse content type:" + e);
- }
- }
-
- private boolean isSoapContent(ContentType type)
- {
- String baseType = type.getBaseType();
- return MimeConstants.TYPE_SOAP11.equals(baseType) ||
MimeConstants.TYPE_SOAP12.equals(baseType);
- }
-
- private boolean isMultipartRelatedContent(ContentType type)
- {
- String baseType = type.getBaseType();
- return MimeConstants.TYPE_MULTIPART_RELATED.equals(baseType);
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/MessageFactoryImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/MessageFactoryImpl.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/NameImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/NameImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/NameImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,127 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.soap;
-
-// $Id$
-
-import javax.xml.namespace.QName;
-import javax.xml.soap.Name;
-
-/**
- * An implementation of a Name
- * <p/>
- * At this time of writing, the spec does not say anything about null values.
- * We assume emty string for any null value.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 01-June-2004
- */
-public class NameImpl implements Name
-{
- private QName qname;
-
- public NameImpl(QName qname)
- {
- this.qname = qname;
- }
-
- public NameImpl(String local)
- {
- qname = new QName(local);
- }
-
- public NameImpl(String local, String prefix, String uri)
- {
- if (prefix != null)
- qname = new QName(uri, local, prefix);
- else
- qname = new QName(uri, local);
- }
-
- /**
- * Gets the local name part of the XML name that this Name object represents.
- *
- * @return a string giving the local name
- */
- public String getLocalName()
- {
- return qname.getLocalPart();
- }
-
- /**
- * Returns the prefix that was specified when this Name object was initialized.
- * This prefix is associated with the namespace for the XML name that this Name object
represents.
- *
- * @return the prefix as a string
- */
- public String getPrefix()
- {
- return qname.getPrefix();
- }
-
- /**
- * Gets the namespace-qualified name of the XML name that this Name object
represents.
- *
- * @return the namespace-qualified name as a string
- */
- public String getQualifiedName()
- {
- String prefix = getPrefix();
- if (prefix.length() > 0)
- return prefix + ":" + qname.getLocalPart();
- else
- return qname.getLocalPart();
- }
-
- /**
- * Returns the URI of the namespace for the XML name that this Name object
represents.
- *
- * @return the URI as a string
- */
- public String getURI()
- {
- return qname.getNamespaceURI();
- }
-
- public int hashCode()
- {
- return qname.hashCode();
- }
-
- public boolean equals(Object obj)
- {
- if (!(obj instanceof NameImpl)) return false;
- if (obj == this) return true;
- NameImpl other = (NameImpl)obj;
- return qname.equals(other.qname);
- }
-
- public QName toQName()
- {
- return qname;
- }
-
- public String toString()
- {
- return qname.toString();
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/NameImpl.java (from rev
1605, branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/NameImpl.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/NodeImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/NodeImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/NodeImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,674 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.soap;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import javax.xml.namespace.QName;
-import javax.xml.soap.SOAPElement;
-import javax.xml.soap.SOAPException;
-
-import org.jboss.logging.Logger;
-import org.jboss.util.NotImplementedException;
-import org.jboss.ws.core.utils.DOMUtils;
-import org.jboss.ws.core.utils.DOMWriter;
-import org.jboss.ws.WSException;
-import org.w3c.dom.DOMException;
-import org.w3c.dom.Document;
-import org.w3c.dom.DocumentFragment;
-import org.w3c.dom.Element;
-import org.w3c.dom.NamedNodeMap;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
-import org.w3c.dom.UserDataHandler;
-
-/**
- * A representation of a node (element) in an XML document.
- * This interface extnends the standard DOM Node interface with methods for getting and
setting the value of a node,
- * for getting and setting the parent of a node, and for removing a node.
- *
- * When creating a DOM2 tree the objects maintained by the tree are
<code>org.w3c.dom.Node</code> objects
- * and not <code>javax.xml.soap.Node</code> objects.
- * <p/>
- * This implementation schields the client from the the underlying DOM2 tree, returning
<code>javax.xml.soap.Node</code>
- * objects.
- *
- * @author Thomas.Diesler(a)jboss.org
- */
-public class NodeImpl implements javax.xml.soap.Node
-{
- // provide logging
- private static Logger log = Logger.getLogger(NodeImpl.class);
-
- // The parent of this Node
- protected SOAPElementImpl soapParent;
- // This org.w3c.dom.Node
- protected org.w3c.dom.Node domNode;
- // A list of soap children
- private List<NodeImpl> soapChildren = new ArrayList<NodeImpl>();
-
- /** Construct the Node for a given org.w3c.dom.Node
- *
- * This constructor is used:
- *
- * 1) SOAPElement construction
- * 2) Text construction
- */
- NodeImpl(org.w3c.dom.Node node)
- {
- // Method selection in Java is done at compile time
- // Late binding does not work in this case
- if (node instanceof NodeImpl)
- throw new IllegalArgumentException("Copy constructor should be
used");
-
- domNode = node;
-
- // SOAP child elements should be constructed externally
- if (DOMUtils.hasChildElements(node))
- throw new IllegalArgumentException("Node cannot have child
elements");
- }
-
- /** The copy constructor used when converting types (i.e. SOAPElement ->
SOAPHeaderElement)
- */
- NodeImpl(NodeImpl node)
- {
- soapParent = node.soapParent;
- domNode = node.domNode;
- Iterator i = node.soapChildren.iterator();
- while (i.hasNext())
- {
- NodeImpl childNode = (NodeImpl)i.next();
- childNode.soapParent = (SOAPElementImpl)this;
- soapChildren.add(childNode);
- }
- }
-
- /** Get the QName of this Node */
- protected QName getQName()
- {
- String nsURI = getNamespaceURI();
- String localPart = getLocalName();
- String prefix = getPrefix();
-
- QName qname;
- if (nsURI != null && prefix != null)
- {
- qname = new QName(nsURI, localPart, prefix);
- }
- else if (nsURI != null)
- {
- qname = new QName(nsURI, localPart);
- }
- else
- {
- qname = new QName(localPart);
- }
-
- return qname;
- }
-
- // javax.xml.soap.Node
*********************************************************************************************
-
- /**
- * Removes this Node object from the tree.
- */
- public void detachNode()
- {
- org.w3c.dom.Node domParent = domNode.getParentNode();
- if (domParent != null)
- domParent.removeChild(domNode);
-
- if (soapParent != null)
- ((NodeImpl)soapParent).soapChildren.remove(this);
-
- soapParent = null;
- }
-
- /**
- * Returns the parent node of this Node object.
- * This method can throw an UnsupportedOperationException if the tree is not kept in
memory.
- *
- * @return the SOAPElement object that is the parent of this Node object or null if
this Node object is root
- */
- public SOAPElement getParentElement()
- {
- return soapParent;
- }
-
- /**
- * Sets the parent of this Node object to the given SOAPElement object.
- *
- * @param parent the SOAPElement object to be set as the parent of this Node object
- * @throws javax.xml.soap.SOAPException if there is a problem in setting the parent to
the given node
- */
- public void setParentElement(SOAPElement parent) throws SOAPException
- {
- // detach from the old parent
- if (soapParent != null)
- detachNode();
-
- soapParent = (SOAPElementImpl)parent;
- }
-
- /**
- * Returns the value of this node if this is a Text node or the value of the immediate
child of this node otherwise.
- * <p/>
- * If there is an immediate child of this Node that it is a Text node then it's
value will be returned.
- * If there is more than one Text node then the value of the first Text Node will be
returned.
- * Otherwise null is returned.
- *
- * @return a String with the text of this node if this is a Text node or the text
contained by the first immediate
- * child of this Node object that is a Text object if such a child exists;
null otherwise.
- */
- public String getValue()
- {
- // The Text node should overwrite getValue
- if (this instanceof javax.xml.soap.Text)
- throw new WSException("javax.xml.soap.Text should take care of
this");
-
- String nodeValue = null;
- org.w3c.dom.Node child = (org.w3c.dom.Node)getFirstChild();
- if (child instanceof org.w3c.dom.Text)
- nodeValue = ((org.w3c.dom.Text)child).getNodeValue();
-
- return nodeValue;
- }
-
- /**
- * If this is a Text node then this method will set its value, otherwise it sets the
value of the immediate (Text) child of this node.
- * <p/>
- * The value of the immediate child of this node can be set only if, there is one
child node and
- * that node is a Text node, or if there are no children in which case a child Text
node will be created.
- *
- * @param value A value string
- * @throws IllegalStateException if the node is not a Text node and either has more
than one child node or has a child node that is not a Text node.
- */
- public void setValue(String value)
- {
- // The Text node should overwrite setValue
- if (this instanceof javax.xml.soap.Text)
- throw new WSException("javax.xml.soap.Text should take care of
this");
-
- org.w3c.dom.Node child = (org.w3c.dom.Node)getFirstChild();
- if (child instanceof org.w3c.dom.Text)
- ((org.w3c.dom.Text)child).setNodeValue(value);
-
- if (child == null)
- {
- child = domNode.getOwnerDocument().createTextNode(value);
- appendChild(new TextImpl(child));
- }
- }
-
- /**
- * Notifies the implementation that this Node object is no longer being used by the
application and that the
- * implementation is free to reuse this object for nodes that may be created later.
- * Calling the method recycleNode implies that the method detachNode has been called
previously.
- */
- public void recycleNode()
- {
-
- }
-
- private List<NodeImpl> convertDocumentFragment(DocumentFragment docFragment)
throws DOMException
- {
- List<NodeImpl> list = new ArrayList<NodeImpl>();
- try
- {
- SOAPFactoryImpl soapFactory = new SOAPFactoryImpl();
- for (Node node = docFragment.getFirstChild(); node != null; node =
node.getNextSibling())
- {
- switch (node.getNodeType())
- {
- case Node.ELEMENT_NODE:
- {
- SOAPElementImpl soapChild = soapFactory.createElement((Element)node,
true);
- list.add(soapChild);
- break;
- }
- case Node.TEXT_NODE:
- {
- TextImpl text = new TextImpl(node);
- list.add(text);
- break;
- }
- case Node.CDATA_SECTION_NODE:
- {
- TextImpl text = new TextImpl(node);
- list.add(text);
- break;
- }
- }
- }
- }
- catch (SOAPException ex)
- {
- throw new DOMException(DOMException.INVALID_STATE_ERR, "Could not convert a
document fragment to a node");
- }
- return list;
- }
-
- // BEGIN org.w3c.dom.Node
*******************************************************************************************
-
- public String getNodeName()
- {
- return domNode.getNodeName();
- }
-
- public String getNodeValue() throws DOMException
- {
- return domNode.getNodeValue();
- }
-
- public void setNodeValue(String nodeValue) throws DOMException
- {
- domNode.setNodeValue(nodeValue);
- }
-
- public short getNodeType()
- {
- return domNode.getNodeType();
- }
-
- public org.w3c.dom.Node getParentNode()
- {
- assertSOAPParent();
- return soapParent;
- }
-
- public NodeList getChildNodes()
- {
- return new NodeListImpl(soapChildren);
- }
-
- public org.w3c.dom.Node getFirstChild()
- {
- NodeImpl child = null;
- org.w3c.dom.Node domChild = domNode.getFirstChild();
- if (domChild != null)
- {
- child = (NodeImpl)soapChildren.get(0);
- if (domChild != child.domNode)
- throw new WSException("Inconsistent node, child lists not
synchronized");
- }
- return child;
- }
-
- public org.w3c.dom.Node getLastChild()
- {
- NodeImpl child = null;
- org.w3c.dom.Node domChild = domNode.getLastChild();
- if (domChild != null)
- {
- child = (NodeImpl)soapChildren.get(soapChildren.size() - 1);
- if (domChild != child.domNode)
- throw new WSException("Inconsistent node, child lists not
synchronized");
- }
- return child;
- }
-
- public org.w3c.dom.Node getPreviousSibling()
- {
- assertSOAPParent();
-
- NodeImpl sibling = null;
- if (soapParent != null)
- {
- List children = ((NodeImpl)soapParent).soapChildren;
- for (int i = 0; i < children.size(); i++)
- {
- NodeImpl node = (NodeImpl)children.get(i);
- if (node == this && i > 0)
- {
- sibling = (NodeImpl)children.get(i - 1);
- break;
- }
- }
-
- if (sibling != null && sibling.domNode != domNode.getPreviousSibling())
- throw new WSException("Inconsistent node, child lists not
synchronized");
- }
-
- return sibling;
- }
-
- public org.w3c.dom.Node getNextSibling()
- {
- assertSOAPParent();
-
- NodeImpl sibling = null;
- if (soapParent != null)
- {
- List children = ((NodeImpl)soapParent).soapChildren;
- for (int i = 0; i < children.size(); i++)
- {
- NodeImpl node = (NodeImpl)children.get(i);
- if (node == this && (i + 1) < children.size())
- {
- sibling = (NodeImpl)children.get(i + 1);
- break;
- }
- }
-
- if (sibling != null && sibling.domNode != domNode.getNextSibling())
- throw new WSException("Inconsistent node, child lists not
synchronized");
- }
-
- return sibling;
- }
-
- public NamedNodeMap getAttributes()
- {
- return domNode.getAttributes();
- }
-
- public Document getOwnerDocument()
- {
- // Climb the tree in hopes of finding the soap envelope.
- // If it's not there (a detached subtree), then we return a non-associated
document
- if (soapParent == null)
- return new SOAPDocument();
-
- return soapParent.getOwnerDocument();
- }
-
- public org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild, org.w3c.dom.Node
refChild) throws DOMException
- {
- // DOM says that if refChild is null, an append is performed
- if (refChild == null)
- return appendChild(newChild);
-
- newChild = convertDOMNode(newChild);
- refChild = convertDOMNode(refChild);
-
- if (newChild instanceof DocumentFragment)
- {
- List<NodeImpl> list =
convertDocumentFragment((DocumentFragment)newChild);
- for (NodeImpl node : list)
- {
- insertBefore(node, refChild);
- }
- return newChild;
- }
-
- int index = soapChildren.indexOf(refChild);
- if (index < 0)
- throw new IllegalArgumentException("Cannot find refChild in list of
javax.xml.soap.Node children");
-
- NodeImpl soapNewNode = (NodeImpl)newChild;
- soapNewNode.detachNode();
-
- NodeImpl soapRefNode = (NodeImpl)refChild;
- domNode.insertBefore(soapNewNode.domNode, soapRefNode.domNode);
- soapChildren.add(index, soapNewNode);
-
- soapNewNode.soapParent = (SOAPElementImpl)this;
-
- return newChild;
- }
-
- public org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild, org.w3c.dom.Node
oldChild) throws DOMException
- {
- newChild = convertDOMNode(newChild);
- oldChild = convertDOMNode(oldChild);
-
- if (newChild instanceof DocumentFragment)
- {
- insertBefore(newChild, oldChild);
- ((NodeImpl)oldChild).detachNode();
- return newChild;
- }
-
- int index = soapChildren.indexOf(oldChild);
- if (index < 0)
- throw new DOMException(DOMException.NOT_FOUND_ERR, "Cannot find oldChild in
list of javax.xml.soap.Node children");
-
- NodeImpl soapNewNode = (NodeImpl)newChild;
- NodeImpl soapOldNode = (NodeImpl)oldChild;
-
- soapNewNode.detachNode();
-
- if (soapNewNode.domNode != soapOldNode.domNode)
- domNode.replaceChild(soapNewNode.domNode, soapOldNode.domNode);
-
- soapChildren.remove(index);
- soapChildren.add(index, soapNewNode);
-
- soapNewNode.soapParent = soapOldNode.soapParent;
- soapOldNode.soapParent = null;
-
- return newChild;
- }
-
- public org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild) throws DOMException
- {
- oldChild = convertDOMNode(oldChild);
-
- int index = soapChildren.indexOf(oldChild);
- if (index < 0)
- throw new DOMException(DOMException.NOT_FOUND_ERR, "Cannot find oldChild in
list of javax.xml.soap.Node children");
-
- NodeImpl soapOldNode = (NodeImpl)oldChild;
- domNode.removeChild(soapOldNode.domNode);
- soapChildren.remove(index);
-
- soapOldNode.soapParent = null;
-
- return oldChild;
- }
-
- public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild) throws DOMException
- {
- newChild = convertDOMNode(newChild);
-
- if (newChild instanceof DocumentFragment)
- {
- List<NodeImpl> list =
convertDocumentFragment((DocumentFragment)newChild);
- for (NodeImpl node : list)
- {
- appendChild(node);
- }
- return newChild;
- }
-
- if ((this instanceof SOAPElementImpl) == false)
- throw new DOMException(DOMException.INVALID_ACCESS_ERR, "Cannot append
child to this node: " + this);
-
- NodeImpl soapNode = (NodeImpl)newChild;
- soapNode.detachNode();
-
- domNode.appendChild(soapNode.domNode);
- soapNode.soapParent = (SOAPElementImpl)this;
-
- soapChildren.add(soapNode);
-
- return newChild;
- }
-
- public boolean hasChildNodes()
- {
- return domNode.hasChildNodes();
- }
-
- public org.w3c.dom.Node cloneNode(boolean deep)
- {
- return domNode.cloneNode(deep);
- }
-
- public void normalize()
- {
- domNode.normalize();
- }
-
- public boolean isSupported(String feature, String version)
- {
- return domNode.isSupported(feature, version);
- }
-
- public String getNamespaceURI()
- {
- return domNode.getNamespaceURI();
- }
-
- public String getPrefix()
- {
- return domNode.getPrefix();
- }
-
- public void setPrefix(String prefix) throws DOMException
- {
- domNode.setPrefix(prefix);
- }
-
- public String getLocalName()
- {
- return domNode.getLocalName();
- }
-
- public boolean hasAttributes()
- {
- return domNode.hasAttributes();
- }
-
- public int hashCode()
- {
- return domNode.hashCode();
- }
-
- public String toString()
- {
- return super.toString() + "[" + domNode.toString() + "]";
- }
-
- private Node convertDOMNode(org.w3c.dom.Node node)
- {
- Node retNode;
- if (node instanceof NodeImpl)
- {
- retNode = node;
- }
- else if (node instanceof DocumentFragment)
- {
- retNode = new DocumentFragmentImpl((DocumentFragment)node);
- }
- else if (node instanceof org.w3c.dom.Text)
- {
- retNode = new TextImpl(node);
- }
- else
- {
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Operation only
supported for javax.xml.soap.Node, this is a " + node);
- }
- return retNode;
- }
-
- private void assertSOAPParent()
- {
- org.w3c.dom.Node domParent = domNode.getParentNode();
- if (domParent != null && soapParent == null)
- throw new WSException("Inconsistent node, has a DOM parent but no SOAP
parent [" + this + "] " + DOMWriter.printNode(this, false));
- if (domParent == null && soapParent != null)
- throw new WSException("Inconsistent node, has a SOAP parent but no DOM
parent [" + this + "] " + DOMWriter.printNode(this, false));
- if (soapParent != null && domParent != soapParent.domNode)
- throw new WSException("Inconsistent node, SOAP parent is not identical with
DOM parent [" + this + "] " + DOMWriter.printNode(this, false));
- }
-
- // END org.w3c.dom.Node
*******************************************************************************************
-
- // BEGIN org.w3c.dom.Node DOM Level 3
*****************************************************************************
-
- public short compareDocumentPosition(Node other) throws DOMException
- {
- // FIXME compareDocumentPosition
- throw new NotImplementedException("compareDocumentPosition");
- }
-
- public String getBaseURI()
- {
- // FIXME getBaseURI
- throw new NotImplementedException("getBaseURI");
- }
-
- public Object getFeature(String feature, String version)
- {
- // FIXME getFeature
- throw new NotImplementedException("getFeature");
- }
-
- public String getTextContent() throws DOMException
- {
- // FIXME getTextContent
- throw new NotImplementedException("getTextContent");
- }
-
- public Object getUserData(String key)
- {
- // FIXME getUserData
- throw new NotImplementedException("getUserData");
- }
-
- public boolean isDefaultNamespace(String namespaceURI)
- {
- // FIXME isDefaultNamespace
- throw new NotImplementedException("isDefaultNamespace");
- }
-
- public boolean isEqualNode(Node arg)
- {
- // FIXME isEqualNode
- throw new NotImplementedException("isEqualNode");
- }
-
- public boolean isSameNode(Node other)
- {
- // FIXME isSameNode
- throw new NotImplementedException("isSameNode");
- }
-
- public String lookupNamespaceURI(String prefix)
- {
- // FIXME lookupNamespaceURI
- throw new NotImplementedException("lookupNamespaceURI");
- }
-
- public String lookupPrefix(String namespaceURI)
- {
- // FIXME lookupPrefix
- throw new NotImplementedException("lookupPrefix");
- }
-
- public void setTextContent(String textContent) throws DOMException
- {
- // FIXME setTextContent
- throw new NotImplementedException("setTextContent");
- }
-
- public Object setUserData(String key, Object data, UserDataHandler handler)
- {
- // FIXME setUserData
- throw new NotImplementedException("setUserData");
- }
-
- // END org.w3c.dom.Node DOM Level 3
*****************************************************************************
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/NodeImpl.java (from rev
1605, branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/NodeImpl.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/NodeListImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/NodeListImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/NodeListImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,67 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.soap;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
-
-/**
- * The NodeList interface provides the abstraction of an ordered collection of nodes,
without defining or constraining
- * how this collection is implemented. NodeList objects in the DOM are live.
- *
- * The items in the NodeList are accessible via an integral index, starting from 0.
- *
- * @author Thomas.Diesler(a)jboss.org
- */
-class NodeListImpl implements NodeList
-{
- private List<NodeImpl> nodeList = new ArrayList<NodeImpl>();
-
- NodeListImpl(List<NodeImpl> nodes)
- {
- nodeList = new ArrayList<NodeImpl>(nodes);
- }
-
- NodeListImpl(Iterator<NodeImpl> nodes)
- {
- nodeList = new ArrayList<NodeImpl>();
- while (nodes.hasNext())
- nodeList.add(nodes.next());
- }
-
- public Node item(int index)
- {
- if (nodeList.size() > index)
- return nodeList.get(index);
- else
- return null;
- }
-
- public int getLength()
- {
- return nodeList.size();
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/NodeListImpl.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/NodeListImpl.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/PayloadBuilder.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/PayloadBuilder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/PayloadBuilder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,39 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.soap;
-
-// $Id$
-
-import java.io.IOException;
-import java.io.InputStream;
-
-import javax.xml.soap.SOAPException;
-
-/**
- * @author Heiko Braun, <heiko.braun(a)jboss.com>
- * @author Thomas.Diesler(a)jboss.com
- * @since 19-Apr-2006
- */
-public interface PayloadBuilder
-{
- void build(SOAPMessageImpl soapMessage, InputStream in, boolean ignoreParseError)
throws IOException, SOAPException;
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/PayloadBuilder.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/PayloadBuilder.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SAAJPayloadBuilderDOM.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SAAJPayloadBuilderDOM.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SAAJPayloadBuilderDOM.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,251 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.soap;
-
-//$Id$
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.Iterator;
-
-import javax.xml.namespace.QName;
-import javax.xml.soap.Detail;
-import javax.xml.soap.Name;
-import javax.xml.soap.SOAPBody;
-import javax.xml.soap.SOAPElement;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPHeader;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.jaxrpc.Style;
-import org.jboss.ws.core.utils.DOMUtils;
-import org.jboss.ws.core.utils.DOMWriter;
-import org.w3c.dom.Element;
-import org.w3c.dom.NodeList;
-/**
- * A SOAPEnvelope builder for JAXRPC based on DOM
- *
- * @author Heiko Braun, <heiko.braun(a)jboss.com>
- * @author Thomas.Diesler(a)jboss.com
- * @since 19-Apr-2006
- */
-public class SAAJPayloadBuilderDOM implements PayloadBuilder
-{
- // provide logging
- private static Logger log = Logger.getLogger(SAAJPayloadBuilderDOM.class);
-
- private Style style = Style.DOCUMENT;
-
- public SAAJPayloadBuilderDOM(Style style)
- {
- this.style = style;
- }
-
- public void build(SOAPMessageImpl soapMessage, InputStream ins, boolean
ignoreParseError) throws IOException, SOAPException
- {
- // Parse the XML input stream
- Element domEnv = null;
- try
- {
- domEnv = DOMUtils.parse(ins);
- }
- catch (IOException ex)
- {
- if (ignoreParseError)
- {
- return;
- }
- throw ex;
- }
-
- String envNS = domEnv.getNamespaceURI();
- String envPrefix = domEnv.getPrefix();
-
- // Construct the envelope
- SOAPFactoryImpl soapFactory = new SOAPFactoryImpl();
- SOAPPartImpl soapPart = (SOAPPartImpl)soapMessage.getSOAPPart();
- SOAPEnvelopeImpl soapEnv = new SOAPEnvelopeImpl(soapPart,
soapFactory.createElement(domEnv, false));
-
- DOMUtils.copyAttributes(soapEnv, domEnv);
-
- // Add the header elements
- Element domHeader = DOMUtils.getFirstChildElement(domEnv, new QName(envNS,
"Header"));
- if (domHeader != null)
- {
- SOAPHeader soapHeader = soapEnv.getHeader();
-
- DOMUtils.copyAttributes(soapHeader, domHeader);
-
- Iterator it = DOMUtils.getChildElements(domHeader);
- while (it.hasNext())
- {
- Element srcElement = (Element)it.next();
- //registerNamespacesLocally(srcElement);
- String xmlFragment = DOMWriter.printNode(srcElement, false);
-
- Name name = new NameImpl(srcElement.getLocalName(), srcElement.getPrefix(),
srcElement.getNamespaceURI());
- SOAPContentElement destElement = new SOAPHeaderElementImpl(name);
- soapHeader.addChildElement(destElement);
-
- DOMUtils.copyAttributes(destElement, srcElement);
- destElement.setXMLFragment(xmlFragment);
- }
- }
-
- // Add the body elements
- Element domBody = DOMUtils.getFirstChildElement(domEnv, new QName(envNS,
"Body"));
- SOAPBody soapBody = soapEnv.getBody();
-
- DOMUtils.copyAttributes(soapBody, domBody);
-
- Iterator itBody = DOMUtils.getChildElements(domBody);
- if (itBody.hasNext())
- {
- Element domBodyElement = (Element)itBody.next();
-
- String localName = domBodyElement.getLocalName();
- String prefix = domBodyElement.getPrefix();
- String nsURI = domBodyElement.getNamespaceURI();
- Name beName = new NameImpl(localName, prefix, nsURI);
-
- // Process a <env:Fault> message
- if (beName.equals(new NameImpl("Fault", envPrefix, envNS)))
- {
- SOAPFaultImpl soapFault = new SOAPFaultImpl(envNS);
- soapBody.addChildElement(soapFault);
-
- DOMUtils.copyAttributes(soapFault, domBodyElement);
-
- Element domFaultCode = DOMUtils.getFirstChildElement(domBodyElement, new
QName("faultcode"));
- if (domFaultCode == null)
- throw new SOAPException("SOAPFault does not contain a
<faultcode> element");
-
- Element domFaultString = DOMUtils.getFirstChildElement(domBodyElement, new
QName("faultstring"));
- if (domFaultString == null)
- throw new SOAPException("SOAPFault does not contain a
<faultstring> element");
-
- String faultCode = DOMUtils.getTextContent(domFaultCode);
- soapFault.setFaultCode(faultCode);
-
- String faultString = DOMUtils.getTextContent(domFaultString);
- soapFault.setFaultString(faultString);
-
- Element domFaultActor = DOMUtils.getFirstChildElement(domBodyElement, new
QName("faultactor"));
- if (domFaultActor != null)
- {
- String faultActor = DOMUtils.getTextContent(domFaultActor);
- soapFault.setFaultActor(faultActor);
- }
-
- // Add the fault detail
- Element domFaultDetail = DOMUtils.getFirstChildElement(domBodyElement,
"detail");
- if (domFaultDetail != null)
- {
- Detail detail = soapFault.addDetail();
- Iterator it = DOMUtils.getChildElements(domFaultDetail);
- while (it.hasNext())
- {
- Element domElement = (Element)it.next();
- SOAPElement detailEntry = new
DetailEntryImpl(soapFactory.createElement(domElement, true));
- detailEntry = detail.addChildElement(detailEntry);
- }
- }
- }
-
- // Process and RPC or DOCUMENT style message
- else
- {
-
- if (style == Style.RPC)
- {
- SOAPBodyElementRpc soapBodyElement = new SOAPBodyElementRpc(beName);
- soapBodyElement =
(SOAPBodyElementRpc)soapBody.addChildElement(soapBodyElement);
-
- DOMUtils.copyAttributes(soapBodyElement, domBodyElement);
-
- Iterator itBodyElement = DOMUtils.getChildElements(domBodyElement);
- while (itBodyElement.hasNext())
- {
- Element srcElement = (Element)itBodyElement.next();
-
- Name name = new NameImpl(srcElement.getLocalName(),
srcElement.getPrefix(), srcElement.getNamespaceURI());
- SOAPContentElement destElement = new SOAPContentElement(name);
- destElement =
(SOAPContentElement)soapBodyElement.addChildElement(destElement);
-
- DOMUtils.copyAttributes(destElement, srcElement);
-
- String xmlFragment = DOMWriter.printNode(srcElement, false);
- destElement.setXMLFragment(xmlFragment);
- }
- }
- else if (style == Style.DOCUMENT)
- {
- Element srcElement = (Element)domBodyElement;
- SOAPContentElement destElement = new SOAPBodyElementDoc(beName);
- destElement = (SOAPContentElement)soapBody.addChildElement(destElement);
-
- DOMUtils.copyAttributes(destElement, srcElement);
-
- String xmlFragment = DOMWriter.printNode(srcElement, false);
- destElement.setXMLFragment(xmlFragment);
- }
- else if (style == null)
- {
- SOAPBodyElementMessage soapBodyElement = new
SOAPBodyElementMessage(beName);
- soapBodyElement =
(SOAPBodyElementMessage)soapBody.addChildElement(soapBodyElement);
-
- DOMUtils.copyAttributes(soapBodyElement, domBodyElement);
-
- NodeList nlist = domBodyElement.getChildNodes();
- for (int i = 0; i < nlist.getLength(); i++)
- {
- org.w3c.dom.Node child = nlist.item(i);
- short childType = child.getNodeType();
- if (childType == org.w3c.dom.Node.ELEMENT_NODE)
- {
- SOAPElement soapElement = soapFactory.createElement((Element)child,
true);
- soapBodyElement.addChildElement(soapElement);
- }
- else if (childType == org.w3c.dom.Node.TEXT_NODE)
- {
- String nodeValue = child.getNodeValue();
- soapBodyElement.addTextNode(nodeValue);
- }
- else if (childType == org.w3c.dom.Node.CDATA_SECTION_NODE)
- {
- String nodeValue = child.getNodeValue();
- soapBodyElement.addTextNode(nodeValue);
- }
- else
- {
- log.warn("Ignore child type: " + childType);
- }
- }
- }
- else
- {
- throw new WSException("Unsupported message style: " + style);
- }
- }
- }
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SAAJPayloadBuilderDOM.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SAAJPayloadBuilderDOM.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SAAJPayloadBuilderStax.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SAAJPayloadBuilderStax.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SAAJPayloadBuilderStax.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,467 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.soap;
-
-// $Id$
-
-import java.io.IOException;
-import java.io.InputStream;
-
-import javax.xml.namespace.QName;
-import javax.xml.soap.Name;
-import javax.xml.soap.SOAPBody;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPFault;
-import javax.xml.soap.SOAPHeader;
-import javax.xml.stream.XMLInputFactory;
-import javax.xml.stream.XMLStreamException;
-import javax.xml.stream.XMLStreamReader;
-
-import org.w3c.dom.Element;
-
-import com.ctc.wstx.stax.WstxInputFactory;
-
-/**
- * A SOAPEnvelope builder for JAXRPC based on Stax
- *
- * @author Heiko Braun, <heiko.braun(a)jboss.com>
- * @author Thomas.Diesler(a)jboss.com
- * @since 15-Apr-2006
- */
-public class SAAJPayloadBuilderStax implements PayloadBuilder
-{
- private static final String END_ELEMENT_BRACKET = "</";
- private static final String EMPTY_STRING = "";
- private static final String CLOSING_BRACKET = ">";
- private static final String START_ELEMENT_BRACKET = "<";
- private static final String HEADER_ELEMENT_NAME = "Header";
- private static final String BODY_ELEMENT_NAME = "Body";
- private static final String FAULT_ELEMENT_NAME = "Fault";
-
- private static enum Part
- {
- ENVELOPE, HEADER, BODY, FAULT, RPC_PAYLOAD, DOC_PAYLOAD, BARE_PAYLOAD
- }
-
- private Part currentPart = Part.ENVELOPE;
- private Part previousPart = null;
-
- // saaj
- private SOAPPartImpl soapPart;
- private SOAPEnvelopeImpl soapEnv;
-
- private StringBuffer fragmentBuffer;
- private QName fragmentRootCursor = null;
- private QName currentRootElement = null;
- private XMLStreamReader reader;
-
- private static XMLInputFactory factory;
-
- public SAAJPayloadBuilderStax()
- {
- resetFragmentBuffer();
- }
-
- private void resetFragmentBuffer()
- {
- this.fragmentBuffer = new StringBuffer();
- this.fragmentBuffer.ensureCapacity(2048);
- }
-
- public void build(SOAPMessageImpl soapMessage, InputStream in, boolean
ignoreParseError) throws IOException, SOAPException
- {
- try
- {
- reader = getFactoryInstance().createXMLStreamReader(in);
- }
- catch (XMLStreamException e)
- {
- throw new IOException("Failed to create stream reader:" +
e.getMessage());
- }
-
- try
- {
- soapPart = (SOAPPartImpl)soapMessage.getSOAPPart();
-
- while (reader.hasNext())
- {
-
- if (reader.isStartElement())
- {
- processStartElement();
- }
- else if (reader.isCharacters())
- {
- processCharacters();
- }
- else if (reader.isEndElement())
- {
- processEndElement();
- }
-
- reader.next();
- }
-
- }
- catch (XMLStreamException e)
- {
- if (!ignoreParseError)
- throw new IOException("Failed to parse stream: " +
e.getMessage());
- }
- catch (SOAPException e)
- {
- e.printStackTrace();
- throw e;
- }
- finally
- {
- try
- {
- if (reader != null)
- reader.close();
- }
- catch (XMLStreamException e)
- {
- // ignore
- }
- }
- }
-
- private static synchronized XMLInputFactory getFactoryInstance()
- {
- if (null == factory)
- {
- System.setProperty("javax.xml.stream.XMLInputFactory",
"com.ctc.wstx.stax.WstxInputFactory");
- //System.setProperty("javax.xml.stream.XMLInputFactory",
"com.sun.xml.stream.ZephyrParserFactory");
- factory = XMLInputFactory.newInstance();
- factory.setProperty(XMLInputFactory.IS_VALIDATING, Boolean.FALSE);
- ((WstxInputFactory)factory).configureForSpeed();
- }
- return factory;
-
- }
-
- private void processCharacters() throws SOAPException
- {
- if (fragmentRootCursor != null)
- consumeCharacters();
- }
-
- private void consumeCharacters() throws SOAPException
- {
-
- String text = normalize(reader.getText());
-
- if (!atPartMargin() && !reader.isWhiteSpace())
- {
-
- fragmentBuffer.append(text);
-
- if (Part.FAULT == currentPart)
- {
- String localName = currentRootElement.getLocalPart();
- SOAPFault fault = soapEnv.getBody().getFault();
- if ("faultcode".equalsIgnoreCase(localName))
- fault.setFaultCode(text);
- else if ("faultactor".equalsIgnoreCase(localName))
- fault.setFaultActor(text);
- else if ("faultstring".equalsIgnoreCase(localName))
- fault.setFaultString(text);
- }
- }
- }
-
- private void processEndElement() throws SOAPException
- {
- if (fragmentRootCursor != null)
- consumeEndElement();
- }
-
- private void consumeEndElement() throws SOAPException
- {
-
- QName qName = reader.getName();
-
- fragmentBuffer.append(END_ELEMENT_BRACKET);
- fragmentBuffer.append(getFQElementName(qName));
- fragmentBuffer.append(CLOSING_BRACKET);
-
- if (fragmentRootCursor != null && fragmentRootCursor.equals(qName))
- {
- flushBuffer();
- fragmentRootCursor = null;
- }
- }
-
- private void flushBuffer() throws SOAPException
- {
- if (Part.HEADER == currentPart)
- {
- SOAPHeader soapHeader = soapEnv.getHeader();
- SOAPContentElement lastHeaderElement =
(SOAPContentElement)soapHeader.getChildNodes().item(soapHeader.getChildNodes().getLength()
- 1);
-
- lastHeaderElement.setXMLFragment(fragmentBuffer.toString());
- }
- else if (Part.BODY == currentPart)
- {
- SOAPBody soapBody = soapEnv.getBody();
- SOAPContentElement lastBodyElement =
(SOAPContentElement)soapBody.getChildNodes().item(soapBody.getChildNodes().getLength() -
1);
- lastBodyElement.setXMLFragment(fragmentBuffer.toString());
- }
- else if (Part.FAULT == currentPart)
- {
- SOAPBody soapBody = soapEnv.getBody();
- SOAPContentElement faultElement = (SOAPContentElement)soapBody.getFault();
- faultElement.setXMLFragment(fragmentBuffer.toString());
- }
-
- resetFragmentBuffer();
- }
-
- private void processStartElement() throws SOAPException
- {
-
- QName qName = reader.getName();
- currentRootElement = qName;
-
- // identify current envelope part
- togglePartMargin(qName);
-
- // toggle current element
- Element destElement = null;
- if (Part.ENVELOPE == currentPart)
- {
- // setup envelope impl
- soapEnv = new SOAPEnvelopeImpl(soapPart, qName.getNamespaceURI());
- destElement = soapEnv; // soapEnv becomes current
- }
- else if (Part.HEADER == currentPart)
- {
- if (atPartMargin())
- {
- // the env:Header element itself
- SOAPHeader soapHeader = soapEnv.getHeader();
- destElement = soapHeader; // header becomes current
- previousPart = Part.HEADER;
- }
- else
- {
- // child element of env:Header
- if (fragmentRootCursor == null)
- {
- Name name = new NameImpl(qName.getLocalPart(), qName.getPrefix(),
qName.getNamespaceURI());
- SOAPContentElement headerElement = new SOAPHeaderElementImpl(name);
- soapEnv.getHeader().addChildElement(headerElement);
-
- destElement = headerElement; // headerElement becomes current
- fragmentRootCursor = qName;
- }
-
- consumeStartElement();
- }
- }
- else if (Part.BODY == currentPart)
- {
-
- SOAPBody soapBody = soapEnv.getBody();
-
- if (atPartMargin())
- {
- // the env:Body element
- destElement = soapBody;
- previousPart = Part.BODY;
- }
- else
- {
- // payload not fault
- Name bodyElementName = new NameImpl(qName.getLocalPart(), qName.getPrefix(),
qName.getNamespaceURI());
-
- if (fragmentRootCursor == null)
- {
- SOAPBodyElementDoc docBodyElement = new
SOAPBodyElementDoc(bodyElementName);
- docBodyElement =
(SOAPBodyElementDoc)soapBody.addChildElement(docBodyElement);
-
- destElement = docBodyElement;
- fragmentRootCursor = qName;
- }
-
- consumeStartElement();
- }
- }
- else if (Part.FAULT == currentPart)
- {
- // payload is fault
- if (atPartMargin())
- {
- SOAPBody soapBody = soapEnv.getBody();
- SOAPFaultImpl soapFault = new SOAPFaultImpl(soapEnv.getNamespaceURI());
- soapBody.addChildElement(soapFault);
- destElement = soapFault;
- previousPart = Part.FAULT;
- }
-
- if (fragmentRootCursor == null)
- {
- fragmentRootCursor = qName;
- }
-
- consumeStartElement();
- }
-
- if (fragmentRootCursor == null) // constructing soap elements
- {
- copyAttributes(destElement);
- }
- }
-
- private void togglePartMargin(QName qName)
- {
- // identify the current part
- if (qName.getLocalPart().equalsIgnoreCase(HEADER_ELEMENT_NAME))
- {
- previousPart = currentPart;
- currentPart = Part.HEADER;
- }
- else if (qName.getLocalPart().equalsIgnoreCase(BODY_ELEMENT_NAME))
- {
- previousPart = currentPart;
- currentPart = Part.BODY;
- }
- else if (qName.getLocalPart().equalsIgnoreCase(FAULT_ELEMENT_NAME))
- {
- previousPart = currentPart;
- currentPart = Part.FAULT;
- }
- }
-
- private void consumeStartElement()
- {
-
- QName qName = reader.getName();
-
- // element
- fragmentBuffer.append(START_ELEMENT_BRACKET);
- fragmentBuffer.append(getFQElementName(qName));
-
- // local namespaces
- for (int x = 0; x < reader.getNamespaceCount(); x++)
- {
- if (reader.getNamespacePrefix(x) != null)
- {
- fragmentBuffer.append(" xmlns:");
-
fragmentBuffer.append(reader.getNamespacePrefix(x)).append("='");
- fragmentBuffer.append(reader.getNamespaceURI(x)).append("'");
- }
- else if (reader.getNamespaceURI(x) != null)
- {
- fragmentBuffer.append(" xmlns='");
- fragmentBuffer.append(reader.getNamespaceURI(x)).append("'");
- }
- }
-
- // attributes
- if (reader.getAttributeCount() > 0)
- {
- for (int i = 0; i < reader.getAttributeCount(); i++)
- {
- QName attQName = reader.getAttributeName(i);
- fragmentBuffer.append(" ").append(getFQElementName(attQName));
-
fragmentBuffer.append("='").append(reader.getAttributeValue(i)).append("'");
- }
- }
-
- fragmentBuffer.append(CLOSING_BRACKET);
- }
-
- private String getFQElementName(QName qName)
- {
- return !qName.getPrefix().equals(EMPTY_STRING) ? qName.getPrefix() + ":"
+ qName.getLocalPart() : qName.getLocalPart();
- }
-
- private void copyAttributes(Element destElement)
- {
-
- if (reader.getAttributeCount() == 0)
- return;
-
- for (int i = 0; i < reader.getAttributeCount(); i++)
- {
- destElement.setAttributeNS(reader.getAttributeNamespace(i),
reader.getAttributeLocalName(i), reader.getAttributeValue(i));
- }
- }
-
- private boolean atPartMargin()
- {
- return previousPart != currentPart;
- }
-
- private static String normalize(String valueStr)
- {
- // We assume most strings will not contain characters that need
"escaping",
- // and optimize for this case.
- boolean found = false;
- int i = 0;
-
- outer: for (; i < valueStr.length(); i++)
- {
- switch (valueStr.charAt(i))
- {
- case '<':
- case '>':
- case '&':
- case '"':
- found = true;
- break outer;
- }
- }
-
- if (!found)
- return valueStr;
-
- // Resume where we left off
- StringBuilder builder = new StringBuilder();
- builder.append(valueStr.substring(0, i));
- for (; i < valueStr.length(); i++)
- {
- char c = valueStr.charAt(i);
- switch (c)
- {
- case '<':
- builder.append("<");
- break;
- case '>':
- builder.append(">");
- break;
- case '&':
- builder.append("&");
- break;
- case '"':
- builder.append(""");
- break;
- default:
- builder.append(c);
- }
- }
-
- return builder.toString();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SAAJPayloadBuilderStax.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SAAJPayloadBuilderStax.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SAAJVisitable.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SAAJVisitable.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SAAJVisitable.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,31 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.soap;
-
-/**
- * @author Heiko Braun <heiko.braun(a)jboss.com>
- * @version $Id$
- * @since Sep 26, 2006
- */
-public interface SAAJVisitable {
- public void accept(SAAJVisitor visitor);
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SAAJVisitable.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SAAJVisitable.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SAAJVisitor.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SAAJVisitor.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SAAJVisitor.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,34 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.soap;
-
-import javax.xml.soap.SOAPElement;
-
-/**
- * @author Heiko Braun <heiko.braun(a)jboss.com>
- * @version $Id$
- * @since Sep 26, 2006
- */
-public interface SAAJVisitor {
- void visitSOAPElement(SOAPElementImpl soapElement);
- void visitSOAPContentElement(SOAPContentElement scElement);
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SAAJVisitor.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SAAJVisitor.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPBodyElementDoc.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPBodyElementDoc.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPBodyElementDoc.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,46 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.soap;
-
-import javax.xml.soap.Name;
-import javax.xml.soap.SOAPBodyElement;
-
-/**
- * An abstract implemenation of the SOAPBodyElement
- * <p/>
- * This class should not expose functionality that is not part of
- * {@link javax.xml.soap.SOAPBodyElement}. Client code should use
<code>SOAPBodyElement</code>.
- *
- * @author Thomas.Diesler(a)jboss.org
- */
-public class SOAPBodyElementDoc extends SOAPContentElement implements SOAPBodyElement
-{
- public SOAPBodyElementDoc(Name name)
- {
- super(name);
- }
-
- public SOAPBodyElementDoc(SOAPElementImpl element)
- {
- super(element);
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPBodyElementDoc.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPBodyElementDoc.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPBodyElementMessage.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPBodyElementMessage.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPBodyElementMessage.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,62 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.soap;
-
-import org.jboss.ws.core.utils.DOMWriter;
-
-import javax.xml.soap.Name;
-import javax.xml.soap.SOAPBodyElement;
-import javax.xml.rpc.JAXRPCException;
-import java.io.Writer;
-
-/**
- * An abstract implemenation of the SOAPBodyElement
- * <p/>
- * This class should not expose functionality that is not part of
- * {@link javax.xml.soap.SOAPBodyElement}. Client code should use
<code>SOAPBodyElement</code>.
- *
- * @author Thomas.Diesler(a)jboss.org
- */
-public class SOAPBodyElementMessage extends SOAPElementImpl implements SOAPBodyElement
-{
- public SOAPBodyElementMessage(Name name)
- {
- super(name);
- }
-
- public SOAPBodyElementMessage(SOAPElementImpl element)
- {
- super(element);
- }
-
- public void writeElement(Writer writer) {
- try
- {
- DOMWriter domWriter = new DOMWriter(writer);
- domWriter.print(this);
- }
- catch (Exception e)
- {
- throw new JAXRPCException(e);
- }
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPBodyElementMessage.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPBodyElementMessage.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPBodyElementRpc.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPBodyElementRpc.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPBodyElementRpc.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,53 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.soap;
-
-import org.jboss.ws.core.utils.DOMWriter;
-import org.jboss.ws.WSException;
-import org.w3c.dom.Element;
-import javax.xml.soap.Name;
-import javax.xml.soap.SOAPBodyElement;
-import javax.xml.rpc.JAXRPCException;
-import java.io.IOException;
-import java.io.Writer;
-import java.util.Iterator;
-
-/**
- * An abstract implemenation of the SOAPBodyElement
- * <p/>
- * This class should not expose functionality that is not part of
- * {@link javax.xml.soap.SOAPBodyElement}. Client code should use
<code>SOAPBodyElement</code>.
- *
- * @author Thomas.Diesler(a)jboss.org
- */
-public class SOAPBodyElementRpc extends SOAPElementImpl implements SOAPBodyElement
-{
- public SOAPBodyElementRpc(Name name)
- {
- super(name);
- }
-
- public SOAPBodyElementRpc(SOAPElementImpl element)
- {
- super(element);
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPBodyElementRpc.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPBodyElementRpc.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPBodyImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPBodyImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPBodyImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,179 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.soap;
-
-// $Id$
-
-import java.util.Iterator;
-import java.util.Locale;
-
-import javax.xml.soap.Name;
-import javax.xml.soap.SOAPBody;
-import javax.xml.soap.SOAPBodyElement;
-import javax.xml.soap.SOAPElement;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPFault;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.Constants;
-import org.w3c.dom.DOMException;
-import org.w3c.dom.Document;
-import org.w3c.dom.DocumentFragment;
-import org.w3c.dom.Element;
-import org.w3c.dom.Node;
-
-/**
- * An object that represents the contents of the SOAP body element in a SOAP message.
- * A SOAP body element consists of XML data that affects the way the application-specific
content is processed.
- *
- * A SOAPBody object contains SOAPBodyElement objects, which have the content for the
SOAP body.
- * A SOAPFault object, which carries status and/or error information, is an example of a
SOAPBodyElement object.
- *
- * @author Thomas.Diesler(a)jboss.org
- */
-public class SOAPBodyImpl extends SOAPElementImpl implements SOAPBody
-{
- // provide logging
- private static Logger log = Logger.getLogger(SOAPBodyImpl.class);
-
- public SOAPBodyImpl(String prefix, String namespace)
- {
- super("Body", prefix, namespace);
- }
-
- /** Convert the child into a SOAPBodyElement */
- public SOAPElement addChildElement(SOAPElement child) throws SOAPException
- {
- log.trace("addChildElement: " + child.getElementName());
- if ((child instanceof SOAPBodyElement) == false)
- child = convertToBodyElement(child);
-
- child = super.addChildElement(child);
- return child;
- }
-
- public SOAPBodyElement addBodyElement(Name name) throws SOAPException
- {
- log.trace("addBodyElement: " + name);
- SOAPBodyElement child = new SOAPBodyElementDoc(name);
- return (SOAPBodyElement)addChildElement(child);
- }
-
- public SOAPBodyElement addDocument(Document doc) throws SOAPException
- {
- log.trace("addDocument");
- Element rootElement = doc.getDocumentElement();
- SOAPFactoryImpl soapFactory = new SOAPFactoryImpl();
- SOAPElementImpl soapElement = soapFactory.createElement(rootElement, true);
- return (SOAPBodyElement)addChildElement(soapElement);
- }
-
- public SOAPFault addFault() throws SOAPException
- {
- log.trace("addFault");
- if (hasFault())
- throw new SOAPException("A SOAPBody may contain at most one SOAPFault child
element");
-
- return addFault(new NameImpl(Constants.SOAP11_FAULT_CODE_SERVER), "Generic
server fault");
- }
-
- public SOAPFault addFault(Name faultCode, String faultString) throws SOAPException
- {
- log.trace("addFault");
- if (hasFault())
- throw new SOAPException("A SOAPBody may contain at most one SOAPFault child
element");
-
- SOAPFaultImpl soapFault = new SOAPFaultImpl(getNamespaceURI());
- soapFault = (SOAPFaultImpl)addChildElement(soapFault);
- soapFault.setFaultCode(faultCode);
- soapFault.setFaultString(faultString);
- return soapFault;
- }
-
- public SOAPFault addFault(Name faultCode, String faultString, Locale locale) throws
SOAPException
- {
- log.trace("addFault");
- if (hasFault())
- throw new SOAPException("A SOAPBody may contain at most one SOAPFault child
element");
-
- SOAPFaultImpl soapFault = new SOAPFaultImpl(getNamespaceURI());
- soapFault.setFaultCode(faultCode);
- soapFault.setFaultString(faultString, locale);
- addChildElement(soapFault);
- return soapFault;
- }
-
- public SOAPFault getFault()
- {
- log.trace("getFault");
- Iterator it = getChildElements(new NameImpl("Fault",
Constants.PREFIX_ENV, getSOAPEnvelope().getNamespaceURI()));
- return (it.hasNext() ? (SOAPFault)it.next() : null);
- }
-
- public boolean hasFault()
- {
- log.trace("hasFault");
- return getChildElements(Constants.SOAP11_FAULT).hasNext();
- }
-
- public Node appendChild(Node newChild) throws DOMException
- {
- log.trace("appendChild: " + newChild.getNodeName());
- Node retNode;
- if (!(newChild instanceof SOAPBodyElement || newChild instanceof
DocumentFragment))
- {
- newChild = convertToBodyElement(newChild);
- }
- retNode = super.appendChild(newChild);
- return retNode;
- }
-
- public Node insertBefore(Node newChild, Node refChild) throws DOMException
- {
- log.trace("insertBefore: " + newChild.getNodeName());
- if (!(newChild instanceof SOAPBodyElement || newChild instanceof
DocumentFragment))
- newChild = convertToBodyElement(newChild);
-
- return super.insertBefore(newChild, refChild);
- }
-
- public Node replaceChild(Node newChild, Node oldChild) throws DOMException
- {
- log.trace("replaceChild: " + newChild.getNodeName());
- if (!(newChild instanceof SOAPBodyElement || newChild instanceof
DocumentFragment))
- {
- newChild = convertToBodyElement(newChild);
- }
-
- return super.replaceChild(newChild, oldChild);
- }
-
- private SOAPBodyElementDoc convertToBodyElement(Node node)
- {
- if (!(node instanceof SOAPElementImpl))
- throw new IllegalArgumentException("SOAPElement expected");
-
- SOAPElementImpl element = (SOAPElementImpl)node;
- element.detachNode();
- return new SOAPBodyElementDoc(element);
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPBodyImpl.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPBodyImpl.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPConnectionFactoryImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPConnectionFactoryImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPConnectionFactoryImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,80 +0,0 @@
-/*
- * The Apache Software License, Version 1.1
- *
- *
- * Copyright (c) 2002-2003 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * 3. The end-user documentation included with the redistribution,
- * if any, must include the following acknowledgment:
- * "This product includes software developed by the
- * Apache Software Foundation (
http://www.apache.org/)."
- * Alternately, this acknowledgment may appear in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The names "Axis" and "Apache Software Foundation" must
- * not be used to endorse or promote products derived from this
- * software without prior written permission. For written
- * permission, please contact apache(a)apache.org.
- *
- * 5. Products derived from this software may not be called "Apache",
- * nor may "Apache" appear in their name, without prior written
- * permission of the Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ====================================================================
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Apache Software Foundation. For more
- * information on the Apache Software Foundation, please see
- * <
http://www.apache.org/>.
- */
-package org.jboss.ws.core.soap;
-
-// $Id$
-
-import javax.xml.soap.SOAPConnection;
-import javax.xml.soap.SOAPConnectionFactory;
-import javax.xml.soap.SOAPException;
-
-/**
- * SOAP Connection Factory implementation
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 02-Feb-2005
- */
-public class SOAPConnectionFactoryImpl extends SOAPConnectionFactory
-{
- /** Create a new SOAPConnection.
- *
- * @return the new SOAPConnection object.
- * @throws javax.xml.soap.SOAPException if there was an exception creating
theSOAPConnection object.
- */
- public SOAPConnection createConnection() throws SOAPException
- {
- return new SOAPConnectionImpl();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPConnectionFactoryImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPConnectionFactoryImpl.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPConnectionImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPConnectionImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPConnectionImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,336 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.soap;
-
-// $Id$
-
-import org.jboss.logging.Logger;
-import org.jboss.remoting.Client;
-import org.jboss.remoting.InvokerLocator;
-import org.jboss.remoting.util.socket.RemotingSSLSocketFactory;
-import org.jboss.ws.core.jaxrpc.StubExt;
-import org.jboss.ws.extensions.xop.XOPContext;
-
-import javax.xml.rpc.Stub;
-import javax.xml.soap.*;
-import javax.xml.ws.addressing.EndpointReference;
-import java.net.MalformedURLException;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.Map;
-import java.util.Properties;
-
-/**
- * SOAPConnection implementation
- *
- * @author Thomas.Diesler(a)jboss.org
- * @author <a href="mailto:jason@stacksmash.com">Jason T.
Greene</a>
- *
- * @since 02-Feb-2005
- */
-public class SOAPConnectionImpl extends SOAPConnection
-{
- // provide logging
- private static Logger log = Logger.getLogger(SOAPConnectionImpl.class);
- private static Logger msgLog = Logger.getLogger("jbossws.SOAPMessage");
-
- private Map<String, Object> config = new HashMap<String, Object>();
-
- private static Map<String, String> metadataMap = new HashMap<String,
String>();
- static
- {
- metadataMap.put(Stub.USERNAME_PROPERTY, "http.basic.username");
- metadataMap.put(Stub.PASSWORD_PROPERTY, "http.basic.password");
- }
- private static Map<String, String> configMap = new HashMap<String,
String>();
- static
- {
- configMap.put(StubExt.PROPERTY_KEY_STORE,
RemotingSSLSocketFactory.REMOTING_KEY_STORE_FILE_PATH);
- configMap.put(StubExt.PROPERTY_KEY_STORE_PASSWORD,
RemotingSSLSocketFactory.REMOTING_KEY_STORE_PASSWORD);
- configMap.put(StubExt.PROPERTY_KEY_STORE_TYPE,
RemotingSSLSocketFactory.REMOTING_KEY_STORE_TYPE);
- configMap.put(StubExt.PROPERTY_TRUST_STORE,
RemotingSSLSocketFactory.REMOTING_TRUST_STORE_FILE_PATH);
- configMap.put(StubExt.PROPERTY_TRUST_STORE_PASSWORD,
RemotingSSLSocketFactory.REMOTING_TRUST_STORE_PASSWORD);
- configMap.put(StubExt.PROPERTY_TRUST_STORE_TYPE,
RemotingSSLSocketFactory.REMOTING_TRUST_STORE_TYPE);
- }
-
- private boolean closed;
-
- public SOAPConnectionImpl()
- {
- // HTTPClientInvoker conect sends gratuitous POST
- //
http://jira.jboss.com/jira/browse/JBWS-711
- config.put(Client.ENABLE_LEASE, false);
- }
-
- /**
- * Sends the given message to the specified endpoint and blocks until it has
- * returned the response.
- */
- public SOAPMessage call(SOAPMessage reqMessage, Object endpoint) throws SOAPException
- {
- return callInternal(reqMessage, endpoint, false);
- }
-
- /**
- * Sends the given message to the specified endpoint. This method is logically
- * non blocking.
- */
- public SOAPMessage callOneWay(SOAPMessage reqMessage, Object endpoint) throws
SOAPException
- {
- return callInternal(reqMessage, endpoint, true);
- }
-
- /** Sends the given message to the specified endpoint. */
- private SOAPMessage callInternal(SOAPMessage reqMessage, Object endpoint, boolean
oneway) throws SOAPException
- {
- if (reqMessage == null)
- throw new IllegalArgumentException("Given SOAPMessage cannot be
null");
- if (endpoint == null)
- throw new IllegalArgumentException("Given endpoint cannot be null");
- if (closed)
- throw new SOAPException("SOAPConnection is already closed");
-
- String targetAddress;
- Map callProps = null;
-
- if (endpoint instanceof EndpointInfo)
- {
- EndpointInfo epInfo = (EndpointInfo)endpoint;
- targetAddress = epInfo.getTargetAddress();
- callProps = epInfo.getProperties();
-
- if (callProps.containsKey(StubExt.PROPERTY_CLIENT_TIMEOUT))
- {
- Object timeout = callProps.get(StubExt.PROPERTY_CLIENT_TIMEOUT);
- int qmIndex = targetAddress.indexOf("?");
- targetAddress += (qmIndex < 0 ? "?" : "&") +
"timeout=" + timeout;
- }
- }
- else if (endpoint instanceof EndpointReference)
- {
- EndpointReference epr = (EndpointReference)endpoint;
- targetAddress = epr.getAddress().toString();
- }
- else
- {
- targetAddress = endpoint.toString();
- }
-
- // enforce xop transitions
- // TODO: there should be a clear transition to an immutable object model
- XOPContext.eagerlyCreateAttachments();
-
- // save object model changes
- if (reqMessage.saveRequired()) reqMessage.saveChanges();
-
- // setup remoting client
- Map metadata = createRemotingMetaData(reqMessage, callProps);
- Client client = createRemotingClient(endpoint, targetAddress, oneway);
-
- try
- {
- // debug the outgoing message
- traceRequest(reqMessage, metadata);
-
- SOAPMessage resMessage = null;
- if (oneway == true)
- {
- client.invokeOneway(reqMessage, metadata, false);
- }
- else
- {
- resMessage = (SOAPMessage)client.invoke(reqMessage, metadata);
- }
-
- // debug the incomming response message
- traceResponse(resMessage);
-
- return resMessage;
-
- }
- catch (Throwable t)
- {
- throw new SOAPException("Could not transmit message", t);
- }
- }
-
- private void traceResponse(SOAPMessage resMessage) throws SOAPException {
- if (resMessage != null && msgLog.isTraceEnabled())
- {
- SOAPEnvelope soapResEnv = resMessage.getSOAPPart().getEnvelope();
- String envStr = SOAPElementWriter.writeElement((SOAPElementImpl)soapResEnv,
true);
- msgLog.trace("Incoming Response SOAPMessage\n" + envStr);
- }
- }
-
- private void traceRequest(SOAPMessage reqMessage, Map metadata) throws SOAPException
{
- if(msgLog.isTraceEnabled())
- {
- SOAPEnvelope soapReqEnv = reqMessage.getSOAPPart().getEnvelope();
- String envStr = SOAPElementWriter.writeElement((SOAPElementImpl)soapReqEnv,
true);
- msgLog.trace("Remoting meta data: " + metadata);
- msgLog.trace("Outgoing SOAPMessage\n" + envStr);
- }
- }
-
- private Client createRemotingClient(Object endpoint, String targetAddress, boolean
oneway) throws SOAPException {
- Client remotingClient;
- try
- {
- // Get the invoker from Remoting for a given endpoint address
- log.debug("Get locator for: " + endpoint);
- InvokerLocator locator = new InvokerLocator(targetAddress);
-
- remotingClient = new Client(locator, "saaj", config);
- remotingClient.setMarshaller(new SOAPMessageMarshaller());
- remotingClient.setUnMarshaller(oneway == false ? new SOAPMessageUnMarshaller() :
null);
- }
- catch (MalformedURLException e)
- {
- throw new SOAPException("Malformed endpoint address", e);
- }
- catch (Exception e)
- {
- throw new SOAPException("Could not setup remoting client", e);
- }
- return remotingClient;
- }
-
- /** Closes this SOAPConnection
- */
- public void close() throws SOAPException
- {
- if (closed)
- throw new SOAPException("SOAPConnection is already closed");
-
- closed = true;
- }
-
- private Map createRemotingMetaData(SOAPMessage reqMessage, Map callProps) throws
SOAPException
- {
- // R2744 A HTTP request MESSAGE MUST contain a SOAPAction HTTP header field
- // with a quoted value equal to the value of the soapAction attribute of
- // soapbind:operation, if present in the corresponding WSDL description.
-
- // R2745 A HTTP request MESSAGE MUST contain a SOAPAction HTTP header field
- // with a quoted empty string value, if in the corresponding WSDL description,
- // the soapAction attribute of soapbind:operation is either not present, or
- // present with an empty string as its value.
-
- MimeHeaders mimeHeaders = reqMessage.getMimeHeaders();
- String[] action = mimeHeaders.getHeader("SOAPAction");
- if (action != null && action.length > 0)
- {
- String soapAction = action[0];
-
- // R1109 The value of the SOAPAction HTTP header field in a HTTP request MESSAGE
MUST be a quoted string.
- if (soapAction.startsWith("\"") == false ||
soapAction.endsWith("\"") == false)
- soapAction = "\"" + soapAction + "\"";
-
- mimeHeaders.setHeader("SOAPAction", soapAction);
- }
- else
- {
- mimeHeaders.setHeader("SOAPAction", "\"\"");
- }
-
- Map<String, Object> metadata = new HashMap<String, Object>();
- Properties props = new Properties();
- metadata.put("HEADER", props);
-
- Iterator i = mimeHeaders.getAllHeaders();
- while (i.hasNext())
- {
- MimeHeader header = (MimeHeader)i.next();
- String currentValue = props.getProperty(header.getName());
-
- /*
- * Coalesce multiple headers into one
- *
- * From HTTP/1.1 RFC 2616:
- *
- * Multiple message-header fields with the same field-name MAY be
- * present in a message if and only if the entire field-value for that
- * header field is defined as a comma-separated list [i.e., #(values)].
- * It MUST be possible to combine the multiple header fields into one
- * "field-name: field-value" pair, without changing the semantics of
- * the message, by appending each subsequent field-value to the first,
- * each separated by a comma.
- */
- if (currentValue != null)
- {
- props.put(header.getName(), currentValue + "," +
header.getValue());
- }
- else
- {
- props.put(header.getName(), header.getValue());
- }
- }
-
- if (callProps != null)
- {
- Iterator it = callProps.entrySet().iterator();
-
- // Get authentication type, default to BASIC authetication
- String authType = (String)callProps.get(StubExt.PROPERTY_AUTH_TYPE);
- if (authType == null)
- authType = StubExt.PROPERTY_AUTH_TYPE_BASIC;
-
- while (it.hasNext())
- {
- Map.Entry entry = (Map.Entry)it.next();
- String key = (String)entry.getKey();
- Object val = entry.getValue();
-
- // pass properties to remoting meta data
- if (metadataMap.containsKey(key))
- {
- String remotingKey = metadataMap.get(key);
- if (key.equals(Stub.USERNAME_PROPERTY) ||
key.equals(Stub.PASSWORD_PROPERTY))
- {
- if (authType.equals(StubExt.PROPERTY_AUTH_TYPE_BASIC))
- {
- metadata.put(remotingKey, val);
- }
- else
- {
- log.warn("Ignore '" + key + "' with auth
typy: " + authType);
- }
- }
- else
- {
- metadata.put(remotingKey, val);
- }
- }
-
- // pass properties to remoting client config
- if (configMap.containsKey(key))
- {
- String remotingKey = configMap.get(key);
- config.put(remotingKey, val);
- }
- }
- }
-
- return metadata;
- }
-}
\ No newline at end of file
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPConnectionImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPConnectionImpl.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPContentElement.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPContentElement.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPContentElement.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,1040 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.soap;
-
-// $Id$
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.Constants;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.CommonMessageContext;
-import org.jboss.ws.core.jaxrpc.TypeMappingImpl;
-import org.jboss.ws.core.jaxrpc.binding.BindingException;
-import org.jboss.ws.core.jaxrpc.binding.DeserializerFactoryBase;
-import org.jboss.ws.core.jaxrpc.binding.DeserializerSupport;
-import org.jboss.ws.core.jaxrpc.binding.NullValueSerializer;
-import org.jboss.ws.core.jaxrpc.binding.SerializationContext;
-import org.jboss.ws.core.jaxrpc.binding.SerializerFactoryBase;
-import org.jboss.ws.core.jaxrpc.binding.SerializerSupport;
-import org.jboss.ws.core.soap.attachment.SwapableMemoryDataSource;
-import org.jboss.ws.core.utils.DOMUtils;
-import org.jboss.ws.core.utils.DOMWriter;
-import org.jboss.ws.core.utils.JavaUtils;
-import org.jboss.ws.core.utils.MimeUtils;
-import org.jboss.ws.extensions.xop.XOPContext;
-import org.jboss.ws.metadata.umdm.ParameterMetaData;
-import org.jboss.ws.metadata.umdm.UnifiedMetaData;
-import org.w3c.dom.*;
-
-import javax.xml.namespace.QName;
-import javax.xml.soap.Name;
-import javax.xml.soap.SOAPElement;
-import javax.xml.soap.SOAPException;
-import javax.activation.DataHandler;
-import javax.activation.DataSource;
-import java.io.IOException;
-import java.io.Writer;
-import java.io.InputStream;
-import java.io.ByteArrayOutputStream;
-import java.lang.reflect.Array;
-import java.lang.reflect.Method;
-import java.util.Iterator;
-
-/**
- * A SOAPElement that gives access to its content as XML fragment or Java object.
- *
- * The SOAPContentElement has three content representations, which may exist in
parallel.
- * The getter and setter of the content properties perform the conversions.
- * It is the responsibility of this objects to keep the representations in sync.
- *
- * +---------+ +-------------+ +-------------+
- * | Object | <-----> | XMLFragment | <-----> | DOMTree |
- * +---------+ +-------------+ +-------------+
- *
- * The idea is, that jaxrpc handlers can work with both the object and the dom view of
this SOAPElement.
- * Note, that state transitions may be expensive.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 13-Dec-2004
- */
-public class SOAPContentElement extends SOAPElementImpl
-{
- // provide logging
- private static Logger log = Logger.getLogger(SOAPContentElement.class);
-
- // The well formed XML content of this element.
- private String xmlFragment;
- // The java object content of this element.
- private Object objectValue;
- // True if the current DOM tree is valid
- private boolean isDOMValid;
- // True if the current content object is valid
- private boolean isObjectValid;
- // True while expanding to DOM
- private boolean expandingToDOM;
-
- // The associated parameter
- private ParameterMetaData paramMetaData;
-
- /** Construct a SOAPContentElement
- */
- public SOAPContentElement(Name name)
- {
- super(name);
- isDOMValid = true;
- }
-
- public SOAPContentElement(SOAPElementImpl element)
- {
- super(element);
- isDOMValid = true;
- }
-
- public ParameterMetaData getParamMetaData()
- {
- if (paramMetaData == null)
- throw new IllegalStateException("Parameter meta data not available");
-
- return paramMetaData;
- }
-
- public void setParamMetaData(ParameterMetaData paramMetaData)
- {
- this.paramMetaData = paramMetaData;
- }
-
- public QName getXmlType()
- {
- return getParamMetaData().getXmlType();
- }
-
- public Class getJavaType()
- {
- return getParamMetaData().getJavaType();
- }
-
- public boolean isDOMValid()
- {
- return isDOMValid;
- }
-
- public boolean isObjectValid()
- {
- return isObjectValid;
- }
-
- public boolean isFragmentValid()
- {
- return xmlFragment != null;
- }
-
- public String getXMLFragment()
- {
- // Serialize the valueContent
- if (xmlFragment == null && isObjectValid)
- {
- assertContentMapping();
-
- QName xmlType = getXmlType();
- Class javaType = getJavaType();
- log.debug("getXMLFragment from Object [xmlType=" + xmlType +
",javaType=" + javaType + "]");
-
- CommonMessageContext msgContext =
MessageContextAssociation.peekMessageContext();
- if (msgContext == null)
- throw new WSException("MessageContext not available");
-
- SerializationContext serContext = msgContext.getSerializationContext();
- serContext.setProperty(ParameterMetaData.class.getName(), getParamMetaData());
-
- TypeMappingImpl typeMapping = serContext.getTypeMapping();
-
- QName xmlName = getQName();
- try
- {
- SerializerSupport ser;
- if (objectValue != null)
- {
- SerializerFactoryBase serializerFactory =
getSerializerFactory(typeMapping, javaType, xmlType);
- ser = (SerializerSupport)serializerFactory.getSerializer();
- }
- else
- {
- ser = new NullValueSerializer();
- }
-
- xmlFragment = ser.serialize(xmlName, xmlType, getObjectValue(), serContext,
null);
- log.debug("xmlFragment: " + xmlFragment);
- invalidateObjectContent();
- }
- catch (BindingException e)
- {
- throw new WSException(e);
- }
- }
-
- // Generate the xmlFragment from the DOM tree
- else if (xmlFragment == null && isDOMValid)
- {
- log.debug("getXMLFragment from DOM");
- xmlFragment = DOMWriter.printNode(this, false);
- log.debug("xmlFragment: " + xmlFragment);
- invalidateDOMContent();
- }
-
- if (xmlFragment == null || xmlFragment.startsWith("<") == false)
- throw new WSException("Invalid XMLFragment: " + xmlFragment);
-
- return xmlFragment;
- }
-
- public void setXMLFragment(String xmlFragment)
- {
- log.debug("setXMLFragment: " + xmlFragment);
-
- if (xmlFragment == null || xmlFragment.startsWith("<") == false)
- throw new WSException("Invalid XMLFragment: " + xmlFragment);
-
- removeContentsAsIs();
- resetElementContent();
-
- this.xmlFragment = xmlFragment;
- invalidateDOMContent();
- invalidateObjectContent();
- }
-
- public Object getObjectValue()
- {
- if (isObjectValid == false)
- {
- QName xmlType = getXmlType();
- Class javaType = getJavaType();
-
- log.debug("getObjectValue [xmlType=" + xmlType +
",javaType=" + javaType + "]");
- assertContentMapping();
-
- CommonMessageContext msgContext =
MessageContextAssociation.peekMessageContext();
- if (msgContext == null)
- throw new WSException("MessageContext not available");
-
- SerializationContext serContext = msgContext.getSerializationContext();
- serContext.setProperty(ParameterMetaData.class.getName(), getParamMetaData());
-
- try
- {
- // Get the deserializer from the type mapping
- TypeMappingImpl typeMapping = serContext.getTypeMapping();
- DeserializerFactoryBase deserializerFactory =
getDeserializerFactory(typeMapping, javaType, xmlType);
- DeserializerSupport des =
(DeserializerSupport)deserializerFactory.getDeserializer();
-
- String strContent = getXMLFragment();
-
- Object obj = des.deserialize(getQName(), xmlType, strContent, serContext);
- if (obj != null)
- {
- Class objType = obj.getClass();
- boolean isAssignable = JavaUtils.isAssignableFrom(javaType, objType);
- if (isAssignable == false && javaType.isArray())
- {
- try
- {
- Method toArrayMethod = objType.getMethod("toArray", new
Class[] {});
- Class returnType = toArrayMethod.getReturnType();
- if (JavaUtils.isAssignableFrom(javaType, returnType))
- {
- Method getValueMethod = objType.getMethod("getValue",
new Class[] {});
- Object value = getValueMethod.invoke(obj, new Object[] {});
- if (value != null)
- {
- // Do not invoke toArray if getValue returns null
- obj = toArrayMethod.invoke(obj, new Object[] {});
- }
- else
- {
- // if the fragment did not indicate a null return
- // by an xsi:nil we return an empty array
- Class componentType = javaType.getComponentType();
- obj = Array.newInstance(componentType, 0);
- }
- isAssignable = true;
- }
- }
- catch (Exception e)
- {
- // ignore
- }
- }
-
- if (isAssignable == false)
- {
- // handle XOP simple types, i.e. in RPC/LIT
- try
- {
- String contentType = MimeUtils.resolveMimeType(javaType);
- log.debug("Adopt DataHandler to " + javaType +",
contentType "+ contentType);
-
- DataSource ds = new
SwapableMemoryDataSource(((DataHandler)obj).getInputStream(), contentType);
- DataHandler dh = new DataHandler(ds);
- obj = dh.getContent();
-
- // 'application/octet-stream' will return a byte[] instead
fo the stream
- if(obj instanceof InputStream)
- {
- ByteArrayOutputStream bout = new ByteArrayOutputStream();
- dh.writeTo(bout);
- obj = bout.toByteArray();
- }
- }
- catch (IOException e)
- {
- throw new WSException("Failed to adopt XOP content type",
e);
- }
-
- if(!JavaUtils.isAssignableFrom(javaType, obj.getClass()))
- {
- throw new WSException("Java type '" + javaType +
"' is not assignable from: " + objType.getName());
- }
- }
- }
-
- this.objectValue = obj;
- this.isObjectValid = true;
- }
- catch (BindingException e)
- {
- throw new WSException(e);
- }
-
- log.debug("objectValue: " + (objectValue != null ?
objectValue.getClass().getName() : null));
- }
-
- return objectValue;
- }
-
- public void setObjectValue(Object objValue)
- {
- log.debug("setObjectValue: " + objValue);
- removeContentsAsIs();
- resetElementContent();
- this.objectValue = objValue;
- this.isObjectValid = true;
- }
-
- private void removeContentsAsIs()
- {
- log.trace("removeContentsAsIs");
- boolean cachedFlag = isDOMValid;
- try
- {
- this.isDOMValid = true;
- super.removeContents();
- }
- finally
- {
- this.isDOMValid = cachedFlag;
- }
- }
-
- // Get the serializer factory for a given javaType and xmlType
- private SerializerFactoryBase getSerializerFactory(TypeMappingImpl typeMapping, Class
javaType, QName xmlType)
- {
- SerializerFactoryBase serializerFactory =
(SerializerFactoryBase)typeMapping.getSerializer(javaType, xmlType);
-
- // The type mapping might contain a mapping for the array wrapper bean
- if (serializerFactory == null && javaType.isArray())
- {
- Class arrayWrapperType = typeMapping.getJavaType(xmlType);
- if (arrayWrapperType != null)
- {
- try
- {
- Method toArrayMethod = arrayWrapperType.getMethod("toArray", new
Class[] {});
- Class returnType = toArrayMethod.getReturnType();
- if (JavaUtils.isAssignableFrom(javaType, returnType))
- {
- serializerFactory =
(SerializerFactoryBase)typeMapping.getSerializer(arrayWrapperType, xmlType);
- }
- }
- catch (NoSuchMethodException e)
- {
- // ignore
- }
- }
- }
-
- if (serializerFactory == null)
- throw new WSException("Cannot obtain serializer factory for:
[xmlType=" + xmlType + ",javaType=" + javaType + "]");
-
- return serializerFactory;
- }
-
- // Get the deserializer factory for a given javaType and xmlType
- private DeserializerFactoryBase getDeserializerFactory(TypeMappingImpl typeMapping,
Class javaType, QName xmlType)
- {
- DeserializerFactoryBase deserializerFactory =
(DeserializerFactoryBase)typeMapping.getDeserializer(javaType, xmlType);
-
- // The type mapping might contain a mapping for the array wrapper bean
- if (deserializerFactory == null && javaType.isArray())
- {
- Class arrayWrapperType = typeMapping.getJavaType(xmlType);
- if (arrayWrapperType != null)
- {
- try
- {
- Method toArrayMethod = arrayWrapperType.getMethod("toArray", new
Class[] {});
- Class returnType = toArrayMethod.getReturnType();
- if (JavaUtils.isAssignableFrom(javaType, returnType))
- {
- deserializerFactory =
(DeserializerFactoryBase)typeMapping.getDeserializer(arrayWrapperType, xmlType);
- }
- }
- catch (NoSuchMethodException e)
- {
- // ignore
- }
- }
- }
-
- if (deserializerFactory == null)
- throw new WSException("Cannot obtain deserializer factory for:
[xmlType=" + xmlType + ",javaType=" + javaType + "]");
-
- return deserializerFactory;
- }
-
- /** Assert the notNull state of the xmlType and javaType
- */
- private void assertContentMapping()
- {
- if (getJavaType() == null)
- throw new WSException("javaType cannot be null");
- if (getXmlType() == null)
- throw new WSException("xmlType cannot be null");
- }
-
- // SOAPElement interface
********************************************************************************************
-
- public SOAPElement addChildElement(SOAPElement child) throws SOAPException
- {
- log.trace("addChildElement: " + child);
- expandToDOM();
- SOAPElement soapElement = super.addChildElement(child);
- invalidateObjectContent();
- invalidateXMLContent();
- return soapElement;
- }
-
- public SOAPElement addChildElement(String localName, String prefix) throws
SOAPException
- {
- log.trace("addChildElement: [localName=" + localName +
",prefix=" + prefix + "]");
- expandToDOM();
- SOAPElement soapElement = super.addChildElement(localName, prefix);
- invalidateObjectContent();
- invalidateXMLContent();
- return soapElement;
- }
-
- public SOAPElement addChildElement(String localName, String prefix, String uri) throws
SOAPException
- {
- log.trace("addChildElement: [localName=" + localName +
",prefix=" + prefix + ",uri=" + uri + "]");
- expandToDOM();
- SOAPElement soapElement = super.addChildElement(localName, prefix, uri);
- invalidateObjectContent();
- invalidateXMLContent();
- return soapElement;
- }
-
- public SOAPElement addChildElement(Name name) throws SOAPException
- {
- log.trace("addChildElement: [name=" + name + "]");
- expandToDOM();
- SOAPElement soapElement = super.addChildElement(name);
- invalidateObjectContent();
- invalidateXMLContent();
- return soapElement;
- }
-
- public SOAPElement addChildElement(String name) throws SOAPException
- {
- log.trace("addChildElement: [name=" + name + "]");
- expandToDOM();
- SOAPElement soapElement = super.addChildElement(name);
- invalidateObjectContent();
- invalidateXMLContent();
- return soapElement;
- }
-
- public SOAPElement addTextNode(String value) throws SOAPException
- {
- log.trace("addTextNode: [value=" + value + "]");
- expandToDOM();
- SOAPElement soapElement = super.addTextNode(value);
- invalidateObjectContent();
- invalidateXMLContent();
- return soapElement;
- }
-
- public Iterator getChildElements()
- {
- log.trace("getChildElements");
- expandToDOM();
- return super.getChildElements();
- }
-
- public Iterator getChildElements(Name name)
- {
- log.trace("getChildElements: [name=" + name + "]");
- expandToDOM();
- return super.getChildElements(name);
- }
-
- public void removeContents()
- {
- log.trace("removeContents");
- expandToDOM();
- super.removeContents();
- invalidateObjectContent();
- invalidateXMLContent();
- }
-
- public Iterator getAllAttributes()
- {
- return super.getAllAttributes();
- }
-
- public String getAttribute(String name)
- {
- return super.getAttribute(name);
- }
-
- public Attr getAttributeNode(String name)
- {
- return super.getAttributeNode(name);
- }
-
- public Attr getAttributeNodeNS(String namespaceURI, String localName)
- {
- return super.getAttributeNodeNS(namespaceURI, localName);
- }
-
- public String getAttributeNS(String namespaceURI, String localName)
- {
- return super.getAttributeNS(namespaceURI, localName);
- }
-
- public String getAttributeValue(Name name)
- {
- return super.getAttributeValue(name);
- }
-
- public SOAPElement addAttribute(Name name, String value) throws SOAPException
- {
- log.trace("addAttribute: [name=" + name + ",value=" + value +
"]");
- expandToDOM();
- return super.addAttribute(name, value);
- }
-
- public SOAPElement addNamespaceDeclaration(String prefix, String nsURI)
- {
- log.trace("addNamespaceDeclaration: [prefix=" + prefix +
",nsURI=" + nsURI + "]");
- expandToDOM();
- return super.addNamespaceDeclaration(prefix, nsURI);
- }
-
- public Name getElementName()
- {
- return super.getElementName();
- }
-
- public NodeList getElementsByTagName(String name)
- {
- log.trace("getElementsByTagName: [name=" + name + "]");
- expandToDOM();
- return super.getElementsByTagName(name);
- }
-
- public NodeList getElementsByTagNameNS(String namespaceURI, String localName)
- {
- log.trace("getElementsByTagName: [nsURI=" + namespaceURI +
",localName=" + localName + "]");
- expandToDOM();
- return super.getElementsByTagNameNS(namespaceURI, localName);
- }
-
- public String getEncodingStyle()
- {
- return super.getEncodingStyle();
- }
-
- public Iterator getNamespacePrefixes()
- {
- return super.getNamespacePrefixes();
- }
-
- public String getNamespaceURI(String prefix)
- {
- return super.getNamespaceURI(prefix);
- }
-
- public TypeInfo getSchemaTypeInfo()
- {
- return super.getSchemaTypeInfo();
- }
-
- public String getTagName()
- {
- return super.getTagName();
- }
-
- public Iterator getVisibleNamespacePrefixes()
- {
- return super.getVisibleNamespacePrefixes();
- }
-
- public boolean hasAttribute(String name)
- {
- return super.hasAttribute(name);
- }
-
- public boolean hasAttributeNS(String namespaceURI, String localName)
- {
- return super.hasAttributeNS(namespaceURI, localName);
- }
-
- public boolean removeAttribute(Name name)
- {
- log.trace("removeAttribute: " + name.getQualifiedName());
- expandToDOM();
- return super.removeAttribute(name);
- }
-
- public void removeAttribute(String name) throws DOMException
- {
- log.trace("removeAttribute: " + name);
- expandToDOM();
- super.removeAttribute(name);
- }
-
- public Attr removeAttributeNode(Attr oldAttr) throws DOMException
- {
- log.trace("removeAttribute: " + oldAttr.getNodeName());
- expandToDOM();
- return super.removeAttributeNode(oldAttr);
- }
-
- public void removeAttributeNS(String namespaceURI, String localName) throws
DOMException
- {
- log.trace("removeAttributeNS: {" + namespaceURI + "}" +
localName);
- expandToDOM();
- super.removeAttributeNS(namespaceURI, localName);
- }
-
- public boolean removeNamespaceDeclaration(String prefix)
- {
- log.trace("removeNamespaceDeclaration: " + prefix);
- expandToDOM();
- return super.removeNamespaceDeclaration(prefix);
- }
-
- public void setAttribute(String name, String value) throws DOMException
- {
- log.trace("setAttribute: [name=" + name + ",value=" + value +
"]");
- expandToDOM();
- super.setAttribute(name, value);
- }
-
- public Attr setAttributeNode(Attr newAttr) throws DOMException
- {
- log.trace("setAttributeNode: " + newAttr);
- expandToDOM();
- return super.setAttributeNode(newAttr);
- }
-
- public Attr setAttributeNodeNS(Attr newAttr) throws DOMException
- {
- log.trace("setAttributeNodeNS: " + newAttr);
- expandToDOM();
- return super.setAttributeNodeNS(newAttr);
- }
-
- public void setAttributeNS(String namespaceURI, String qualifiedName, String value)
throws DOMException
- {
- log.trace("setAttribute: [nsURI=" + namespaceURI + ",name=" +
qualifiedName + ",value=" + value + "]");
- expandToDOM();
- super.setAttributeNS(namespaceURI, qualifiedName, value);
- }
-
- public void setEncodingStyle(String encodingStyle) throws SOAPException
- {
- super.setEncodingStyle(encodingStyle);
- }
-
- public void setIdAttribute(String name, boolean isId) throws DOMException
- {
- log.trace("setIdAttribute: [name=" + name + ",value=" + isId +
"]");
- expandToDOM();
- super.setIdAttribute(name, isId);
- }
-
- public void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException
- {
- log.trace("setIdAttributeNode: [idAttr=" + idAttr + ",value=" +
isId + "]");
- expandToDOM();
- super.setIdAttributeNode(idAttr, isId);
- }
-
- public void setIdAttributeNS(String namespaceURI, String localName, boolean isId)
throws DOMException
- {
- log.trace("setIdAttributeNS: [nsURI=" + namespaceURI + ",name="
+ localName + ",value=" + isId + "]");
- expandToDOM();
- super.setIdAttributeNS(namespaceURI, localName, isId);
- }
-
- // Node interface
**************************************************************************************************
-
- public Node appendChild(Node newChild) throws DOMException
- {
- log.trace("appendChild: " + newChild);
- expandToDOM();
- Node node = super.appendChild(newChild);
- invalidateObjectContent();
- invalidateXMLContent();
- return node;
- }
-
- public Node cloneNode(boolean deep)
- {
- log.trace("cloneNode: deep=" + deep);
- expandToDOM();
- return super.cloneNode(deep);
- }
-
- public NodeList getChildNodes()
- {
- log.trace("getChildNodes");
- expandToDOM();
- return super.getChildNodes();
- }
-
- public Node getFirstChild()
- {
- log.trace("getFirstChild");
- expandToDOM();
- return super.getFirstChild();
- }
-
- public Node getLastChild()
- {
- log.trace("getLastChild");
- expandToDOM();
- return super.getLastChild();
- }
-
- public String getValue()
- {
- log.trace("getValue");
- expandToDOM();
- return super.getValue();
- }
-
- public boolean hasChildNodes()
- {
- log.trace("hasChildNodes");
- expandToDOM();
- return super.hasChildNodes();
- }
-
- public Node removeChild(Node oldChild) throws DOMException
- {
- log.trace("removeChild: " + oldChild);
- expandToDOM();
- Node node = super.removeChild(oldChild);
- invalidateObjectContent();
- invalidateXMLContent();
- return node;
- }
-
- public Node replaceChild(Node newChild, Node oldChild) throws DOMException
- {
- log.trace("replaceChild: [new=" + newChild + ",old=" + oldChild
+ "]");
- expandToDOM();
- Node node = super.replaceChild(newChild, oldChild);
- invalidateObjectContent();
- invalidateXMLContent();
- return node;
- }
-
- public void setValue(String value)
- {
- log.trace("setValue: " + value);
- expandToDOM();
- super.setValue(value);
- invalidateObjectContent();
- invalidateXMLContent();
- }
-
- public NamedNodeMap getAttributes()
- {
- return super.getAttributes();
- }
-
- public boolean hasAttributes()
- {
- return super.hasAttributes();
- }
-
- // END Node interface
***********************************************************************************************
-
- /** Expand the content, generating appropriate child nodes
- */
- private void expandToDOM()
- {
- // SOAPContentElements should only be expanded when handlers do require it.
- if (isDOMValid == false && expandingToDOM == false)
- {
- log.trace("BEGIN: expandToDOM " + getElementName());
- expandingToDOM = true;
-
- // DOM expansion should only happen when a handler accesses the DOM API.
- CommonMessageContext msgContext =
MessageContextAssociation.peekMessageContext();
- if (msgContext != null && !UnifiedMetaData.isFinalRelease())
- {
- Boolean allowExpand =
(Boolean)msgContext.getProperty(CommonMessageContext.ALLOW_EXPAND_TO_DOM);
- if (Boolean.TRUE.equals(allowExpand) == false)
- throw new WSException("Expanding content element to DOM");
- }
-
- try
- {
- if (xmlFragment == null && isObjectValid)
- xmlFragment = getXMLFragment();
-
- if (xmlFragment == null && isObjectValid == false)
- throw new IllegalStateException("Neither DOM, nor XML, nor Object
valid");
-
- if (xmlFragment != null)
- {
- String wrappedXMLFragment =
insertNamespaceDeclarations("<wrapper>" + xmlFragment +
"</wrapper>");
- Element contentRoot = DOMUtils.parse(wrappedXMLFragment);
- contentRoot = DOMUtils.getFirstChildElement(contentRoot);
-
- String rootLocalName = contentRoot.getLocalName();
- String rootPrefix = contentRoot.getPrefix();
- String rootNS = contentRoot.getNamespaceURI();
- Name contentRootName = new NameImpl(rootLocalName, rootPrefix, rootNS);
-
- // Make sure the content root element name matches this element name
- Name name = getElementName();
- if (contentRootName.equals(name) == false)
- throw new WSException("Content root name does not match element
name: " + contentRootName + " != " + name);
-
- // Copy attributes
- DOMUtils.copyAttributes(this, contentRoot);
-
- SOAPFactoryImpl soapFactory = new SOAPFactoryImpl();
-
- NodeList nlist = contentRoot.getChildNodes();
- for (int i = 0; i < nlist.getLength(); i++)
- {
- Node child = nlist.item(i);
- short childType = child.getNodeType();
- if (childType == Node.ELEMENT_NODE)
- {
- SOAPElementImpl soapElement =
soapFactory.createElement((Element)child, true);
- super.addChildElement(soapElement);
- if (Constants.NAME_XOP_INCLUDE.equals(name) || isXOPParameter())
- XOPContext.inlineXOPData(soapElement);
- }
- else if (childType == Node.TEXT_NODE)
- {
- String nodeValue = child.getNodeValue();
- super.addTextNode(nodeValue);
- }
- else if (childType == Node.CDATA_SECTION_NODE)
- {
- String nodeValue = child.getNodeValue();
- super.addTextNode(nodeValue);
- }
- else
- {
- log.trace("Ignore child type: " + childType);
- }
- }
- }
-
- isDOMValid = true;
- }
- catch (RuntimeException e)
- {
- invalidateDOMContent();
- throw e;
- }
- catch (Exception e)
- {
- invalidateDOMContent();
- throw new WSException(e);
- }
- finally
- {
- expandingToDOM = false;
- log.trace("END: expandToDOM " + getElementName());
- }
-
- invalidateXMLContent();
- invalidateObjectContent();
- }
- }
-
- public String insertNamespaceDeclarations(String xmlfragment)
- {
- StringBuilder xmlBuffer = new StringBuilder(xmlfragment);
-
- int endIndex = xmlfragment.indexOf(">");
- int insIndex = endIndex;
- if (xmlfragment.charAt(insIndex - 1) == '/')
- insIndex = insIndex - 1;
-
- SOAPElement soapElement = this;
- while (soapElement != null)
- {
- Iterator it = soapElement.getNamespacePrefixes();
- while (it.hasNext())
- {
- String prefix = (String)it.next();
- String nsURI = soapElement.getNamespaceURI(prefix);
- String nsDecl = " xmlns:" + prefix + "='" + nsURI +
"'";
-
- // Make sure there is not a duplicate on just the wrapper tag
- int nsIndex = xmlBuffer.indexOf("xmlns:" + prefix);
- if (nsIndex < 0 || nsIndex > endIndex)
- {
- xmlBuffer.insert(insIndex, nsDecl);
- endIndex += nsDecl.length();
- }
- }
- soapElement = soapElement.getParentElement();
- }
-
- log.trace("insertNamespaceDeclarations: " + xmlBuffer);
- return xmlBuffer.toString();
- }
-
- private void invalidateDOMContent()
- {
- if (expandingToDOM == false)
- {
- log.trace("invalidateDOMContent");
- this.isDOMValid = false;
- }
- }
-
- private void invalidateObjectContent()
- {
- if (expandingToDOM == false)
- {
- log.trace("invalidateObjectContent");
- this.isObjectValid = false;
- this.objectValue = null;
- }
- }
-
- private void invalidateXMLContent()
- {
- if (expandingToDOM == false)
- {
- log.trace("invalidateXMLContent");
- this.xmlFragment = null;
- }
- }
-
- private void resetElementContent()
- {
- if (expandingToDOM == false)
- {
- log.trace("resetElementContent");
- invalidateDOMContent();
- invalidateObjectContent();
- invalidateXMLContent();
- }
- }
-
- public void writeElement(Writer writer) throws IOException
- {
- handleMTOMTransitions();
-
- if (isDOMValid)
- {
- new DOMWriter(writer).print(this);
- }
- else
- {
- writer.write(getXMLFragment());
- }
- }
-
- /**
- * When a SOAPContentElement transitions between dom-valid and xml-valid
- * the XOP elements need to transition from XOP optimized to base64 and
reverse.<p>
- *
- * If MTOM is disabled through a message context property we always enforce the
- * base64 representation by expanding to DOM, the same happens when a JAXRPC handler
- * accesses the SOAPContentElement.<p>
- *
- * If the element is in dom-valid state (because a handlers accessed it), upon
marshalling
- * it's needs to be decided wether or not the <code>xop:Include</code>
should be restored.
- * This as well depends upon the message context property.
- */
- public void handleMTOMTransitions()
- {
- // MTOM processing is only required on XOP parameters
- if( isXOPParameter() == false)
- return;
-
- if ( !XOPContext.isMTOMEnabled() )
- {
- // If MTOM is disabled, we force dom expansion on XOP parameters.
- // This will inline any XOP include element and remove the attachment part.
- // See SOAPFactoryImpl for details.
-
- log.debug("MTOM disabled: Force inline XOP data");
- CommonMessageContext msgContext =
MessageContextAssociation.peekMessageContext();
- msgContext.setProperty(CommonMessageContext.ALLOW_EXPAND_TO_DOM, Boolean.TRUE);
- expandToDOM();
- }
- else if ( isDOMValid && XOPContext.isMTOMEnabled() )
- {
- // When the DOM representation is valid,
- // but MTOM is enabled we need to convert the inlined
- // element back to an xop:Include element and create the attachment part
-
- log.debug("MTOM enabled: Restore XOP data");
- XOPContext.restoreXOPDataDOM(this);
- }
- }
-
- private boolean isXOPParameter()
- {
- return paramMetaData != null && paramMetaData.isXOP();
- }
-
- public void accept(SAAJVisitor visitor)
- {
- visitor.visitSOAPContentElement(this);
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPContentElement.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPContentElement.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPDocument.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPDocument.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPDocument.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,440 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.soap;
-
-import org.jboss.ws.core.utils.DOMUtils;
-import org.w3c.dom.Attr;
-import org.w3c.dom.CDATASection;
-import org.w3c.dom.Comment;
-import org.w3c.dom.DOMConfiguration;
-import org.w3c.dom.DOMException;
-import org.w3c.dom.DOMImplementation;
-import org.w3c.dom.Document;
-import org.w3c.dom.DocumentFragment;
-import org.w3c.dom.DocumentType;
-import org.w3c.dom.Element;
-import org.w3c.dom.EntityReference;
-import org.w3c.dom.NamedNodeMap;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
-import org.w3c.dom.ProcessingInstruction;
-import org.w3c.dom.Text;
-import org.w3c.dom.UserDataHandler;
-
-/**
- * <code>SOAPDocument</code> ensures that the propper SAAJ elements are
- * returned when Document calls are made from a DOM client. This implementation
- * enscapsulates a single ThreadLocal Document object.
- *
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @version $Revision$
- */
-public class SOAPDocument implements Document
-{
- // TODO Revisit methods that are restricted or not implemented.
-
- private Document doc = DOMUtils.getOwnerDocument();
-
- // Document methods
-
- public DocumentType getDoctype()
- {
- return doc.getDoctype();
- }
-
- public DOMImplementation getImplementation()
- {
- // Should this be allowed?
- return doc.getImplementation();
- }
-
- public Element getDocumentElement()
- {
- // The base SOAPDocument does not have an element, only SOAPPart will
- return null;
- }
-
- public Element createElement(String tagName) throws DOMException
- {
- return new SOAPElementImpl(tagName);
- }
-
- public DocumentFragment createDocumentFragment()
- {
- return doc.createDocumentFragment();
- }
-
- public Text createTextNode(String data)
- {
- return doc.createTextNode(data);
- }
-
- public Comment createComment(String data)
- {
- return doc.createComment(data);
- }
-
- public CDATASection createCDATASection(String data) throws DOMException
- {
- return createCDATASection(data);
- }
-
- public ProcessingInstruction createProcessingInstruction(String target, String data)
throws DOMException
- {
- return createProcessingInstruction(target, data);
- }
-
- public Attr createAttribute(String name) throws DOMException
- {
- return doc.createAttribute(name);
- }
-
- public EntityReference createEntityReference(String name) throws DOMException
- {
- // Not allowed
- return null;
- }
-
- public NodeList getElementsByTagName(String tagname)
- {
- // The base SOAPDocument does not have an element, only SOAPPart will
- return null;
- }
-
- public Node importNode(Node importedNode, boolean deep) throws DOMException
- {
- // This should never be needed
- return doc.importNode(importedNode, deep);
- }
-
- public Element createElementNS(String namespaceURI, String qualifiedName) throws
DOMException
- {
- int loc = qualifiedName.indexOf(":");
-
- if (loc == -1)
- return new SOAPElementImpl(qualifiedName, null, namespaceURI);
-
- if (loc == qualifiedName.length() - 1)
- throw new IllegalArgumentException("Invalid qualified name");
-
- return new SOAPElementImpl(qualifiedName.substring(loc + 1),
qualifiedName.substring(0, loc), namespaceURI);
- }
-
- public Attr createAttributeNS(String namespaceURI, String qualifiedName) throws
DOMException
- {
- return doc.createAttributeNS(namespaceURI, qualifiedName);
- }
-
- public NodeList getElementsByTagNameNS(String namespaceURI, String localName)
- {
- // The base SOAPDocument does not have an element, only SOAPPart will
- return null;
- }
-
- public Element getElementById(String elementId)
- {
- // The base SOAPDocument does not have an element, only SOAPPart will
- return null;
- }
-
- // Node methods
- public String getNodeName()
- {
- return doc.getNodeName();
- }
-
- public String getNodeValue() throws DOMException
- {
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
- }
-
- public void setNodeValue(String nodeValue) throws DOMException
- {
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
- }
-
- public short getNodeType()
- {
- return doc.getNodeType();
- }
-
- public Node getParentNode()
- {
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
- }
-
- public NodeList getChildNodes()
- {
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
- }
-
- public Node getFirstChild()
- {
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
- }
-
- public Node getLastChild()
- {
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
- }
-
- public Node getPreviousSibling()
- {
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
- }
-
- public Node getNextSibling()
- {
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
- }
-
- public NamedNodeMap getAttributes()
- {
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
- }
-
- public Document getOwnerDocument()
- {
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
- }
-
- public Node insertBefore(Node newChild, Node refChild) throws DOMException
- {
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
- }
-
- public Node replaceChild(Node newChild, Node oldChild) throws DOMException
- {
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
- }
-
- public Node removeChild(Node oldChild) throws DOMException
- {
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
- }
-
- public Node appendChild(Node newChild) throws DOMException
- {
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
- }
-
- public boolean hasChildNodes()
- {
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
- }
-
- public Node cloneNode(boolean deep)
- {
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
- }
-
- public void normalize()
- {
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
- }
-
- public boolean isSupported(String feature, String version)
- {
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
- }
-
- public String getNamespaceURI()
- {
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
- }
-
- public String getPrefix()
- {
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
- }
-
- public void setPrefix(String prefix) throws DOMException
- {
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
- }
-
- public String getLocalName()
- {
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
- }
-
- public boolean hasAttributes()
- {
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
- }
-
- // DOM3 methods
-
- public String getInputEncoding()
- {
- // FIXME getInputEncoding
- return null;
- }
-
- public String getXmlEncoding()
- {
- // FIXME getXmlEncoding
- return null;
- }
-
- public boolean getXmlStandalone()
- {
- // FIXME getXmlStandalone
- return false;
- }
-
- public void setXmlStandalone(boolean arg0) throws DOMException
- {
- // FIXME setXmlStandalone
- }
-
- public String getXmlVersion()
- {
- // FIXME getXmlVersion
- return null;
- }
-
- public void setXmlVersion(String arg0) throws DOMException
- {
- // FIXME setXmlVersion
- }
-
- public boolean getStrictErrorChecking()
- {
- // FIXME getStrictErrorChecking
- return false;
- }
-
- public void setStrictErrorChecking(boolean arg0)
- {
- // FIXME setStrictErrorChecking
-
- }
-
- public String getDocumentURI()
- {
- // FIXME getDocumentURI
- return null;
- }
-
- public void setDocumentURI(String arg0)
- {
- // FIXME setDocumentURI
-
- }
-
- public Node adoptNode(Node arg0) throws DOMException
- {
- // FIXME adoptNode
- return null;
- }
-
- public DOMConfiguration getDomConfig()
- {
- // FIXME getDomConfig
- return null;
- }
-
- public void normalizeDocument()
- {
- // FIXME normalizeDocument
-
- }
-
- public Node renameNode(Node arg0, String arg1, String arg2) throws DOMException
- {
- // FIXME renameNode
- return null;
- }
-
- public String getBaseURI()
- {
- // FIXME getBaseURI
- return null;
- }
-
- public short compareDocumentPosition(Node arg0) throws DOMException
- {
- // FIXME compareDocumentPosition
- return 0;
- }
-
- public String getTextContent() throws DOMException
- {
- // FIXME getTextContent
- return null;
- }
-
- public void setTextContent(String arg0) throws DOMException
- {
- // FIXME setTextContent
-
- }
-
- public boolean isSameNode(Node arg0)
- {
- // FIXME isSameNode
- return false;
- }
-
- public String lookupPrefix(String arg0)
- {
- // FIXME lookupPrefix
- return null;
- }
-
- public boolean isDefaultNamespace(String arg0)
- {
- // FIXME isDefaultNamespace
- return false;
- }
-
- public String lookupNamespaceURI(String arg0)
- {
- // FIXME lookupNamespaceURI
- return null;
- }
-
- public boolean isEqualNode(Node arg0)
- {
- // FIXME isEqualNode
- return false;
- }
-
- public Object getFeature(String arg0, String arg1)
- {
- // FIXME getFeature
- return null;
- }
-
- public Object setUserData(String arg0, Object arg1, UserDataHandler arg2)
- {
- // FIXME setUserData
- return null;
- }
-
- public Object getUserData(String arg0)
- {
- // FIXME getUserData
- return null;
- }
-}
\ No newline at end of file
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPDocument.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPDocument.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPElementImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPElementImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPElementImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,738 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.soap;
-
-// $Id$
-
-import java.io.IOException;
-import java.io.Writer;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import javax.xml.namespace.QName;
-import javax.xml.soap.Name;
-import javax.xml.soap.Node;
-import javax.xml.soap.SOAPElement;
-import javax.xml.soap.SOAPEnvelope;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.Text;
-
-import org.jboss.logging.Logger;
-import org.jboss.util.NotImplementedException;
-import org.jboss.ws.core.utils.DOMUtils;
-import org.jboss.ws.Constants;
-import org.jboss.ws.WSException;
-import org.w3c.dom.Attr;
-import org.w3c.dom.DOMException;
-import org.w3c.dom.Element;
-import org.w3c.dom.NamedNodeMap;
-import org.w3c.dom.NodeList;
-import org.w3c.dom.TypeInfo;
-
-/**
- * An object representing an element of a SOAP message that is allowed but not
specifically prescribed by a
- * SOAP specification. This interface serves as the base interface for those objects that
are specifically
- * prescribed by a SOAP specification.
- *
- * Methods in this interface that are required to return SAAJ specific objects may
"silently" replace nodes
- * in the tree as required to successfully return objects of the correct type.
- *
- * @author Thomas.Diesler(a)jboss.org
- */
-public class SOAPElementImpl extends NodeImpl implements SOAPElement, SAAJVisitable
-{
- // provide logging
- private static Logger log = Logger.getLogger(SOAPElementImpl.class);
-
- // The org.w3c.dom.Element
- private Element element;
- // The element name
- private Name elementName;
- // The element's encoding style
- private String encodingStyle = Constants.URI_LITERAL_ENC;
-
- /** Called by SOAPFactory */
- public SOAPElementImpl(String localPart)
- {
-
- super(DOMUtils.createElement(localPart, null, null));
- this.element = (Element)domNode;
- log.trace("new SOAPElementImpl: " + getElementName());
- }
-
- /** Called by SOAPFactory */
- public SOAPElementImpl(String localPart, String prefix, String nsURI)
- {
- super(DOMUtils.createElement(localPart, prefix, nsURI));
- this.element = (Element)domNode;
- log.trace("new SOAPElementImpl: " + getElementName());
- }
-
- /** Called by SOAPFactory */
- public SOAPElementImpl(Name name)
- {
- this(name.getLocalName(), name.getPrefix(), name.getURI());
- }
-
- /** Copy constructor for converting SOAPElement types
- */
- protected SOAPElementImpl(SOAPElementImpl element)
- {
- super(element);
- this.element = (Element)domNode;
- log.trace("new SOAPElementImpl: " + getElementName());
- }
-
- /** Get the SOAPEnvelope for this SOAPElement */
- public SOAPEnvelope getSOAPEnvelope()
- {
- SOAPElement soapElement = this;
- while (soapElement != null && (soapElement instanceof SOAPEnvelope) ==
false)
- soapElement = soapElement.getParentElement();
-
- return (SOAPEnvelope)soapElement;
- }
-
- // javax.xml.soap.SOAPElement
*************************************************************************************
-
- /**
- * Adds an attribute with the specified name and value to this SOAPElement object.
- *
- * @param name a Name object with the name of the attribute
- * @param value a String giving the value of the attribute
- * @return the SOAPElement object into which the attribute was inserted
- * @throws javax.xml.soap.SOAPException if there is an error in creating the
Attribute
- */
- public SOAPElement addAttribute(Name name, String value) throws SOAPException
- {
- // xml:lang='en'
- if ("xml".equals(name.getPrefix()))
- {
- setAttribute(name.getQualifiedName(), value);
- }
- else
- {
- setAttributeNS(name.getURI(), name.getQualifiedName(), value);
- }
- return this;
- }
-
- /**
- * Creates a new SOAPElement object initialized with the specified local name and adds
the new element to this SOAPElement object.
- *
- * @param name a String giving the local name for the element
- * @return the new SOAPElement object that was created
- * @throws javax.xml.soap.SOAPException if there is an error in creating the
SOAPElement object
- */
- public SOAPElement addChildElement(String name) throws SOAPException
- {
- SOAPElement soapElement = new SOAPElementImpl(name);
- soapElement = addChildElement(soapElement);
- return soapElement;
- }
-
- /**
- * Creates a new SOAPElement object initialized with the specified local name and
prefix and adds the new element to this SOAPElement object.
- *
- * @param localName a String giving the local name for the new element
- * @param prefix a String giving the namespace prefix for the new element
- * @return the new SOAPElement object that was created
- * @throws javax.xml.soap.SOAPException if there is an error in creating the
SOAPElement object
- */
- public SOAPElement addChildElement(String localName, String prefix) throws
SOAPException
- {
- String nsURI = getNamespaceURI(prefix);
- if (nsURI == null)
- throw new IllegalArgumentException("Cannot obtain namespace URI for prefix:
" + prefix);
-
- SOAPElement soapElement = new SOAPElementImpl(localName, prefix, nsURI);
- soapElement = addChildElement(soapElement);
- return soapElement;
- }
-
- /**
- * Creates a new SOAPElement object initialized with the specified local name, prefix,
and URI and adds the new element to this SOAPElement object.
- *
- * @param localName a String giving the local name for the new element
- * @param prefix a String giving the namespace prefix for the new element
- * @param uri a String giving the URI of the namespace to which the new element
belongs
- * @return the new SOAPElement object that was created
- * @throws javax.xml.soap.SOAPException if there is an error in creating the
SOAPElement object
- */
- public SOAPElement addChildElement(String localName, String prefix, String uri) throws
SOAPException
- {
- SOAPElement soapElement = new SOAPElementImpl(localName, prefix, uri);
- soapElement = addChildElement(soapElement);
- return soapElement;
- }
-
- /**
- * Creates a new SOAPElement object initialized with the given Name object and adds
the new element to this SOAPElement object.
- *
- * @param name a Name object with the XML name for the new element
- * @return the new SOAPElement object that was created
- * @throws javax.xml.soap.SOAPException if there is an error in creating the
SOAPElement object
- */
- public SOAPElement addChildElement(Name name) throws SOAPException
- {
- SOAPElement soapElement = new SOAPElementImpl(name);
- soapElement = addChildElement(soapElement);
- return soapElement;
- }
-
- /**
- * Add a SOAPElement as a child of this SOAPElement instance. The SOAPElement is
expected to be created by a
- * SOAPElementFactory.
- * <p/>
- * Callers should not rely on the element instance being added as is into the XML
tree.
- * Implementations could end up copying the content of the SOAPElement passed into an
instance of a different SOAPElement
- * implementation. For instance if addChildElement() is called on a SOAPHeader,
element will be copied into an instance
- * of a SOAPHeaderElement.
- * <p/>
- * The fragment rooted in element is either added as a whole or not at all, if there
was an error.
- * <p/>
- * The fragment rooted in element cannot contain elements named "Envelope",
"Header" or "Body" and in the SOAP namespace.
- * Any namespace prefixes present in the fragment should be fully resolved using
appropriate namespace declarations
- * within the fragment itself.
- *
- * @param child the SOAPElement to be added as a new child
- * @return an instance representing the new SOAP element that was actually added to
the tree.
- * @throws javax.xml.soap.SOAPException if there was an error in adding this element
as a child
- */
- public SOAPElement addChildElement(SOAPElement child) throws SOAPException
- {
- log.trace("addChildElement: " + getElementName() + " -> " +
child.getElementName());
- SOAPElementImpl soapElement = (SOAPElementImpl)child;
- soapElement = (SOAPElementImpl)appendChild(soapElement);
- return soapElement.completeNamespaceDeclaration();
- }
-
- /**
- * Adds a namespace declaration with the specified prefix and URI to this SOAPElement
object.
- *
- * @param prefix a String giving the prefix of the namespace
- * @param nsURI a String giving the uri of the namespace
- * @return the SOAPElement object into which this namespace declaration was inserted.
- * @throws javax.xml.soap.SOAPException if there is an error in creating the
namespace
- */
- public SOAPElement addNamespaceDeclaration(String prefix, String nsURI)
- {
- if (nsURI == null)
- throw new IllegalArgumentException("Invalid 'null' namespace
URI");
- if (nsURI.length() == 0)
- throw new IllegalArgumentException("Invalid empty namespace URI");
-
- String qualifiedName = "xmlns";
- if (prefix != null && prefix.length() > 0)
- qualifiedName += ":" + prefix;
-
- log.trace("addNamespaceDeclaration: " + qualifiedName +
"='" + nsURI + "'");
-
element.setAttributeNS("http://www.w3.org/2000/xmlns/", qualifiedName,
nsURI);
- return this;
- }
-
- // Add the namespace declaration if it is not visible yet
- private SOAPElement completeNamespaceDeclaration()
- {
- String prefix = getPrefix();
- String nsURI = getNamespaceURI();
- if (prefix != null && nsURI != null)
- {
- String prevNS = getNamespaceURI(prefix);
- if (nsURI.equals(prevNS) == false)
- addNamespaceDeclaration(prefix, nsURI);
- }
- return this;
- }
-
- /**
- * Creates a new Text object initialized with the given String and adds it to this
SOAPElement object.
- *
- * @param value a String object with the textual content to be added
- * @return the SOAPElement object into which the new Text object was inserted
- * @throws javax.xml.soap.SOAPException if there is an error in creating the new Text
object
- */
- public SOAPElement addTextNode(String value) throws SOAPException
- {
- log.trace("addTextNode: " + value);
- org.w3c.dom.Text domText = element.getOwnerDocument().createTextNode(value);
- javax.xml.soap.Text soapText = new TextImpl(domText);
- appendChild(soapText);
- return this;
- }
-
- /**
- * Returns an Iterator over all of the attribute Name objects in this SOAPElement
object.
- * <p/>
- * The iterator can be used to get the attribute names, which can then be passed to
the method getAttributeValue to
- * retrieve the value of each attribute.
- *
- * @return an iterator over the names of the attributes
- */
- public Iterator getAllAttributes()
- {
- ArrayList list = new ArrayList();
- NamedNodeMap nnm = getAttributes();
- for (int i = 0; i < nnm.getLength(); i++)
- {
- org.w3c.dom.Node node = (org.w3c.dom.Node)nnm.item(i);
- String local = node.getLocalName();
- String prefix = node.getPrefix();
- String uri = node.getNamespaceURI();
- if ("xmlns".equals(prefix) == false)
- {
- Name name;
- if (uri != null && uri.length() > 0)
- {
- name = new NameImpl(local, prefix, uri);
- }
- else
- {
- name = new NameImpl(local);
- }
- list.add(name);
- }
- }
- return list.iterator();
- }
-
- /**
- * Returns the value of the attribute with the specified name.
- *
- * @param name a Name object with the name of the attribute
- * @return a String giving the value of the specified attribute
- */
- public String getAttributeValue(Name name)
- {
- Attr attr = getAttributeNode(name);
- return (attr != null ? attr.getValue() : null);
- }
-
- private Attr getAttributeNode(Name name)
- {
- Attr attr = null;
- String nsURI = name.getURI();
- if (nsURI.length() > 0)
- attr = element.getAttributeNodeNS(nsURI, name.getLocalName());
- else attr = element.getAttributeNode(name.getLocalName());
-
- return attr;
- }
-
- /**
- * Returns an Iterator over all the immediate child Nodes of this element.
- * <p/>
- * This includes javax.xml.soap.Text objects as well as SOAPElement objects.
- * Calling this method may cause child Element, SOAPElement and org.w3c.dom.Text nodes
to be replaced by SOAPElement,
- * SOAPHeaderElement, SOAPBodyElement or javax.xml.soap.Text nodes as appropriate for
the type of this parent node.
- * As a result the calling application must treat any existing references to these
child nodes that have been obtained
- * through DOM APIs as invalid and either discard them or refresh them with the values
returned by this Iterator.
- * This behavior can be avoided by calling the equivalent DOM APIs. See javax.xml.soap
for more details.
- *
- * @return an iterator with the content of this SOAPElement object
- */
- public Iterator getChildElements()
- {
- List list = new ArrayList();
- NodeList nodeList = getChildNodes();
- for (int i = 0; i < nodeList.getLength(); i++)
- {
- org.w3c.dom.Node node = nodeList.item(i);
- if (node instanceof SOAPElement)
- {
- list.add(node);
- }
- else if (node instanceof Text)
- {
- String value = node.getNodeValue();
- if (value.trim().length() > 0)
- list.add(node);
- }
- }
- return list.iterator();
- }
-
- /**
- * Returns an Iterator over all the immediate child Nodes of this element with the
specified name.
- * <p/>
- * All of these children will be SOAPElement nodes.
- * Calling this method may cause child Element, SOAPElement and org.w3c.dom.Text nodes
to be replaced by SOAPElement,
- * SOAPHeaderElement, SOAPBodyElement or javax.xml.soap.Text nodes as appropriate for
the type of this parent node.
- * As a result the calling application must treat any existing references to these
child nodes that have been obtained
- * through DOM APIs as invalid and either discard them or refresh them with the values
returned by this Iterator.
- * This behavior can be avoided by calling the equivalent DOM APIs. See javax.xml.soap
for more details.
- *
- * @param name a Name object with the name of the child elements to be returned
- * @return an Iterator object over all the elements in this SOAPElement object with
the specified name
- */
- public Iterator getChildElements(Name name)
- {
- List<SOAPElement> list = new ArrayList<SOAPElement>();
- Iterator it = getChildElements();
- while (it.hasNext())
- {
- Object elementOrTextNode = it.next();
- if (elementOrTextNode instanceof SOAPElement)
- {
- SOAPElement el = (SOAPElement)elementOrTextNode;
- if (el.getElementName().equals(name))
- list.add(el);
- }
- }
- return list.iterator();
- }
-
- /**
- * Returns the name of this SOAPElement object.
- *
- * @return a Name object with the name of this SOAPElement object
- */
- public Name getElementName()
- {
- if (elementName == null)
- {
- String nsURI = element.getNamespaceURI();
- if (nsURI != null && nsURI.length() > 0)
- {
- String prefix = element.getPrefix();
- String localName = element.getLocalName();
- elementName = new NameImpl(localName, prefix, nsURI);
- }
- else
- {
- String nodeName = element.getNodeName();
- elementName = new NameImpl(nodeName);
- }
- }
- return elementName;
- }
-
- /**
- * Returns the encoding style for this SOAPElement object.
- *
- * @return a String giving the encoding style
- */
- public String getEncodingStyle()
- {
- return encodingStyle;
- }
-
- /**
- * Returns an Iterator over the namespace prefix Strings declared by this element.
- * <p/>
- * The prefixes returned by this iterator can be passed to the method getNamespaceURI
to retrieve the URI of each namespace.
- *
- * @return an iterator over the namespace prefixes in this SOAPElement object
- */
- public Iterator getNamespacePrefixes()
- {
- ArrayList list = getNamespacePrefixList();
- return list.iterator();
- }
-
- private ArrayList getNamespacePrefixList()
- {
- ArrayList list = new ArrayList();
- NamedNodeMap attrMap = element.getAttributes();
- for (int i = 0; i < attrMap.getLength(); i++)
- {
- Attr attr = (Attr)attrMap.item(i);
- String attrName = attr.getNodeName();
- if (attrName.startsWith("xmlns:"))
- list.add(attrName.substring(6));
- }
- return list;
- }
-
- /**
- * Returns the URI of the namespace that has the given prefix.
- *
- * @param prefix a String giving the prefix of the namespace for which to search
- * @return a String with the uri of the namespace that has the given prefix
- */
- public String getNamespaceURI(String prefix)
- {
- String nsURI = element.getAttribute("xmlns:" + prefix);
- if (nsURI.length() == 0 && getParentElement() != null)
- return getParentElement().getNamespaceURI(prefix);
-
- return (nsURI.length() > 0 ? nsURI : null);
- }
-
- /**
- * Returns an Iterator over the namespace prefix Strings visible to this element.
- * <p/>
- * The prefixes returned by this iterator can be passed to the method getNamespaceURI
to retrieve the URI of each namespace.
- *
- * @return an iterator over the namespace prefixes are within scope of this
SOAPElement object
- */
- public Iterator getVisibleNamespacePrefixes()
- {
- ArrayList list = getNamespacePrefixList();
- SOAPElementImpl parent = (SOAPElementImpl)getParentElement();
- while (parent != null)
- {
- list.addAll(parent.getNamespacePrefixList());
- parent = (SOAPElementImpl)parent.getParentElement();
- }
- return list.iterator();
- }
-
- /**
- * Removes the attribute with the specified name.
- *
- * @param name the Name object with the name of the attribute to be removed
- * @return true if the attribute was removed successfully; false if it was not
- */
- public boolean removeAttribute(Name name)
- {
- Attr attr = getAttributeNode(name);
- if (attr != null)
- {
- element.removeAttributeNode(attr);
- return true;
- }
- return false;
- }
-
- /**
- * Detaches all children of this SOAPElement.
- * <p/>
- * This method is useful for rolling back the construction of partially completed
SOAPHeaders and SOAPBodys in
- * preparation for sending a fault when an error condition is detected.
- * It is also useful for recycling portions of a document within a SOAP message.
- */
- public void removeContents()
- {
- log.trace("removeContents");
- Iterator it = getChildElements();
- while (it.hasNext())
- {
- SOAPElement el = (SOAPElement)it.next();
- el.detachNode();
- }
- }
-
- /**
- * Removes the namespace declaration corresponding to the given prefix.
- *
- * @param prefix a String giving the prefix for which to search
- * @return true if the namespace declaration was removed successfully; false if it was
not
- */
- public boolean removeNamespaceDeclaration(String prefix)
- {
- boolean ret = getAttributeNode("xmlns:" + prefix) != null;
- removeAttribute("xmlns:" + prefix);
- return ret;
- }
-
- /**
- * Sets the encoding style for this SOAPElement object to one specified.
- *
- * @param encodingStyle a String giving the encoding style
- * @throws javax.xml.soap.SOAPException if there was a problem in the encoding style
being set.
- */
- public void setEncodingStyle(String encodingStyle) throws SOAPException
- {
- if (!Constants.URI_LITERAL_ENC.equals(encodingStyle) &&
!Constants.URI_SOAP11_ENC.equals(encodingStyle))
- throw new IllegalArgumentException("Unsupported encodingStyle: " +
encodingStyle);
-
- this.encodingStyle = encodingStyle;
- }
-
- // org.w3c.Element
***********************************************************************************************
-
- public String getTagName()
- {
- return element.getTagName();
- }
-
- public void removeAttribute(String name) throws DOMException
- {
- element.removeAttribute(name);
- }
-
- public boolean hasAttribute(String name)
- {
- return element.hasAttribute(name);
- }
-
- public String getAttribute(String name)
- {
- return element.getAttribute(name);
- }
-
- public void removeAttributeNS(String namespaceURI, String localName) throws
DOMException
- {
- element.removeAttributeNS(namespaceURI, localName);
- }
-
- public void setAttribute(String name, String value) throws DOMException
- {
- element.setAttribute(name, value);
- }
-
- public boolean hasAttributeNS(String namespaceURI, String localName)
- {
- return element.hasAttributeNS(namespaceURI, localName);
- }
-
- public Attr getAttributeNode(String name)
- {
- Attr attr = element.getAttributeNode(name);
-
- return (attr == null) ? null : new AttrImpl(this, attr);
- }
-
- public Attr removeAttributeNode(Attr oldAttr) throws DOMException
- {
- return element.removeAttributeNode(oldAttr);
- }
-
- public Attr setAttributeNode(Attr newAttr) throws DOMException
- {
- return element.setAttributeNode(newAttr);
- }
-
- public Attr setAttributeNodeNS(Attr newAttr) throws DOMException
- {
- return element.setAttributeNodeNS(newAttr);
- }
-
- public NodeList getElementsByTagName(String name)
- {
- return new NodeListImpl(DOMUtils.getChildElements(this, name));
- }
-
- public String getAttributeNS(String namespaceURI, String localName)
- {
- return element.getAttributeNS(namespaceURI, localName);
- }
-
- public void setAttributeNS(String namespaceURI, String qualifiedName, String value)
throws DOMException
- {
- element.setAttributeNS(namespaceURI, qualifiedName, value);
- }
-
- public Attr getAttributeNodeNS(String namespaceURI, String localName)
- {
- /* FIXME We really need to do more than just return an object wrapper.
- * All Attrs should be stored as nodes on our local tree, so that
- * they are discovered during node traversal calls.
- */
- Attr attr = element.getAttributeNodeNS(namespaceURI, localName);
-
- return (attr == null) ? null : new AttrImpl(this, attr);
- }
-
- public NodeList getElementsByTagNameNS(String namespaceURI, String localName)
- {
- return new NodeListImpl(DOMUtils.getChildElements(this, new QName(namespaceURI,
localName)));
- }
-
- public TypeInfo getSchemaTypeInfo()
- {
- throw new NotImplementedException("getSchemaTypeInfo");
- }
-
- public void setIdAttribute(String name, boolean isId) throws DOMException
- {
- throw new NotImplementedException("setIdAttribute");
- }
-
- public void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException
- {
- throw new NotImplementedException("setIdAttributeNode");
- }
-
- public void setIdAttributeNS(String namespaceURI, String localName, boolean isId)
throws DOMException
- {
- throw new NotImplementedException("setIdAttributeNS");
- }
-
- public void accept(SAAJVisitor visitor) {
- visitor.visitSOAPElement(this);
- }
- /**
- * The default implementation uses a DOMWriter.
- * SOAPContentElements overwrite this to optimize DOM callbacks.
- */
- public void writeElement(Writer writer) throws IOException
- {
- String qualName = getElementName().getQualifiedName();
- writer.write("<" + qualName);
-
- // namespaces
- Iterator nsPrefixes = getNamespacePrefixes();
- while (nsPrefixes.hasNext())
- {
- String prefix = (String)nsPrefixes.next();
- writer.write(" xmlns:" + prefix + "='" +
getNamespaceURI(prefix) + "'");
- }
-
- // attributes
- Iterator attNames = getAllAttributes();
- while (attNames.hasNext())
- {
- NameImpl name = (NameImpl)attNames.next();
- String attPrefix = name.getPrefix() != null ? name.getPrefix() : "";
- String attFqn = attPrefix.length() > 0 ? attPrefix + ":" +
name.getLocalName() : name.getLocalName();
- writer.write(" " + attFqn + "='" +
getAttributeValue(name) + "'");
- }
- writer.write(">");
-
- writeElementContent(writer);
-
- writer.write("</" + qualName + ">");
- }
-
- protected void writeElementContent(Writer out) throws IOException
- {
- Iterator it = getChildElements();
- if (it.hasNext())
- {
- while (it.hasNext())
- {
- Node node = (Node)it.next();
- if (node instanceof SOAPElementImpl)
- {
- ((SOAPElementImpl)node).writeElement(out);
- }
- else if (node instanceof TextImpl)
- {
- out.write(node.getValue());
- }
- else
- {
- throw new WSException("Unhandled soap node: " +
node.getClass().getName());
- }
- }
- }
- else
- {
- String value = getValue();
- if (value != null)
- out.write(value);
- }
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPElementImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPElementImpl.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPElementWriter.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPElementWriter.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPElementWriter.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,157 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.soap;
-
-// $Id$
-
-import java.io.IOException;
-import java.io.OutputStream;
-import java.io.OutputStreamWriter;
-import java.io.PrintWriter;
-import java.io.StringWriter;
-import java.io.UnsupportedEncodingException;
-import java.io.Writer;
-
-import javax.xml.soap.SOAPEnvelope;
-
-import org.jboss.ws.core.utils.DOMUtils;
-import org.jboss.ws.core.utils.DOMWriter;
-import org.jboss.ws.WSException;
-
-/**
- * Writes a SAAJ elements to an output stream.
- *
- * @author Heiko Braun <heiko.braun(a)jboss.com>
- * @author Thomas.Diesler(a)jboss.com
- * @since 4-Aug-2006
- */
-public class SOAPElementWriter
-{
-
- // Print writer
- private PrintWriter out;
- // True, if the XML declaration should be written
- private boolean writeXMLDeclaration;
- // Explicit character set encoding
- private String charsetName;
-
- public SOAPElementWriter(Writer w)
- {
- this.out = new PrintWriter(w);
- }
-
- public SOAPElementWriter(OutputStream stream)
- {
- try
- {
- this.out = new PrintWriter(new OutputStreamWriter(stream, "UTF-8"));
- }
- catch (UnsupportedEncodingException e)
- {
- // ignore, UTF-8 should be available
- }
- }
-
- public SOAPElementWriter(OutputStream stream, String charsetName)
- {
- try
- {
- this.out = new PrintWriter(new OutputStreamWriter(stream, charsetName));
- this.charsetName = charsetName;
- }
- catch (UnsupportedEncodingException e)
- {
- throw new IllegalArgumentException("Unsupported encoding: " +
charsetName);
- }
- }
-
- /**
- * Set wheter the XML declaration should be written.
- * The default is false.
- */
- public SOAPElementWriter setWriteXMLDeclaration(boolean writeXMLDeclaration)
- {
- this.writeXMLDeclaration = writeXMLDeclaration;
- return this;
- }
-
- /**
- * Print a node with explicit prettyprinting.
- * The defaults for all other DOMWriter properties apply.
- */
- public static String writeElement(SOAPElementImpl element, boolean pretty)
- {
- if (element == null)
- return null;
-
- StringWriter strw = new StringWriter();
- new SOAPElementWriter(strw).writeElement(element);
- String xmlStr = strw.toString();
-
- if (pretty)
- {
- // This is expensive. Make sure it only happens for debugging
- try
- {
- xmlStr = DOMWriter.printNode(DOMUtils.parse(xmlStr), true);
- }
- catch (IOException ex)
- {
- throw new WSException ("Cannot parse xml: " + xmlStr, ex);
- }
- }
-
- return xmlStr;
- }
-
- public void writeElement(SOAPElementImpl element)
- {
- writeElementInternal(element);
- }
-
- private void writeElementInternal(SOAPElementImpl element)
- {
- if (element != null)
- {
- try
- {
- if (writeXMLDeclaration == true && element instanceof SOAPEnvelope)
- {
- out.print("<?xml version='1.0'");
- if (charsetName != null)
- out.print(" encoding='" + charsetName +
"'");
-
- out.println("?>");
- writeXMLDeclaration = false;
- }
-
- element.writeElement(out);
-
- out.flush();
- }
- catch (IOException ex)
- {
- throw new WSException("Cannot write SOAP element", ex);
- }
- }
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPElementWriter.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPElementWriter.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPEnvelopeImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPEnvelopeImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPEnvelopeImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,185 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.soap;
-
-// $Id$
-
-import java.io.IOException;
-import java.io.Writer;
-import java.util.Iterator;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.JAXRPCException;
-import javax.xml.rpc.soap.SOAPFaultException;
-import javax.xml.soap.Name;
-import javax.xml.soap.Node;
-import javax.xml.soap.SOAPBody;
-import javax.xml.soap.SOAPElement;
-import javax.xml.soap.SOAPEnvelope;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPHeader;
-import javax.xml.soap.SOAPMessage;
-
-import org.jboss.ws.Constants;
-import org.w3c.dom.Document;
-
-/**
- * The container for the SOAPHeader and SOAPBody portions of a SOAPPart object. By
default, a
- * SOAPMessage object is created with a SOAPPart object that has a SOAPEnvelope object.
- * The SOAPEnvelope object by default has an empty SOAPBody object and an empty
SOAPHeader object.
- * The SOAPBody object is required, and the SOAPHeader object, though optional, is used
in the majority of cases.
- *
- * @author Thomas.Diesler(a)jboss.org
- */
-public class SOAPEnvelopeImpl extends SOAPElementImpl implements SOAPEnvelope
-{
- // Reference the enclosing SOAPPart, so that getOwnerDocument() works correctly
- private SOAPPartImpl soapPart;
- private boolean domExpansionEnabled = false;
-
- /** Construct a SOAP envelope for the given SOAP version URI prefix, etc.
- */
- public SOAPEnvelopeImpl(SOAPPartImpl soapPart, SOAPElementImpl element) throws
SOAPException
- {
- super(element);
-
- this.soapPart = soapPart;
- soapPart.setEnvelope(this);
-
- String prefix = getPrefix();
- String namespaceURI = getNamespaceURI();
-
- assertEnvelopeNamespace(namespaceURI);
- addNamespaceDeclaration(prefix, namespaceURI);
-
- addHeader();
- addBody();
- }
-
- /** Construct a SOAP envelope for the given SOAP version URI.
- */
- SOAPEnvelopeImpl(SOAPPartImpl soapPart, String namespace) throws SOAPException
- {
- super("Envelope", Constants.PREFIX_ENV, namespace);
-
- this.soapPart = soapPart;
- soapPart.setEnvelope(this);
-
- assertEnvelopeNamespace(namespace);
- addNamespaceDeclaration(getPrefix(), namespace);
-
- addHeader();
- addBody();
- }
-
- private void assertEnvelopeNamespace(String namespaceURI)
- {
- if (!Constants.NS_SOAP12_ENV.equals(namespaceURI) &&
!Constants.NS_SOAP11_ENV.equals(namespaceURI))
- {
- QName faultCode = Constants.SOAP11_FAULT_CODE_VERSION_MISMATCH;
- String faultString = "Invalid SOAP envelope namespace: " +
namespaceURI;
- throw new SOAPFaultException(faultCode, faultString, null, null);
- }
- }
-
- public SOAPMessage getSOAPMessage()
- {
- return soapPart.getSOAPMessage();
- }
-
- public SOAPBody addBody() throws SOAPException
- {
- SOAPBody body = getBody();
- if (body != null)
- throw new SOAPException("SOAPEnvelope already has a body element");
-
- body = new SOAPBodyImpl(getPrefix(), getNamespaceURI());
- addChildElement(body);
- return body;
- }
-
- public SOAPHeader addHeader() throws SOAPException
- {
- SOAPHeader header = getHeader();
- if (header != null)
- throw new SOAPException("SOAPEnvelope already has a header element");
-
- header = new SOAPHeaderImpl(getPrefix(), getNamespaceURI());
- return (SOAPHeader)addChildElement(header);
- }
-
- /** Make sure the child is either a SOAPHeader or SOAPBody */
- public SOAPElement addChildElement(SOAPElement child) throws SOAPException
- {
- if ((child instanceof SOAPHeader) == false && (child instanceof SOAPBody)
== false)
- throw new IllegalArgumentException("SOAPHeader or SOAPBody
expected");
-
- return super.addChildElement(child);
- }
-
- public Name createName(String localName) throws SOAPException
- {
- return new NameImpl(localName);
- }
-
- public Name createName(String localName, String prefix, String uri) throws
SOAPException
- {
- return new NameImpl(localName, prefix, uri);
- }
-
- public SOAPBody getBody() throws SOAPException
- {
- Iterator it = getChildElements();
- while (it.hasNext())
- {
- Node node = (Node)it.next();
- if (node.getLocalName().equals("Body"))
- return (SOAPBody)node;
- }
- return null;
- }
-
- public SOAPHeader getHeader() throws SOAPException
- {
- Iterator it = getChildElements();
- while (it.hasNext())
- {
- Node node = (Node)it.next();
- if (node.getLocalName().equals("Header"))
- return (SOAPHeader)node;
- }
- return null;
- }
-
- /**
- * Text nodes are not supported.
- */
- public SOAPElement addTextNode(String value) throws SOAPException
- {
- throw new SOAPException("Cannot add Text node to SOAPEnvelope");
- }
-
- public Document getOwnerDocument()
- {
- return soapPart;
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPEnvelopeImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPEnvelopeImpl.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPFactoryImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPFactoryImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPFactoryImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,127 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.soap;
-
-// $Id$
-
-import javax.xml.soap.Detail;
-import javax.xml.soap.Name;
-import javax.xml.soap.SOAPElement;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPFactory;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.core.utils.DOMUtils;
-import org.w3c.dom.Element;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
-
-/**
- * SOAPFactory implementation.
- *
- * @author Thomas.Diesler(a)jboss.org
- */
-public class SOAPFactoryImpl extends SOAPFactory
-{
- private static Logger log = Logger.getLogger(SOAPFactoryImpl.class);
-
- public SOAPElement createElement(Name name) throws SOAPException
- {
- return new SOAPElementImpl(name);
- }
-
- public SOAPElement createElement(String localName) throws SOAPException
- {
- return new SOAPElementImpl(localName);
- }
-
- public SOAPElement createElement(String localName, String prefix, String uri) throws
SOAPException
- {
- return new SOAPElementImpl(localName, prefix, uri);
- }
-
- /**
- * Create a SOAPElement from a DOM Element.
- * This method is not part of the javax.xml.soap.SOAPFactory interface.
- */
- public SOAPElementImpl createElement(Element domNode, boolean deep) throws
SOAPException
- {
- if (domNode == null)
- throw new IllegalArgumentException("Source node cannot be null");
-
- String localName = domNode.getLocalName();
- String prefix = domNode.getPrefix() != null ? domNode.getPrefix() : "";
- String nsURI = domNode.getNamespaceURI() != null ? domNode.getNamespaceURI() :
"";
-
- SOAPElementImpl soapElement = new SOAPElementImpl(localName, prefix, nsURI);
-
- // Add the child elements as well
- if (deep)
- {
- if (domNode instanceof Element)
- DOMUtils.copyAttributes(soapElement, (Element)domNode);
-
- NodeList nlist = domNode.getChildNodes();
- for (int i = 0; i < nlist.getLength(); i++)
- {
- Node child = nlist.item(i);
- short nodeType = child.getNodeType();
- if (nodeType == Node.ELEMENT_NODE)
- {
- SOAPElementImpl soapChild = createElement((Element)child, true);
- soapElement.addChildElement(soapChild);
- }
- else if (nodeType == Node.TEXT_NODE)
- {
- String nodeValue = child.getNodeValue();
- soapElement.addTextNode(nodeValue);
- }
- else if (nodeType == Node.CDATA_SECTION_NODE)
- {
- String nodeValue = child.getNodeValue();
- soapElement.addTextNode(nodeValue);
- }
- else
- {
- log.trace("Ignore child type: " + nodeType);
- }
- }
- }
-
- return soapElement;
- }
-
- public Detail createDetail() throws SOAPException
- {
- return new DetailImpl();
- }
-
- public Name createName(String localName, String prefix, String uri) throws
SOAPException
- {
- return new NameImpl(localName, prefix, uri);
- }
-
- public Name createName(String localName) throws SOAPException
- {
- return new NameImpl(localName);
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPFactoryImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPFactoryImpl.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPFaultElementImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPFaultElementImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPFaultElementImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,43 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.soap;
-
-import javax.xml.soap.Name;
-import javax.xml.soap.SOAPFaultElement;
-
-public class SOAPFaultElementImpl extends SOAPElementImpl implements SOAPFaultElement
-{
- public SOAPFaultElementImpl(String localPart)
- {
- super(localPart);
- }
-
- public SOAPFaultElementImpl(String localPart, String prefix, String namespace)
- {
- super(localPart, prefix, namespace);
- }
-
- public SOAPFaultElementImpl(Name name)
- {
- super(name);
- }
-}
\ No newline at end of file
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPFaultElementImpl.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPFaultElementImpl.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPFaultImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPFaultImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPFaultImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,242 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.soap;
-
-import java.io.IOException;
-import java.io.Writer;
-import java.util.Iterator;
-import java.util.Locale;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.JAXRPCException;
-import javax.xml.soap.Detail;
-import javax.xml.soap.Name;
-import javax.xml.soap.SOAPElement;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPFault;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.core.utils.DOMUtils;
-import org.jboss.ws.core.utils.DOMWriter;
-import org.jboss.ws.Constants;
-import org.jboss.ws.WSException;
-import org.jboss.xb.QNameBuilder;
-import org.w3c.dom.Element;
-
-/**
- * An element in the SOAPBody object that contains error and/or status information.
- * This information may relate to errors in the SOAPMessage object or to problems
- * that are not related to the content in the message itself. Problems not related
- * to the message itself are generally errors in processing, such as the inability
- * to communicate with an upstream server.
- *
- * The SOAPFault interface provides methods for retrieving the information contained
- * in a SOAPFault object and for setting the fault code, the fault actor, and a string
- * describing the fault. A fault code is one of the codes defined in the SOAP 1.1
specification
- * that describe the fault. An actor is an intermediate recipient to whom a message was
routed.
- * The message path may include one or more actors, or, if no actors are specified, the
message
- * goes only to the default actor, which is the final intended recipient.
- *
- * @author Thomas.Diesler(a)jboss.org
- */
-public class SOAPFaultImpl extends SOAPBodyElementDoc implements SOAPFault
-{
- // provide logging
- private static Logger log = Logger.getLogger(SOAPFaultImpl.class);
-
- private SOAPElement faultcode;
- private SOAPElement faultstring;
- private SOAPElement faultactor;
- private Locale faultStringLocale;
-
- public SOAPFaultImpl(String namespaceURI) throws SOAPException
- {
- super(new NameImpl("Fault", Constants.PREFIX_ENV, namespaceURI));
- SOAPFactoryImpl factory = new SOAPFactoryImpl();
- addChildElement(faultcode = factory.createElement("faultcode"));
- addChildElement(faultstring = factory.createElement("faultstring"));
- }
-
- /** Creates an optional Detail object and sets it as the Detail object for this
SOAPFault object.
- */
- public Detail addDetail() throws SOAPException
- {
- Detail detail = getDetail();
- if (detail != null)
- throw new SOAPException("SOAPFault already contains a detail node");
-
- SOAPFactoryImpl factory = new SOAPFactoryImpl();
- detail = (Detail)addChildElement(factory.createDetail());
- return detail;
- }
-
- /** Returns the optional detail element for this SOAPFault object.
- */
- public Detail getDetail()
- {
- Detail detail = null;
- Iterator it = getChildElements(new NameImpl("detail"));
- while (it.hasNext())
- {
- Object obj = it.next();
- if (obj instanceof Detail)
- {
- detail = (Detail)obj;
- }
- else if (obj instanceof SOAPElementImpl)
- {
- try
- {
- SOAPElementImpl soapEl = (SOAPElementImpl)obj;
- SOAPFactoryImpl factory = new SOAPFactoryImpl();
- detail = (Detail)addChildElement(factory.createDetail());
-
- Iterator childIt = DOMUtils.getChildElements(soapEl);
- while (childIt.hasNext())
- {
- Element domElement = (Element)childIt.next();
- SOAPElement detailEntry = new
DetailEntryImpl(factory.createElement(domElement, true));
- detail.addChildElement(detailEntry);
- }
- }
- catch (SOAPException e)
- {
- throw new WSException("Unable to create fault detail: " +
e.getMessage());
- }
-
- }
- }
-
- return detail;
- }
-
- /** Gets the fault actor for this SOAPFault object.
- */
- public String getFaultActor()
- {
- return (faultactor != null ? faultactor.getValue() : null);
- }
-
- /** Gets the fault code for this SOAPFault object.
- */
- public String getFaultCode()
- {
- String value = faultcode.getValue();
- return value;
- }
-
- /**
- * Gets the mandatory SOAP 1.1 fault code for this SOAPFault object as a SAAJ Name
object.
- */
- public Name getFaultCodeAsName()
- {
- QName qname = QNameBuilder.buildQName(this, faultcode.getValue());
- return new NameImpl(qname);
- }
-
- /** Gets the fault string for this SOAPFault object.
- */
- public String getFaultString()
- {
- String value = faultstring.getValue();
- return value;
- }
-
- /** Gets the locale of the fault string for this SOAPFault object.
- */
- public Locale getFaultStringLocale()
- {
- return faultStringLocale;
- }
-
- /** Sets this SOAPFault object with the given fault actor.
- */
- public void setFaultActor(String faultActor) throws SOAPException
- {
- if (faultactor == null)
- {
- SOAPFactoryImpl factory = new SOAPFactoryImpl();
- addChildElement(faultactor = factory.createElement("faultactor"));
- }
-
- faultactor.setValue(faultActor);
- }
-
- /** Sets this SOAPFault object with the give fault code.
- */
- public void setFaultCode(String faultCode) throws SOAPException
- {
- // Must be of the form "prefix:localName" where the prefix has been
defined in a namespace declaration.
- if (faultCode == null || faultCode.indexOf(":") < 1)
- throw new IllegalArgumentException("Invalid faultCode: " +
faultCode);
-
- QName qname = QNameBuilder.buildQName(this, faultCode);
- setFaultCode(new NameImpl(qname));
- }
-
- /** Sets this SOAPFault object with the given fault code.
- */
- public void setFaultCode(Name faultName) throws SOAPException
- {
- String nsURI = faultName.getURI();
- String prefix = faultName.getPrefix();
- String localName = faultName.getLocalName();
-
- // For lazy folkes like the CTS that don't bother to give
- // a namesapce URI, assume they use a standard code
- if ("".equals(nsURI))
- {
- log.warn("Empty namespace URI with fault code '" + faultName +
"', assuming: " + Constants.NS_SOAP11_ENV);
- nsURI = Constants.NS_SOAP11_ENV;
- }
-
- if ("".equals(prefix) && getNamespaceURI().equals(nsURI))
- prefix = getPrefix();
-
- String prevNS = getNamespaceURI(prefix);
- if (nsURI.equals(prevNS) == false)
- addNamespaceDeclaration(prefix, nsURI);
-
- String faultCode = prefix + ":" + localName;
- faultcode.setValue(faultCode);
- }
-
- /** Sets the fault string for this SOAPFault object to the given string.
- */
- public void setFaultString(String faultString) throws SOAPException
- {
- faultstring.setValue(faultString);
- }
-
- /** Sets the fault string for this SOAPFault object to the given string and localized
to the given locale.
- */
- public void setFaultString(String faultString, Locale locale) throws SOAPException
- {
- setFaultString(faultString);
- this.faultStringLocale = locale;
- }
-
- public void writeElement(Writer writer)
- {
- new DOMWriter(writer).print(this);
- }
-}
\ No newline at end of file
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPFaultImpl.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPFaultImpl.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPHeaderElementImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPHeaderElementImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPHeaderElementImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,142 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.soap;
-
-import java.io.IOException;
-import java.io.StringWriter;
-import java.io.Writer;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import javax.xml.soap.Name;
-import javax.xml.soap.SOAPElement;
-import javax.xml.soap.SOAPEnvelope;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPHeader;
-import javax.xml.soap.SOAPHeaderElement;
-
-import org.jboss.ws.Constants;
-
-/**
- * An object representing the contents in the SOAP header part of the SOAP envelope.
- * The immediate children of a SOAPHeader object can be represented only as
SOAPHeaderElement objects.
- *
- * A SOAPHeaderElement object can have other SOAPElement objects as its children.
- *
- * @author Thomas.Diesler(a)jboss.org
- */
-public class SOAPHeaderElementImpl extends SOAPContentElement implements
SOAPHeaderElement
-{
- public SOAPHeaderElementImpl(Name name)
- {
- super(name);
- }
-
- public SOAPHeaderElementImpl(SOAPElementImpl element)
- {
- super(element);
- }
-
- public String getActor()
- {
- String envURI = Constants.NS_SOAP11_ENV;
- String attr = getAttributeNS(envURI, Constants.SOAP11_ATTR_ACTOR);
- return attr;
- }
-
- public boolean getMustUnderstand()
- {
- String envURI = Constants.NS_SOAP11_ENV;
- String attr = getAttributeNS(envURI, Constants.SOAP11_ATTR_MUST_UNDERSTAND);
- return "1".equals(attr);
- }
-
- public void setActor(String actorURI)
- {
- String envURI = Constants.NS_SOAP11_ENV;
- String qualifiedName = Constants.PREFIX_ENV + ":" +
Constants.SOAP11_ATTR_ACTOR;
- setAttributeNS(envURI, qualifiedName, actorURI);
- }
-
- public void setMustUnderstand(boolean mustUnderstand)
- {
- String envURI = Constants.NS_SOAP11_ENV;
- String qualifiedName = Constants.PREFIX_ENV + ":" +
Constants.SOAP11_ATTR_MUST_UNDERSTAND;
- setAttributeNS(envURI, qualifiedName, mustUnderstand ? "1" :
"0");
- }
-
- public void setParentElement(SOAPElement parent) throws SOAPException
- {
- if (parent == null)
- throw new SOAPException("Invalid null parent element");
-
- if ((parent instanceof SOAPHeader) == false)
- throw new SOAPException("Invalid parent element: " +
parent.getElementName());
-
- super.setParentElement(parent);
- }
-
- @Override
- public void writeElement(Writer writer) throws IOException
- {
- StringWriter strwr = new StringWriter(256);
- super.writeElement(strwr);
-
- SOAPHeader soapHeader = (SOAPHeader)getParentElement();
- SOAPEnvelope soapEnvelope = (SOAPEnvelope)soapHeader.getParentElement();
-
- // Find known namespace declarations
- List<String> knownNamespaces = new ArrayList<String>();
- Iterator prefixes = soapEnvelope.getNamespacePrefixes();
- while (prefixes.hasNext())
- {
- String prefix = (String)prefixes.next();
- String nsURI = soapEnvelope.getNamespaceURI(prefix);
- String xmlns = " xmlns:" + prefix + "='" + nsURI +
"'";
- knownNamespaces.add(xmlns);
- }
- prefixes = soapHeader.getNamespacePrefixes();
- while (prefixes.hasNext())
- {
- String prefix = (String)prefixes.next();
- String nsURI = soapHeader.getNamespaceURI(prefix);
- String xmlns = " xmlns:" + prefix + "='" + nsURI +
"'";
- knownNamespaces.add(xmlns);
- }
-
- // Remove known namespace declarations
- String xmlFragment = strwr.toString();
- for (String xmlns : knownNamespaces)
- {
- int start = xmlFragment.indexOf(xmlns);
- while (start > 0)
- {
- int end = start + xmlns.length();
- xmlFragment = xmlFragment.substring(0, start) + xmlFragment.substring(end);
- start = xmlFragment.indexOf(xmlns);
- }
- }
-
- writer.write(xmlFragment);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPHeaderElementImpl.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPHeaderElementImpl.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPHeaderImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPHeaderImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPHeaderImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,197 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.soap;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-
-import javax.xml.soap.Name;
-import javax.xml.soap.SOAPElement;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPHeader;
-import javax.xml.soap.SOAPHeaderElement;
-
-import org.w3c.dom.DOMException;
-import org.w3c.dom.DocumentFragment;
-import org.w3c.dom.Node;
-
-/**
- * A representation of the SOAP header element. A SOAP header element consists of XML
data that affects the way the
- * application-specific content is processed by the message provider. For example,
transaction semantics,
- * authentication information, and so on, can be specified as the content of a SOAPHeader
object.
- *
- * @author Thomas.Diesler(a)jboss.org
- */
-public class SOAPHeaderImpl extends SOAPElementImpl implements SOAPHeader
-{
- public SOAPHeaderImpl(String prefix, String namespace)
- {
- super("Header", prefix, namespace);
- }
-
- private SOAPHeaderElementImpl convertToHeaderElement(Node node)
- {
- if (!(node instanceof SOAPElementImpl))
- throw new IllegalArgumentException("SOAPElement expected");
-
- SOAPElementImpl element = (SOAPElementImpl)node;
-
- // convert to SOAPHeaderElement
- element.detachNode();
- return new SOAPHeaderElementImpl(element);
- }
-
- /*** Add a SOAPHeaderElement as a child of this SOAPHeader instance.
- */
- public SOAPElement addChildElement(SOAPElement child) throws SOAPException
- {
- // Check that we get a SOAPHeaderElement
- if ((child instanceof SOAPHeaderElement) == false)
- child = convertToHeaderElement(child);
-
- return super.addChildElement(child);
- }
-
- /** Creates a new SOAPHeaderElement object initialized with the specified name and
adds it to this SOAPHeader object.
- */
- public SOAPHeaderElement addHeaderElement(Name name) throws SOAPException
- {
- if (name == null || name.getURI().length() == 0 || name.getPrefix().length() == 0)
- throw new SOAPException("Invalid SOAPHeaderElement name: " + name);
-
- SOAPHeaderElementImpl headerElement = new SOAPHeaderElementImpl(name);
- addChildElement(headerElement);
- return headerElement;
- }
-
- /** Returns an Iterator over all the SOAPHeaderElement objects in this SOAPHeader
object.
- */
- public Iterator examineAllHeaderElements()
- {
- // make a defensive copy
- ArrayList list = new ArrayList();
- Iterator it = getChildElements();
- while (it.hasNext())
- {
- SOAPHeaderElement shElement = (SOAPHeaderElement)it.next();
- list.add(shElement);
- }
- return list.iterator();
- }
-
- /** Returns an Iterator over all the SOAPHeaderElement objects in this SOAPHeader
object that have the specified actor.
- */
- public Iterator examineHeaderElements(String actor)
- {
- if (actor == null)
- throw new IllegalArgumentException("Invalid actor: " + actor);
-
- // make a defensive copy
- ArrayList list = new ArrayList();
- Iterator it = getChildElements();
- while (it.hasNext())
- {
- SOAPHeaderElement shElement = (SOAPHeaderElement)it.next();
- if (actor.equals(shElement.getActor()))
- list.add(shElement);
- }
- return list.iterator();
- }
-
- /** Returns an Iterator over all the SOAPHeaderElement objects in this SOAPHeader
object that have the specified
- * actor and that have a MustUnderstand attribute whose value is equivalent to true.
- */
- public Iterator examineMustUnderstandHeaderElements(String actor)
- {
- if (actor == null)
- throw new IllegalArgumentException("Invalid actor: " + actor);
-
- // make a defensive copy
- ArrayList list = new ArrayList();
- Iterator it = getChildElements();
- while (it.hasNext())
- {
- SOAPHeaderElement shElement = (SOAPHeaderElement)it.next();
- if (actor.equals(shElement.getActor()) &&
shElement.getMustUnderstand())
- list.add(shElement);
- }
- return list.iterator();
- }
-
- public Iterator extractAllHeaderElements()
- {
- // make a defensive copy
- ArrayList list = new ArrayList();
- Iterator it = getChildElements();
- while (it.hasNext())
- {
- SOAPHeaderElement shElement = (SOAPHeaderElement)it.next();
- removeChild(shElement);
- list.add(shElement);
- }
- return list.iterator();
- }
-
- public Iterator extractHeaderElements(String actor)
- {
- if (actor == null)
- throw new IllegalArgumentException("Invalid actor: " + actor);
-
- // make a defensive copy
- ArrayList list = new ArrayList();
- Iterator it = getChildElements();
- while (it.hasNext())
- {
- SOAPHeaderElement shElement = (SOAPHeaderElement)it.next();
- if (actor.equals(shElement.getActor()))
- {
- removeChild(shElement);
- list.add(shElement);
- }
- }
- return list.iterator();
- }
-
- public Node appendChild(Node newChild) throws DOMException
- {
- if (!(newChild instanceof SOAPHeaderElementImpl || newChild instanceof
DocumentFragment))
- newChild = convertToHeaderElement(newChild);
-
- return super.appendChild(newChild);
- }
-
- public Node insertBefore(Node newChild, Node refChild) throws DOMException
- {
- if (!(newChild instanceof SOAPHeaderElementImpl || newChild instanceof
DocumentFragment))
- newChild = convertToHeaderElement(newChild);
-
- return super.insertBefore(newChild, refChild);
- }
-
- public Node replaceChild(Node newChild, Node oldChild) throws DOMException
- {
- if (!(newChild instanceof SOAPHeaderElementImpl || newChild instanceof
DocumentFragment))
- newChild = convertToHeaderElement(newChild);
-
- return super.replaceChild(newChild, oldChild);
- }
-}
\ No newline at end of file
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPHeaderImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPHeaderImpl.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPMessageDispatcher.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPMessageDispatcher.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPMessageDispatcher.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,128 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.soap;
-
-// $Id$
-
-import java.util.Iterator;
-
-import javax.xml.namespace.QName;
-import javax.xml.soap.Name;
-import javax.xml.soap.SOAPBody;
-import javax.xml.soap.SOAPBodyElement;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPMessage;
-import javax.xml.ws.addressing.AddressingProperties;
-import javax.xml.ws.addressing.JAXWSAConstants;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.core.CommonMessageContext;
-import org.jboss.ws.core.jaxrpc.Style;
-import org.jboss.ws.metadata.umdm.EndpointMetaData;
-import org.jboss.ws.metadata.umdm.OperationMetaData;
-
-/**
- * Derive the operation meta data from incomming SOAP message
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 22-Nov-2005
- */
-public class SOAPMessageDispatcher
-{
- // provide logging
- private static Logger log = Logger.getLogger(SOAPMessageDispatcher.class);
-
- /** Get the operation meta data for a given SOAP message
- */
- public OperationMetaData getDispatchDestination(EndpointMetaData epMetaData,
SOAPMessage soapMessage) throws SOAPException
- {
- OperationMetaData opMetaData = null;
-
- // Dispatch based on wsa:Action
- CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
- AddressingProperties inProps =
(AddressingProperties)msgContext.getProperty(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_INBOUND);
- if (inProps != null && inProps.getAction() != null)
- {
- String wsaAction = inProps.getAction().getURI().toASCIIString();
- for (OperationMetaData opAux : epMetaData.getOperations())
- {
- if (wsaAction.equals(opAux.getSOAPAction()))
- {
- opMetaData = opAux;
- log.debug("Use wsa:Action dispatch: " + wsaAction);
- break;
- }
- }
- }
-
- // Dispatch based on SOAPBodyElement name
- if (opMetaData == null)
- {
- SOAPBody soapBody = soapMessage.getSOAPBody();
-
- Iterator bodyChildren = soapBody.getChildElements();
- if (bodyChildren.hasNext() == false)
- {
- if (epMetaData.getStyle() == Style.RPC)
- throw new SOAPException("Empty SOAP body with no child element not
supported for RPC");
-
- // [JBWS-1125] Support empty soap body elements
- for (OperationMetaData opAux : epMetaData.getOperations())
- {
- if (opAux.getParameters().size() == 0)
- {
- log.debug ("Dispatching empty SOAP body");
- opMetaData = opAux;
- break;
- }
- }
- }
- else
- {
- SOAPBodyElement soapBodyElement = (SOAPBodyElement)bodyChildren.next();
- if (bodyChildren.hasNext())
- throw new SOAPException("SOAPBody has more than on child
element");
-
- Name soapName = soapBodyElement.getElementName();
- QName xmlElementName = new QName(soapName.getURI(),
soapName.getLocalName());
- opMetaData = epMetaData.getOperation(xmlElementName);
- }
- }
-
- // Dispatch to a generic operation that takes an org.w3c.dom.Element
- if (opMetaData == null)
- {
- for (OperationMetaData opAux : epMetaData.getOperations())
- {
- if (opAux.isMessageEndpoint())
- {
- log.debug("Use generic message style dispatch");
- opMetaData = opAux;
- break;
- }
- }
- }
-
- log.debug("getDispatchDestination: " + (opMetaData != null ?
opMetaData.getQName() : null));
- return opMetaData;
- }
-}
\ No newline at end of file
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPMessageDispatcher.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPMessageDispatcher.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPMessageImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPMessageImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPMessageImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,414 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.soap;
-
-// $Id$
-
-import java.io.IOException;
-import java.io.OutputStream;
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.List;
-
-import javax.mail.MessagingException;
-import javax.xml.soap.AttachmentPart;
-import javax.xml.soap.MimeHeader;
-import javax.xml.soap.MimeHeaders;
-import javax.xml.soap.SOAPEnvelope;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPFault;
-import javax.xml.soap.SOAPMessage;
-import javax.xml.soap.SOAPPart;
-
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.soap.attachment.AttachmentPartImpl;
-import org.jboss.ws.core.soap.attachment.CIDGenerator;
-import org.jboss.ws.core.soap.attachment.MimeConstants;
-import org.jboss.ws.core.soap.attachment.MultipartRelatedEncoder;
-import org.jboss.ws.core.soap.attachment.MultipartRelatedSwAEncoder;
-import org.jboss.ws.core.soap.attachment.MultipartRelatedXOPEncoder;
-import org.jboss.ws.extensions.xop.XOPContext;
-import org.jboss.ws.metadata.umdm.EndpointMetaData;
-import org.jboss.ws.metadata.umdm.OperationMetaData;
-
-/**
- * The root class for all SOAP messages. As transmitted on the "wire", a SOAP
message is an XML document or a
- * MIME message whose first body part is an XML/SOAP document.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @author <a href="mailto:jason@stacksmash.com">Jason T.
Greene</a>
- */
-public class SOAPMessageImpl extends SOAPMessage
-{
- private boolean saveRequired = true;
- private MimeHeaders mimeHeaders = new MimeHeaders();
- private List<AttachmentPart> attachments = new
LinkedList<AttachmentPart>();
- private CIDGenerator cidGenerator = new CIDGenerator();
- private boolean isXOPMessage;
- private SOAPPartImpl soapPart;
- private MultipartRelatedEncoder multipartRelatedEncoder;
-
- // Cache the associated operation meta data
- private OperationMetaData opMetaData;
-
- SOAPMessageImpl() throws SOAPException
- {
- soapPart = new SOAPPartImpl(this);
- setProperty(CHARACTER_SET_ENCODING, "UTF-8");
- setProperty(WRITE_XML_DECLARATION, false);
- }
-
- public CIDGenerator getCidGenerator()
- {
- return cidGenerator;
- }
-
- public boolean isXOPMessage()
- {
- return isXOPMessage;
- }
-
- public void setXOPMessage(boolean isXOPMessage)
- {
- this.isXOPMessage = isXOPMessage;
- }
-
- public void setAttachments(Collection<AttachmentPart> parts) throws
SOAPException
- {
- for (AttachmentPart part : parts)
- {
- attachments.add(part);
- }
- saveRequired = true;
- }
-
- public void addAttachmentPart(AttachmentPart part)
- {
- if (part == null)
- return;
-
- attachments.add(part);
- saveRequired = true;
- }
-
- public AttachmentPart getAttachmentByContentId(String cid) throws SOAPException
- {
- for (AttachmentPart part : attachments)
- {
- String contentId = part.getContentId();
- if (contentId.equals(cid))
- return part;
- }
- return null;
- }
-
- public AttachmentPart removeAttachmentByContentId(String cid)
- {
- for (AttachmentPart part : attachments)
- {
- String contentId = part.getContentId();
- if (contentId.equals(cid))
- {
- attachments.remove(part);
- return part;
- }
- }
-
- return null;
- }
- public AttachmentPart getAttachmentByPartName(String partName)
- {
- for (AttachmentPart part : attachments)
- {
- String contentId = part.getContentId();
- if (contentId.startsWith("<" + partName + "="))
- return part;
- }
- return null;
- }
-
- public AttachmentPart createAttachmentPart()
- {
- return new AttachmentPartImpl();
- }
-
- public String getContentDescription()
- {
- String[] value = mimeHeaders.getHeader(MimeConstants.CONTENT_DESCRIPTION);
-
- return (value == null) ? null : value[0];
- }
-
- public void setContentDescription(String description)
- {
- mimeHeaders.setHeader(MimeConstants.CONTENT_DESCRIPTION, description);
- }
-
- public MimeHeaders getMimeHeaders()
- {
- return mimeHeaders;
- }
-
- public void setMimeHeaders(MimeHeaders headers)
- {
- if (headers == null)
- throw new IllegalArgumentException("MimeHeaders cannot be null");
- this.mimeHeaders = headers;
- }
-
- public SOAPPart getSOAPPart()
- {
- return soapPart;
- }
-
- public void removeAllAttachments()
- {
- attachments.clear();
- saveRequired = true;
- }
-
- public int countAttachments()
- {
- return attachments.size();
- }
-
- public Iterator getAttachments()
- {
- // Someone could call remove on this iterator, affecting the attachment count
- saveRequired = true;
- return attachments.iterator();
- }
-
- public Iterator getAttachments(MimeHeaders headers)
- {
- if (headers == null)
- throw new WSException("MimeHeaders can not be null");
-
- return new MimeMatchingAttachmentsIterator(headers, attachments);
- }
-
- public void saveChanges() throws SOAPException
- {
- if (saveRequired == true)
- {
- try
- {
- boolean hasAttachments = attachments.size() > 0;
-
- if (isXOPMessage() && !XOPContext.isMTOMEnabled() &&
hasAttachments)
- throw new IllegalStateException("XOP parameter not properly
inlined");
-
- // default content-type
- String contentType = MimeConstants.TYPE_SOAP11 + "; charset=" +
getCharSetEncoding();
-
- if (hasAttachments)
- {
- if (isXOPMessage() && XOPContext.isMTOMEnabled())
- {
- multipartRelatedEncoder = new MultipartRelatedXOPEncoder(this);
- multipartRelatedEncoder.encodeMultipartRelatedMessage();
- contentType = multipartRelatedEncoder.getContentType();
- }
- else
- {
- multipartRelatedEncoder = new MultipartRelatedSwAEncoder(this);
- multipartRelatedEncoder.encodeMultipartRelatedMessage();
- contentType = multipartRelatedEncoder.getContentType();
- }
- }
-
- mimeHeaders.setHeader(MimeConstants.CONTENT_TYPE, contentType);
-
- }
- catch (MessagingException ex)
- {
- throw new SOAPException(ex);
- }
-
- /*
- * We are lazily encoding our message, which means that currently
- * Content-Length is not being calculated. This should not be a problem
- * because HTTP/1.1 does not require that it be sent (WS Basic Profile 1.1
- * states that implementations SHOULD send HTTP 1.1). If it is determined
- * that it must be sent, this perhaps should be done by the transport
- * layer. However, there could be a space optimization where length is
- * precalulated per attachment, and that calculation would, of course,
- * belong here.
- */
-
- saveRequired = false;
- }
- }
-
- public boolean saveRequired()
- {
- return saveRequired;
- }
-
- public void writeTo(OutputStream outs) throws SOAPException, IOException
- {
- // Save all changes
- saveChanges();
-
- // If there are attachments then we delegate encoding to MultipartRelatedEncoder
- if (attachments.size() > 0)
- {
- multipartRelatedEncoder.writeTo(outs);
- }
- else
- {
- SOAPEnvelope soapEnv = getSOAPPart().getEnvelope();
- if (soapEnv != null)
- {
- boolean writeXML = isWriteXMLDeclaration();
- String charsetEncoding = getCharSetEncoding();
- SOAPElementWriter writer = new SOAPElementWriter(outs, charsetEncoding);
-
writer.setWriteXMLDeclaration(writeXML).writeElement((SOAPEnvelopeImpl)soapEnv);
- }
- }
- }
-
- private String getCharSetEncoding() throws SOAPException
- {
- String charsetName = (String)getProperty(CHARACTER_SET_ENCODING);
- if (charsetName == null)
- charsetName = "UTF-8";
- return charsetName;
- }
-
- /** Get the operation meta data for this SOAP message
- */
- public OperationMetaData getOperationMetaData(EndpointMetaData epMetaData) throws
SOAPException
- {
- if (opMetaData == null)
- {
- SOAPMessageDispatcher dispatcher = new SOAPMessageDispatcher();
- opMetaData = dispatcher.getDispatchDestination(epMetaData, this);
- }
- return opMetaData;
- }
-
- public boolean isFaultMessage()
- {
- SOAPFault soapFault = null;
- try
- {
- soapFault = getSOAPBody().getFault();
- }
- catch (Exception ignore)
- {
- }
- return soapFault != null;
- }
-
- private boolean isWriteXMLDeclaration() throws SOAPException
- {
- Boolean booleanValue = new Boolean(false);
- Object propValue = getProperty(WRITE_XML_DECLARATION);
- if (propValue instanceof Boolean)
- booleanValue = (Boolean)propValue;
- if (propValue instanceof String)
- booleanValue = new Boolean((String)propValue);
- return booleanValue.booleanValue();
- }
-
- public static class MimeMatchingAttachmentsIterator implements Iterator
- {
- private Iterator iterator;
-
- private MimeHeaders headers = new MimeHeaders();
-
- private AttachmentPart lastMatch;
-
- public MimeMatchingAttachmentsIterator(MimeHeaders headers, List attachments)
- {
- iterator = attachments.iterator();
-
- if (headers != null)
- this.headers = headers;
- }
-
- private boolean containsAllHeaders(Iterator headerIterator, AttachmentPart part)
- {
- while (headerIterator.hasNext())
- {
- MimeHeader header = (MimeHeader)headerIterator.next();
- String[] values = part.getMimeHeader(header.getName());
- if (values == null)
- return false;
-
- boolean match = false;
- for (int j = 0; j < values.length; j++)
- {
- if (values[j].equalsIgnoreCase(header.getValue()))
- {
- match = true;
- break;
- }
- }
-
- if (!match)
- return false;
- }
-
- return true;
- }
-
- private void nextMatch()
- {
- while (iterator.hasNext())
- {
- AttachmentPart part = (AttachmentPart)iterator.next();
- if (containsAllHeaders(headers.getAllHeaders(), part))
- {
- lastMatch = part;
- break;
- }
- }
- }
-
- public boolean hasNext()
- {
- if (lastMatch == null)
- nextMatch();
-
- return lastMatch != null;
- }
-
- public Object next()
- {
- if (!hasNext())
- return null;
-
- Object retval = lastMatch;
- lastMatch = null;
-
- return retval;
- }
-
- public void remove()
- {
- iterator.remove();
- }
- }
-}
\ No newline at end of file
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPMessageImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPMessageImpl.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPMessageMarshaller.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPMessageMarshaller.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPMessageMarshaller.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,91 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.soap;
-
-import java.io.IOException;
-import java.io.OutputStream;
-
-import javax.xml.soap.SOAPEnvelope;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPMessage;
-
-import org.jboss.logging.Logger;
-import org.jboss.remoting.InvocationRequest;
-import org.jboss.remoting.invocation.OnewayInvocation;
-import org.jboss.remoting.marshal.Marshaller;
-import org.jboss.ws.core.utils.DOMUtils;
-import org.jboss.ws.core.utils.DOMWriter;
-/**
- * @author Thomas.Diesler(a)jboss.org
- * @since 25-Nov-2004
- */
-public class SOAPMessageMarshaller implements Marshaller
-{
- // Provide logging
- private static Logger log = Logger.getLogger(SOAPMessageMarshaller.class);
-
- /**
- * Marshaller will need to take the dataObject and convert
- * into primitive java data types and write to the
- * given output.
- *
- * @param dataObject Object to be writen to output
- * @param output The data output to write the object
- * data to.
- */
- public void write(Object dataObject, OutputStream output) throws IOException
- {
- if (dataObject instanceof InvocationRequest)
- dataObject = ((InvocationRequest)dataObject).getParameter();
-
- if (dataObject instanceof OnewayInvocation)
- dataObject = ((OnewayInvocation)dataObject).getParameters()[0];
-
- if ((dataObject instanceof SOAPMessage) == false)
- throw new IllegalArgumentException("Not a SOAPMessage: " +
dataObject);
-
- try
- {
- SOAPMessageImpl soapMessage = (SOAPMessageImpl)dataObject;
-
- // debug the outgoing message
- if (log.isTraceEnabled())
- {
- SOAPEnvelope soapEnv = soapMessage.getSOAPPart().getEnvelope();
- String envStr = SOAPElementWriter.writeElement((SOAPElementImpl)soapEnv,
true);
- log.trace("Outgoing SOAPMessage\n" + envStr);
- }
-
- soapMessage.writeTo(output);
- }
- catch (SOAPException e)
- {
- log.error("Cannot marshall SOAPMessage", e);
- throw new IOException(e.toString());
- }
- }
-
- public Marshaller cloneMarshaller() throws CloneNotSupportedException
- {
- return new SOAPMessageMarshaller();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPMessageMarshaller.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPMessageMarshaller.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPMessageUnMarshaller.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPMessageUnMarshaller.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPMessageUnMarshaller.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,123 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.soap;
-
-// $Id$
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import javax.servlet.http.HttpServletResponse;
-import javax.xml.soap.MimeHeaders;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPMessage;
-
-import org.jboss.logging.Logger;
-import org.jboss.remoting.marshal.UnMarshaller;
-import org.jboss.remoting.transport.http.HTTPMetadataConstants;
-import org.jboss.ws.WSException;
-
-/**
- * @author Thomas.Diesler(a)jboss.org
- * @since 25-Nov-2004
- */
-public class SOAPMessageUnMarshaller implements UnMarshaller
-{
- // Provide logging
- private static Logger log = Logger.getLogger(SOAPMessageUnMarshaller.class);
-
- private static List validResponseCodes = new ArrayList();
- static
- {
- validResponseCodes.add(HttpServletResponse.SC_OK);
- validResponseCodes.add(HttpServletResponse.SC_ACCEPTED);
- validResponseCodes.add(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
- }
-
- public Object read(InputStream inputStream, Map metadata) throws IOException,
ClassNotFoundException
- {
- if (log.isTraceEnabled())
- {
- log.trace("Read input stream with metadata=" + metadata);
- }
-
- try
- {
- Integer resCode = (Integer)metadata.get(HTTPMetadataConstants.RESPONSE_CODE);
- String resMessage =
(String)metadata.get(HTTPMetadataConstants.RESPONSE_CODE_MESSAGE);
- if (resCode != null && validResponseCodes.contains(resCode) == false)
- throw new WSException("Invalid HTTP server response [" + resCode +
"] - " + resMessage);
-
- MimeHeaders mimeHeaders = getMimeHeaders(metadata);
- SOAPMessage soapMsg = new
MessageFactoryImpl().createMessageInternal(mimeHeaders, inputStream, true);
- return soapMsg;
- }
- catch (SOAPException e)
- {
- log.error("Cannot unmarshall SOAPMessage", e);
- throw new IOException(e.toString());
- }
- }
-
- /**
- * Set the class loader to use for unmarhsalling. This may
- * be needed when need to have access to class definitions that
- * are not part of this unmarshaller's parent classloader (especially
- * when doing remote classloading).
- *
- * @param classloader
- */
- public void setClassLoader(ClassLoader classloader)
- {
- //NO OP
- }
-
- public UnMarshaller cloneUnMarshaller() throws CloneNotSupportedException
- {
- return new SOAPMessageUnMarshaller();
- }
-
- private MimeHeaders getMimeHeaders(Map metadata)
- {
- log.debug("getMimeHeaders from: " + metadata);
-
- MimeHeaders headers = new MimeHeaders();
- Iterator i = metadata.keySet().iterator();
- while (i.hasNext())
- {
- String key = (String)i.next();
- Object value = metadata.get(key);
- if (key != null && value instanceof List)
- {
- for (Object listValue : (List)value)
- {
- headers.addHeader(key, listValue.toString());
- }
- }
- }
- return headers;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPMessageUnMarshaller.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPMessageUnMarshaller.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPPartImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPPartImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPPartImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,547 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.soap;
-
-// $Id$
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import javax.xml.soap.MimeHeaders;
-import javax.xml.soap.SOAPBody;
-import javax.xml.soap.SOAPEnvelope;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPMessage;
-import javax.xml.soap.SOAPPart;
-import javax.xml.transform.Source;
-import javax.xml.transform.dom.DOMSource;
-import javax.xml.transform.stream.StreamSource;
-
-import org.jboss.logging.Logger;
-import org.jboss.util.NotImplementedException;
-import org.jboss.ws.core.utils.DOMUtils;
-import org.w3c.dom.Attr;
-import org.w3c.dom.CDATASection;
-import org.w3c.dom.Comment;
-import org.w3c.dom.DOMConfiguration;
-import org.w3c.dom.DOMException;
-import org.w3c.dom.DOMImplementation;
-import org.w3c.dom.Document;
-import org.w3c.dom.DocumentFragment;
-import org.w3c.dom.DocumentType;
-import org.w3c.dom.Element;
-import org.w3c.dom.EntityReference;
-import org.w3c.dom.NamedNodeMap;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
-import org.w3c.dom.ProcessingInstruction;
-import org.w3c.dom.Text;
-import org.w3c.dom.UserDataHandler;
-
-/** An implementation of SOAPPart.
- *
- *
- * @author Thomas.Diesler(a)jboss.org
- */
-public class SOAPPartImpl extends SOAPPart
-{
- // provide logging
- private static Logger log = Logger.getLogger(SOAPPartImpl.class);
-
- private SOAPMessage soapMessage;
- private SOAPEnvelope soapEnvelope;
-
- private SOAPDocument doc = new SOAPDocument();
-
- SOAPPartImpl(SOAPMessage message)
- {
- this.soapMessage = message;
- }
-
- public SOAPMessage getSOAPMessage()
- {
- return soapMessage;
- }
-
- public SOAPEnvelope getEnvelope() throws SOAPException
- {
- return soapEnvelope;
- }
-
- public void setEnvelope(SOAPEnvelope soapEnvelope)
- {
- this.soapEnvelope = soapEnvelope;
- }
-
- public void removeMimeHeader(String s)
- {
- MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
- mimeHeaders.removeHeader(s);
- }
-
- public void removeAllMimeHeaders()
- {
- MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
- mimeHeaders.removeAllHeaders();
- }
-
- public String[] getMimeHeader(String name)
- {
- MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
- return mimeHeaders.getHeader(name);
- }
-
- public void setMimeHeader(String name, String value)
- {
- MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
- mimeHeaders.setHeader(name, value);
- }
-
- public void addMimeHeader(String name, String value)
- {
- MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
- mimeHeaders.addHeader(name, value);
- }
-
- public Iterator getAllMimeHeaders()
- {
- MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
- return mimeHeaders.getAllHeaders();
- }
-
- public Iterator getMatchingMimeHeaders(String names[])
- {
- MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
- return mimeHeaders.getMatchingHeaders(names);
- }
-
- public Iterator getNonMatchingMimeHeaders(String names[])
- {
- MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
- return mimeHeaders.getNonMatchingHeaders(names);
- }
-
- public void setContent(Source source) throws SOAPException
- {
- // R2714 For one-way operations, an INSTANCE MUST NOT return a HTTP response that
contains a SOAP envelope.
- // Specifically, the HTTP response entity-body must be empty.
- if (source == null)
- {
- log.debug("Setting content source to null removes the SOAPEnvelope");
- soapEnvelope = null;
- return;
- }
-
- Element domElement;
- if (source instanceof DOMSource)
- {
- DOMSource domSource = (DOMSource)source;
- Node node = domSource.getNode();
- if (node instanceof Document)
- domElement = ((Document)node).getDocumentElement();
- else if (node instanceof Element)
- domElement = (Element)node;
- else
- throw new SOAPException("Unsupported DOMSource node: " + node);
- }
- else if (source instanceof StreamSource)
- {
- try
- {
- StreamSource streamSource = (StreamSource)source;
- domElement = DOMUtils.parse(streamSource.getInputStream());
- }
- catch (IOException e)
- {
- throw new SOAPException("Cannot parse stream source", e);
- }
- }
- else
- {
- throw new SOAPException("Unsupported source parameter: " + source);
- }
-
- SOAPFactoryImpl factory = new SOAPFactoryImpl();
- SOAPElementImpl soapElement = factory.createElement(domElement, true);
-
- SOAPBody body = soapEnvelope.getBody();
- body.removeContents();
- body.addChildElement(soapElement);
- }
-
- public Source getContent() throws SOAPException
- {
- SOAPBody body = soapEnvelope.getBody();
- return new DOMSource(body.getFirstChild());
- }
-
- // Document
*********************************************************************************************************
-
- public DOMImplementation getImplementation()
- {
- return doc.getImplementation();
- }
-
- public DocumentFragment createDocumentFragment()
- {
- return doc.createDocumentFragment();
- }
-
- public DocumentType getDoctype()
- {
- return doc.getDoctype();
- }
-
- public Element getDocumentElement()
- {
- return soapEnvelope;
- }
-
- public Attr createAttribute(String name) throws DOMException
- {
- return doc.createAttribute(name);
- }
-
- public CDATASection createCDATASection(String data) throws DOMException
- {
- return doc.createCDATASection(data);
- }
-
- public Comment createComment(String data)
- {
- return doc.createComment(data);
- }
-
- public Element createElement(String tagName) throws DOMException
- {
- return doc.createElement(tagName);
- }
-
- public Element getElementById(String elementId)
- {
- return doc.getElementById(elementId);
- }
-
- public EntityReference createEntityReference(String name) throws DOMException
- {
- return doc.createEntityReference(name);
- }
-
- public org.w3c.dom.Node importNode(org.w3c.dom.Node importedNode, boolean deep) throws
DOMException
- {
- return doc.importNode(importedNode, deep);
- }
-
- public NodeList getElementsByTagName(String tagname)
- {
- return doc.getElementsByTagName(tagname);
- }
-
- public Text createTextNode(String data)
- {
- return doc.createTextNode(data);
- }
-
- public Attr createAttributeNS(String namespaceURI, String qualifiedName) throws
DOMException
- {
- return doc.createAttributeNS(namespaceURI, qualifiedName);
- }
-
- public Element createElementNS(String namespaceURI, String qualifiedName) throws
DOMException
- {
- return doc.createElementNS(namespaceURI, qualifiedName);
- }
-
- public NodeList getElementsByTagNameNS(String namespaceURI, String localName)
- {
- return doc.getElementsByTagNameNS(namespaceURI, localName);
- }
-
- public ProcessingInstruction createProcessingInstruction(String target, String data)
throws DOMException
- {
- return doc.createProcessingInstruction(target, data);
- }
-
- // Node
*********************************************************************************************************
-
- public org.w3c.dom.Node appendChild(org.w3c.dom.Node node) throws DOMException
- {
- throw new NotImplementedException();
- }
-
- public org.w3c.dom.Node cloneNode(boolean b)
- {
- throw new NotImplementedException();
- }
-
- public NamedNodeMap getAttributes()
- {
- throw new NotImplementedException();
- }
-
- public NodeList getChildNodes()
- {
- List<NodeImpl> list = new ArrayList<NodeImpl>();
- if (soapEnvelope != null)
- {
- list.add((NodeImpl)soapEnvelope);
- }
- return new NodeListImpl(list);
- }
-
- public org.w3c.dom.Node getFirstChild()
- {
- return soapEnvelope;
- }
-
- public org.w3c.dom.Node getLastChild()
- {
- return soapEnvelope;
- }
-
- public String getLocalName()
- {
- throw new NotImplementedException();
- }
-
- public String getNamespaceURI()
- {
- throw new NotImplementedException();
- }
-
- public org.w3c.dom.Node getNextSibling()
- {
- throw new NotImplementedException();
- }
-
- public String getNodeName()
- {
- return doc.getNodeName();
- }
-
- public short getNodeType()
- {
- return doc.getNodeType();
- }
-
- public String getNodeValue() throws DOMException
- {
- throw new NotImplementedException();
- }
-
- public Document getOwnerDocument()
- {
- throw new NotImplementedException();
- }
-
- public org.w3c.dom.Node getParentNode()
- {
- throw new NotImplementedException();
- }
-
- public String getPrefix()
- {
- throw new NotImplementedException();
- }
-
- public org.w3c.dom.Node getPreviousSibling()
- {
- throw new NotImplementedException();
- }
-
- public boolean hasAttributes()
- {
- throw new NotImplementedException();
- }
-
- public boolean hasChildNodes()
- {
- throw new NotImplementedException();
- }
-
- public org.w3c.dom.Node insertBefore(org.w3c.dom.Node node, org.w3c.dom.Node node1)
throws DOMException
- {
- throw new NotImplementedException();
- }
-
- public boolean isSupported(String s, String s1)
- {
- throw new NotImplementedException();
- }
-
- public void normalize()
- {
- throw new NotImplementedException();
- }
-
- public org.w3c.dom.Node removeChild(org.w3c.dom.Node node) throws DOMException
- {
- throw new NotImplementedException();
- }
-
- public org.w3c.dom.Node replaceChild(org.w3c.dom.Node node, org.w3c.dom.Node node1)
throws DOMException
- {
- throw new NotImplementedException();
- }
-
- public void setNodeValue(String s) throws DOMException
- {
- throw new NotImplementedException();
- }
-
- public void setPrefix(String s) throws DOMException
- {
- throw new NotImplementedException();
- }
-
- public Node adoptNode(Node source) throws DOMException
- {
- throw new NotImplementedException("adoptNode");
- }
-
- public String getDocumentURI()
- {
- throw new NotImplementedException("getDocumentURI");
- }
-
- public DOMConfiguration getDomConfig()
- {
- throw new NotImplementedException("getDomConfig");
- }
-
- public String getInputEncoding()
- {
- throw new NotImplementedException("getInputEncoding");
- }
-
- public boolean getStrictErrorChecking()
- {
- throw new NotImplementedException("getStrictErrorChecking");
- }
-
- public String getXmlEncoding()
- {
- throw new NotImplementedException("getXmlEncoding");
- }
-
- public boolean getXmlStandalone()
- {
- throw new NotImplementedException("getXmlStandalone");
- }
-
- public String getXmlVersion()
- {
- throw new NotImplementedException("getXmlVersion");
- }
-
- public void normalizeDocument()
- {
- throw new NotImplementedException("normalizeDocument");
- }
-
- public Node renameNode(Node n, String namespaceURI, String qualifiedName) throws
DOMException
- {
- throw new NotImplementedException("renameNode");
- }
-
- public void setDocumentURI(String documentURI)
- {
- throw new NotImplementedException("setDocumentURI");
- }
-
- public void setStrictErrorChecking(boolean strictErrorChecking)
- {
- throw new NotImplementedException("setStrictErrorChecking");
- }
-
- public void setXmlStandalone(boolean xmlStandalone) throws DOMException
- {
- throw new NotImplementedException("setXmlStandalone");
- }
-
- public void setXmlVersion(String xmlVersion) throws DOMException
- {
- throw new NotImplementedException("setXmlVersion");
- }
-
- public short compareDocumentPosition(Node other) throws DOMException
- {
- throw new NotImplementedException("compareDocumentPosition");
- }
-
- public String getBaseURI()
- {
- throw new NotImplementedException("getBaseURI");
- }
-
- public Object getFeature(String feature, String version)
- {
- throw new NotImplementedException("getFeature");
- }
-
- public String getTextContent() throws DOMException
- {
- throw new NotImplementedException("getTextContent");
- }
-
- public Object getUserData(String key)
- {
- throw new NotImplementedException("getUserData");
- }
-
- public boolean isDefaultNamespace(String namespaceURI)
- {
- throw new NotImplementedException("isDefaultNamespace");
- }
-
- public boolean isEqualNode(Node arg)
- {
- throw new NotImplementedException("isEqualNode");
- }
-
- public boolean isSameNode(Node other)
- {
- throw new NotImplementedException("isSameNode");
- }
-
- public String lookupNamespaceURI(String prefix)
- {
- throw new NotImplementedException("lookupNamespaceURI");
- }
-
- public String lookupPrefix(String namespaceURI)
- {
- throw new NotImplementedException("lookupPrefix");
- }
-
- public void setTextContent(String textContent) throws DOMException
- {
- throw new NotImplementedException("setTextContent");
- }
-
- public Object setUserData(String key, Object data, UserDataHandler handler)
- {
- throw new NotImplementedException("setUserData");
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPPartImpl.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/SOAPPartImpl.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/TextImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/TextImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/TextImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,327 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.soap;
-
-import org.w3c.dom.DOMException;
-import org.w3c.dom.Text;
-
-/**
- * A representation of a node whose value is text. A Text
- * object may represent text that is content or text that is a comment.
- *
- * @author Thomas.Diesler(a)jboss.org
- */
-public class TextImpl extends NodeImpl implements javax.xml.soap.Text
-{
-
- public TextImpl(org.w3c.dom.Node node)
- {
- super(node);
- }
-
- /** Retrieves whether this object represents a comment.
- */
- public boolean isComment()
- {
- String value = getNodeValue().trim();
- return value.startsWith("<!--") &&
value.endsWith("-->");
- }
-
- public String getValue()
- {
- return getNodeValue();
- }
-
- public void setValue(String value)
- {
- setNodeValue(value);
- }
-
- /**
- * Breaks this node into two nodes at the specified <code>offset</code>,
keeping both in the tree as siblings.
- * <p/>
- * After being split, this node will contain all the content up to the
<code>offset</code> point. A
- * new node of the same type, which contains all the content at and after the
<code>offset</code> point, is returned.
- * If the original node had a parent node, the new node is inserted as the next
sibling of the original node.
- * When the <code>offset</code> is equal to the length of this node, the
new node has no data.
- *
- * @param offset The 16-bit unit offset at which to split, starting from
<code>0</code>.
- * @return The new node, of the same type as this node.
- * @throws org.w3c.dom.DOMException INDEX_SIZE_ERR: Raised if the specified offset is
negative or greater
- * than the number of 16-bit units in
<code>data</code>.
- * <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is
readonly.
- */
- public Text splitText(int offset) throws DOMException
- {
-
- if (offset < 0 || offset > getNodeValue().length())
- throw new IllegalArgumentException("Invalid offset [" + offset +
"] for '" + getNodeValue() + "'");
-
- String before = getNodeValue().substring(0, offset + 1);
- setNodeValue(before);
-
- String after = getNodeValue().substring(offset + 1);
- TextImpl txtNode = new TextImpl(domNode.getOwnerDocument().createTextNode(after));
-
- org.w3c.dom.Node parent = getParentNode();
- if (parent != null)
- {
- org.w3c.dom.Node sibling = getNextSibling();
- if (sibling == null)
- parent.appendChild(txtNode);
- else
- parent.insertBefore(txtNode, sibling);
- }
-
- return txtNode;
- }
-
- // org.w3c.dom.CharacterData
***************************************************************************************
-
- /**
- * The number of 16-bit units that are available through
<code>data</code>
- * and the <code>substringData</code> method below. This may have the
- * value zero, i.e., <code>CharacterData</code> nodes may be empty.
- */
- public int getLength()
- {
- return getNodeValue().length();
- }
-
- /**
- * Remove a range of 16-bit units from the node. Upon success,
- * <code>data</code> and <code>length</code> reflect the
change.
- *
- * @param offset The offset from which to start removing.
- * @param count The number of 16-bit units to delete. If the sum of
- * <code>offset</code> and <code>count</code>
exceeds
- * <code>length</code> then all 16-bit units from
<code>offset</code>
- * to the end of the data are deleted.
- * @throws org.w3c.dom.DOMException INDEX_SIZE_ERR: Raised if the specified
<code>offset</code> is
- * negative or greater than the number of 16-bit
units in
- * <code>data</code>, or if the specified
<code>count</code> is
- * negative.
- * <br>NO_MODIFICATION_ALLOWED_ERR: Raised if
this node is readonly.
- */
- public void deleteData(int offset, int count) throws DOMException
- {
- String value = getNodeValue().substring(0, offset + 1);
- setNodeValue(value);
- }
-
- /**
- * The character data of the node that implements this interface. The DOM
- * implementation may not put arbitrary limits on the amount of data
- * that may be stored in a <code>CharacterData</code> node. However,
- * implementation limits may mean that the entirety of a node's data may
- * not fit into a single <code>DOMString</code>. In such cases, the user
- * may call <code>substringData</code> to retrieve the data in
- * appropriately sized pieces.
- *
- * @throws org.w3c.dom.DOMException NO_MODIFICATION_ALLOWED_ERR: Raised when the node
is readonly.
- * @throws org.w3c.dom.DOMException DOMSTRING_SIZE_ERR: Raised when it would return
more characters than
- * fit in a <code>DOMString</code>
variable on the implementation
- * platform.
- */
- public String getData() throws DOMException
- {
- return getNodeValue();
- }
-
- /**
- * Extracts a range of data from the node.
- *
- * @param offset Start offset of substring to extract.
- * @param count The number of 16-bit units to extract.
- * @return The specified substring. If the sum of <code>offset</code> and
- * <code>count</code> exceeds the <code>length</code>,
then all 16-bit
- * units to the end of the data are returned.
- * @throws org.w3c.dom.DOMException INDEX_SIZE_ERR: Raised if the specified
<code>offset</code> is
- * negative or greater than the number of 16-bit
units in
- * <code>data</code>, or if the specified
<code>count</code> is
- * negative.
- * <br>DOMSTRING_SIZE_ERR: Raised if the
specified range of text does
- * not fit into a
<code>DOMString</code>.
- */
- public String substringData(int offset, int count) throws DOMException
- {
- return getNodeValue().substring(offset, offset + count);
- }
-
- /**
- * Replace the characters starting at the specified 16-bit unit offset
- * with the specified string.
- *
- * @param offset The offset from which to start replacing.
- * @param count The number of 16-bit units to replace. If the sum of
- * <code>offset</code> and <code>count</code>
exceeds
- * <code>length</code>, then all 16-bit units to the end of
the data
- * are replaced; (i.e., the effect is the same as a
<code>remove</code>
- * method call with the same range, followed by an
<code>append</code>
- * method invocation).
- * @param arg The <code>DOMString</code> with which the range must be
- * replaced.
- * @throws org.w3c.dom.DOMException INDEX_SIZE_ERR: Raised if the specified
<code>offset</code> is
- * negative or greater than the number of 16-bit
units in
- * <code>data</code>, or if the specified
<code>count</code> is
- * negative.
- * <br>NO_MODIFICATION_ALLOWED_ERR: Raised if
this node is readonly.
- */
- public void replaceData(int offset, int count, String arg) throws DOMException
- {
- StringBuilder buffer = new StringBuilder(getNodeValue());
- buffer.replace(offset, offset + count, arg);
- setNodeValue(buffer.toString());
- }
-
- /**
- * Insert a string at the specified 16-bit unit offset.
- *
- * @param offset The character offset at which to insert.
- * @param arg The <code>DOMString</code> to insert.
- * @throws org.w3c.dom.DOMException INDEX_SIZE_ERR: Raised if the specified
<code>offset</code> is
- * negative or greater than the number of 16-bit
units in
- * <code>data</code>.
- * <br>NO_MODIFICATION_ALLOWED_ERR: Raised if
this node is readonly.
- */
- public void insertData(int offset, String arg) throws DOMException
- {
- StringBuilder buffer = new StringBuilder(getNodeValue());
- buffer.insert(offset, arg);
- setNodeValue(buffer.toString());
- }
-
- /**
- * Append the string to the end of the character data of the node. Upon
- * success, <code>data</code> provides access to the concatenation of
- * <code>data</code> and the <code>DOMString</code>
specified.
- *
- * @param arg The <code>DOMString</code> to append.
- * @throws org.w3c.dom.DOMException NO_MODIFICATION_ALLOWED_ERR: Raised if this node
is readonly.
- */
- public void appendData(String arg) throws DOMException
- {
- setNodeValue(getNodeValue() + arg);
- }
-
- /**
- * The character data of the node that implements this interface. The DOM
- * implementation may not put arbitrary limits on the amount of data
- * that may be stored in a <code>CharacterData</code> node. However,
- * implementation limits may mean that the entirety of a node's data may
- * not fit into a single <code>DOMString</code>. In such cases, the user
- * may call <code>substringData</code> to retrieve the data in
- * appropriately sized pieces.
- *
- * @throws org.w3c.dom.DOMException NO_MODIFICATION_ALLOWED_ERR: Raised when the node
is readonly.
- * @throws org.w3c.dom.DOMException DOMSTRING_SIZE_ERR: Raised when it would return
more characters than
- * fit in a <code>DOMString</code>
variable on the implementation
- * platform.
- */
- public void setData(String data) throws DOMException
- {
- setNodeValue(data);
- }
-
- // Stubbed out org.w3c.dom.Text methods **************************
-
- /**
- * TODO - complete the implementation
- *
- * Returns whether this text node contains <a
href='http://www.w3.org/TR/2004/REC-xml-infoset-20040204#infoitem.cha...
- * element content whitespace</a>, often abusively called "ignorable
whitespace". The text node is
- * determined to contain whitespace in element content during the load
- * of the document or if validation occurs while using
- * <code>Document.normalizeDocument()</code>.
- * @since DOM Level 3
- */
- public boolean isElementContentWhitespace()
- {
- return false;
- }
-
- /**
- * TODO - complete the implementation
- *
- * Returns all text of <code>Text</code> nodes logically-adjacent text
- * nodes to this node, concatenated in document order.
- * <br>For instance, in the example below <code>wholeText</code> on
the
- * <code>Text</code> node that contains "bar" returns
"barfoo", while on
- * the <code>Text</code> node that contains "foo" it returns
"barfoo".
- * @since DOM Level 3
- */
- public String getWholeText()
- {
- return null;
- }
-
- /**
- * TODO - complete the implementation
- *
- * Replaces the text of the current node and all logically-adjacent text
- * nodes with the specified text. All logically-adjacent text nodes are
- * removed including the current node unless it was the recipient of the
- * replacement text.
- * <br>This method returns the node which received the replacement text.
- * The returned node is:
- * <ul>
- * <li><code>null</code>, when the replacement text is
- * the empty string;
- * </li>
- * <li>the current node, except when the current node is
- * read-only;
- * </li>
- * <li> a new <code>Text</code> node of the same type (
- * <code>Text</code> or <code>CDATASection</code>) as the
current node
- * inserted at the location of the replacement.
- * </li>
- * </ul>
- * <br>For instance, in the above example calling
- * <code>replaceWholeText</code> on the <code>Text</code> node
that
- * contains "bar" with "yo" in argument results in the following:
- * <br>Where the nodes to be removed are read-only descendants of an
- * <code>EntityReference</code>, the
<code>EntityReference</code> must
- * be removed instead of the read-only nodes. If any
- * <code>EntityReference</code> to be removed has descendants that are
- * not <code>EntityReference</code>, <code>Text</code>, or
- * <code>CDATASection</code> nodes, the
<code>replaceWholeText</code>
- * method must fail before performing any modification of the document,
- * raising a <code>DOMException</code> with the code
- * <code>NO_MODIFICATION_ALLOWED_ERR</code>.
- * <br>For instance, in the example below calling
- * <code>replaceWholeText</code> on the <code>Text</code> node
that
- * contains "bar" fails, because the
<code>EntityReference</code> node
- * "ent" contains an <code>Element</code> node which cannot be
removed.
- * @param content The content of the replacing <code>Text</code> node.
- * @return The <code>Text</code> node created with the specified content.
- * @exception org.w3c.dom.DOMException
- * NO_MODIFICATION_ALLOWED_ERR: Raised if one of the <code>Text</code>
- * nodes being replaced is readonly.
- * @since DOM Level 3
- */
- public Text replaceWholeText(String content)
- throws DOMException
- {
- return null;
- }
-
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/TextImpl.java (from rev
1605, branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/TextImpl.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/UnboundHeader.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/UnboundHeader.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/UnboundHeader.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,100 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.soap;
-
-// $Id$
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.ParameterMode;
-
-import org.jboss.ws.metadata.umdm.OperationMetaData;
-import org.jboss.ws.metadata.umdm.ParameterMetaData;
-
-/**
- * Represents an unbound SOAPHeaderElement
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 04-Jan-2005
- */
-public class UnboundHeader
-{
- private QName xmlName;
- private QName xmlType;
- private Class javaType;
- private ParameterMode mode;
- private Object headerValue;
-
- public UnboundHeader(QName xmlName, QName xmlType, Class javaType, ParameterMode
mode)
- {
- this.xmlName = xmlName;
- this.xmlType = xmlType;
- this.javaType = javaType;
- this.mode = mode;
- }
-
- public QName getXmlName()
- {
- return xmlName;
- }
-
- public QName getXmlType()
- {
- return xmlType;
- }
-
- public Class getJavaType()
- {
- return javaType;
- }
-
- public ParameterMode getMode()
- {
- return mode;
- }
-
- public Object getHeaderValue()
- {
- return headerValue;
- }
-
- public void setHeaderValue(Object headerValue)
- {
- this.headerValue = headerValue;
- }
-
- public ParameterMetaData toParameterMetaData(OperationMetaData opMetaData)
- {
- ParameterMetaData paramMetaData = new ParameterMetaData(opMetaData, xmlName,
xmlType, javaType.getName());
- paramMetaData.setInHeader(true);
- return paramMetaData;
- }
-
- public String toString()
- {
- StringBuilder buffer = new StringBuilder("\nUnboundHeader:");
- buffer.append("\n xmlName=" + getXmlName());
- buffer.append("\n xmlType=" + getXmlType());
- buffer.append("\n javaType=" + getJavaType().getName());
- buffer.append("\n mode=" + getMode());
- return buffer.toString();
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/UnboundHeader.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/UnboundHeader.java)
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment (from rev
1605, branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/AttachmentPartImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/AttachmentPartImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/AttachmentPartImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,264 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.soap.attachment;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.Iterator;
-
-import javax.activation.DataHandler;
-import javax.mail.internet.MimeMultipart;
-import javax.xml.soap.AttachmentPart;
-import javax.xml.soap.MimeHeaders;
-import javax.xml.soap.SOAPException;
-
-/**
- * Implementation of the <code>AttachmentPart</code> interface.
- * @see javax.xml.soap.AttachmentPart
- *
- * @author <a href="mailto:jason@stacksmash.com">Jason T.
Greene</a>
- * @author Thomas.Diesler(a)jboss.org
- */
-public class AttachmentPartImpl extends AttachmentPart
-{
- private MimeHeaders mimeHeaders = new MimeHeaders();
-
- private DataHandler dataHandler;
-
- private String cachedContentId;
-
- private String cachedContentType;
-
- private String cachedContentLocation;
-
- static
- {
- // Load JAF content handlers
- ContentHandlerRegistry.register();
- }
-
- public AttachmentPartImpl()
- {
- }
-
- public AttachmentPartImpl(DataHandler handler)
- {
- this.dataHandler = handler;
- }
-
- private void clearHeaderCache()
- {
- cachedContentId = null;
- cachedContentType = null;
- cachedContentLocation = null;
- }
-
- public void addMimeHeader(String name, String value)
- {
- clearHeaderCache();
- mimeHeaders.addHeader(name, value);
- }
-
- public void clearContent()
- {
- dataHandler = null;
- }
-
- public Iterator getAllMimeHeaders()
- {
- clearHeaderCache();
- return mimeHeaders.getAllHeaders();
- }
-
- public Object getContent() throws SOAPException
- {
- if (dataHandler == null)
- throw new SOAPException("No content available");
-
- try
- {
- return dataHandler.getContent();
- }
- catch (IOException e)
- {
- throw new SOAPException(e);
- }
- }
-
- public DataHandler getDataHandler() throws SOAPException
- {
- if (dataHandler == null)
- throw new SOAPException("No data handler on attachment");
-
- return dataHandler;
- }
-
- public Iterator getMatchingMimeHeaders(String[] names)
- {
- clearHeaderCache();
- return mimeHeaders.getMatchingHeaders(names);
- }
-
- public String[] getMimeHeader(String name)
- {
- return mimeHeaders.getHeader(name);
- }
-
- /**
- * Returns the first occurence of a MIME header.
- *
- * @param header the mime header
- * @return the value of the first occurence of a MIME header
- */
- public String getFirstMimeHeader(String header)
- {
- String[] values = mimeHeaders.getHeader(header.toLowerCase());
- if ((values != null) && (values.length > 0))
- {
- return values[0];
- }
- return null;
- }
-
- public Iterator getNonMatchingMimeHeaders(String[] names)
- {
- clearHeaderCache();
- return mimeHeaders.getNonMatchingHeaders(names);
- }
-
- public int getSize() throws SOAPException
- {
- if (dataHandler == null)
- return 0;
-
- // In order to be accurate this method must be somewhat inefficient
- // TODO optimize this for specific data sources
- int count = 0, ret = 0;
- byte[] buffer = new byte[256];
-
- try
- {
- InputStream stream = dataHandler.getInputStream();
-
- do
- {
- count += ret;
- ret = stream.read(buffer);
- }
- while (ret != -1);
- }
- catch (IOException e)
- {
- throw new SOAPException(e);
- }
-
- return count;
- }
-
- public void removeAllMimeHeaders()
- {
- clearHeaderCache();
- mimeHeaders.removeAllHeaders();
- }
-
- public void removeMimeHeader(String name)
- {
- clearHeaderCache();
- mimeHeaders.removeHeader(name);
- }
-
- public void setContent(Object object, String contentType)
- {
-
- // Override the content type if its a mime multipart object because we need to
preserve
- // the all of the content type parameters
- if (object instanceof MimeMultipart)
- contentType = ((MimeMultipart)object).getContentType();
-
- dataHandler = new DataHandler(object, contentType);
-
- setContentType(contentType);
- }
-
- public void setDataHandler(DataHandler dataHandler)
- {
- if (dataHandler == null)
- throw new IllegalArgumentException("Null data handler");
-
- this.dataHandler = dataHandler;
- setContentType(dataHandler.getContentType());
- }
-
- public void setMimeHeader(String name, String value)
- {
- clearHeaderCache();
- mimeHeaders.setHeader(name, value);
- }
-
- public String getContentId()
- {
- if (cachedContentId == null)
- {
- cachedContentId = getFirstMimeHeader(MimeConstants.CONTENT_ID);
- }
-
- return cachedContentId;
- }
-
- public String getContentLocation()
- {
- if (cachedContentLocation == null)
- {
- cachedContentLocation = getFirstMimeHeader(MimeConstants.CONTENT_LOCATION);
- }
-
- return cachedContentLocation;
- }
-
- public String getContentType()
- {
- if (cachedContentType == null)
- {
- cachedContentType = getFirstMimeHeader(MimeConstants.CONTENT_TYPE);
- }
-
- return cachedContentType;
- }
-
- public void setContentId(String contentId)
- {
- setMimeHeader(MimeConstants.CONTENT_ID, contentId);
- cachedContentId = contentId;
- }
-
- public void setContentLocation(String contentLocation)
- {
- setMimeHeader(MimeConstants.CONTENT_LOCATION, contentLocation);
- cachedContentLocation = contentLocation;
- }
-
- public void setContentType(String contentType)
- {
- setMimeHeader(MimeConstants.CONTENT_TYPE, contentType);
- cachedContentType = contentType;
- }
-}
\ No newline at end of file
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/AttachmentPartImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/AttachmentPartImpl.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/BoundaryDelimitedInputStream.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/BoundaryDelimitedInputStream.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/BoundaryDelimitedInputStream.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,320 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.soap.attachment;
-
-import java.io.FilterInputStream;
-import java.io.IOException;
-import java.io.InputStream;
-
-/**
- * <code>BoundaryDelimitedInputStream</code> encapsulates a stream that is
- * sepearated into different sections by a common boundary, such as a MIME
- * multipart message. The full stream is referred to as the outer stream. Each
- * boundary separated section in the outer stream is referred to as an inner
- * stream.
- *
- * All read() methods will start from the first inner stream, returning -1 when
- * a boundary is reached. Subsequent calls will then advance to the next stream,
- * skipping the boundary.
- *
- * @author <a href="mailto:jason@stacksmash.com">Jason T.
Greene</a>
- */
-public class BoundaryDelimitedInputStream extends FilterInputStream
-{
- private static final int BOUNDARY_NOT_FOUND = SimpleBoyerMoore.PATTERN_NOT_FOUND;
-
- private byte[] boundary;
-
- private SimpleBoyerMoore boyerMoore;
-
- private byte[] leftOvers;
-
- private int leftOverPosition;
-
- private InputStream source;
-
- private boolean simulateEof;
-
- private boolean realEof;
-
- private boolean bufferingCompleted;
-
- /**
- * Constructs a <code>BoundaryDelimitedInputStream</code> using the
passed
- * <code>InputStream</code> as the source for the outer stream.
- *
- * @param in the source input stream
- * @param boundary the byte boundary separating sections of this stream
- */
- public BoundaryDelimitedInputStream(InputStream in, byte[] boundary)
- {
- super(in);
- source = in;
- this.boundary = (byte[]) boundary.clone();
- boyerMoore = new SimpleBoyerMoore(this.boundary);
- }
-
- /*
- * Buffers read-ahead data for future read calls.
- */
- private void createLeftOvers(byte[] buffer, int start, int end)
- {
- int length = end - start;
-
- if (length <= 0)
- return;
-
- // If we are no longer buffering, we no longer have to expand the buffer, so we
- // can reuse it (if its still there, which may not be the case if a boundary was
found
- // after the left over buffer was consumed) by just moving the position back.
- if (bufferingCompleted && leftOvers != null)
- {
- leftOverPosition -= length;
- return;
- }
-
- int leftOverLength = (leftOvers == null) ? 0 : leftOvers.length -
leftOverPosition;
-
- byte[] newLeftOvers = new byte[length + leftOverLength];
-
- System.arraycopy(buffer, start, newLeftOvers, 0, length);
-
- if (leftOvers != null)
- System.arraycopy(leftOvers, leftOverPosition, newLeftOvers, length,
leftOverLength);
-
- leftOvers = newLeftOvers;
- leftOverPosition = 0;
- }
-
- /*
- * Reads from previous buffered read-ahead data
- */
- private int consumeLeftOvers(byte[] buffer, int offset, int length)
- {
- if (leftOvers == null) return 0;
-
- int i = 0;
- while (i < length && leftOverPosition < leftOvers.length)
- {
- buffer[offset + i++] = leftOvers[leftOverPosition++];
- }
-
- if (leftOverPosition >= leftOvers.length)
- {
- leftOvers = null;
- leftOverPosition = 0;
- }
-
- return i;
- }
-
- /*
- * Repeatably reaads from the source stream until the desired number of bytes
- * are returned.
- */
- private int fullRead(byte[] buffer, int offset, int length) throws IOException
- {
- int count = 0;
- int read = 0;
-
- do
- {
- read = source.read(buffer, offset + count, length - count);
- if (read > 0)
- count += read;
- }
- while (read > 0 && count < length);
-
- if (read < 0)
- realEof = true;
-
- return count;
- }
-
- private int findBoundary(byte[] buffer, int length)
- {
- return boyerMoore.patternSearch(buffer, 0, length);
- }
-
- private int read(byte[] b, int off, int len, boolean skip) throws IOException
- {
- if (len == 0) return 0;
-
- if (simulateEof)
- {
- simulateEof = false;
- return -1;
- }
-
- if (realEof)
- {
- if (leftOvers == null)
- return -1;
- if (bufferingCompleted == false)
- {
- bufferingCompleted = true;
- }
- }
-
- // Our buffer must always contain room for 2 boundary string occurences,
- // and one of those boundary string size chunks must extend past the length
- // of the requested read size to insure the returned byte chunk contains
- // no potion of the boundary.
- int bufferLength = Math.max(boundary.length * 2, len + boundary.length);
-
- byte[] buffer = new byte[bufferLength];
-
- int position = consumeLeftOvers(buffer, 0, bufferLength);
- if (position < bufferLength)
- position += fullRead(buffer, position, bufferLength - position);
-
- // This should only occur when the source stream is already closed at start
- if (realEof && position == 0)
- return -1;
-
- int returnLength;
-
- int boundaryPosition = findBoundary(buffer, position);
- if (boundaryPosition == BOUNDARY_NOT_FOUND || boundaryPosition >= len)
- {
- returnLength = Math.min(len, position);
- createLeftOvers(buffer, returnLength, position);
- }
- else
- {
- returnLength = boundaryPosition;
- createLeftOvers(buffer, returnLength + boundary.length, position);
-
- // If there is no data to return, send the eof immediately
- if (returnLength == 0)
- return -1;
-
- // Notify the client that this inner stream has ended by returning -1 on the
- // next read request.
- simulateEof = true;
- }
-
- if (! skip)
- System.arraycopy(buffer, 0, b, off, returnLength);
-
- return returnLength;
- }
-
-
- /**
- * This method will always return 0 because this input stream must
- * always read ahead to determine the location of the boundary.
- */
- public int available() throws IOException
- {
- return 0;
- }
-
- /**
- * Close this input stream, and its source input stream. Once this
- * is called, no further data can be read.
- */
- public void close() throws IOException
- {
- source.close();
- leftOvers = null;
- leftOverPosition = 0;
- realEof = true;
- }
-
- /**
- * Returns false. Mark is not support by this input stream.
- */
- public boolean markSupported()
- {
- return false;
- }
-
- /**
- * Reads a single byte from the inner input stream. See the general contract
- * of the read method of <code>InputStream</code>.
- *
- * @return a signle byte value from the stream in the range of 0-255 or -1
- * on eof of the inner stream.
- */
- public int read() throws IOException
- {
- byte[] b = new byte[1];
- if (read(b) == -1)
- return -1;
- return b[0] & 0xff;
- }
-
- /**
- * Reads from the inner input stream, attempting to fill the passed byte array.
- * See the general contract of the read method of
<code>InputStream</code>.
- *
- * @param b the byte array to populate
- * @return number of bytes returned in <code>b</code>, -1 on EOF
- */
- public int read(byte[] b) throws IOException
- {
- return read(b, 0, b.length);
- }
-
- /**
- * Skips the specified number of bytes from the inner input stream. See the
- * general contract of the read method of <code>InputStream</code>.
- *
- * @param n the number of bytes to skip
- * @return the number of bytes actually skipped, -1 on EOF
- */
- public long skip(long n) throws IOException
- {
- return read(null, 0, (int) n, true);
- }
-
- /**
- * Reads the specified number of bytes starting from the specified offset
- * into the specified buffer from the inner input stream. See the
- * general contract of the read method of <code>InputStream</code>.
- *
- * @param b the byte array to populate
- * @param off the offset in the array to start at
- * @param len the number of bytes to read, -1 on EOF
- */
- public int read(byte[] b, int off, int len) throws IOException
- {
- return read(b, off, len, false);
- }
-
- /**
- * Returns whether the outer stream is closed.
- *
- * @return boolean indicating whether the outer stream is closed
- */
- public boolean isOuterStreamClosed()
- {
- return realEof && leftOvers == null;
- }
-
-
- public void printLeftOvers()
- {
- if (leftOvers != null) System.out.println("LEFT = " + new
String(leftOvers, leftOverPosition, leftOvers.length - leftOverPosition));
- }
-}
\ No newline at end of file
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/BoundaryDelimitedInputStream.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/BoundaryDelimitedInputStream.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/ByteArrayContentHandler.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/ByteArrayContentHandler.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/ByteArrayContentHandler.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,77 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.soap.attachment;
-
-import org.jboss.ws.core.utils.IOUtils;
-import org.jboss.ws.core.utils.MimeUtils;
-
-import javax.activation.ActivationDataFlavor;
-import javax.activation.DataContentHandler;
-import javax.activation.DataSource;
-import javax.activation.DataHandler;
-import java.awt.datatransfer.DataFlavor;
-import java.awt.datatransfer.UnsupportedFlavorException;
-import java.io.ByteArrayInputStream;
-import java.io.IOException;
-import java.io.OutputStream;
-
-/**
- * @author Heiko Braun <heiko.braun(a)jboss.com>
- * @version $Id$
- * @since Jul 31, 2006
- */
-public class ByteArrayContentHandler implements DataContentHandler {
-
- private DataFlavor[] flavors = new ActivationDataFlavor[]
- {
- new ActivationDataFlavor(ByteArrayInputStream.class,
"application/octet-stream", "OCTETS"),
- };
-
- public Object getContent(DataSource dataSource) throws IOException {
- return dataSource.getInputStream();
- }
-
- public Object getTransferData(DataFlavor dataFlavor, DataSource dataSource) throws
UnsupportedFlavorException, IOException {
- return getContent(dataSource);
- }
-
- public DataFlavor[] getTransferDataFlavors() {
- return flavors;
- }
-
- public void writeTo(Object object, String string, OutputStream outputStream) throws
IOException {
-
- if(object instanceof byte[])
- {
- outputStream.write((byte[])object);
- }
- else if(object instanceof DataHandler)
- {
- IOUtils.copyStream(outputStream, ((DataHandler)object).getInputStream());
- }
- else
- {
- MimeUtils.ByteArrayConverter converter =
MimeUtils.getConverterForJavaType(object.getClass());
- converter.writeTo(object, outputStream);
- }
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/ByteArrayContentHandler.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/ByteArrayContentHandler.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/CIDGenerator.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/CIDGenerator.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/CIDGenerator.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,75 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.soap.attachment;
-
-//$Id$
-
-import java.io.UnsupportedEncodingException;
-import java.net.URLEncoder;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.core.utils.UUIDGenerator;
-
-/**
- * A common CID generator
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 17-Jan-2006
- */
-public class CIDGenerator
-{
- // provide logging
- private static Logger log = Logger.getLogger(CIDGenerator.class);
-
- private int count = 0;
-
- public String generateFromCount()
- {
- StringBuilder cid = new StringBuilder();
- long time = System.currentTimeMillis();
-
-
cid.append("cid:").append(count++).append("-").append(time).append("-")
- .append(cid.hashCode()).append("(a)").append(MimeConstants.CID_DOMAIN);
-
- log.debug("generateFromCount: " + cid);
- return cid.toString();
- }
-
- public String generateFromName(String name)
- {
-
- // See
http://www.ietf.org/rfc/rfc2392.txt on rules howto create cid's
- // TODO: URL decode when cid's are received
- try
- {
- name = URLEncoder.encode(name, "UTF-8");
- }
- catch (UnsupportedEncodingException ex)
- {
- log.error("Cannot encode name for cid: " + ex);
- }
-
- String cid = name + "-" + UUIDGenerator.generateRandomUUIDString() +
"@" + MimeConstants.CID_DOMAIN;
- log.debug("generateFromName: " + cid);
- return cid;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/CIDGenerator.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/CIDGenerator.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/ContentHandlerRegistry.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/ContentHandlerRegistry.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/ContentHandlerRegistry.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,99 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.soap.attachment;
-
-import java.awt.datatransfer.DataFlavor;
-import java.util.HashSet;
-import java.util.Iterator;
-
-import javax.activation.CommandMap;
-import javax.activation.DataContentHandler;
-import javax.activation.MailcapCommandMap;
-
-import com.sun.mail.handlers.multipart_mixed;
-import com.sun.mail.handlers.text_html;
-import com.sun.mail.handlers.text_plain;
-
-/**
- * <code>ContentHandlerRegistry</code> is responsible for registering
- * JBossWS data content handlers in JAF.
- *
- * @author <a href="mailto:jason@stacksmash.com">Jason T.
Greene</a>
- */
-public class ContentHandlerRegistry
-{
- private static final String JAF_CONTENT_HANDLER = "x-java-content-handler";
-
- private static HashSet handlerRegistry = new HashSet();
-
- static
- {
- addRegistryEntry(XmlDataContentHandler.class);
- addRegistryEntry(ImageDataContentHandler.class);
- addRegistryEntry(ByteArrayContentHandler.class);
- addRegistryEntry(text_plain.class);
- addRegistryEntry(text_html.class);
- addRegistryEntry(multipart_mixed.class);
- }
-
- private static void addRegistryEntry(Class contentHandler)
- {
- handlerRegistry.add(contentHandler);
- }
-
- private static void registerContentHandler(Class contentHandler)
- {
- DataContentHandler handler;
- MailcapCommandMap mailcap;
-
- try
- {
- mailcap = (MailcapCommandMap) CommandMap.getDefaultCommandMap();
- handler = (DataContentHandler) contentHandler.newInstance();
- }
- catch (Exception e)
- {
- throw new RuntimeException("Can not register content handler:" +
e.getMessage());
- }
-
- DataFlavor[] flavors = handler.getTransferDataFlavors();
- if (flavors == null)
- return;
-
- for (int i = 0; i < flavors.length; i++)
- {
- DataFlavor flavor = flavors[i];
- String entry = flavor.getMimeType() + ";;" + JAF_CONTENT_HANDLER +
"=" + contentHandler.getName();
- mailcap.addMailcap(entry);
- }
- }
-
- /**
- * Loads all JBossWS content handlers.
- */
- public static void register()
- {
- Iterator i = handlerRegistry.iterator();
- while (i.hasNext())
- registerContentHandler((Class) i.next());
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/ContentHandlerRegistry.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/ContentHandlerRegistry.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/ImageDataContentHandler.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/ImageDataContentHandler.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/ImageDataContentHandler.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,203 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.soap.attachment;
-
-import java.awt.Component;
-import java.awt.Graphics2D;
-import java.awt.Image;
-import java.awt.MediaTracker;
-import java.awt.datatransfer.DataFlavor;
-import java.awt.datatransfer.UnsupportedFlavorException;
-import java.awt.image.BufferedImage;
-import java.io.IOException;
-import java.io.OutputStream;
-import java.util.ArrayList;
-import java.util.Iterator;
-
-import javax.activation.ActivationDataFlavor;
-import javax.activation.DataContentHandler;
-import javax.activation.DataSource;
-import javax.imageio.ImageIO;
-import javax.imageio.ImageWriter;
-import javax.imageio.stream.ImageOutputStream;
-
-import org.jboss.logging.Logger;
-
-/**
- * <code>ImageDataContentHandler</code> is a JAF content handler that
handles
- * marshalling/unmarshalling between <code>Image</code> objects and a
stream.
- *
- * This handler provides support for all mime types handled by the ImageIO
- * implementation on the virtual machine that this class is ran under. These
- * are dynamically registered, so any custom ImageIO plugins are discovered and
- * used.
- *
- * It's important to note that some mime types (for example image/gif) may not
- * have encoding support provided by the ImageIO implementation. If this happens
- * an exception will be thrown indicating the lack of encoding support.
- *
- * @author <a href="mailto:jason@stacksmash.com">Jason T.
Greene</a>
- * @author <a href="mailto:mageshbk@jboss.com">Magesh Kumar B</a>
- */
-public class ImageDataContentHandler extends Component implements DataContentHandler
-{
- // provide logging
- private static Logger log = Logger.getLogger(ImageDataContentHandler.class);
-
- private static DataFlavor[] flavors;
-
- static
- {
- buildFlavors();
-
- // Don't write back to disk since the images are in memory anyways
- ImageIO.setUseCache(false);
- }
-
- private static void buildFlavors()
- {
- String[] mimeTypes = ImageIO.getReaderMIMETypes();
- if (mimeTypes == null)
- return;
- ArrayList flavs = new ArrayList ();
- DataFlavor flavor;
- //flavors = new DataFlavor[mimeTypes.length];
- for (int i = 0; i < mimeTypes.length; i++)
- {
- try
- {
- flavor = new ActivationDataFlavor(Image.class, mimeTypes[i],
"Image");
- flavs.add(flavor);
- }
- catch (IllegalArgumentException iae)
- {
- //This mime type is not supported
- log.warn("Unsupported MIME Type '" + mimeTypes[i]
+"'");
- }
- }
- int size = flavs.size();
- flavors = new DataFlavor[size];
- for (int i = 0; i < size; i++)
- {
- flavors[i] = (ActivationDataFlavor)flavs.get(i);
- }
- }
-
- private static ImageWriter getImageWriter(String mimeType) {
- Iterator i = ImageIO.getImageWritersByMIMEType(mimeType);
- if (! i.hasNext())
- return null;
-
- return (ImageWriter) i.next();
- }
-
- private BufferedImage getBufferedImage(Image image) throws IOException
- {
- if (image instanceof BufferedImage)
- return (BufferedImage) image;
-
- try
- {
- BufferedImage buffered;
-
- MediaTracker tracker = new MediaTracker(this);
- tracker.addImage(image, 0);
- tracker.waitForAll();
- buffered = new BufferedImage(image.getHeight(null), image.getWidth(null),
BufferedImage.TYPE_INT_RGB);
- Graphics2D gfx = buffered.createGraphics();
- gfx.drawImage(image, 0, 0, null);
- return buffered;
- }
- catch (InterruptedException e)
- {
- throw new IOException("Could not convert image " + e.getMessage());
- }
- }
-
- /**
- * Returns a {@link Image} from the specified
- * data source.
- *
- * @param ds the activation datasource
- * @return an AWT image object
- */
- public Object getContent(DataSource ds) throws IOException
- {
- return ImageIO.read(ds.getInputStream());
- }
-
- /**
- * Returns a {@link Image}from the specified data source. This method is
- * useless for this content handler because the image format is dynamically
- * discovered.
- *
- * @param df the flavor specifiying the mime type of ds
- * @param ds the activation data source
- * @return an AWT image object
- */
- public Object getTransferData(DataFlavor df, DataSource ds) throws
UnsupportedFlavorException, IOException
- {
- return getContent(ds);
- }
-
- /**
- * Returns the acceptable data flavors that this content handler supports.
- *
- * @return array of <code>ActivationDataHandlers</code>
- */
- public DataFlavor[] getTransferDataFlavors()
- {
- return flavors;
- }
-
- /**
- * Writes the passed in {@link Image} object using the specified
- * mime type to the specified output stream.
- *
- * @param obj an AWT image object
- * @param mimeType the mime type of the image format to use
- * @param os the output stream to write this image to
- */
- public void writeTo(Object obj, String mimeType, OutputStream os) throws IOException
- {
- if (obj == null)
- throw new IOException("Cannot write null source object");
-
- if (!(obj instanceof Image))
- throw new IOException("Requires the source object to be a java.awt.Image
but is: " + obj.getClass().getName());
-
- ImageWriter writer = getImageWriter(mimeType);
- if (writer == null)
- throw new IOException("Image encoding not available for mime type " +
mimeType + " on this vm");
-
- BufferedImage buffered = getBufferedImage((Image) obj);
- ImageOutputStream stream = ImageIO.createImageOutputStream(os);
-
- writer.setOutput(stream);
- writer.write(buffered);
-
- // We must close the stream now because if we are wrapping a ServletOutputStream,
- // a future gc can commit a stream that used in another thread (very very bad)
- stream.flush();
- stream.close();
- }
-}
\ No newline at end of file
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/ImageDataContentHandler.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/ImageDataContentHandler.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MimeConstants.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MimeConstants.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MimeConstants.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,58 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.soap.attachment;
-
-/**
- * Generic mime related constants.
- *
- * @author <a href="mailto:jason@stacksmash.com">Jason T.
Greene</a>
- */
-public class MimeConstants
-{
- // Header constants
- public static final String CONTENT_TYPE = "Content-Type";
- public static final String CONTENT_LOCATION = "Content-Location";
- public static final String CONTENT_ID = "Content-Id";
- public static final String CONTENT_DESCRIPTION = "Content-Description";
- public static final String CONTENT_TRANSFER_ENCODING =
"Content-Transfer-Encoding";
-
- // Types
- public static final String TYPE_APPLICATION_OCTET_STREAM =
"application/octet-stream";
- public static final String TYPE_APPLICATION_XOP_XML =
"application/xop+xml";
- public static final String TYPE_MULTIPART_RELATED = "multipart/related";
- public static final String TYPE_TEXT_XML = "text/xml";
- public static final String TYPE_XML_UTF8 = TYPE_TEXT_XML + ";
charset=UTF-8";
- public static final String TYPE_SOAP11 = TYPE_TEXT_XML;
- public static final String TYPE_SOAP12 = "application/soap+xml";
-
- // Encoding
- public static final String TEXT_8BIT_ENCODING = "8bit";
- public static final String TEXT_7BIT_ENCODING = "7bit";
- public static final String BINARY_ENCODING = "binary";
- public static final String QUOTED_PRINTABLE_ENCODING = "quoted-printable";
- public static final String BASE64_ENCODING = "base64";
-
- // Misc
- public static final String CID_DOMAIN = "ws.jboss.org";
- public static final String ROOTPART_CID = "<rootpart@" + CID_DOMAIN +
">";
- public static final String START_INFO_XOP = "text/xml";
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MimeConstants.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MimeConstants.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedDecoder.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedDecoder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedDecoder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,211 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.soap.attachment;
-
-// $Id$
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.UnsupportedEncodingException;
-import java.util.Collection;
-import java.util.Enumeration;
-import java.util.LinkedList;
-import java.util.List;
-
-import javax.activation.DataHandler;
-import javax.mail.Header;
-import javax.mail.MessagingException;
-import javax.mail.internet.ContentType;
-import javax.mail.internet.InternetHeaders;
-import javax.mail.internet.ParseException;
-import javax.xml.soap.AttachmentPart;
-
-import org.jboss.ws.WSException;
-
-/**
- * Abstract MutilPartRelatedDecoder decodes a mime multipart/related stream.
- *
- * @author <a href="mailto:jason@stacksmash.com">Jason T.
Greene</a>
- * @author Thomas.Diesler(a)jboss.org
- * @since 18-Jan-2006
- */
-public class MultipartRelatedDecoder
-{
- private ContentType contentType;
-
- private String rootType;
-
- private AttachmentPartImpl rootPart;
-
- private LinkedList<AttachmentPart> relatedParts = new
LinkedList<AttachmentPart>();
-
- /**
- * Constructs a <code>MultipartRelatedDecoder</code>. This will block
until the message
- * has been decoded.
- *
- * @param contentType the mime Content-Type header provided by the transport
- * @param stream The stream to pull the multipart message from
- */
- public MultipartRelatedDecoder(ContentType contentType) throws IOException,
MessagingException
- {
- this.contentType = contentType;
- if (!contentType.getBaseType().equals(MimeConstants.TYPE_MULTIPART_RELATED))
- throw new IllegalArgumentException("Multipart related decoder called with a
non-multipart/related type");
-
- rootType = contentType.getParameter("type");
- if (rootType == null)
- throw new IllegalArgumentException("multipart/related type is invalid, it
is missing the root type parameter");
- }
-
- private boolean isValidRootType(String type) throws ParseException
- {
- // The type multipart/related parameter can not have parameters itself
- ContentType contentType = new ContentType(type);
- type = contentType.getBaseType();
-
- return rootType.equals(type);
- }
-
- public void decodeMultipartRelatedMessage(InputStream stream) throws IOException,
MessagingException
- {
- String boundaryParameter = contentType.getParameter("boundary");
- String start = contentType.getParameter("start");
- byte[] boundary;
-
- if (boundaryParameter == null)
- throw new IllegalArgumentException("multipart/related content type did not
contain a boundary");
-
- try
- {
- boundary = ("\r\n--" +
boundaryParameter).getBytes("US-ASCII");
- }
- catch (UnsupportedEncodingException e)
- {
- throw new WSException("US-ASCII not supported, this should never
happen");
- }
-
- BoundaryDelimitedInputStream delimitedStream = new
BoundaryDelimitedInputStream(stream, boundary);
-
- // Eat first inner stream since its empty
- byte[] buffer = new byte[256];
- while (delimitedStream.read(buffer) != -1)
- {
- }
-
- while (!delimitedStream.isOuterStreamClosed())
- {
- // If the stream is empty or an end marker is reached, skip to the next
- // one
- if (!advanceToHeaders(delimitedStream))
- continue;
-
- InternetHeaders headers = new InternetHeaders(delimitedStream);
- String typeHeader[] = headers.getHeader(MimeConstants.CONTENT_TYPE);
-
- if (typeHeader == null)
- throw new IllegalArgumentException("multipart/related stream invalid,
component Content-type missing.");
-
- SwapableMemoryDataSource source = new SwapableMemoryDataSource(delimitedStream,
typeHeader[0]);
- AttachmentPartImpl part = new AttachmentPartImpl(new DataHandler(source));
-
- Enumeration enumeration = headers.getAllHeaders();
-
- while (enumeration.hasMoreElements())
- {
- Header header = (Header)enumeration.nextElement();
- part.addMimeHeader(header.getName(), header.getValue());
- }
-
- // The root part is either the one pointed to by the start parameter, or
- // the first occuring part if start is not defined.
- if (rootPart == null && (start == null ||
start.equals(part.getContentId())))
- {
- if (isValidRootType(part.getContentType()) == false)
- throw new IllegalArgumentException("multipart/related type specified
a root type other than the one" + " that was found.");
-
- rootPart = part;
- }
- else
- {
- relatedParts.add(part);
- }
- }
- if (rootPart == null)
- throw new IllegalArgumentException("multipart/related stream invalid, no
root part was found");
- }
-
- private boolean advanceToHeaders(InputStream stream) throws IOException
- {
- boolean dash = false, cr = false;
- while (true)
- {
- int b = stream.read();
-
- switch (b)
- {
- case -1:
- return false;
- case '\r':
- cr = true;
- dash = false;
- break;
- case '-':
- if (dash == true)
- {
- // Two dashes indicate no further content
- stream.close();
- return false;
- }
- dash = true;
- cr = false;
- break;
- case '\n':
- if (cr == true)
- return true;
- dash = false;
- break;
- default:
- dash = false;
- cr = false;
- }
- }
- }
-
- /**
- * Returns an <code>AttachmentPart</code> representing the root part of
this multipart/related message.
- *
- * @return the root part of this multipart/related message
- */
- public AttachmentPart getRootPart()
- {
- return rootPart;
- }
-
- /**
- * Returns a collection of <code>AttachmentPart</code> objects that
represent the attachments on this message.
- * If there are no attachments, an empty collection is returned.
- */
- public Collection<AttachmentPart> getRelatedParts()
- {
- return relatedParts;
- }
-}
\ No newline at end of file
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedDecoder.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedDecoder.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedEncoder.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedEncoder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedEncoder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,132 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.soap.attachment;
-
-//$Id$
-
-import java.io.IOException;
-import java.io.OutputStream;
-import java.util.Iterator;
-
-import javax.activation.DataHandler;
-import javax.mail.MessagingException;
-import javax.mail.internet.MimeBodyPart;
-import javax.mail.internet.MimeMultipart;
-import javax.xml.soap.AttachmentPart;
-import javax.xml.soap.MimeHeader;
-import javax.xml.soap.SOAPException;
-
-import org.jboss.ws.core.soap.SOAPMessageImpl;
-
-/**
- * MultipartRelatedEncoder encodes a SOAPMessage
- * into a multipart/related stream.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 17-Jan-2006
- */
-public abstract class MultipartRelatedEncoder
-{
- protected SOAPMessageImpl soapMessage;
- protected MimeMultipart multipart;
-
- public MultipartRelatedEncoder(SOAPMessageImpl soapMessage) throws SOAPException
- {
- this.soapMessage = soapMessage;
- }
-
- /** Build the multipart message */
- public abstract void encodeMultipartRelatedMessage() throws SOAPException,
MessagingException;
-
- protected void addAttachmentParts(MimeMultipart multipart) throws SOAPException,
MessagingException
- {
- Iterator attachmentParts = soapMessage.getAttachments();
- while (attachmentParts.hasNext())
- {
- AttachmentPart attachmentPart = (AttachmentPart)attachmentParts.next();
- DataHandler handler = attachmentPart.getDataHandler();
- MimeBodyPart mimePart = new MimeBodyPart();
- mimePart.setDataHandler(handler);
-
- Iterator mimeHeaders = attachmentPart.getAllMimeHeaders();
- while (mimeHeaders.hasNext())
- {
- MimeHeader soapHeader = (MimeHeader)mimeHeaders.next();
- mimePart.addHeader(soapHeader.getName(), soapHeader.getValue());
- }
-
- if (mimePart.getHeader(MimeConstants.CONTENT_TYPE) == null)
- {
- String type = handler.getContentType();
- mimePart.setHeader(MimeConstants.CONTENT_TYPE, (type != null) ? type :
MimeConstants.TYPE_APPLICATION_OCTET_STREAM);
- }
-
- if (mimePart.getHeader(MimeConstants.CONTENT_ID) == null)
- {
- CIDGenerator cidGenerator = soapMessage.getCidGenerator();
- mimePart.setHeader(MimeConstants.CONTENT_ID,
cidGenerator.generateFromCount());
- }
-
- // TODO - Binary encoding is the most efficient, however, some transports (old
mail servers)
- // require 7 bit ascii. Can we ask the remoting layer about the transport's
binary safety?
- mimePart.setHeader(MimeConstants.CONTENT_TRANSFER_ENCODING,
MimeConstants.BINARY_ENCODING);
-
- multipart.addBodyPart(mimePart);
- }
- }
-
- /**
- * Returns the new content type of this encoder. This value must be specified
- * in the mime Content-type header in what ever way that the transport
- * requires it.
- *
- * @return the content type
- */
- public String getContentType()
- {
- String contentType = multipart.getContentType();
- return contentType;
- }
-
- /**
- * Writes this message to the specified output stream.
- *
- * @param os the stream to write this message
- */
- public void writeTo(OutputStream os) throws IOException
- {
- if (multipart == null)
- throw new IOException("No data to write because encoding failed on
construction");
-
- try
- {
- // Ensure that the first boundary is always proceeded by CRLF
- os.write(13);
- os.write(10);
- multipart.writeTo(os);
- }
- catch (MessagingException e)
- {
- throw new IOException(e.getMessage());
- }
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedEncoder.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedEncoder.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedSwAEncoder.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedSwAEncoder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedSwAEncoder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,86 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.soap.attachment;
-
-import java.io.OutputStream;
-
-import javax.mail.MessagingException;
-import javax.mail.internet.MimeBodyPart;
-import javax.mail.internet.MimeMultipart;
-import javax.mail.internet.ParameterList;
-import javax.xml.soap.SOAPEnvelope;
-import javax.xml.soap.SOAPException;
-
-import org.jboss.ws.core.soap.SOAPElementImpl;
-import org.jboss.ws.core.soap.SOAPElementWriter;
-import org.jboss.ws.core.soap.SOAPMessageImpl;
-
-/**
- * MultipartRelatedEncoder encodes a SOAPMessage
- * into a multipart/related stream.
- *
- * @author <a href="mailto:jason@stacksmash.com">Jason T.
Greene</a>
- */
-public class MultipartRelatedSwAEncoder extends MultipartRelatedEncoder
-{
- /**
- * Construct a MultipartRelatedEncoder from the specified
<code>SOAPMessage</code>.
- * There is minimal overhead on construction because all source streams are read
- * only on a call to {@link #writeTo(OutputStream)}.
- *
- * @param soapMessage the SOAP message to be sent as a root part
- */
- public MultipartRelatedSwAEncoder(SOAPMessageImpl soapMessage) throws SOAPException
- {
- super(soapMessage);
- }
-
- public void encodeMultipartRelatedMessage() throws SOAPException, MessagingException
- {
- ParameterList p = new ParameterList();
- p.set("type", MimeConstants.TYPE_TEXT_XML);
- p.set("start", MimeConstants.ROOTPART_CID);
-
- MimeMultipart multipart = new MimeMultipart("related" + p);
- MimeBodyPart rootPart = new MimeBodyPart();
-
- /*
- * TODO - For now we build the root part content from a serialized string of the
- * DOM tree, in the future, this should utilize a DataHandler, and a
DataContentHandler
- * to marshall the message. In this way the root part can be lazily written to the
output
- * stream.
- */
- SOAPEnvelope soapEnv = soapMessage.getSOAPPart().getEnvelope();
- String envStr = SOAPElementWriter.writeElement((SOAPElementImpl)soapEnv, false);
- rootPart.setText(envStr, "UTF-8");
-
- rootPart.setContentID(MimeConstants.ROOTPART_CID);
- rootPart.setHeader(MimeConstants.CONTENT_TYPE, MimeConstants.TYPE_XML_UTF8);
- rootPart.setHeader(MimeConstants.CONTENT_TRANSFER_ENCODING,
MimeConstants.TEXT_8BIT_ENCODING);
-
- multipart.addBodyPart(rootPart);
-
- addAttachmentParts(multipart);
-
- this.multipart = multipart;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedSwAEncoder.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedSwAEncoder.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedXOPEncoder.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedXOPEncoder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedXOPEncoder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,88 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.soap.attachment;
-
-import java.io.OutputStream;
-
-import javax.mail.MessagingException;
-import javax.mail.internet.MimeBodyPart;
-import javax.mail.internet.MimeMultipart;
-import javax.mail.internet.ParameterList;
-import javax.xml.soap.SOAPEnvelope;
-import javax.xml.soap.SOAPException;
-
-import org.jboss.ws.core.soap.SOAPElementImpl;
-import org.jboss.ws.core.soap.SOAPElementWriter;
-import org.jboss.ws.core.soap.SOAPMessageImpl;
-
-/**
- * <code>MultipartRelatedEncoder</code> encodes a
<code>SOAPMessage</code>
- * into a multipart/related stream.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 17-Jan-2006
- */
-public class MultipartRelatedXOPEncoder extends MultipartRelatedEncoder
-{
- /**
- * Construct a MultipartRelatedEncoder from the specified
<code>SOAPMessage</code>.
- * There is minimal overhead on construction because all source streams are read
- * only on a call to {@link #writeTo(OutputStream)}.
- *
- * @param soapMessage the SOAP message to be sent as a root part
- */
- public MultipartRelatedXOPEncoder(SOAPMessageImpl soapMessage) throws SOAPException
- {
- super(soapMessage);
- }
-
- public void encodeMultipartRelatedMessage() throws SOAPException, MessagingException
- {
- ParameterList p = new ParameterList();
- p.set("type", MimeConstants.TYPE_APPLICATION_XOP_XML);
- p.set("start", MimeConstants.ROOTPART_CID);
- p.set("start-info", MimeConstants.START_INFO_XOP);
-
- MimeMultipart multipart = new MimeMultipart("related" + p);
- MimeBodyPart rootPart = new MimeBodyPart();
-
- /*
- * TODO - For now we build the root part content from a serialized string of the
- * DOM tree, in the future, this should utilize a DataHandler, and a
DataContentHandler
- * to marshall the message. In this way the root part can be lazily written to the
output
- * stream.
- */
- SOAPEnvelope soapEnv = soapMessage.getSOAPPart().getEnvelope();
- String envStr = SOAPElementWriter.writeElement((SOAPElementImpl)soapEnv, false);
- rootPart.setText(envStr, "UTF-8");
-
- rootPart.setContentID(MimeConstants.ROOTPART_CID);
- rootPart.setHeader(MimeConstants.CONTENT_TYPE,
MimeConstants.TYPE_APPLICATION_XOP_XML + "; type=\"text/xml\"");
- rootPart.setHeader(MimeConstants.CONTENT_TRANSFER_ENCODING,
MimeConstants.TEXT_8BIT_ENCODING);
-
- multipart.addBodyPart(rootPart);
-
- addAttachmentParts(multipart);
-
- this.multipart = multipart;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedXOPEncoder.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedXOPEncoder.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/RawByteArrayOutputStream.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/RawByteArrayOutputStream.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/RawByteArrayOutputStream.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,37 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.soap.attachment;
-
-import java.io.ByteArrayOutputStream;
-
-/**
- * Extension of ByteArrayOutputStream that provides access to buf, saving a copy.
- *
- * @author <a href="mailto:jason@stacksmash.com">Jason T.
Greene</a>
- */
-public class RawByteArrayOutputStream extends ByteArrayOutputStream
-{
- public byte[] getBytes()
- {
- return buf;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/RawByteArrayOutputStream.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/RawByteArrayOutputStream.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/SimpleBoyerMoore.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/SimpleBoyerMoore.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/SimpleBoyerMoore.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,102 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.soap.attachment;
-
-/**
- * <code>SimpleBoyerMoore</code> is an implementation of the simplified
- * version of the Boyer-Moore pattern search algorithm. This just means that the
- * "good match" portion of the algorithm is removed, which improves the
- * performance of non repeating patterns with the obvious side-effect of
- * reducing repeating pattern performance (e.g. gaggaggaaaggaggaagagaggaga).
- *
- * This version of the algorithm performs incredibly well if the pattern is
- * rare, for example a MIME boundary.
- *
- * This algorithm is binary safe.
- *
- * @author <a href="mailto:jason@stacksmash.com">Jason T.
Greene</a>
- */
-public class SimpleBoyerMoore
-{
- private int[] badMatch = new int[256];
-
- private byte[] pattern;
-
- public static final int PATTERN_NOT_FOUND = -1;
-
- /**
- * Constructs a <code>SimpleBoyerMoore</code> instance. This internally
- * stores the pattern so that the same instance can be used across several
- * searches.
- *
- * @param pattern the pattern to search for
- */
- public SimpleBoyerMoore(byte[] pattern)
- {
- this.pattern = pattern;
- precomputeBadMatchTable();
- }
-
- private void precomputeBadMatchTable()
- {
- java.util.Arrays.fill(badMatch, pattern.length);
- for (int i = 0; i < pattern.length - 1; i++)
- {
- badMatch[pattern[i] & 0xff] = pattern.length - i - 1;
- }
- }
-
- /**
- * Find an occurence of the search pattern within text.
- *
- * @param text a byte array of data to seach
- * @param offset the index in text to start searching from
- * @param length the maximum number of bytes to search
- *
- * @return if a match is found, the index of text where the patter occurs,
- * otherwise {@link #PATTERN_NOT_FOUND}
- */
- public int patternSearch(byte[] text, int offset, int length)
- {
- if (pattern.length > length)
- {
- return PATTERN_NOT_FOUND;
- }
-
- int i = 0, j = 0, k = 0;
- int end = offset + length;
-
- for (i = offset + pattern.length - 1; i < end; i += badMatch[text[i] &
0xff])
- {
- for (j = pattern.length - 1, k = i; (j >= 0) && (text[k] ==
pattern[j]); j--)
- {
- k--;
- }
- if (j == -1)
- {
- return k + 1;
- }
- }
-
- return PATTERN_NOT_FOUND;
- }
-}
\ No newline at end of file
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/SimpleBoyerMoore.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/SimpleBoyerMoore.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/SwapableMemoryDataSource.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/SwapableMemoryDataSource.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/SwapableMemoryDataSource.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,208 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.soap.attachment;
-
-import java.io.ByteArrayInputStream;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-
-import javax.activation.DataSource;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.server.ServerConfig;
-import org.jboss.ws.core.server.ServerConfigFactory;
-
-/**
- * A datasource which offloads large attachments to disk.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @author <a href="mailto:jason@stacksmash.com">Jason T.
Greene</a>
- */
-public class SwapableMemoryDataSource implements DataSource
-{
- private static Logger log = Logger.getLogger(SwapableMemoryDataSource.class);
-
- private static final int BLOCK_SIZE = 32 * 1024;
-
- private static final int DEFAULT_MAX_MEMORY_SIZE = 64 * 1024;
-
- private static final String SWAP_PREFIX = "JBossWSsattachment";
-
- private static final String SWAP_SUFFIX = ".dat";
-
- private File swapFile;
-
- private String contentType = MimeConstants.TYPE_APPLICATION_OCTET_STREAM;
-
- private byte[] content;
-
- private int contentLength;
-
- private int maxMemorySize = 64 * 1024;
-
-
- /**
- * Constructs a <code>SwapableMemoryDataSource</code> from inputStream,
and contentType.
- * The instance then reads from the input stream, and stores it in memory unless the
size
- * of the content is larger that 64KB, at whichpoint the stream is stored in a
temporary
- * file on disk.
- *
- * @param inputStream the stream to read from
- * @param contentType the content type of this stream
- */
- public SwapableMemoryDataSource(InputStream inputStream, String contentType) throws
IOException
- {
- this(inputStream, contentType, DEFAULT_MAX_MEMORY_SIZE);
- }
-
- /**
- * Constructs a <code>SwapableMemoryDataSource</code> from inputStream,
and
- * contentType. The instance then reads from the input stream, and stores it
- * in memory unless the size of the content is larger than maxMemorySize, at
- * whichpoint the stream is stored in a temporary file on disk.
- *
- * @param inputStream the stream to read from
- * @param contentType the content type of this stream
- * @param maxMemorySize the maximum size in bytes that this data source is
- * allowed to allocate for stream storage
- */
- public SwapableMemoryDataSource(InputStream inputStream, String contentType, int
maxMemorySize) throws IOException
- {
- if (contentType != null)
- this.contentType = contentType;
-
- this.maxMemorySize = maxMemorySize;
-
- load(inputStream);
- }
-
- private void load(InputStream inputStream) throws IOException
- {
- RawByteArrayOutputStream rbaos = new RawByteArrayOutputStream();
- OutputStream os = rbaos;
-
- byte[] buffer = new byte[BLOCK_SIZE];
- int count = inputStream.read(buffer);
- while (count > 0) {
- os.write(buffer, 0, count);
-
- if (rbaos != null && rbaos.size() > maxMemorySize)
- {
- File tmpdir = null;
- try
- {
- ServerConfigFactory factory = ServerConfigFactory.getInstance();
- ServerConfig config = factory.getServerConfig();
- tmpdir = new File(config.getServerTempDir().getCanonicalPath() +
"/jbossws");
- tmpdir.mkdirs();
- }
- catch (Throwable e)
- {
- // Ignore if the server config cannot be found
- // this would be the case if we are on the client side
- }
-
- swapFile = File.createTempFile(SWAP_PREFIX, SWAP_SUFFIX, tmpdir);
- swapFile.deleteOnExit();
- os = new FileOutputStream(swapFile);
- rbaos.writeTo(os);
- rbaos = null;
- }
-
- count = inputStream.read(buffer);
- }
-
- os.flush();
- os.close();
-
- if (rbaos == null)
- {
- log.debug("Using swap file, location = " + swapFile.toURL() + "
size = " + swapFile.length());
- }
- else
- {
- contentLength = rbaos.size();
- log.debug("Using memory buffer, size = " + contentLength);
- content = rbaos.getBytes();
- }
- }
-
- protected void finalize() throws Throwable
- {
- super.finalize();
-
- if (swapFile != null)
- swapFile.delete();
- }
-
- /**
- * Returns the content type of this data source.
- *
- * @return the content type
- */
- public String getContentType()
- {
- return contentType;
- }
-
- /**
- * Returns a new input stream on this data source. Multiple calls
- * are allowed because the data is stored.
- *
- * @return a new input stream at the start of the data
- */
- public InputStream getInputStream() throws IOException
- {
- if (content != null)
- return new ByteArrayInputStream(content, 0, contentLength);
-
- if (swapFile != null)
- return new FileInputStream(swapFile);
-
- throw new WSException("No content available");
- }
-
- /**
- * This method always returns null.
- *
- * @return null
- */
- public String getName()
- {
- return null;
- }
-
- /**
- * This method always returns null.
- *
- * @return null
- */
- public OutputStream getOutputStream() throws IOException
- {
- return null;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/SwapableMemoryDataSource.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/SwapableMemoryDataSource.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/XmlDataContentHandler.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/XmlDataContentHandler.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/XmlDataContentHandler.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,110 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.soap.attachment;
-
-import java.awt.datatransfer.DataFlavor;
-import java.awt.datatransfer.UnsupportedFlavorException;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-
-import javax.activation.ActivationDataFlavor;
-import javax.activation.DataContentHandler;
-import javax.activation.DataSource;
-import javax.xml.transform.stream.StreamSource;
-
-import org.jboss.ws.core.utils.IOUtils;
-
-/**
- * <code>XmlDataContentHandler</code> is a JAF content handler that provides
- * marchalling/unmarshalling between a <code>StreamSource</code> and a
generic
- * stream.
- *
- * @author <a href="mailto:jason@stacksmash.com">Jason T.
Greene</a>
- */
-public class XmlDataContentHandler implements DataContentHandler
-{
- private DataFlavor[] flavors = new ActivationDataFlavor[]
- {
- new ActivationDataFlavor(StreamSource.class, "text/xml",
"XML"),
- new ActivationDataFlavor(StreamSource.class, "application/xml",
"XML")
- };
-
- /**
- * Returns a {@link StreamSource} from the specified
- * data source.
- *
- * @param ds the activation datasource
- * @return an XML stream source
- */
- public Object getContent(DataSource ds) throws IOException
- {
- return new StreamSource(ds.getInputStream());
- }
-
- /**
- * Returns a {@link StreamSource} from the specified
- * data source. The flavor must be one of the ones returned by {@link
#getTransferDataFlavors()}.
- *
- * @param df the flavor specifiying the mime type of ds
- * @param ds the activation data source
- * @return an XML stream source
- */
- public Object getTransferData(DataFlavor df, DataSource ds) throws
UnsupportedFlavorException, IOException
- {
- return getContent(ds);
- }
-
- /**
- * Returns the acceptable data flavors that this content handler supports.
- *
- * @return array of <code>ActivationDataHandlers</code>
- */
- public DataFlavor[] getTransferDataFlavors()
- {
- return flavors;
- }
-
- /**
- * Writes the passed in {@link StreamSource} object using the specified
- * mime type to the specified output stream. The mime type must be text/xml.
- *
- * @param obj an XML stream source
- * @param mimeType the string "text/xml"
- * @param os the output stream to write this xml stream to
- */
- public void writeTo(Object obj, String mimeType, OutputStream os) throws IOException
- {
- if (! mimeType.startsWith(MimeConstants.TYPE_TEXT_XML) && !
mimeType.startsWith("application/xml"))
- throw new IOException("Expected text/xml or application/xml, got " +
mimeType);
-
- if (! (obj instanceof StreamSource))
- throw new IOException("XML Content handler only supports a StreamSource
content object");
-
- // TODO - add support for reader source
- InputStream stream = ((StreamSource) obj).getInputStream();
- if (stream == null)
- throw new IOException("XML Content handler requires an input stream based
StreamSource");
-
- IOUtils.copyStream(os, stream);
- }
-}
\ No newline at end of file
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/XmlDataContentHandler.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/soap/attachment/XmlDataContentHandler.java)
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils (from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/utils)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/DOMUtils.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/DOMUtils.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/DOMUtils.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,506 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.utils;
-
-// $Id$
-
-import java.io.ByteArrayInputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.Map;
-
-import javax.xml.namespace.QName;
-import javax.xml.parsers.DocumentBuilder;
-import javax.xml.parsers.DocumentBuilderFactory;
-import javax.xml.parsers.ParserConfigurationException;
-
-import org.jboss.logging.Logger;
-import org.jboss.util.xml.JBossEntityResolver;
-import org.w3c.dom.Attr;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-import org.w3c.dom.NamedNodeMap;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
-import org.w3c.dom.Text;
-import org.xml.sax.InputSource;
-import org.xml.sax.SAXException;
-
-/**
- * DOM2 utilites
- *
- * @author Thomas.Diesler(a)jboss.org
- * @version $Revision$
- */
-public final class DOMUtils
-{
- private static Logger log = Logger.getLogger(DOMUtils.class);
-
- // All elements created by the same thread are created by the same builder and belong
to the same doc
- private static ThreadLocal documentThreadLocal = new ThreadLocal();
- private static ThreadLocal builderThreadLocal = new ThreadLocal() {
- protected Object initialValue() {
- try
- {
- DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
- factory.setValidating(false);
- factory.setNamespaceAware(true);
- DocumentBuilder builder = factory.newDocumentBuilder();
- builder.setEntityResolver(new JBossEntityResolver());
- return builder;
- }
- catch (ParserConfigurationException e)
- {
- throw new RuntimeException("Failed to create DocumentBuilder",
e);
- }
- }
- };
-
- // Hide the constructor
- private DOMUtils()
- {
- }
-
- /** Initialise the the DocumentBuilder
- */
- public static DocumentBuilder getDocumentBuilder()
- {
- DocumentBuilder builder = (DocumentBuilder)builderThreadLocal.get();
- return builder;
- }
-
- /** Parse the given XML string and return the root Element
- */
- public static Element parse(String xmlString) throws IOException
- {
- try
- {
- return parse(new
ByteArrayInputStream(xmlString.getBytes("UTF-8")));
- }
- catch (IOException e)
- {
- log.error("Cannot parse: " + xmlString);
- throw e;
- }
- }
-
- /** Parse the given XML stream and return the root Element
- */
- public static Element parse(InputStream xmlStream) throws IOException
- {
- try
- {
- Document doc = getDocumentBuilder().parse(xmlStream);
- Element root = doc.getDocumentElement();
- return root;
- }
- catch (SAXException e)
- {
- throw new IOException(e.toString());
- }
- }
-
- /** Parse the given input source and return the root Element
- */
- public static Element parse(InputSource source) throws IOException
- {
- try
- {
- Document doc = getDocumentBuilder().parse(source);
- Element root = doc.getDocumentElement();
- return root;
- }
- catch (SAXException e)
- {
- throw new IOException(e.toString());
- }
- }
-
- /** Create an Element for a given name
- */
- public static Element createElement(String localPart)
- {
- Document doc = getOwnerDocument();
- log.trace("createElement {}" + localPart);
- return doc.createElement(localPart);
- }
-
- /** Create an Element for a given name and prefix
- */
- public static Element createElement(String localPart, String prefix)
- {
- Document doc = getOwnerDocument();
- log.trace("createElement {}" + prefix + ":" + localPart);
- return doc.createElement(prefix + ":" + localPart);
- }
-
- /** Create an Element for a given name, prefix and uri
- */
- public static Element createElement(String localPart, String prefix, String uri)
- {
- Document doc = getOwnerDocument();
- if (prefix == null || prefix.length() == 0)
- {
- log.trace("createElement {" + uri + "}" + localPart);
- return doc.createElementNS(uri, localPart);
- }
- else
- {
- log.trace("createElement {" + uri + "}" + prefix +
":" + localPart);
- return doc.createElementNS(uri, prefix + ":" + localPart);
- }
- }
-
- /** Create an Element for a given QName
- */
- public static Element createElement(QName qname)
- {
- return createElement(qname.getLocalPart(), qname.getPrefix(),
qname.getNamespaceURI());
- }
-
- /** Create a org.w3c.dom.Text node
- */
- public static Text createTextNode(String value)
- {
- Document doc = getOwnerDocument();
- return doc.createTextNode(value);
- }
-
- /** Get the qname of the given node.
- */
- public static QName getElementQName(Element el)
- {
- String qualifiedName = el.getNodeName();
- return resolveQName(el, qualifiedName);
- }
-
- /** Transform the giveen qualified name into a QName
- */
- public static QName resolveQName(Element el, String qualifiedName)
- {
- QName qname;
- String prefix = "";
- String namespaceURI = "";
- String localPart = qualifiedName;
-
- int colIndex = qualifiedName.indexOf(":");
- if (colIndex > 0)
- {
- prefix = qualifiedName.substring(0, colIndex);
- localPart = qualifiedName.substring(colIndex + 1);
-
- if ("xmlns".equals(prefix))
- {
- namespaceURI = "URI:XML_PREDEFINED_NAMESPACE";
- }
- else
- {
- Element nsElement = el;
- while (namespaceURI.equals("") && nsElement != null)
- {
- namespaceURI = nsElement.getAttribute("xmlns:" + prefix);
- if (namespaceURI.equals(""))
- nsElement = getParentElement(nsElement);
- }
- }
-
- if (namespaceURI.equals(""))
- throw new IllegalArgumentException("Cannot find namespace uri for:
" + qualifiedName);
- }
-
- qname = new QName(namespaceURI, localPart, prefix);
- return qname;
- }
-
- /** Get the value from the given attribute
- *
- * @return null if the attribute value is empty or the attribute is not present
- */
- public static String getAttributeValue(Element el, String attrName)
- {
- return getAttributeValue(el, new QName(attrName));
- }
-
- /** Get the value from the given attribute
- *
- * @return null if the attribute value is empty or the attribute is not present
- */
- public static String getAttributeValue(Element el, QName attrName)
- {
- String attr = null;
- if ("".equals(attrName.getNamespaceURI()))
- attr = el.getAttribute(attrName.getLocalPart());
- else attr = el.getAttributeNS(attrName.getNamespaceURI(),
attrName.getLocalPart());
-
- if ("".equals(attr))
- attr = null;
-
- return attr;
- }
-
- /** Get the qname value from the given attribute
- */
- public static QName getAttributeValueAsQName(Element el, String attrName)
- {
- return getAttributeValueAsQName(el, new QName(attrName));
-
- }
-
- /** Get the qname value from the given attribute
- */
- public static QName getAttributeValueAsQName(Element el, QName attrName)
- {
- QName qname = null;
-
- String qualifiedName = getAttributeValue(el, attrName);
- if (qualifiedName != null)
- {
- qname = resolveQName(el, qualifiedName);
- }
-
- return qname;
- }
-
- /** Get the boolean value from the given attribute
- */
- public static boolean getAttributeValueAsBoolean(Element el, String attrName)
- {
- return getAttributeValueAsBoolean(el, new QName(attrName));
- }
-
- /** Get the boolean value from the given attribute
- */
- public static boolean getAttributeValueAsBoolean(Element el, QName attrName)
- {
- String attrVal = getAttributeValue(el, attrName);
- boolean ret = "true".equalsIgnoreCase(attrVal) ||
"1".equalsIgnoreCase(attrVal);
- return ret;
- }
-
- /** Get the integer value from the given attribute
- */
- public static Integer getAttributeValueAsInteger(Element el, String attrName)
- {
- return getAttributeValueAsInteger(el, new QName(attrName));
- }
-
- /** Get the integer value from the given attribute
- */
- public static Integer getAttributeValueAsInteger(Element el, QName attrName)
- {
- String attrVal = getAttributeValue(el, attrName);
- return (attrVal != null ? new Integer(attrVal) : null);
- }
-
- /** Get the attributes as Map<QName, String>
- */
- public static Map getAttributes(Element el)
- {
- Map attmap = new HashMap();
- NamedNodeMap attribs = el.getAttributes();
- for (int i = 0; i < attribs.getLength(); i++)
- {
- Attr attr = (Attr)attribs.item(i);
- String name = attr.getName();
- QName qname = resolveQName(el, name);
- String value = attr.getNodeValue();
- attmap.put(qname, value);
- }
- return attmap;
- }
-
- /** Copy attributes between elements
- */
- public static void copyAttributes(Element destElement, Element srcElement)
- {
- NamedNodeMap attribs = srcElement.getAttributes();
- for (int i = 0; i < attribs.getLength(); i++)
- {
- Attr attr = (Attr)attribs.item(i);
- String uri = attr.getNamespaceURI();
- String qname = attr.getName();
- String value = attr.getNodeValue();
-
- // Prevent DOMException: NAMESPACE_ERR: An attempt is made to create or
- // change an object in a way which is incorrect with regard to namespaces.
- if (uri == null && qname.startsWith("xmlns"))
- {
- log.trace("Ignore attribute: [uri=" + uri + ",qname="
+ qname + ",value=" + value + "]");
- }
- else
- {
- destElement.setAttributeNS(uri, qname, value);
- }
- }
- }
-
- /** True if the node has child elements
- */
- public static boolean hasChildElements(Node node)
- {
- NodeList nlist = node.getChildNodes();
- for (int i = 0; i < nlist.getLength(); i++)
- {
- Node child = nlist.item(i);
- if (child.getNodeType() == Node.ELEMENT_NODE)
- return true;
- }
- return false;
- }
-
- /** Gets child elements
- */
- public static Iterator getChildElements(Node node)
- {
- ArrayList list = new ArrayList();
- NodeList nlist = node.getChildNodes();
- for (int i = 0; i < nlist.getLength(); i++)
- {
- Node child = nlist.item(i);
- if (child.getNodeType() == Node.ELEMENT_NODE)
- list.add(child);
- }
- return list.iterator();
- }
-
- /** Get the concatenated text content, or null.
- */
- public static String getTextContent(Node node)
- {
- boolean hasTextContent = false;
- StringBuffer buffer = new StringBuffer();
- NodeList nlist = node.getChildNodes();
- for (int i = 0; i < nlist.getLength(); i++)
- {
- Node child = nlist.item(i);
- if (child.getNodeType() == Node.TEXT_NODE)
- {
- buffer.append(child.getNodeValue());
- hasTextContent = true;
- }
- }
- return (hasTextContent ? buffer.toString() : null);
- }
-
- /** Gets the first child element
- */
- public static Element getFirstChildElement(Node node)
- {
- return getFirstChildElementIntern(node, null);
- }
-
- /** Gets the first child element for a given local name without namespace
- */
- public static Element getFirstChildElement(Node node, String nodeName)
- {
- return getFirstChildElementIntern(node, new QName(nodeName));
- }
-
- /** Gets the first child element for a given qname
- */
- public static Element getFirstChildElement(Node node, QName nodeName)
- {
- return getFirstChildElementIntern(node, nodeName);
- }
-
- private static Element getFirstChildElementIntern(Node node, QName nodeName)
- {
- Element childElement = null;
- Iterator it = getChildElementsIntern(node, nodeName);
- if (it.hasNext())
- {
- childElement = (Element)it.next();
- }
- return childElement;
- }
-
- /** Gets the child elements for a given local name without namespace
- */
- public static Iterator getChildElements(Node node, String nodeName)
- {
- return getChildElementsIntern(node, new QName(nodeName));
- }
-
- /** Gets the child element for a given qname
- */
- public static Iterator getChildElements(Node node, QName nodeName)
- {
- return getChildElementsIntern(node, nodeName);
- }
-
- private static Iterator getChildElementsIntern(Node node, QName nodeName)
- {
- ArrayList list = new ArrayList();
- NodeList nlist = node.getChildNodes();
- for (int i = 0; i < nlist.getLength(); i++)
- {
- Node child = nlist.item(i);
- if (child.getNodeType() == Node.ELEMENT_NODE)
- {
- if (nodeName == null)
- {
- list.add(child);
- }
- else
- {
- QName qname;
- if (nodeName.getNamespaceURI().length() > 0)
- {
- qname = new QName(child.getNamespaceURI(),
child.getLocalName());
- }
- else
- {
- qname = new QName(child.getLocalName());
- }
- if (qname.equals(nodeName))
- {
- list.add(child);
- }
- }
- }
- }
- return list.iterator();
- }
-
- /** Gets parent element or null if there is none
- */
- public static Element getParentElement(Node node)
- {
- Node parent = node.getParentNode();
- return (parent instanceof Element ? (Element)parent : null);
- }
-
- /** Get the owner document that is associated with the current thread */
- public static Document getOwnerDocument()
- {
- Document doc = (Document)documentThreadLocal.get();
- if (doc == null)
- {
- doc = getDocumentBuilder().newDocument();
- documentThreadLocal.set(doc);
- }
- return doc;
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/DOMUtils.java (from rev
1605, branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/DOMUtils.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/DOMWriter.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/DOMWriter.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/DOMWriter.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,587 +0,0 @@
-/*
- * ====================================================================
- *
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 1999 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * 3. The end-user documentation included with the redistribution, if
- * any, must include the following acknowlegement:
- * "This product includes software developed by the
- * Apache Software Foundation (
http://www.apache.org/)."
- * Alternately, this acknowlegement may appear in the software itself,
- * if and wherever such third-party acknowlegements normally appear.
- *
- * 4. The names "The Jakarta Project", "Tomcat", and "Apache
Software
- * Foundation" must not be used to endorse or promote products derived
- * from this software without prior written permission. For written
- * permission, please contact apache(a)apache.org.
- *
- * 5. Products derived from this software may not be called "Apache"
- * nor may "Apache" appear in their names without prior written
- * permission of the Apache Group.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ====================================================================
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Apache Software Foundation. For more
- * information on the Apache Software Foundation, please see
- * <
http://www.apache.org/>.
- */
-package org.jboss.ws.core.utils;
-
-// $Id$
-
-import java.io.OutputStream;
-import java.io.OutputStreamWriter;
-import java.io.PrintWriter;
-import java.io.StringWriter;
-import java.io.UnsupportedEncodingException;
-import java.io.Writer;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.Map;
-
-import org.w3c.dom.Attr;
-import org.w3c.dom.Element;
-import org.w3c.dom.NamedNodeMap;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
-import org.jboss.logging.Logger;
-
-/**
- * Traverse a DOM tree in order to print a document that is parsed.
- *
- * @author Andy Clark, IBM
- * @author Thomas.Diesler(a)jboss.org
- * @version $Revision$
- */
-public class DOMWriter
-{
- private static Logger log = Logger.getLogger(DOMWriter.class);
- // Print writer
- private PrintWriter out;
- // True, if canonical output
- private boolean canonical;
- // True, if pretty printing should be used
- private boolean prettyprint;
- // True, if the XML declaration should be written
- private boolean writeXMLDeclaration;
- // Explicit character set encoding
- private String charsetName;
- // indent for the pretty printer
- private int prettyIndent;
- // True, if the XML declaration has been written
- private boolean wroteXMLDeclaration;
- // The node that started the write
- private Node rootNode;
- // True if we want namespace completion
- private boolean completeNamespaces = true;
-
- public DOMWriter(Writer w)
- {
- this.out = new PrintWriter(w);
- }
-
- public DOMWriter(Writer w, String charsetName)
- {
- this.out = new PrintWriter(w);
- this.charsetName = charsetName;
- this.writeXMLDeclaration = true;
- }
-
- public DOMWriter(OutputStream stream)
- {
- try
- {
- this.out = new PrintWriter(new OutputStreamWriter(stream, "UTF-8"));
- }
- catch (UnsupportedEncodingException e)
- {
- // ignore, UTF-8 should be available
- }
- }
-
- public DOMWriter(OutputStream stream, String charsetName)
- {
- try
- {
- this.out = new PrintWriter(new OutputStreamWriter(stream, charsetName));
- this.charsetName = charsetName;
- this.writeXMLDeclaration = true;
- }
- catch (UnsupportedEncodingException e)
- {
- throw new IllegalArgumentException("Unsupported encoding: " +
charsetName);
- }
- }
-
- /**
- * Print a node with explicit prettyprinting.
- * The defaults for all other DOMWriter properties apply.
- *
- */
- public static String printNode(Node node, boolean prettyprint)
- {
- StringWriter strw = new StringWriter();
- new DOMWriter(strw).setPrettyprint(prettyprint).print(node);
- return strw.toString();
- }
-
- public boolean isCanonical()
- {
- return canonical;
- }
-
- /**
- * Set wheter entities should appear in their canonical form.
- * The default is false.
- */
- public DOMWriter setCanonical(boolean canonical)
- {
- this.canonical = canonical;
- return this;
- }
-
- /**
- * Set wheter subelements should have their namespaces completed.
- * Setting this to false may lead to invalid XML fragments.
- * The default is true.
- */
- public DOMWriter setCompleteNamespaces(boolean complete)
- {
- this.completeNamespaces = complete;
- return this;
- }
-
- public boolean isPrettyprint()
- {
- return prettyprint;
- }
-
- /**
- * Set wheter element should be indented.
- * The default is false.
- */
- public DOMWriter setPrettyprint(boolean prettyprint)
- {
- this.prettyprint = prettyprint;
- return this;
- }
-
- public boolean isWriteXMLDeclaration()
- {
- return writeXMLDeclaration;
- }
-
- /**
- * Set wheter the XML declaration should be written.
- * The default is false.
- */
- public DOMWriter setWriteXMLDeclaration(boolean flag)
- {
- this.writeXMLDeclaration = flag;
- return this;
- }
-
- public void print(Node node)
- {
- rootNode = node;
- printInternal(node, false);
- }
-
- private void printInternal(Node node, boolean indentEndMarker)
- {
- // is there anything to do?
- if (node == null)
- {
- return;
- }
-
- // JBAS-2117 - Don't skip the DOCUMENT_NODE
- // if (node instanceof Document) node = ((Document)node).getDocumentElement();
-
- if (wroteXMLDeclaration == false && writeXMLDeclaration == true &&
canonical == false)
- {
- out.print("<?xml version='1.0'");
- if (charsetName != null)
- out.print(" encoding='" + charsetName + "'");
-
- out.print("?>");
- if (prettyprint)
- out.println();
-
- wroteXMLDeclaration = true;
- }
-
- int type = node.getNodeType();
- boolean hasChildNodes = node.getChildNodes().getLength() > 0;
-
- String nodeName = node.getNodeName();
- switch (type)
- {
- // print document
- case Node.DOCUMENT_NODE:
- {
- NodeList children = node.getChildNodes();
- for (int iChild = 0; iChild < children.getLength(); iChild++)
- {
- printInternal(children.item(iChild), false);
- }
- out.flush();
- break;
- }
-
- // print element with attributes
- case Node.ELEMENT_NODE:
- {
- Element element = (Element)node;
- if (prettyprint)
- {
- for (int i = 0; i < prettyIndent; i++)
- {
- out.print(' ');
- }
- prettyIndent++;
- }
-
- out.print('<');
- out.print(nodeName);
-
- Map nsMap = new HashMap();
- String elPrefix = node.getPrefix();
- if (elPrefix != null)
- {
- String nsURI = getNamespaceURI(elPrefix, element, rootNode);
- nsMap.put(elPrefix, nsURI);
- }
-
- Attr attrs[] = sortAttributes(node.getAttributes());
- for (int i = 0; i < attrs.length; i++)
- {
- Attr attr = attrs[i];
- String atPrefix = attr.getPrefix();
- String atName = attr.getNodeName();
- String atValue = normalize(attr.getNodeValue(), canonical);
-
- if (atPrefix != null && !atPrefix.equals("xmlns")
&& !atPrefix.equals("xml"))
- {
- String nsURI = getNamespaceURI(atPrefix, element, rootNode);
- nsMap.put(atPrefix, nsURI);
- // xsi:type='ns1:SubType', xsi:type='xsd:string'
- if (atName.equals(atPrefix + ":type") &&
atValue.indexOf(":") > 0)
- {
- // xsi defined on the envelope
- if (nsURI == null)
- nsURI = getNamespaceURI(atPrefix, element, null);
-
- if
("http://www.w3.org/2001/XMLSchema-instance".equals(nsURI))
- {
- String typePrefix = atValue.substring(0,
atValue.indexOf(":"));
- String typeURI = getNamespaceURI(typePrefix, element, rootNode);
- nsMap.put(typePrefix, typeURI);
- }
- }
- }
-
- out.print(" " + atName + "='" + atValue +
"'");
- }
-
- // Add missing namespace declaration
- if (completeNamespaces)
- {
- Iterator itPrefix = nsMap.keySet().iterator();
- while (itPrefix.hasNext())
- {
- String prefix = (String)itPrefix.next();
- String nsURI = (String)nsMap.get(prefix);
- if (nsURI == null)
- {
- nsURI = getNamespaceURI(prefix, element, null);
- out.print(" xmlns:" + prefix + "='" + nsURI
+ "'");
- }
- }
- }
-
- if (hasChildNodes)
- {
- out.print('>');
- }
-
- // Find out if the end marker is indented
- indentEndMarker = isEndMarkerIndented(node);
-
- if (indentEndMarker)
- {
- out.print('\n');
- }
-
- NodeList childNodes = node.getChildNodes();
- int len = childNodes.getLength();
- for (int i = 0; i < len; i++)
- {
- Node childNode = childNodes.item(i);
- printInternal(childNode, false);
- }
- break;
- }
-
- // handle entity reference nodes
- case Node.ENTITY_REFERENCE_NODE:
- {
- if (canonical)
- {
- NodeList children = node.getChildNodes();
- if (children != null)
- {
- int len = children.getLength();
- for (int i = 0; i < len; i++)
- {
- printInternal(children.item(i), false);
- }
- }
- }
- else
- {
- out.print('&');
- out.print(nodeName);
- out.print(';');
- }
- break;
- }
-
- // print cdata sections
- case Node.CDATA_SECTION_NODE:
- {
- if (canonical)
- {
- out.print(normalize(node.getNodeValue(), canonical));
- }
- else
- {
- out.print("<![CDATA[");
- out.print(node.getNodeValue());
- out.print("]]>");
- }
- break;
- }
-
- // print text
- case Node.TEXT_NODE:
- {
- String text = normalize(node.getNodeValue(), canonical);
- if (prettyprint == false || text.trim().length() > 0)
- out.print(text);
- break;
- }
-
- // print processing instruction
- case Node.PROCESSING_INSTRUCTION_NODE:
- {
- out.print("<?");
- out.print(nodeName);
- String data = node.getNodeValue();
- if (data != null && data.length() > 0)
- {
- out.print(' ');
- out.print(data);
- }
- out.print("?>");
- break;
- }
-
- // print comment
- case Node.COMMENT_NODE:
- {
- for (int i = 0; i < prettyIndent; i++)
- {
- out.print(' ');
- }
-
- out.print("<!--");
- String data = node.getNodeValue();
- if (data != null)
- {
- out.print(data);
- }
- out.print("-->");
-
- if (prettyprint)
- {
- out.print('\n');
- }
-
- break;
- }
- }
-
- if (type == Node.ELEMENT_NODE)
- {
- if (prettyprint)
- prettyIndent--;
-
- if (hasChildNodes == false)
- {
- out.print("/>");
- }
- else
- {
- if (indentEndMarker)
- {
- for (int i = 0; i < prettyIndent; i++)
- {
- out.print(' ');
- }
- }
-
- out.print("</");
- out.print(nodeName);
- out.print('>');
- }
-
- if (prettyIndent > 0)
- {
- out.print('\n');
- }
- }
- out.flush();
- }
-
- private String getNamespaceURI(String prefix, Element element, Node stopNode)
- {
- Node parent = element.getParentNode();
- String nsURI = element.getAttribute("xmlns:" + prefix);
- if (nsURI.length() == 0 && element != stopNode && parent instanceof
Element)
- return getNamespaceURI(prefix, (Element)parent, stopNode);
-
- return (nsURI.length() > 0 ? nsURI : null);
- }
-
- private boolean isEndMarkerIndented(Node node)
- {
- if (prettyprint)
- {
- NodeList childNodes = node.getChildNodes();
- int len = childNodes.getLength();
- for (int i = 0; i < len; i++)
- {
- Node children = childNodes.item(i);
- if (children.getNodeType() == Node.ELEMENT_NODE)
- {
- return true;
- }
- }
- }
- return false;
- }
-
- /** Returns a sorted list of attributes. */
- private Attr[] sortAttributes(NamedNodeMap attrs)
- {
-
- int len = (attrs != null) ? attrs.getLength() : 0;
- Attr array[] = new Attr[len];
- for (int i = 0; i < len; i++)
- {
- array[i] = (Attr)attrs.item(i);
- }
- for (int i = 0; i < len - 1; i++)
- {
- String name = array[i].getNodeName();
- int index = i;
- for (int j = i + 1; j < len; j++)
- {
- String curName = array[j].getNodeName();
- if (curName.compareTo(name) < 0)
- {
- name = curName;
- index = j;
- }
- }
- if (index != i)
- {
- Attr temp = array[i];
- array[i] = array[index];
- array[index] = temp;
- }
- }
- return (array);
- }
-
- /** Normalizes the given string. */
- public static String normalize(String s, boolean canonical)
- {
- StringBuffer str = new StringBuffer();
-
- int len = (s != null) ? s.length() : 0;
- for (int i = 0; i < len; i++)
- {
- char ch = s.charAt(i);
- switch (ch)
- {
- case '<':
- {
- str.append("<");
- break;
- }
- case '>':
- {
- str.append(">");
- break;
- }
- case '&':
- {
- str.append("&");
- break;
- }
- case '"':
- {
- str.append(""");
- break;
- }
- case '\r':
- case '\n':
- {
- if (canonical)
- {
- str.append("&#");
- str.append(Integer.toString(ch));
- str.append(';');
- break;
- }
- // else, default append char
- }
- default:
- {
- str.append(ch);
- }
- }
- }
- return (str.toString());
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/DOMWriter.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/DOMWriter.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/HolderUtils.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/HolderUtils.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/HolderUtils.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,268 +0,0 @@
-/*
- * The Apache Software License, Version 1.1
- *
- *
- * Copyright (c) 2001-2003 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * 3. The end-user documentation included with the redistribution,
- * if any, must include the following acknowledgment:
- * "This product includes software developed by the
- * Apache Software Foundation (
http://www.apache.org/)."
- * Alternately, this acknowledgment may appear in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The names "Axis" and "Apache Software Foundation" must
- * not be used to endorse or promote products derived from this
- * software without prior written permission. For written
- * permission, please contact apache(a)apache.org.
- *
- * 5. Products derived from this software may not be called "Apache",
- * nor may "Apache" appear in their name, without prior written
- * permission of the Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ====================================================================
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Apache Software Foundation. For more
- * information on the Apache Software Foundation, please see
- * <
http://www.apache.org/>.
- */
-
-package org.jboss.ws.core.utils;
-
-import java.lang.reflect.Field;
-import java.math.BigDecimal;
-import java.math.BigInteger;
-import java.util.Calendar;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.holders.BigDecimalHolder;
-import javax.xml.rpc.holders.BigIntegerHolder;
-import javax.xml.rpc.holders.BooleanHolder;
-import javax.xml.rpc.holders.BooleanWrapperHolder;
-import javax.xml.rpc.holders.ByteArrayHolder;
-import javax.xml.rpc.holders.ByteHolder;
-import javax.xml.rpc.holders.ByteWrapperHolder;
-import javax.xml.rpc.holders.CalendarHolder;
-import javax.xml.rpc.holders.DoubleHolder;
-import javax.xml.rpc.holders.DoubleWrapperHolder;
-import javax.xml.rpc.holders.FloatHolder;
-import javax.xml.rpc.holders.FloatWrapperHolder;
-import javax.xml.rpc.holders.Holder;
-import javax.xml.rpc.holders.IntHolder;
-import javax.xml.rpc.holders.IntegerWrapperHolder;
-import javax.xml.rpc.holders.LongHolder;
-import javax.xml.rpc.holders.LongWrapperHolder;
-import javax.xml.rpc.holders.ObjectHolder;
-import javax.xml.rpc.holders.QNameHolder;
-import javax.xml.rpc.holders.ShortHolder;
-import javax.xml.rpc.holders.ShortWrapperHolder;
-import javax.xml.rpc.holders.StringHolder;
-
-import org.jboss.logging.Logger;
-
-/** JAXRPC Holder utilities
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 22-Dec-2004
- */
-public class HolderUtils
-{
- // provide logging
- private static final Logger log = Logger.getLogger(HolderUtils.class);
-
- /** True if the given type is a holder. */
- public static boolean isHolderType(Class javaType)
- {
- if (javaType == null)
- throw new IllegalArgumentException("Illegal null parameter");
-
- return Holder.class.isAssignableFrom(javaType);
- }
-
- /** Get the Holder for a given valueType.
- */
- public static Holder getHolderInstance(Class holderType)
- {
- try
- {
- return (Holder)holderType.newInstance();
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Exception e)
- {
- throw new IllegalArgumentException("Cannot instanciate holder: " +
holderType);
- }
- }
-
- /** Get the Holder for a given valueType.
- */
- public static Class getHolderType(Class valueType)
- {
- if (valueType == null)
- throw new IllegalArgumentException("Illegal null parameter");
-
- if (Holder.class.isAssignableFrom(valueType))
- throw new IllegalArgumentException("Is already a holder: " +
valueType.getName());
-
- if (valueType == BigDecimal.class)
- return BigDecimalHolder.class;
- if (valueType == BigInteger.class)
- return BigIntegerHolder.class;
- if (valueType == boolean.class)
- return BooleanHolder.class;
- if (valueType == Boolean.class)
- return BooleanWrapperHolder.class;
- if (valueType == byte[].class)
- return ByteArrayHolder.class;
- if (valueType == byte.class)
- return ByteHolder.class;
- if (valueType == Byte.class)
- return ByteWrapperHolder.class;
- if (valueType == Calendar.class)
- return CalendarHolder.class;
- if (valueType == double.class)
- return DoubleHolder.class;
- if (valueType == Double.class)
- return DoubleWrapperHolder.class;
- if (valueType == float.class)
- return FloatHolder.class;
- if (valueType == Float.class)
- return FloatWrapperHolder.class;
- if (valueType == int.class)
- return IntHolder.class;
- if (valueType == Integer.class)
- return IntegerWrapperHolder.class;
- if (valueType == long.class)
- return LongHolder.class;
- if (valueType == Long.class)
- return LongWrapperHolder.class;
- if (valueType == QName.class)
- return QNameHolder.class;
- if (valueType == short.class)
- return ShortHolder.class;
- if (valueType == Short.class)
- return ShortWrapperHolder.class;
- if (valueType == String.class)
- return StringHolder.class;
- if (valueType == Object.class)
- return ObjectHolder.class;
-
- log.warn("Cannot get holder type for: " + valueType);
-
- return null;
- }
-
- /** Get the value type for a given holder.
- */
- public static Class getValueType(Class holderType)
- {
- if (holderType == null)
- throw new IllegalArgumentException("Illegal null parameter");
-
- if (Holder.class.isAssignableFrom(holderType) == false)
- throw new IllegalArgumentException("Is not a holder: " +
holderType.getName());
-
- // Holder is supposed to have a public value field.
- Field field;
- try
- {
- field = holderType.getField("value");
- }
- catch (NoSuchFieldException e)
- {
- throw new IllegalArgumentException("Cannot find public value field: "
+ holderType);
- }
-
- return field.getType();
- }
-
- /** Gets the Holder value.
- */
- public static Object getHolderValue(Object holder)
- {
- if (holder == null)
- throw new IllegalArgumentException("Illegal null parameter");
-
- if (Holder.class.isInstance(holder) == false)
- throw new IllegalArgumentException("Is not a holder: " + holder);
-
- try
- {
- Field valueField = holder.getClass().getField("value");
- Object obj = valueField.get(holder);
- return obj;
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Exception e)
- {
- throw new IllegalArgumentException("Cannot access public value field:
" + holder);
- }
- }
-
- /** Gets the Holder value.
- */
- public static void setHolderValue(Object holder, Object value)
- {
- if (holder == null)
- throw new IllegalArgumentException("Illegal null parameter");
-
- if (Holder.class.isInstance(holder) == false)
- throw new IllegalArgumentException("Is not a holder: " + holder);
-
- Class valueType = getValueType(holder.getClass());
- if (JavaUtils.isPrimitive(valueType))
- value = JavaUtils.getPrimitiveValue(value);
- else
- value = JavaUtils.getWrapperValue(value);
-
- if (value != null && JavaUtils.isAssignableFrom(valueType,
value.getClass()) == false)
- throw new IllegalArgumentException("Holder [" +
holder.getClass().getName() + "] value not assignable: " + value);
-
- try
- {
- Field valueField = holder.getClass().getField("value");
- if (value != null || valueType.isPrimitive() == false)
- valueField.set(holder, value);
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Exception e)
- {
- throw new IllegalArgumentException("Cannot access public value field:
" + holder);
- }
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/HolderUtils.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/HolderUtils.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/IOUtils.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/IOUtils.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/IOUtils.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,94 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.utils;
-
-import java.io.*;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.WSException;
-import javax.activation.DataHandler;
-
-/**
- * IO utilites
- *
- * @author Thomas.Diesler(a)jboss.org
- */
-public final class IOUtils
-{
- private static Logger log = Logger.getLogger(IOUtils.class);
-
- // Hide the constructor
- private IOUtils()
- {
- }
-
- public static Writer getCharsetFileWriter(File file, String charset) throws
IOException
- {
- return new OutputStreamWriter(new FileOutputStream(file), charset);
- }
-
- /** Copy the input stream to the output stream
- */
- public static void copyStream(OutputStream outs, InputStream ins) throws IOException
- {
- byte[] bytes = new byte[1024];
- int r = ins.read(bytes);
- while (r > 0)
- {
- outs.write(bytes, 0, r);
- r = ins.read(bytes);
- }
- }
-
- public static byte[] convertToBytes(DataHandler dh)
- {
- try
- {
- ByteArrayOutputStream buffOS= new ByteArrayOutputStream();
- dh.writeTo(buffOS);
- return buffOS.toByteArray();
- }
- catch (IOException e)
- {
- throw new WSException("Unable to convert DataHandler to byte[]: " +
e.getMessage());
- }
- }
-
- /**
- * Transform a Reader to an InputStream
- * Background is that DocumentBuilder.parse() cannot take the Reader directly
- */
- public static InputStream transformReader(Reader reader) throws IOException
- {
- int capacity = 1024;
- char[] charBuffer = new char[capacity];
- StringBuffer strBuffer = new StringBuffer(capacity);
-
- int len = reader.read(charBuffer, 0, capacity);
- while (len > 0)
- {
- strBuffer.append(charBuffer, 0, len);
- len = reader.read(charBuffer, 0, capacity);
- }
- return new ByteArrayInputStream(strBuffer.toString().getBytes());
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/IOUtils.java (from rev
1605, branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/IOUtils.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/JBossWSEntityResolver.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/JBossWSEntityResolver.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/JBossWSEntityResolver.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,82 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.utils;
-
-// $Id$
-
-import java.io.IOException;
-import java.net.URL;
-
-import org.jboss.logging.Logger;
-import org.jboss.util.xml.JBossEntityResolver;
-import org.xml.sax.InputSource;
-import org.xml.sax.SAXException;
-
-/**
- * Dynamically register the JBossWS entities.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 02-Aug-2006
- */
-public class JBossWSEntityResolver extends JBossEntityResolver
-{
- // provide logging
- private static final Logger log = Logger.getLogger(JBossWSEntityResolver.class);
-
- public JBossWSEntityResolver()
- {
- registerEntity("urn:jboss:jaxrpc-config:2.0",
"schema/jaxrpc-config_2_0.xsd");
- registerEntity("urn:jboss:jaxws-config:2.0",
"schema/jaxws-config_2_0.xsd");
-
registerEntity("http://java.sun.com/xml/ns/javaee",
"schema/javaee_web_services_1_2.xsd");
-
registerEntity("http://www.w3.org/2005/08/addressing",
"schema/ws-addr.xsd");
-
registerEntity("http://schemas.xmlsoap.org/ws/2004/08/eventing",
"eventing.xsd");
- }
-
- public InputSource resolveEntity(String publicId, String systemId) throws
SAXException, IOException
- {
- log.debug("resolveEntity: [pub=" + publicId + ",sysid=" +
systemId + "]");
- InputSource inputSource = super.resolveEntity(publicId, systemId);
- return inputSource;
- }
-
- public URL resolveNamespaceURI(String nsURI)
- {
- URL url = null;
-
- String resource = (String)getEntityMap().get(nsURI);
- if (resource != null)
- {
- ClassLoader loader = Thread.currentThread().getContextClassLoader();
- url = loader.getResource(resource);
- if( url == null )
- {
- if( resource.endsWith(".dtd") )
- resource = "dtd/" + resource;
- else if( resource.endsWith(".xsd") )
- resource = "schema/" + resource;
- url = loader.getResource(resource);
- }
- }
-
- return url;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/JBossWSEntityResolver.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/JBossWSEntityResolver.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/JavaUtils.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/JavaUtils.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/JavaUtils.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,421 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.utils;
-
-// $Id$
-
-import java.lang.reflect.Array;
-import java.util.HashMap;
-
-import org.jboss.logging.Logger;
-
-/** Java utilities
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 22-Dec-2004
- */
-public class JavaUtils
-{
- // provide logging
- private static final Logger log = Logger.getLogger(JavaUtils.class);
-
- private static HashMap<String, Class> primitiveNames = new HashMap<String,
Class>();
-
- static
- {
- primitiveNames.put("int", int.class);
- primitiveNames.put("short", short.class);
- primitiveNames.put("boolean", boolean.class);
- primitiveNames.put("byte", byte.class);
- primitiveNames.put("long", long.class);
- primitiveNames.put("double", double.class);
- primitiveNames.put("float", float.class);
- primitiveNames.put("char", char.class);
- }
-
- /**
- * Load a Java type from a given class loader.
- *
- * @param typeName maybe the source notation of a primitve, class name, array of both
- */
- public static Class loadJavaType(String typeName) throws ClassNotFoundException
- {
- return loadJavaType(typeName, null);
- }
-
- /**
- * Load a Java type from a given class loader.
- *
- * @param typeName maybe the source notation of a primitve, class name, array of both
- */
- public static Class loadJavaType(String typeName, ClassLoader classLoader) throws
ClassNotFoundException
- {
- if (classLoader == null)
- classLoader = Thread.currentThread().getContextClassLoader();
-
- Class javaType = primitiveNames.get(typeName);
- if (javaType == null)
- javaType = getArray(typeName, classLoader);
-
- if (javaType == null)
- javaType = classLoader.loadClass(typeName);
-
- return javaType;
- }
-
- /**
- * True if the given type name is the source notation of a primitive or array of
which.
- */
- public static boolean isPrimitive(String javaType)
- {
- return getPrimitiveType(javaType) != null;
- }
-
- /**
- * True if the given class is a primitive or array of which.
- */
- public static boolean isPrimitive(Class javaType)
- {
- return javaType.isPrimitive() || (javaType.isArray() &&
isPrimitive(javaType.getComponentType()));
- }
-
- public static Class getPrimitiveType(String javaType)
- {
- Class type = primitiveNames.get(javaType);
- if (type != null)
- return type;
-
- try
- {
- // null loader = primitive only
- type = getArray(javaType, null);
- }
- catch (ClassNotFoundException e)
- {
- // This will actually never be thrown since is null
- }
-
- return type;
- }
-
- private static Class getArray(String javaType, ClassLoader loader) throws
ClassNotFoundException
- {
- if (javaType.charAt(0) == '[')
- return getArrayFromJVMName(javaType, loader);
-
- if (javaType.endsWith("[]"))
- return getArrayFromSourceName(javaType, loader);
-
- return null;
- }
-
- private static Class getArrayFromJVMName(String javaType, ClassLoader loader) throws
ClassNotFoundException
- {
- Class componentType;
- int componentStart = javaType.lastIndexOf('[') + 1;
- switch (javaType.charAt(componentStart))
- {
- case 'I': componentType = int.class; break;
- case 'S': componentType = short.class; break;
- case 'Z': componentType = boolean.class; break;
- case 'B': componentType = byte.class; break;
- case 'J': componentType = long.class; break;
- case 'D': componentType = double.class; break;
- case 'F': componentType = float.class; break;
- case 'C': componentType = char.class; break;
- case 'L':
- if (loader == null)
- return null;
- String name = javaType.substring(componentStart + 1, javaType.length() - 1);
- componentType = loader.loadClass(name);
- break;
- default:
- throw new IllegalArgumentException("Invalid binary component for array:
" + javaType.charAt(componentStart));
- }
-
- // componentStart doubles as the number of '['s which is the number of
dimensions
- return Array.newInstance(componentType, new int[componentStart]).getClass();
- }
-
- private static Class getArrayFromSourceName(String javaType, ClassLoader loader)
throws ClassNotFoundException
- {
- int arrayStart = javaType.indexOf('[');
- String componentName = javaType.substring(0, arrayStart);
-
- Class componentType = primitiveNames.get(componentName);
- if (componentType == null)
- {
- if (loader == null)
- return null;
-
- componentType = loader.loadClass(componentName);
- }
-
- // [][][][] divided by 2
- int dimensions = (javaType.length() - arrayStart) >> 1;
-
- return Array.newInstance(componentType, new int[dimensions]).getClass();
- }
-
- /**
- * Get the corresponding primitive for a give wrapper type.
- * Also handles arrays of which.
- */
- public static Class getPrimitiveType(Class javaType)
- {
- if (javaType == Integer.class)
- return int.class;
- if (javaType == Short.class)
- return short.class;
- if (javaType == Boolean.class)
- return boolean.class;
- if (javaType == Byte.class)
- return byte.class;
- if (javaType == Long.class)
- return long.class;
- if (javaType == Double.class)
- return double.class;
- if (javaType == Float.class)
- return float.class;
- if (javaType == Character.class)
- return char.class;
-
- if (javaType == Integer[].class)
- return int[].class;
- if (javaType == Short[].class)
- return short[].class;
- if (javaType == Boolean[].class)
- return boolean[].class;
- if (javaType == Byte[].class)
- return byte[].class;
- if (javaType == Long[].class)
- return long[].class;
- if (javaType == Double[].class)
- return double[].class;
- if (javaType == Float[].class)
- return float[].class;
- if (javaType == Character[].class)
- return char[].class;
-
- if (javaType.isArray() && javaType.getComponentType().isArray())
- {
- Class compType = getPrimitiveType(javaType.getComponentType());
- return Array.newInstance(compType, 0).getClass();
- }
-
- return javaType;
- }
-
- /**
- * Get the corresponding primitive value for a give wrapper value.
- * Also handles arrays of which.
- */
- public static Object getPrimitiveValue(Object value)
- {
- if (value == null)
- return null;
-
- Class javaType = value.getClass();
- if (javaType == Integer.class)
- return ((Integer)value).intValue();
- if (javaType == Short.class)
- return ((Short)value).shortValue();
- if (javaType == Boolean.class)
- return ((Boolean)value).booleanValue();
- if (javaType == Byte.class)
- return ((Byte)value).byteValue();
- if (javaType == Long.class)
- return ((Long)value).longValue();
- if (javaType == Double.class)
- return ((Double)value).doubleValue();
- if (javaType == Float.class)
- return ((Float)value).floatValue();
-
- if (javaType.isArray())
- {
- int length = Array.getLength(value);
- Object destArr =
Array.newInstance(getPrimitiveType(javaType.getComponentType()), length);
- for (int i = 0; i < length; i++)
- {
- Object srcObj = Array.get(value, i);
- Object destObj = getPrimitiveValue(srcObj);
- Array.set(destArr, i, destObj);
- }
- return destArr;
- }
-
- return value;
- }
-
- /**
- * Get the corresponding wrapper type for a give primitive.
- * Also handles arrays of which.
- */
- public static Class getWrapperType(Class javaType)
- {
- if (javaType == int.class)
- return Integer.class;
- if (javaType == short.class)
- return Short.class;
- if (javaType == boolean.class)
- return Boolean.class;
- if (javaType == byte.class)
- return Byte.class;
- if (javaType == long.class)
- return Long.class;
- if (javaType == double.class)
- return Double.class;
- if (javaType == float.class)
- return Float.class;
- if (javaType == char.class)
- return Character.class;
-
- if (javaType == int[].class)
- return Integer[].class;
- if (javaType == short[].class)
- return Short[].class;
- if (javaType == boolean[].class)
- return Boolean[].class;
- if (javaType == byte[].class)
- return Byte[].class;
- if (javaType == long[].class)
- return Long[].class;
- if (javaType == double[].class)
- return Double[].class;
- if (javaType == float[].class)
- return Float[].class;
- if (javaType == char[].class)
- return Character[].class;
-
- if (javaType.isArray() && javaType.getComponentType().isArray())
- {
- Class compType = getWrapperType(javaType.getComponentType());
- return Array.newInstance(compType, 0).getClass();
- }
-
- return javaType;
- }
-
- /**
- * Get the corresponding wrapper value for a give primitive value.
- * Also handles arrays of which.
- */
- public static Object getWrapperValue(Object value)
- {
- if (value == null)
- return null;
-
- Class javaType = value.getClass();
- if (javaType == int.class)
- return Integer.valueOf("" + value);
- if (javaType == short.class)
- return Short.valueOf("" + value);
- if (javaType == boolean.class)
- return Boolean.valueOf("" + value);
- if (javaType == byte.class)
- return Byte.valueOf("" + value);
- if (javaType == long.class)
- return Long.valueOf("" + value);
- if (javaType == double.class)
- return Double.valueOf("" + value);
- if (javaType == float.class)
- return Float.valueOf("" + value);
-
- if (javaType.isArray())
- {
- int length = Array.getLength(value);
- Object destArr = Array.newInstance(getWrapperType(javaType.getComponentType()),
length);
- for (int i = 0; i < length; i++)
- {
- Object srcObj = Array.get(value, i);
- Object destObj = getWrapperValue(srcObj);
- Array.set(destArr, i, destObj);
- }
- return destArr;
- }
-
- return value;
- }
-
- /**
- * Return true if the dest class is assignable from the src.
- * Also handles arrays and primitives.
- */
- public static boolean isAssignableFrom(Class dest, Class src)
- {
- if (dest == null)
- throw new IllegalArgumentException("Destination class cannot be
null");
- if (src == null)
- throw new IllegalArgumentException("Source class cannot be null");
-
- boolean isAssignable = dest.isAssignableFrom(src);
- if (isAssignable == false && dest.getName().equals(src.getName()))
- {
- ClassLoader destLoader = dest.getClassLoader();
- ClassLoader srcLoader = src.getClassLoader();
- log.debug("Not assignable because of conflicting class
loaders:\ndstLoader=" + destLoader + "\nsrcLoader=" + srcLoader);
- }
-
- if (isAssignable == false && isPrimitive(dest))
- {
- dest = getWrapperType(dest);
- isAssignable = dest.isAssignableFrom(src);
- }
- if (isAssignable == false && isPrimitive(src))
- {
- src = getWrapperType(src);
- isAssignable = dest.isAssignableFrom(src);
- }
- return isAssignable;
- }
-
- public static String convertJVMNameToSourceName(String typeName, ClassLoader loader)
- {
- // TODO Don't use a ClassLoader for this, we need to just convert it
- try
- {
- Class javaType = loadJavaType(typeName, loader);
- typeName = getSourceName(javaType);
- }
- catch (Exception e)
- {
- }
-
- return typeName;
- }
-
- public static String getSourceName(Class type)
- {
- if (! type.isArray())
- return type.getName();
-
- String arrayNotation = "";
- Class component = type;
- while(component.isArray())
- {
- component = component.getComponentType();
- arrayNotation += "[]";
- }
-
- return component.getName() + arrayNotation;
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/JavaUtils.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/JavaUtils.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/MimeUtils.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/MimeUtils.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/MimeUtils.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,353 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.utils;
-
-// $Id$
-
-
-
-import com.sun.image.codec.jpeg.JPEGCodec;
-import com.sun.image.codec.jpeg.JPEGImageDecoder;
-import com.sun.image.codec.jpeg.JPEGImageEncoder;
-import org.jboss.ws.Constants;
-import org.jboss.ws.WSException;
-
-import javax.mail.internet.ContentType;
-import javax.mail.internet.MimeMultipart;
-import javax.mail.internet.ParseException;
-import javax.xml.namespace.QName;
-import javax.xml.transform.stream.StreamSource;
-import java.awt.image.BufferedImage;
-import java.io.*;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Set;
-
-/**
- * Generic mime utility class.
- *
- * @author <a href="mailto:jason@stacksmash.com">Jason T.
Greene</a>
- */
-public class MimeUtils
-{
-
- private static Map<String, Class> mime2class = new HashMap<String,
Class>();
- private static Map<Class, String> class2mime = new HashMap<Class,
String>();
-
- static {
- mime2class.put("text/plain", java.lang.String.class);
- mime2class.put("image/jpeg", java.awt.Image.class);
- mime2class.put("text/xml", javax.xml.transform.Source.class);
- mime2class.put("application/xml", javax.xml.transform.Source.class);
- mime2class.put("application/octet-stream",
javax.activation.DataHandler.class);
-
- class2mime.put(java.awt.Image.class, "image/jpeg");
- class2mime.put(javax.xml.transform.Source.class, "text/xml");
- class2mime.put(java.lang.String.class, "text/plain");
- }
-
- /**
- * Converts a MIME type into a proprietary JBossWS attachment xml type.
- *
- * @param mimeType the MIME type string to convert
- * @return the xml type that this mime type corresponds to
- */
- public static QName convertMimeTypeToXmlType(String mimeType)
- {
- StringBuilder mimeName = new StringBuilder(mimeType);
-
- int pos = mimeName.indexOf("/");
-
- if (pos == -1)
- return null;
-
- mimeName.setCharAt(pos, '_');
-
- return new QName(Constants.NS_ATTACHMENT_MIME_TYPE, mimeName.toString());
- }
-
- /**
- * Gets the base portion of a MIME type string. This basically just strips
- * off any type parameter elements.
- *
- * @param mimeType any MIME type string
- * @return a reduced MIME string containing no type parameters
- */
- public static String getBaseMimeType(String mimeType)
- {
- ContentType contentType;
-
- if (mimeType == null)
- return null;
- try
- {
- contentType = new ContentType(mimeType);
- }
- catch (ParseException e)
- {
- return null;
- }
-
- return contentType.getBaseType();
- }
-
- /**
- * Checks if there is a matching mime pattern for mimeType in mimeTypes. This
- * will return true if there is an exact match (for example text/plain =
- * text/plain), or if there is a wildcard subtype match (text/plain =
- * text/*).
- *
- * @param mimeType the mime type to search for
- * @param mimeTypes the set of mime types to search
- * @return true if there is a match, false if not
- */
- public static boolean isMemberOf(String mimeType, Set mimeTypes)
- {
- if (mimeTypes.contains(mimeType))
- return true;
-
- try
- {
- if (mimeTypes.contains(new ContentType(mimeType).getPrimaryType() +
"/*"))
- return true;
- }
- catch (ParseException e)
- {
- // eat
- }
-
- return false;
- }
-
- /**
- * Resolve the class for a mype type.
- * Defaults to <code>DataHandler</code> if no mapping could be found.
- */
- public static Class resolveClass(String mimeType) {
- Class cl = mime2class.get(mimeType);
- if(null==cl)
- cl = javax.activation.DataHandler.class;
- return cl;
- }
-
- /**
- * Resolve the mime type for an object.
- * Default to <code>application/octet-stream</code>
- * if no mapping could be found.
- */
- public static String resolveMimeType(Object obj) {
- String mimeType = (obj instanceof MimeMultipart) ?
- ((MimeMultipart)obj).getContentType() :
- resolveMimeType(obj.getClass());
- return mimeType;
- }
-
- public static String resolveMimeType(Class clazz) {
- String mimeType = "application/octet-stream";
- for(Class cl : class2mime.keySet())
- {
- if(JavaUtils.isAssignableFrom(cl, clazz))
- mimeType = class2mime.get(cl);
- }
- return mimeType;
- }
-
- public static ByteArrayConverter getConverterForJavaType(Class targetClazz)
- {
- ByteArrayConverter converter = null;
- if(JavaUtils.isAssignableFrom(java.awt.Image.class, targetClazz))
- converter = new ImageConverter();
- else if (JavaUtils.isAssignableFrom(javax.xml.transform.Source.class,
targetClazz))
- converter = new SourceConverter();
- else if (JavaUtils.isAssignableFrom(java.lang.String.class, targetClazz))
- converter = new StringConverter();
- else if (JavaUtils.isAssignableFrom(java.io.InputStream.class, targetClazz))
- converter = new StreamConverter();
-
- if(null == converter)
- throw new WSException("No ByteArrayConverter for class: " +
targetClazz.getName());
-
- return converter;
- }
-
- public static ByteArrayConverter getConverterForContentType(String contentType)
- {
- ByteArrayConverter converter = null;
-
- if(contentType != null)
- {
- if("image/jpeg".equals(contentType) ||
"image/jpg".equals(contentType))
- converter = new ImageConverter();
- else if("text/xml".equals(contentType) ||
"application/xml".equals(contentType))
- converter = new SourceConverter();
- else if("text/plain".equals(contentType))
- converter = new StringConverter();
- else if("application/octet-stream".equals(contentType))
- converter = new StreamConverter();
- }
-
- if(null == converter)
- throw new WSException("No ByteArrayConverter for content type: " +
contentType);
-
- return converter;
- }
-
- public static class ImageConverter implements ByteArrayConverter
- {
- public Object readFrom(InputStream in) {
- Object converted = null;
- try
- {
- JPEGImageDecoder dec = JPEGCodec.createJPEGDecoder(in);
- BufferedImage bim = dec.decodeAsBufferedImage();
- converted = bim;
- }
- catch (Exception e)
- {
- // ignore
- }
-
- return converted;
- }
-
- public void writeTo(Object obj, OutputStream out) {
- if(obj instanceof BufferedImage)
- {
- JPEGImageEncoder enc = JPEGCodec.createJPEGEncoder(out);
- try
- {
- enc.encode((BufferedImage)obj);
- }
- catch (IOException e)
- {
- throw new WSException("Failed to convert " + obj.getClass());
- }
- }
- else
- {
- throw new WSException("Unable to convert " + obj.getClass());
- }
-
- }
-
- }
-
- public static class SourceConverter implements ByteArrayConverter
- {
- public Object readFrom(InputStream in) {
- return new StreamSource(in);
- }
-
- public void writeTo(Object obj, OutputStream out) {
- if(obj instanceof StreamSource)
- {
- StreamSource s = (StreamSource)obj;
- try
- {
- IOUtils.copyStream(out, s.getInputStream());
- }
- catch (IOException e)
- {
- throw new WSException("Failed to convert " + obj.getClass());
- }
- }
- else
- {
- throw new WSException("Unable to convert " + obj.getClass());
- }
- }
- }
-
- public static class StringConverter implements ByteArrayConverter
- {
- public Object readFrom(InputStream in) {
- Object converted = null;
- try
- {
- BufferedReader br = new BufferedReader(new InputStreamReader(in));
- StringBuilder sb = new StringBuilder();
- String line = null;
-
- while ((line = br.readLine()) != null) {
- sb.append(line + "\n");
- }
-
- br.close();
-
- converted = sb.toString();
- }
- catch (IOException e)
- {
- throw new WSException("Failed to convert java.lang.String");
- }
-
- return converted;
- }
-
- public void writeTo(Object obj, OutputStream out) {
- if(obj instanceof String)
- {
- String s = (String)obj;
- try
- {
- out.write(s.getBytes("UTF-8"));
- }
- catch (IOException e)
- {
- throw new WSException("Failed to convert " + obj.getClass());
- }
- }
- else
- {
- throw new WSException("Unable to convert " + obj.getClass());
- }
- }
- }
-
- public static class StreamConverter implements ByteArrayConverter
- {
- public Object readFrom(InputStream in) {
- return in;
- }
-
- public void writeTo(Object obj, OutputStream out) {
- if(obj instanceof InputStream)
- {
- try
- {
- IOUtils.copyStream(out, (InputStream)obj);
- }
- catch (IOException e)
- {
- throw new WSException("Failed to convert " + obj.getClass());
- }
- }
- }
- }
- public interface ByteArrayConverter
- {
- Object readFrom(InputStream in);
- void writeTo(Object obj, OutputStream out);
- }
-
-
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/MimeUtils.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/MimeUtils.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/ObjectNameFactory.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/ObjectNameFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/ObjectNameFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,72 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.utils;
-
-import java.util.Hashtable;
-
-import javax.management.MalformedObjectNameException;
-import javax.management.ObjectName;
-
-/**
- * A simple factory for creating safe object names.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 08-May-2006
- */
-public class ObjectNameFactory
-{
- public static ObjectName create(String name)
- {
- try
- {
- return new ObjectName(name);
- }
- catch (MalformedObjectNameException e)
- {
- throw new Error("Invalid ObjectName: " + name + "; " + e);
- }
- }
-
- public static ObjectName create(String domain, String key, String value)
- {
- try
- {
- return new ObjectName(domain, key, value);
- }
- catch (MalformedObjectNameException e)
- {
- throw new Error("Invalid ObjectName: " + domain + "," + key
+ "," + value + "; " + e);
- }
- }
-
- public static ObjectName create(String domain, Hashtable table)
- {
- try
- {
- return new ObjectName(domain, table);
- }
- catch (MalformedObjectNameException e)
- {
- throw new Error("Invalid ObjectName: " + domain + "," +
table + "; " + e);
- }
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/ObjectNameFactory.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/ObjectNameFactory.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/ThreadLocalAssociation.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/ThreadLocalAssociation.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/ThreadLocalAssociation.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,73 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.core.utils;
-
-// $Id$
-
-import java.util.Stack;
-
-import org.jboss.ws.core.CommonMessageContext;
-import org.jboss.ws.extensions.security.SecurityStore;
-
-/**
- * Maintain thread locals at a single point.
- *
- * @author Heiko Braun, <heiko(a)openj.net>
- * @author Thomas.Diesler(a)jboss.com
- * @since 10-Apr-2006
- */
-public class ThreadLocalAssociation {
-
- /**
- * Handles invocations on MDB endpoints.
- */
- private static ThreadLocal invokerMDBAssoc = new ThreadLocal();
-
- /**
- * SOAP message context
- * @see org.jboss.ws.core.soap.MessageContextAssociation
- */
- private static ThreadLocal<Stack<CommonMessageContext>> msgContextAssoc =
new ThreadLocal<Stack<CommonMessageContext>>();
-
- /**
- * @see org.jboss.ws.extensions.security.STRTransform
- */
- private static ThreadLocal<SecurityStore> strTransformAssoc = new
ThreadLocal<SecurityStore>();
-
- public static ThreadLocal localInvokerMDBAssoc() {
- return invokerMDBAssoc;
- }
-
- public static ThreadLocal<Stack<CommonMessageContext>>
localMsgContextAssoc() {
- return msgContextAssoc;
- }
-
- public static ThreadLocal<SecurityStore> localStrTransformAssoc() {
- return strTransformAssoc;
- }
-
- public static void clear() {
- invokerMDBAssoc.set(null);
- msgContextAssoc.set(null);
- strTransformAssoc.set(null);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/ThreadLocalAssociation.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/ThreadLocalAssociation.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/UUIDGenerator.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/UUIDGenerator.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/UUIDGenerator.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,121 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.utils;
-
-import java.security.SecureRandom;
-
-/**
- * Generates the string form of IETF variant UUIDs.
- *
- * See <a
href="http://www.ietf.org/internet-drafts/draft-mealling-uuid-urn-05...
- * the latest IETF draft</a> for more information about UUID generation.
- *
- * Currently only pseudo random (type 4) UUIDs are supported.
- *
- * @author <a href="mailto:jason@stacksmash.com">Jason T.
Greene</a>
- */
-public class UUIDGenerator
-{
- private static SecureRandom rand;
-
- private static String bytesToHex(byte[] buffer, int offset, int length)
- {
- long value = 0;
- for (int i = 0, countDown = 8 * length; i < length; i++)
- {
- value |= (buffer[offset + i] & 0xffL) << (countDown -= 8);
- }
-
- return Long.toHexString(value);
- }
-
- /**
- * Generates a pseudo random UUID and returns it in byte array form.
- *
- * @return a UUID byte array in network order
- */
- public static byte[] generateRandomUUIDBytes()
- {
- if (rand == null)
- rand = new SecureRandom();
-
- byte[] buffer = new byte[16];
- rand.nextBytes(buffer);
-
- // Set version to 3 (Random)
- buffer[6] = (byte) ((buffer[6] & 0x0f) | 0x40);
- // Set variant to 2 (IETF)
- buffer[8] = (byte) ((buffer[8] & 0x3f) | 0x80);
-
- return buffer;
- }
-
- /**
- * Generates a pseudo random UUID and returns it the IETF specified
- * String form. See {@link #convertToString(byte[])} for a description
- * of the format.
- *
- * @return a UUID in IETF string form.
- */
- public static String generateRandomUUIDString()
- {
- return convertToString(generateRandomUUIDBytes());
- }
-
- /**
- * Converts a UUID in byte array form to the IETF string format.
- *
- * <p>The BNF follows:
- * <pre>
- * UUID = <time_low> "-" <time_mid>
"-"
- * <time_high_and_version> "-"
- * <variant_and_sequence> "-"
- * <node>
- * time_low = 4*<hexOctet>
- * time_mid = 2*<hexOctet>
- * time_high_and_version = 2*<hexOctet>
- * variant_and_sequence = 2*<hexOctet>
- * node = 6*<hexOctet>
- * hexOctet = <hexDigit><hexDigit>
- * hexDigit =
- * "0" | "1" | "2" | "3" |
"4" | "5" | "6" | "7" | "8" |
"9"
- * | "a" | "b" | "c" | "d" |
"e" | "f"
- * | "A" | "B" | "C" | "D" |
"E" | "F"
- * </pre>
- *
- * @param uuid a 16 byte
- * @return the IETF string form of the passed UUID
- */
- public static String convertToString(byte[] uuid)
- {
- if (uuid.length != 16)
- throw new IllegalArgumentException("A UUID must be 16 bytes!");
-
- String string = bytesToHex(uuid, 0, 4) + "-"
- + bytesToHex(uuid, 4, 2) + "-"
- + bytesToHex(uuid, 6, 2) + "-"
- + bytesToHex(uuid, 8, 2) + "-"
- + bytesToHex(uuid, 10, 6);
-
- return string;
- }
-}
\ No newline at end of file
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/UUIDGenerator.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/UUIDGenerator.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/XMLPredefinedEntityReferenceResolver.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/XMLPredefinedEntityReferenceResolver.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/XMLPredefinedEntityReferenceResolver.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,123 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.core.utils;
-
-import java.util.HashMap;
-
-/**
- * Utility class for resolving predefined XML entity and character references.
- *
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @version $Revision$
- */
-public class XMLPredefinedEntityReferenceResolver
-{
- private static HashMap<String, Character> entities = new HashMap<String,
Character>();
-
- static
- {
- entities.put("quot", '"');
- entities.put("amp", '&');
- entities.put("lt", '<');
- entities.put("gt", '>');
- entities.put("apos", '\'');
- }
-
- private static int resolveCharRef(String source, int pos, StringBuilder builder)
- {
- int radix = 10;
- if (source.charAt(pos += 2) == 'x')
- {
- pos++;
- radix = 16;
- }
-
- int end = source.indexOf(';', pos);
- if (end == -1)
- throw new IllegalArgumentException("Invalid character reference");
-
- int c = Integer.parseInt(source.substring(pos, end), radix);
- builder.append((char) c);
-
- return end + 1;
- }
-
- private static int resolveEntityRef(String source, int pos, StringBuilder builder)
- {
- int end = source.indexOf(';', ++pos);
- if (end == -1)
- throw new IllegalArgumentException("Invalid entity reference");
-
- String entity = source.substring(pos, end);
- Character c = entities.get(entity);
- if (c == null)
- throw new IllegalArgumentException("Invalid entity: " + entity);
-
- builder.append(c.charValue());
-
- return end + 1;
- }
-
- /**
- * Transforms an XML normalized string by resolving all predefined character and
entity references
- *
- * @param normalized an XML normalized string
- * @return a standard java string that is no longer XML normalized
- */
- public static String resolve(String normalized)
- {
- StringBuilder builder = new StringBuilder();
- int end = normalized.length();
- int pos = normalized.indexOf('&');
- int last = 0;
-
- // No references
- if (pos == -1)
- return normalized;
-
- while (pos != -1)
- {
- String sub = normalized.subSequence(last, pos).toString();
- builder.append(sub);
-
- int peek = pos + 1;
- if (peek == end)
- throw new IllegalArgumentException("Invalid entity reference");
-
- if (normalized.charAt(peek) == '#')
- pos = resolveCharRef(normalized, pos, builder);
- else
- pos = resolveEntityRef(normalized, pos, builder);
-
- last = pos;
- pos = normalized.indexOf('&', pos);
- }
-
- if (last < end)
- {
- String sub = normalized.subSequence(last, end).toString();
- builder.append(sub);
- }
-
- return builder.toString();
- }
-}
\ No newline at end of file
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/XMLPredefinedEntityReferenceResolver.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/core/utils/XMLPredefinedEntityReferenceResolver.java)
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/AnnotationsMetaDataBuilder.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/AnnotationsMetaDataBuilder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/AnnotationsMetaDataBuilder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -33,17 +33,18 @@
import org.jboss.ws.Constants;
import org.jboss.ws.WSException;
import org.jboss.ws.annotation.PortComponent;
-import org.jboss.ws.metadata.EndpointMetaData;
-import org.jboss.ws.metadata.ServerEndpointMetaData;
-import org.jboss.ws.metadata.ServiceMetaData;
-import org.jboss.ws.metadata.UnifiedMetaData;
+import org.jboss.ws.core.server.ServerConfig;
+import org.jboss.ws.core.server.ServerConfigFactory;
+import org.jboss.ws.core.utils.IOUtils;
import org.jboss.ws.metadata.j2ee.UnifiedWebMetaData;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
+import org.jboss.ws.metadata.umdm.EndpointMetaData;
+import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
+import org.jboss.ws.metadata.umdm.ServiceMetaData;
+import org.jboss.ws.metadata.umdm.UnifiedMetaData;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.server.ServerConfig;
-import org.jboss.ws.server.ServerConfigFactory;
import org.jboss.ws.tools.JavaToWSDL;
-import org.jboss.ws.utils.IOUtils;
+import org.jboss.ws.tools.wsdl.WSDLWriter;
/** An abstract annotation meta data builder.
*
@@ -101,7 +102,7 @@
wsdlTmpFile.deleteOnExit();
Writer writer = IOUtils.getCharsetFileWriter(wsdlTmpFile,
Constants.DEFAULT_XML_CHARSET);
- wsdlDefinitions.write(writer, Constants.DEFAULT_XML_CHARSET);
+ new WSDLWriter(wsdlDefinitions).write(writer,
Constants.DEFAULT_XML_CHARSET);
writer.close();
wsdlLocation = wsdlTmpFile.toURL().toExternalForm();
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/JSR109ClientMetaDataBuilder.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/JSR109ClientMetaDataBuilder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/JSR109ClientMetaDataBuilder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -32,12 +32,6 @@
import org.jboss.logging.Logger;
import org.jboss.ws.Constants;
import org.jboss.ws.WSException;
-import org.jboss.ws.metadata.ClientEndpointMetaData;
-import org.jboss.ws.metadata.EndpointMetaData;
-import org.jboss.ws.metadata.ServiceMetaData;
-import org.jboss.ws.metadata.UnifiedMetaData;
-import org.jboss.ws.metadata.EndpointMetaData.Type;
-import org.jboss.ws.metadata.HandlerMetaData.HandlerType;
import org.jboss.ws.metadata.config.jaxrpc.WSClientConfigJAXRPC;
import org.jboss.ws.metadata.j2ee.UnifiedHandlerMetaData;
import org.jboss.ws.metadata.j2ee.UnifiedPortComponentRefMetaData;
@@ -45,6 +39,12 @@
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMappingFactory;
import org.jboss.ws.metadata.jaxrpcmapping.ServiceEndpointInterfaceMapping;
+import org.jboss.ws.metadata.umdm.ClientEndpointMetaData;
+import org.jboss.ws.metadata.umdm.EndpointMetaData;
+import org.jboss.ws.metadata.umdm.ServiceMetaData;
+import org.jboss.ws.metadata.umdm.UnifiedMetaData;
+import org.jboss.ws.metadata.umdm.EndpointMetaData.Type;
+import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
import org.jboss.ws.metadata.wsdl.NCName;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
import org.jboss.ws.metadata.wsdl.WSDLEndpoint;
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/JSR109Deployment.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/JSR109Deployment.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/JSR109Deployment.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -25,8 +25,8 @@
import java.io.InputStream;
import java.net.URL;
-import org.jboss.ws.metadata.jsr109.WebservicesFactory;
-import org.jboss.ws.metadata.jsr109.WebservicesMetaData;
+import org.jboss.ws.metadata.webservices.WebservicesFactory;
+import org.jboss.ws.metadata.webservices.WebservicesMetaData;
import org.jboss.xb.binding.ObjectModelFactory;
import org.jboss.xb.binding.Unmarshaller;
import org.jboss.xb.binding.UnmarshallerFactory;
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/JSR109MetaDataBuilder.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/JSR109MetaDataBuilder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/JSR109MetaDataBuilder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -37,17 +37,13 @@
import org.jboss.logging.Logger;
import org.jboss.ws.Constants;
import org.jboss.ws.WSException;
-import org.jboss.ws.jaxrpc.LiteralTypeMapping;
-import org.jboss.ws.jaxrpc.Style;
-import org.jboss.ws.jaxrpc.TypeMappingImpl;
-import org.jboss.ws.jaxrpc.TypeMappingRegistryImpl;
-import org.jboss.ws.jaxrpc.Use;
-import org.jboss.ws.metadata.EndpointMetaData;
-import org.jboss.ws.metadata.OperationMetaData;
-import org.jboss.ws.metadata.ParameterMetaData;
-import org.jboss.ws.metadata.ServiceMetaData;
-import org.jboss.ws.metadata.TypeMappingMetaData;
-import org.jboss.ws.metadata.TypesMetaData;
+import org.jboss.ws.core.jaxrpc.LiteralTypeMapping;
+import org.jboss.ws.core.jaxrpc.Style;
+import org.jboss.ws.core.jaxrpc.TypeMappingImpl;
+import org.jboss.ws.core.jaxrpc.TypeMappingRegistryImpl;
+import org.jboss.ws.core.jaxrpc.Use;
+import org.jboss.ws.core.utils.JavaUtils;
+import org.jboss.ws.extensions.xop.jaxrpc.XOPScanner;
import org.jboss.ws.metadata.jaxrpcmapping.ExceptionMapping;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
import org.jboss.ws.metadata.jaxrpcmapping.JavaXmlTypeMapping;
@@ -57,6 +53,12 @@
import org.jboss.ws.metadata.jaxrpcmapping.VariableMapping;
import org.jboss.ws.metadata.jaxrpcmapping.WsdlMessageMapping;
import org.jboss.ws.metadata.jaxrpcmapping.WsdlReturnValueMapping;
+import org.jboss.ws.metadata.umdm.EndpointMetaData;
+import org.jboss.ws.metadata.umdm.OperationMetaData;
+import org.jboss.ws.metadata.umdm.ParameterMetaData;
+import org.jboss.ws.metadata.umdm.ServiceMetaData;
+import org.jboss.ws.metadata.umdm.TypeMappingMetaData;
+import org.jboss.ws.metadata.umdm.TypesMetaData;
import org.jboss.ws.metadata.wsdl.WSDLBinding;
import org.jboss.ws.metadata.wsdl.WSDLBindingOperation;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
@@ -70,8 +72,6 @@
import org.jboss.ws.metadata.wsdl.WSDLTypes;
import org.jboss.ws.metadata.wsdl.WSDLUtils;
import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel;
-import org.jboss.ws.utils.JavaUtils;
-import org.jboss.ws.xop.XOPScanner;
/**
* A meta data builder that is based on webservices.xml.
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/JSR109ServerMetaDataBuilder.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/JSR109ServerMetaDataBuilder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/JSR109ServerMetaDataBuilder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -32,12 +32,6 @@
import org.jboss.logging.Logger;
import org.jboss.ws.WSException;
-import org.jboss.ws.metadata.EndpointMetaData;
-import org.jboss.ws.metadata.ServerEndpointMetaData;
-import org.jboss.ws.metadata.ServiceMetaData;
-import org.jboss.ws.metadata.UnifiedMetaData;
-import org.jboss.ws.metadata.EndpointMetaData.Type;
-import org.jboss.ws.metadata.HandlerMetaData.HandlerType;
import org.jboss.ws.metadata.config.jaxrpc.WSEndpointConfigJAXRPC;
import org.jboss.ws.metadata.j2ee.UnifiedApplicationMetaData;
import org.jboss.ws.metadata.j2ee.UnifiedBeanMetaData;
@@ -48,8 +42,14 @@
import
org.jboss.ws.metadata.j2ee.UnifiedWebSecurityMetaData.UnifiedWebResourceCollection;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
import org.jboss.ws.metadata.jaxrpcmapping.ServiceEndpointInterfaceMapping;
-import org.jboss.ws.metadata.jsr109.PortComponentMetaData;
-import org.jboss.ws.metadata.jsr109.WebserviceDescriptionMetaData;
+import org.jboss.ws.metadata.umdm.EndpointMetaData;
+import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
+import org.jboss.ws.metadata.umdm.ServiceMetaData;
+import org.jboss.ws.metadata.umdm.UnifiedMetaData;
+import org.jboss.ws.metadata.umdm.EndpointMetaData.Type;
+import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
+import org.jboss.ws.metadata.webservices.PortComponentMetaData;
+import org.jboss.ws.metadata.webservices.WebserviceDescriptionMetaData;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
import org.jboss.ws.metadata.wsdl.WSDLEndpoint;
import org.jboss.ws.metadata.wsdl.WSDLService;
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/JSR181MetaDataBuilder.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/JSR181MetaDataBuilder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/JSR181MetaDataBuilder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -55,36 +55,36 @@
import org.jboss.logging.Logger;
import org.jboss.ws.Constants;
import org.jboss.ws.WSException;
-import org.jboss.ws.addressing.AddressingPropertiesImpl;
-import org.jboss.ws.addressing.metadata.AddressingOpMetaExt;
-import org.jboss.ws.jaxrpc.ParameterWrapping;
-import org.jboss.ws.jaxrpc.Style;
-import org.jboss.ws.jaxrpc.TypeMappingImpl;
-import org.jboss.ws.jaxrpc.TypeMappingRegistryImpl;
-import org.jboss.ws.jaxrpc.Use;
-import org.jboss.ws.metadata.EndpointMetaData;
-import org.jboss.ws.metadata.FaultMetaData;
-import org.jboss.ws.metadata.OperationMetaData;
-import org.jboss.ws.metadata.ParameterMetaData;
-import org.jboss.ws.metadata.ServerEndpointMetaData;
-import org.jboss.ws.metadata.ServiceMetaData;
-import org.jboss.ws.metadata.TypeMappingMetaData;
-import org.jboss.ws.metadata.TypesMetaData;
-import org.jboss.ws.metadata.UnifiedMetaData;
-import org.jboss.ws.metadata.EndpointMetaData.Type;
-import org.jboss.ws.metadata.HandlerMetaData.HandlerType;
+import org.jboss.ws.core.jaxrpc.ParameterWrapping;
+import org.jboss.ws.core.jaxrpc.Style;
+import org.jboss.ws.core.jaxrpc.TypeMappingImpl;
+import org.jboss.ws.core.jaxrpc.TypeMappingRegistryImpl;
+import org.jboss.ws.core.jaxrpc.Use;
+import org.jboss.ws.core.utils.HolderUtils;
+import org.jboss.ws.core.utils.JBossWSEntityResolver;
+import org.jboss.ws.extensions.addressing.AddressingPropertiesImpl;
+import org.jboss.ws.extensions.addressing.metadata.AddressingOpMetaExt;
import org.jboss.ws.metadata.config.jaxrpc.WSEndpointConfigJAXRPC;
import org.jboss.ws.metadata.j2ee.UnifiedHandlerMetaData;
import org.jboss.ws.metadata.jsr181.HandlerChainFactory;
import org.jboss.ws.metadata.jsr181.HandlerChainMetaData;
import org.jboss.ws.metadata.jsr181.HandlerChainsMetaData;
+import org.jboss.ws.metadata.umdm.EndpointMetaData;
+import org.jboss.ws.metadata.umdm.FaultMetaData;
+import org.jboss.ws.metadata.umdm.OperationMetaData;
+import org.jboss.ws.metadata.umdm.ParameterMetaData;
+import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
+import org.jboss.ws.metadata.umdm.ServiceMetaData;
+import org.jboss.ws.metadata.umdm.TypeMappingMetaData;
+import org.jboss.ws.metadata.umdm.TypesMetaData;
+import org.jboss.ws.metadata.umdm.UnifiedMetaData;
+import org.jboss.ws.metadata.umdm.EndpointMetaData.Type;
+import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
import org.jboss.ws.metadata.wsdl.WSDLUtils;
import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel;
import org.jboss.ws.metadata.wsse.WSSecurityConfiguration;
import org.jboss.ws.tools.ToolsUtils;
-import org.jboss.ws.utils.HolderUtils;
-import org.jboss.ws.utils.JBossWSEntityResolver;
import org.jboss.xb.binding.ObjectModelFactory;
import org.jboss.xb.binding.Unmarshaller;
import org.jboss.xb.binding.UnmarshallerFactory;
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/JSR181MetaDataBuilderEJB21.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/JSR181MetaDataBuilderEJB21.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/JSR181MetaDataBuilderEJB21.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -28,10 +28,10 @@
import org.jboss.logging.Logger;
import org.jboss.ws.WSException;
-import org.jboss.ws.metadata.ServerEndpointMetaData;
-import org.jboss.ws.metadata.UnifiedMetaData;
import org.jboss.ws.metadata.j2ee.UnifiedApplicationMetaData;
import org.jboss.ws.metadata.j2ee.UnifiedBeanMetaData;
+import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
+import org.jboss.ws.metadata.umdm.UnifiedMetaData;
/**
* A server side meta data builder that is based on JSR-181 annotations
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/JSR181MetaDataBuilderEJB3.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/JSR181MetaDataBuilderEJB3.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/JSR181MetaDataBuilderEJB3.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -29,9 +29,9 @@
import org.jboss.annotation.security.SecurityDomain;
import org.jboss.logging.Logger;
import org.jboss.ws.WSException;
-import org.jboss.ws.metadata.UnifiedMetaData;
import org.jboss.ws.metadata.j2ee.UnifiedApplicationMetaData;
import org.jboss.ws.metadata.j2ee.UnifiedBeanMetaData;
+import org.jboss.ws.metadata.umdm.UnifiedMetaData;
/**
* A server side meta data builder that is based on JSR-181 annotations
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/JSR181MetaDataBuilderJSE.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/JSR181MetaDataBuilderJSE.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/JSR181MetaDataBuilderJSE.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -28,8 +28,8 @@
import org.jboss.logging.Logger;
import org.jboss.ws.WSException;
-import org.jboss.ws.metadata.UnifiedMetaData;
import org.jboss.ws.metadata.j2ee.UnifiedWebMetaData;
+import org.jboss.ws.metadata.umdm.UnifiedMetaData;
/**
* A server side meta data builder that is based on JSR-181 annotations
Modified: branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/MetaDataBuilder.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/MetaDataBuilder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/MetaDataBuilder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -47,26 +47,29 @@
import org.jboss.logging.Logger;
import org.jboss.ws.Constants;
import org.jboss.ws.WSException;
-import org.jboss.ws.addressing.AddressingPropertiesImpl;
-import org.jboss.ws.addressing.metadata.AddressingOpMetaExt;
-import org.jboss.ws.common.CommonSOAPBinding;
-import org.jboss.ws.eventing.EventingConstants;
-import org.jboss.ws.eventing.deployment.EventingEndpoint;
-import org.jboss.ws.eventing.metadata.EventingEpMetaExt;
-import org.jboss.ws.jaxrpc.UnqualifiedFaultException;
-import org.jboss.ws.jaxrpc.Use;
-import org.jboss.ws.metadata.ClientEndpointMetaData;
-import org.jboss.ws.metadata.EndpointMetaData;
-import org.jboss.ws.metadata.FaultMetaData;
-import org.jboss.ws.metadata.OperationMetaData;
-import org.jboss.ws.metadata.ServerEndpointMetaData;
-import org.jboss.ws.metadata.TypesMetaData;
+import org.jboss.ws.core.CommonSOAPBinding;
+import org.jboss.ws.core.jaxrpc.UnqualifiedFaultException;
+import org.jboss.ws.core.jaxrpc.Use;
+import org.jboss.ws.core.server.ServiceEndpointManager;
+import org.jboss.ws.core.server.ServiceEndpointManagerFactory;
+import org.jboss.ws.core.utils.ObjectNameFactory;
+import org.jboss.ws.extensions.addressing.AddressingPropertiesImpl;
+import org.jboss.ws.extensions.addressing.metadata.AddressingOpMetaExt;
+import org.jboss.ws.extensions.eventing.EventingConstants;
+import org.jboss.ws.extensions.eventing.deployment.EventingEndpoint;
+import org.jboss.ws.extensions.eventing.metadata.EventingEpMetaExt;
import org.jboss.ws.metadata.j2ee.UnifiedApplicationMetaData;
import org.jboss.ws.metadata.j2ee.UnifiedBeanMetaData;
import org.jboss.ws.metadata.j2ee.UnifiedMessageDrivenMetaData;
import org.jboss.ws.metadata.j2ee.UnifiedWebMetaData;
import org.jboss.ws.metadata.j2ee.UnifiedWebSecurityMetaData;
import
org.jboss.ws.metadata.j2ee.UnifiedWebSecurityMetaData.UnifiedWebResourceCollection;
+import org.jboss.ws.metadata.umdm.ClientEndpointMetaData;
+import org.jboss.ws.metadata.umdm.EndpointMetaData;
+import org.jboss.ws.metadata.umdm.FaultMetaData;
+import org.jboss.ws.metadata.umdm.OperationMetaData;
+import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
+import org.jboss.ws.metadata.umdm.TypesMetaData;
import org.jboss.ws.metadata.wsdl.NCName;
import org.jboss.ws.metadata.wsdl.WSDLBinding;
import org.jboss.ws.metadata.wsdl.WSDLBindingOperation;
@@ -80,9 +83,6 @@
import org.jboss.ws.metadata.wsdl.WSDLService;
import org.jboss.ws.metadata.wsse.WSSecurityConfiguration;
import org.jboss.ws.metadata.wsse.WSSecurityConfigurationFactory;
-import org.jboss.ws.server.ServiceEndpointManager;
-import org.jboss.ws.server.ServiceEndpointManagerFactory;
-import org.jboss.ws.utils.ObjectNameFactory;
import org.w3c.dom.Element;
/** An abstract meta data builder.
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/ServiceEndpointDeployer.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/ServiceEndpointDeployer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/ServiceEndpointDeployer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -28,13 +28,13 @@
import org.jboss.logging.Logger;
import org.jboss.ws.WSException;
-import org.jboss.ws.metadata.EndpointMetaData;
-import org.jboss.ws.metadata.ServerEndpointMetaData;
-import org.jboss.ws.metadata.ServiceMetaData;
-import org.jboss.ws.metadata.UnifiedMetaData;
-import org.jboss.ws.server.ServiceEndpointInfo;
-import org.jboss.ws.server.ServiceEndpointManager;
-import org.jboss.ws.server.WSDLFilePublisher;
+import org.jboss.ws.core.server.ServiceEndpointInfo;
+import org.jboss.ws.core.server.ServiceEndpointManager;
+import org.jboss.ws.core.server.WSDLFilePublisher;
+import org.jboss.ws.metadata.umdm.EndpointMetaData;
+import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
+import org.jboss.ws.metadata.umdm.ServiceMetaData;
+import org.jboss.ws.metadata.umdm.UnifiedMetaData;
/**
* The deployer for web service endpoints
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/ServiceEndpointPublisher.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/ServiceEndpointPublisher.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/deployment/ServiceEndpointPublisher.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -32,8 +32,8 @@
import java.util.Set;
import org.jboss.logging.Logger;
-import org.jboss.ws.utils.DOMUtils;
-import org.jboss.ws.utils.DOMWriter;
+import org.jboss.ws.core.utils.DOMUtils;
+import org.jboss.ws.core.utils.DOMWriter;
import org.jboss.ws.WSException;
import org.w3c.dom.Element;
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions (from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions)
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing (from rev
1605, branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingBuilderImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingBuilderImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingBuilderImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,85 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.addressing;
-
-//$Id$
-
-import java.net.URI;
-import java.net.URISyntaxException;
-
-import javax.xml.namespace.QName;
-import javax.xml.ws.addressing.AddressingBuilder;
-import javax.xml.ws.addressing.AddressingConstants;
-import javax.xml.ws.addressing.AddressingProperties;
-import javax.xml.ws.addressing.AttributedQName;
-import javax.xml.ws.addressing.AttributedURI;
-import javax.xml.ws.addressing.EndpointReference;
-import javax.xml.ws.addressing.Relationship;
-
-/**
- * Factory for <code>AddressingElements</code>.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 14-Nov-2005
- */
-public class AddressingBuilderImpl extends AddressingBuilder
-{
- public AttributedURI newURI(URI uri)
- {
- return new AttributedURIImpl(uri);
- }
-
- public AttributedURI newURI(String uri) throws URISyntaxException
- {
- return newURI(new URI(uri));
- }
-
- public AttributedQName newQName(QName name)
- {
- return new AttributedQNameImpl(name);
- }
-
- public Relationship newRelationship(URI uri)
- {
- return new RelationshipImpl(uri);
- }
-
- public EndpointReference newEndpointReference(URI uri)
- {
- return new EndpointReferenceImpl(uri);
- }
-
- public AddressingProperties newAddressingProperties()
- {
- return new AddressingPropertiesImpl();
- }
-
- public AddressingConstants newAddressingConstants()
- {
- return new AddressingConstantsImpl();
- }
-
- public String getNamespaceURI()
- {
- return new AddressingTypeImpl().getNamespaceURI();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingBuilderImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingBuilderImpl.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingClientUtil.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingClientUtil.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingClientUtil.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,121 +0,0 @@
-package org.jboss.ws.extensions.addressing;
-
-import java.net.URI;
-import java.net.URISyntaxException;
-
-import javax.xml.rpc.Stub;
-import javax.xml.ws.addressing.AddressingBuilder;
-import javax.xml.ws.addressing.AddressingConstants;
-import javax.xml.ws.addressing.AddressingProperties;
-import javax.xml.ws.addressing.AttributedURI;
-
-import org.jboss.ws.core.utils.UUIDGenerator;
-
-/**
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 04-Mar-2006
- */
-public class AddressingClientUtil
-{
- private static AddressingBuilder BUILDER;
- private static AddressingConstants CONSTANTS;
- static
- {
- BUILDER = AddressingBuilder.getAddressingBuilder();
- CONSTANTS = BUILDER.newAddressingConstants();
- }
-
- /* creates outbound addressing properties */
- public static AddressingProperties createRequestProperties()
- {
- AddressingProperties addrProps = BUILDER.newAddressingProperties();
- return addrProps;
- }
-
- /**
- * create default outbound addressing properties.
- */
- public static AddressingProperties createDefaultProps(String wsaAction, String wsaTo)
- {
- try
- {
- AddressingProperties addrProps = createRequestProperties();
- addrProps.setAction(BUILDER.newURI(wsaAction));
- addrProps.setTo(BUILDER.newURI(wsaTo));
- return addrProps;
- }
- catch (URISyntaxException e)
- {
- throw new IllegalArgumentException(e.getMessage());
- }
- }
-
- /**
- * create anonymous request properties.
- * wsa:ReplyTo is set to anonymous and a messageID is supplied.
- */
- public static AddressingProperties createAnonymousProps(String wsaAction, String
wsaTo)
- {
- try
- {
- AddressingProperties addrProps = createDefaultProps(wsaAction, wsaTo);
- addrProps.setMessageID(BUILDER.newURI(generateMessageID()));
- addrProps.setReplyTo(BUILDER.newEndpointReference(new
URI(CONSTANTS.getAnonymousURI())));
- return addrProps;
- }
- catch (URISyntaxException e)
- {
- throw new IllegalArgumentException(e.getMessage());
- }
- }
-
- /**
- * one-way properties cary a wsa:ReplyTo of none
- * upon which no response is expected.
- */
- public static AddressingProperties createOneWayProps(String wsaAction, String wsaTo)
- {
- try
- {
- AddressingProperties addrProps = createDefaultProps(wsaAction, wsaTo);
- addrProps.setMessageID(BUILDER.newURI(generateMessageID()));
- addrProps.setReplyTo(BUILDER.newEndpointReference(new
URI(CONSTANTS.getNoneURI())));
- return addrProps;
- }
- catch (URISyntaxException e)
- {
- throw new IllegalArgumentException(e.getMessage());
- }
- }
-
- /**
- * customize a stubs endpooint url
- */
- public static void setTargetAddress(Stub stub, String url)
- {
- stub._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, url);
- }
-
- /**
- * generate a UUID based message id.
- */
- public static URI generateMessageID() throws URISyntaxException
- {
- URI messageId = new URI("urn:uuid:" +
UUIDGenerator.generateRandomUUIDString());
- return messageId;
- }
-
- public static AttributedURI createMessageID()
- {
- AttributedURI msgId = null;
- try
- {
- msgId = BUILDER.newURI(generateMessageID());
- }
- catch (URISyntaxException e)
- {
- //
- }
- return msgId;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingClientUtil.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingClientUtil.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingConstantsImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingConstantsImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingConstantsImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,207 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.addressing;
-
-//$Id$
-
-import javax.xml.namespace.QName;
-import javax.xml.ws.addressing.AddressingConstants;
-
-import org.jboss.util.NotImplementedException;
-import org.jboss.ws.Constants;
-
-/**
- * Encapsulation for version-specific WS-Addressing constants.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 14-Nov-2005
- */
-public class AddressingConstantsImpl implements AddressingConstants
-{
- static final String URI_ADDRESSING =
"http://www.w3.org/2005/08/addressing";
- static final String PREFIX_ADDRESSING = "wsa";
-
- public String getNamespaceURI()
- {
- return URI_ADDRESSING;
- }
-
- public String getNamespacePrefix()
- {
- return PREFIX_ADDRESSING;
- }
-
- public String getWSDLNamespaceURI()
- {
- return Constants.NS_WSDL11;
- }
-
- public String getWSDLNamespacePrefix()
- {
- return Constants.PREFIX_WSDL;
- }
-
- public QName getWSDLExtensibilityQName()
- {
- return null;
- }
-
- public QName getWSDLActionQName()
- {
- return new QName(URI_ADDRESSING, "Action", "wsa");
- }
-
- public String getAnonymousURI()
- {
- return "http://www.w3.org/2005/08/addressing/anonymous";
- }
-
- public String getNoneURI()
- {
- return "http://www.w3.org/2005/08/addressing/none";
- }
-
- public QName getFromQName()
- {
- return new QName(URI_ADDRESSING, "From", PREFIX_ADDRESSING);
- }
-
- public QName getToQName()
- {
- return new QName(URI_ADDRESSING, "To", PREFIX_ADDRESSING);
- }
-
- public QName getReplyToQName()
- {
- return new QName(URI_ADDRESSING, "ReplyTo", PREFIX_ADDRESSING);
- }
-
- public QName getFaultToQName()
- {
- return new QName(URI_ADDRESSING, "FaultTo", PREFIX_ADDRESSING);
- }
-
- public QName getActionQName()
- {
- return new QName(URI_ADDRESSING, "Action", PREFIX_ADDRESSING);
- }
-
- public QName getMessageIDQName()
- {
- return new QName(URI_ADDRESSING, "MessageID", PREFIX_ADDRESSING);
- }
-
- public QName getRelationshipReplyQName()
- {
- return new QName(URI_ADDRESSING, "Reply", PREFIX_ADDRESSING);
- }
-
- public QName getRelatesToQName()
- {
- return new QName(URI_ADDRESSING, "RelatesTo", PREFIX_ADDRESSING);
- }
-
- public String getRelationshipTypeName()
- {
- return "RelationshipType";
- }
-
- public QName getMetadataQName()
- {
- return new QName(URI_ADDRESSING, "Metadata", PREFIX_ADDRESSING);
- }
-
- public QName getAddressQName()
- {
- return new QName(URI_ADDRESSING, "Address", PREFIX_ADDRESSING);
- }
-
- public QName getReferenceParametersQName()
- {
- return new QName(URI_ADDRESSING, "ReferenceParameters",
PREFIX_ADDRESSING);
- }
-
- public String getPackageName()
- {
- return getClass().getPackage().getName();
- }
-
- public String getIsReferenceParameterName()
- {
- throw new NotImplementedException();
- }
-
- public QName getInvalidMapQName()
- {
- return new QName(URI_ADDRESSING, "InvalidMessageInformationHeader",
PREFIX_ADDRESSING);
- }
-
- public QName getMapRequiredQName()
- {
- return new QName(URI_ADDRESSING, "MessageInformationHeaderRequired",
PREFIX_ADDRESSING);
- }
-
- public QName getDestinationUnreachableQName()
- {
- return new QName(URI_ADDRESSING, "DestinationUnreachable",
PREFIX_ADDRESSING);
- }
-
- public QName getActioNotSupportedQName()
- {
- return new QName(URI_ADDRESSING, "ActionNotSupported",
PREFIX_ADDRESSING);
- }
-
- public QName getEndpointUnavailableQName()
- {
- return new QName(URI_ADDRESSING, "EndpointUnavailable",
PREFIX_ADDRESSING);
- }
-
- public String getDefaultFaultAction()
- {
- return "http://www.w3.org/2005/08/addressing/fault";
- }
-
- public String getActionNotSupportedText()
- {
- return "Action not supported";
- }
-
- public String getDestinationUnreachableText()
- {
- return "Destination unreachable";
- }
-
- public String getEndpointUnavailableText()
- {
- return "Endpoint unavailable";
- }
-
- public String getInvalidMapText()
- {
- return "Invalid Map";
- }
-
- public String getMapRequiredText()
- {
- return "Map Required";
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingConstantsImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingConstantsImpl.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingPropertiesImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingPropertiesImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingPropertiesImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,277 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.addressing;
-
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Set;
-
-import javax.xml.namespace.QName;
-import javax.xml.soap.SOAPElement;
-import javax.xml.ws.addressing.*;
-
-import org.jboss.ws.core.soap.NameImpl;
-
-// $Id$
-
-/**
- * Each instance is associated with a particular WS-Addressing schema whose
- * namespace URI is returned by its <code>getAddressingVersion</code>
method.
- *
- * The namespace of each key in the underlying map must match this URI and the
- * local names of all the keys must be exactly the names of the Message Addressing
Properties
- * defined in that version of the WS-Addressing specification.
- *
- * Each value in the underlying type must be an instance of
<code>AddressingType</code> whose
- * WS-Addressing version (determined by its
<code>getAddressingVersion</code>) method must
- * match the WS-Addressing version associated with the
<code>AddressingProperties</code>.
- *
- * TODO: verify that AddressingPropertiesImpl can extend ElementExtensibleImpl.
- * See
http://jira.jboss.com/jira/browse/JBWS-728
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 14-Nov-2005
- */
-public class AddressingPropertiesImpl extends ElementExtensibleImpl implements
AddressingProperties
-{
- private static AddressingConstants ADDR = new AddressingConstantsImpl();
-
- // A REQUIRED absolute URI representing the address of the intended receiver of this
message.
- private AttributedURI to;
- // A REQUIRED absolute URI that uniquely identifies the semantics implied by this
message.
- private AttributedURI action;
- // An OPTIONAL absolute URI that uniquely identifies the message.
- private AttributedURI messageId;
- // An OPTIONAL pair of values that indicate how this message relates to another
message.
- private Relationship[] relatesTo;
- // An OPTIONAL endpoint reference for the intended receiver for replies to this
message.
- private EndpointReference replyTo;
- // An OPTIONAL endpoint reference for the intended receiver for faults related to this
message.
- private EndpointReference faultTo;
- // An OPTIONAL reference to the endpoint from which the message originated.
- private EndpointReference from;
- // Corresponds to the value of the [reference parameters] property of the endpoint
reference to which the message is addressed.
- private ReferenceParameters refParams = new ReferenceParametersImpl();
-
- private Map<QName, AddressingType> addrTypes = new HashMap<QName,
AddressingType>();
-
- public AttributedURI getTo()
- {
- return to;
- }
-
- public void setTo(AttributedURI to)
- {
- this.to = to;
- }
-
- public AttributedURI getAction()
- {
- return action;
- }
-
- public void setAction(AttributedURI action)
- {
- this.action = action;
- }
-
- public AttributedURI getMessageID()
- {
- return messageId;
- }
-
- public void setMessageID(AttributedURI iri)
- {
- this.messageId = iri;
- }
-
- public Relationship[] getRelatesTo()
- {
- return relatesTo;
- }
-
- public void setRelatesTo(Relationship[] relatesTo)
- {
- this.relatesTo = relatesTo;
- }
-
- public EndpointReference getReplyTo()
- {
- return replyTo;
- }
-
- public void setReplyTo(EndpointReference replyTo)
- {
- this.replyTo = replyTo;
- }
-
- public EndpointReference getFaultTo()
- {
- return faultTo;
- }
-
- public void setFaultTo(EndpointReference faultTo)
- {
- this.faultTo = faultTo;
- }
-
- public EndpointReference getFrom()
- {
- return from;
- }
-
- public void setFrom(EndpointReference from)
- {
- this.from = from;
- }
-
- public ReferenceParameters getReferenceParameters()
- {
- return refParams;
- }
-
- /**
- * Initializes the properties as a destination using the given
- * <code>EndpointReference</code>. The <bold>To</bold>
property is initialized
- * using the <bold>Address</bold> property of the
<code>EndpointReference</code>
- * and the <bold>ReferenceParameters</bold> property is initialized using
the
- * <bold>ReferenceParameters</bold> property of the
<code>EndpointReference</code>.
- *
- * @param epr The <code>EndpointReference</code> representing the
destination.
- */
- public void initializeAsDestination(EndpointReference epr)
- {
- if (epr == null)
- throw new IllegalArgumentException("Invalid null endpoint
reference");
-
- this.to = epr.getAddress();
-
- ReferenceParameters srcParams = epr.getReferenceParameters();
- for (Object obj : srcParams.getElements())
- {
- SOAPElement soapElement = (SOAPElement)obj;
- soapElement.setAttributeNS(getNamespaceURI(),
"wsa:IsReferenceParameter", "true");
- addElement(soapElement);
- }
- }
-
- /**
- * Initialize this <code>AddressingProperties</code> as a reply to the
- * given message. As described in the WS-Addressing Core specification.
- * The <bold>ReplyTo</bold> property is using the
<bold>Address</bold>
- * property of the source <code>AddressingProperties</code> and the
- * <bold>ReferenceParameters</bold> property is initialized using the
- * <bold>ReferenceParameters</bold> property of the source message.
- *
- * @param props The source <code>AddressingProperties</code>
- * @param isFault <code>true</code> if the reply is a Fault message.
- */
- public void initializeAsReply(AddressingProperties props, boolean isFault)
- {
- EndpointReference epr = (isFault ? props.getFaultTo() : null);
- if (epr == null)
- {
- epr = props.getReplyTo();
- }
- this.to = (epr != null ? epr.getAddress() : new
AttributedURIImpl(ADDR.getAnonymousURI()));
-
- if (epr != null)
- {
- ReferenceParameters srcParams = epr.getReferenceParameters();
- for (Object obj : srcParams.getElements())
- {
- SOAPElement soapElement = (SOAPElement)obj;
- soapElement.setAttributeNS(getNamespaceURI(),
"wsa:IsReferenceParameter", "true");
- addElement(soapElement);
- }
- }
- if (props.getMessageID() != null)
- {
- AddressingBuilder builder = AddressingBuilder.getAddressingBuilder();
- Relationship rel = builder.newRelationship(props.getMessageID().getURI());
- this.relatesTo = new Relationship[] { rel };
- }
- }
-
- // Map interface ****************************************************************
-
- public int size()
- {
- return addrTypes.size();
- }
-
- public boolean isEmpty()
- {
- return addrTypes.isEmpty();
- }
-
- public boolean containsKey(Object arg0)
- {
- return addrTypes.containsKey(arg0);
- }
-
- public boolean containsValue(Object arg0)
- {
- return addrTypes.containsValue(arg0);
- }
-
- public AddressingType get(Object arg0)
- {
- return addrTypes.get(arg0);
- }
-
- public AddressingType put(QName arg0, AddressingType arg1)
- {
- return addrTypes.put(arg0, arg1);
- }
-
- public AddressingType remove(Object arg0)
- {
- return addrTypes.remove(arg0);
- }
-
- public void putAll(Map<? extends QName, ? extends AddressingType> arg0)
- {
- addrTypes.putAll(arg0);
- }
-
- public void clear()
- {
- addrTypes.clear();
- }
-
- public Set<QName> keySet()
- {
- return addrTypes.keySet();
- }
-
- public Collection<AddressingType> values()
- {
- return addrTypes.values();
- }
-
- public Set<Entry<QName, AddressingType>> entrySet()
- {
- return addrTypes.entrySet();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingPropertiesImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingPropertiesImpl.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingTypeImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingTypeImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingTypeImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,40 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.addressing;
-
-//$Id$
-
-import javax.xml.ws.addressing.AddressingType;
-
-/**
- * Implemented by wrappers for types defined by <b>WS-Addressing</b>.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 14-Nov-2005
- */
-public class AddressingTypeImpl implements AddressingType
-{
- public String getNamespaceURI()
- {
- return AddressingConstantsImpl.URI_ADDRESSING;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingTypeImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AddressingTypeImpl.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AttributeElementExtensibleImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AttributeElementExtensibleImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AttributeElementExtensibleImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,76 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.addressing;
-
-//$Id$
-
-import java.util.List;
-import java.util.Map;
-
-import javax.xml.namespace.QName;
-import javax.xml.ws.addressing.AddressingException;
-import javax.xml.ws.addressing.AddressingType;
-import javax.xml.ws.addressing.AttributeExtensible;
-import javax.xml.ws.addressing.ElementExtensible;
-
-/**
- * Used to represent Addressing classes that support collections of arbitrary XML
Elements.
- * Used to represent Addressing classes that support extensibility attributes.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 14-Nov-2005
- */
-public class AttributeElementExtensibleImpl implements AttributeExtensible,
ElementExtensible, AddressingType
-{
- private AttributeExtensible attrExt = new AttributeExtensibleImpl();
- private ElementExtensible elmtExt = new ElementExtensibleImpl();
-
- public Map<QName, String> getAttributes()
- {
- return attrExt.getAttributes();
- }
-
- public void addAttribute(QName name, String value) throws AddressingException
- {
- attrExt.addAttribute(name, value);
- }
-
- public List<Object> getElements()
- {
- return elmtExt.getElements();
- }
-
- public void addElement(Object element)
- {
- elmtExt.addElement(element);
- }
-
- public boolean removeElement(Object element)
- {
- return elmtExt.removeElement(element);
- }
-
- public String getNamespaceURI()
- {
- return new AddressingTypeImpl().getNamespaceURI();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AttributeElementExtensibleImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AttributeElementExtensibleImpl.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AttributeExtensibleImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AttributeExtensibleImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AttributeExtensibleImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,52 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.addressing;
-
-//$Id$
-
-import java.util.HashMap;
-import java.util.Map;
-
-import javax.xml.namespace.QName;
-import javax.xml.ws.addressing.AddressingException;
-import javax.xml.ws.addressing.AttributeExtensible;
-
-/**
- * Used to represent Addressing classes that support extensibility attributes.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 14-Nov-2005
- */
-public class AttributeExtensibleImpl extends AddressingTypeImpl implements
AttributeExtensible
-{
- private Map<QName, String> extMap = new HashMap<QName, String>();
-
- public Map<QName, String> getAttributes()
- {
- return extMap;
- }
-
- public void addAttribute(QName name, String value) throws AddressingException
- {
- extMap.put(name, value);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AttributeExtensibleImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AttributeExtensibleImpl.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AttributedQNameImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AttributedQNameImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AttributedQNameImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,49 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.addressing;
-
-//$Id$
-
-import javax.xml.namespace.QName;
-import javax.xml.ws.addressing.AttributedQName;
-
-/**
- * Abstraction of <code>AttributedQNameType</code> defined in the normative
- * WS-Addressing core schema.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 14-Nov-2005
- */
-public class AttributedQNameImpl extends AttributeExtensibleImpl implements
AttributedQName
-{
- private QName qname;
-
- public AttributedQNameImpl(QName qname)
- {
- this.qname = qname;
- }
-
- public QName getQName()
- {
- return qname;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AttributedQNameImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AttributedQNameImpl.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AttributedURIImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AttributedURIImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AttributedURIImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,62 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.addressing;
-
-//$Id$
-
-import java.net.URI;
-import java.net.URISyntaxException;
-
-import javax.xml.ws.addressing.AttributedURI;
-
-/**
- * Abstraction <code>AttributedURIType</code> defined in the normative
WS-Addressing core schema.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 14-Nov-2005
- */
-public class AttributedURIImpl extends AttributeExtensibleImpl implements AttributedURI
-{
- private URI uri;
-
- public AttributedURIImpl(URI uri)
- {
- this.uri = uri;
- }
-
- public AttributedURIImpl(String uri)
- {
- try
- {
- this.uri = new URI(uri);
- }
- catch (URISyntaxException ex)
- {
- throw new IllegalArgumentException(ex.toString());
- }
- }
-
- public URI getURI()
- {
- return uri;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AttributedURIImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/AttributedURIImpl.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/ElementExtensibleImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/ElementExtensibleImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/ElementExtensibleImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,58 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.addressing;
-
-//$Id$
-
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.xml.ws.addressing.ElementExtensible;
-
-/**
- * Implemented by classes exposing a <code>List</code> of
- * <code>SOAPElements</code>. Used to represent addressing classes that
- * support collections of arbitrary XML Elements.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 14-Nov-2005
- */
-public class ElementExtensibleImpl extends AddressingTypeImpl implements
ElementExtensible
-{
- private List<Object> elements = new ArrayList<Object>();
-
- public List<Object> getElements()
- {
- return elements;
- }
-
- public void addElement(Object element)
- {
- elements.add(element);
- }
-
- public boolean removeElement(Object element)
- {
- return elements.remove(element);
- }
-
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/ElementExtensibleImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/ElementExtensibleImpl.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/EndpointReferenceImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/EndpointReferenceImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/EndpointReferenceImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,300 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.addressing;
-
-//$Id$
-
-import java.io.IOException;
-import java.io.StringWriter;
-import java.net.URI;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import javax.xml.namespace.QName;
-import javax.xml.ws.addressing.AddressingConstants;
-import javax.xml.ws.addressing.AddressingException;
-import javax.xml.ws.addressing.AttributedURI;
-import javax.xml.ws.addressing.EndpointReference;
-import javax.xml.ws.addressing.Metadata;
-import javax.xml.ws.addressing.ReferenceParameters;
-import javax.xml.ws.addressing.soap.SOAPAddressingBuilder;
-
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.utils.DOMUtils;
-import org.jboss.ws.core.utils.DOMWriter;
-import org.jboss.ws.extensions.addressing.soap.SOAPAddressingBuilderImpl;
-import org.w3c.dom.Element;
-
-/**
- * Abstraction of EndpointReference.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 14-Nov-2005
- */
-public class EndpointReferenceImpl extends AttributeElementExtensibleImpl implements
EndpointReference
-{
- private static AddressingConstants ADDR = new AddressingConstantsImpl();
-
- // The REQUIRED root element name
- private QName rootQName = new QName(ADDR.getNamespaceURI(),
"EndpointReference", ADDR.getNamespacePrefix());
- // This REQUIRED element (whose content is of type xs:anyURI) specifies the [address]
property of the endpoint reference.
- private AttributedURIImpl address = new AttributedURIImpl(ADDR.getAnonymousURI());
- // This OPTIONAL element may contain elements from any namespace. Such elements form
the [reference parameters] of the reference.
- private ReferenceParametersImpl refParams = new ReferenceParametersImpl();
- // This OPTIONAL element may contain elements from any namespace.
- private MetadataImpl metadata = new MetadataImpl();
-
- public EndpointReferenceImpl(URI uri)
- {
- this.address = new AttributedURIImpl(uri);
- }
-
- public EndpointReferenceImpl(Element elRoot)
- {
- initFromElement(elRoot);
- }
-
- public QName getRootQName()
- {
- return rootQName;
- }
-
- public void setRootQName(QName rootElementName)
- {
- this.rootQName = rootElementName;
- }
-
- public AttributedURI getAddress()
- {
- return address;
- }
-
- public ReferenceParameters getReferenceParameters()
- {
- return refParams;
- }
-
- public Metadata getMetadata()
- {
- return metadata;
- }
-
- private void initFromElement(Element elRoot)
- {
- if (elRoot == null)
- throw new IllegalArgumentException("Cannot initialize from null
element");
-
- try
- {
- Map<QName, String> attributes = DOMUtils.getAttributes(elRoot);
- for (QName attqname : attributes.keySet())
- {
- String value = attributes.get(attqname);
- addAttribute(attqname, value);
- }
-
- Iterator it = DOMUtils.getChildElements(elRoot);
- while (it.hasNext())
- {
- Element el = (Element)it.next();
- QName qname = DOMUtils.getElementQName(el);
-
- // Parse Address
- if (qname.equals(ADDR.getAddressQName()))
- {
- address = new AttributedURIImpl(DOMUtils.getTextContent(el));
-
- attributes = DOMUtils.getAttributes(el);
- for (QName attqname : attributes.keySet())
- {
- String value = attributes.get(attqname);
- address.addAttribute(attqname, value);
- }
- }
- // Parse ReferenceParameters
- else if (qname.equals(ADDR.getReferenceParametersQName()))
- {
- attributes = DOMUtils.getAttributes(el);
- for (QName attqname : attributes.keySet())
- {
- String value = attributes.get(attqname);
- refParams.addAttribute(attqname, value);
- }
- Iterator itel = DOMUtils.getChildElements(el);
- while (itel.hasNext())
- {
- Element child = (Element)itel.next();
- refParams.addElement(child);
- }
- }
- // Parse Metadata
- else if (qname.equals(ADDR.getMetadataQName()))
- {
- attributes = DOMUtils.getAttributes(el);
- for (QName attqname : attributes.keySet())
- {
- String value = attributes.get(attqname);
- metadata.addAttribute(attqname, value);
- }
- Iterator itel = DOMUtils.getChildElements(el);
- while (itel.hasNext())
- {
- Element child = (Element)itel.next();
- metadata.addElement(child);
- }
- }
- else
- {
- addElement(el);
- }
- }
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Exception ex)
- {
- throw new AddressingException("Cannot init EPR from element", ex);
- }
- }
-
- public Element toElement()
- {
- String xmlString = toXMLString(false);
- try
- {
- return DOMUtils.parse(xmlString);
- }
- catch (IOException ex)
- {
- throw new WSException("Cannot parse: " + xmlString, ex);
- }
- }
-
- public String toXMLString(boolean pretty)
- {
- if (pretty)
- {
- Element epRef = toElement();
- return DOMWriter.printNode(epRef, true);
- }
-
- SOAPAddressingBuilder builder = new SOAPAddressingBuilderImpl();
- AddressingConstants ADDR = builder.newAddressingConstants();
-
- String rootname = getPrefixedName(rootQName);
- StringBuilder xmlBuffer = new StringBuilder("<" + rootname);
- appendAttributes(xmlBuffer, getAttributes());
- xmlBuffer.append(">");
-
- // insert xmlns:wsa
- String wsaURI = ADDR.getNamespaceURI();
- String wsaPrefix = ADDR.getNamespacePrefix();
- String wsaDeclaration = " xmlns:" + wsaPrefix + "='" +
wsaURI + "'";
- if (xmlBuffer.indexOf(wsaDeclaration) < 0)
- {
- xmlBuffer.insert(rootname.length() + 1, wsaDeclaration);
- }
-
- // append address
- xmlBuffer.append("<" + getPrefixedName(ADDR.getAddressQName()));
- appendAttributes(xmlBuffer, address.getAttributes());
- xmlBuffer.append(">");
- xmlBuffer.append(address.getURI() + "</" +
getPrefixedName(ADDR.getAddressQName()) + ">");
-
- // append parameters
- if (refParams.getElements().size() > 0 || refParams.getAttributes().size() >
0)
- {
- xmlBuffer.append("<" +
getPrefixedName(ADDR.getReferenceParametersQName()));
- appendAttributes(xmlBuffer, refParams.getAttributes());
- xmlBuffer.append(">");
- appendElements(xmlBuffer, refParams.getElements());
- xmlBuffer.append("</" +
getPrefixedName(ADDR.getReferenceParametersQName()) + ">");
- }
-
- // append metadata
- if (metadata.getElements().size() > 0 || metadata.getAttributes().size() >
0)
- {
- xmlBuffer.append("<" + getPrefixedName(ADDR.getMetadataQName()));
- appendAttributes(xmlBuffer, metadata.getAttributes());
- xmlBuffer.append(">");
- appendElements(xmlBuffer, metadata.getElements());
- xmlBuffer.append("</" + getPrefixedName(ADDR.getMetadataQName()) +
">");
- }
-
- // append custom elements
- appendElements(xmlBuffer, getElements());
-
- xmlBuffer.append("</" + rootname + ">");
-
- String xmlString = xmlBuffer.toString();
- return xmlString;
- }
-
- private void appendAttributes(StringBuilder xmlBuffer, Map<QName, String>
attributes)
- {
- for (QName qname : attributes.keySet())
- {
- String qualname = getPrefixedName(qname);
- String value = attributes.get(qname);
- xmlBuffer.append(" " + qualname + "='" + value +
"'");
- }
- }
-
- private void appendElements(StringBuilder xmlBuffer, List<Object> elements)
- {
- for (Object obj : elements)
- {
- if (obj instanceof Element)
- {
- StringWriter strwr = new StringWriter();
- DOMWriter domWriter = new DOMWriter(strwr).setCompleteNamespaces(false);
- domWriter.print((Element)obj);
- String xmlFragment = strwr.toString();
- xmlBuffer.append(xmlFragment);
- }
- else if (obj instanceof String)
- {
- xmlBuffer.append(obj);
- }
- else
- {
- throw new AddressingException("Unsupported element: " +
obj.getClass().getName());
- }
- }
- }
-
- private String getPrefixedName(QName qname)
- {
- String prefix = qname.getPrefix();
- String localPart = qname.getLocalPart();
- String qualname = (prefix != null && prefix.length() > 0 ? prefix +
":" + localPart : localPart);
- return qualname;
- }
-
- public String toString()
- {
- return toXMLString(true);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/EndpointReferenceImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/EndpointReferenceImpl.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/MetadataImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/MetadataImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/MetadataImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,36 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.addressing;
-
-//$Id$
-
-import javax.xml.ws.addressing.Metadata;
-
-/**
- * Abstraction of Metadata bucket in an <code>EndpointReference</code>.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 14-Nov-2005
- */
-public class MetadataImpl extends AttributeElementExtensibleImpl implements Metadata
-{
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/MetadataImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/MetadataImpl.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/ReferenceParametersImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/ReferenceParametersImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/ReferenceParametersImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,41 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.addressing;
-
-import javax.xml.ws.addressing.ReferenceParameters;
-
-// $Id$
-
-/**
- * Abstraction of ReferenceParameters bucket in an
- * <code>EndpointReference</code>.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 14-Nov-2005
- */
-public class ReferenceParametersImpl extends AttributeElementExtensibleImpl implements
ReferenceParameters
-{
- public ReferenceParametersImpl()
- {
- super();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/ReferenceParametersImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/ReferenceParametersImpl.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/RelationshipImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/RelationshipImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/RelationshipImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,67 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.addressing;
-
-import java.net.URI;
-
-import javax.xml.namespace.QName;
-import javax.xml.ws.addressing.Relationship;
-
-// $Id$
-
-/**
- * Abstraction of the RelatesToType defined by WS-Addressing. Includes an ID
- * property that references the MessageID of the related message and a Type
- * property corresponding to the RelationshipType attribute of the
- * RelatesToType. Implementing classes must supply a single argument constructor
- * with parameter type <code>java.net.URI</code>, which is used to
initialize
- * the <b>ID</b> property.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 14-Nov-2005
- */
-public class RelationshipImpl extends AttributeExtensibleImpl implements Relationship
-{
- private URI uri;
- private QName type;
-
- public RelationshipImpl(URI uri)
- {
- this.uri = uri;
- }
-
- public URI getID()
- {
- return uri;
- }
-
- public QName getType()
- {
- return type;
- }
-
- public void setType(QName type)
- {
- this.type = type;
- }
-
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/RelationshipImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/RelationshipImpl.java)
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/jaxrpc (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/jaxrpc)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/jaxrpc/WSAddressingClientHandler.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/jaxrpc/WSAddressingClientHandler.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/jaxrpc/WSAddressingClientHandler.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,130 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.addressing.jaxrpc;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.handler.GenericHandler;
-import javax.xml.rpc.handler.HandlerInfo;
-import javax.xml.rpc.handler.MessageContext;
-import javax.xml.rpc.handler.soap.SOAPMessageContext;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPMessage;
-import javax.xml.ws.addressing.AddressingBuilder;
-import javax.xml.ws.addressing.AddressingException;
-import javax.xml.ws.addressing.JAXWSAConstants;
-import javax.xml.ws.addressing.soap.SOAPAddressingBuilder;
-import javax.xml.ws.addressing.soap.SOAPAddressingProperties;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.extensions.addressing.soap.SOAPAddressingPropertiesImpl;
-
-/**
- * A client side handler that reads/writes the addressing properties
- * and puts then into the message context.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 24-Nov-2005
- */
-public class WSAddressingClientHandler extends GenericHandler
-{
- // Provide logging
- private static Logger log = Logger.getLogger(WSAddressingClientHandler.class);
-
- // addressing builder & constants
- private AddressingBuilder addrBuilder;
-
- // should the request be normalized according to the specifications
- private boolean normalize;
-
- public WSAddressingClientHandler()
- {
- addrBuilder = AddressingBuilder.getAddressingBuilder();
- }
-
- public QName[] getHeaders()
- {
- return new QName[] {};
- }
-
- public void init(HandlerInfo handlerInfo)
- {
- super.init(handlerInfo);
- normalize =
"true".equals(handlerInfo.getHandlerConfig().get("normalize"));
-
- }
-
- public boolean handleRequest(MessageContext msgContext)
- {
- log.debug("handleRequest");
-
- SOAPAddressingProperties addrProps =
(SOAPAddressingProperties)msgContext.getProperty(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES_OUTBOUND);
-
- if (addrProps != null)
- {
- if (normalize)
- normalizeRequest(msgContext, addrProps);
-
- SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
- addrProps.writeHeaders(soapMessage);
- }
- else
- {
- // supply default addressing properties
- addrProps =
(SOAPAddressingPropertiesImpl)addrBuilder.newAddressingProperties();
- msgContext.setProperty(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES_OUTBOUND,
addrProps);
-
- if (normalize)
- normalizeRequest(msgContext, addrProps);
- }
-
- return true;
- }
-
- /* supply the default addressing properties in case elements are missing */
- private void normalizeRequest(MessageContext msgContext, SOAPAddressingProperties
addrProps)
- {
- // TODO: supply default header
- }
-
- public boolean handleResponse(MessageContext msgContext)
- {
- log.debug("handleResponse");
-
- try
- {
- SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
- if (soapMessage.getSOAPPart().getEnvelope() != null)
- {
- SOAPAddressingBuilder builder =
(SOAPAddressingBuilder)SOAPAddressingBuilder.getAddressingBuilder();
- SOAPAddressingProperties addrProps =
(SOAPAddressingProperties)builder.newAddressingProperties();
- addrProps.readHeaders(soapMessage);
- msgContext.setProperty(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES_INBOUND,
addrProps);
- }
- }
- catch (SOAPException ex)
- {
- throw new AddressingException("Cannot handle response", ex);
- }
-
- return true;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/jaxrpc/WSAddressingClientHandler.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/jaxrpc/WSAddressingClientHandler.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/jaxrpc/WSAddressingServerHandler.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/jaxrpc/WSAddressingServerHandler.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/jaxrpc/WSAddressingServerHandler.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,179 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.addressing.jaxrpc;
-
-import java.net.URISyntaxException;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.handler.GenericHandler;
-import javax.xml.rpc.handler.HandlerInfo;
-import javax.xml.rpc.handler.MessageContext;
-import javax.xml.rpc.handler.soap.SOAPMessageContext;
-import javax.xml.soap.SOAPMessage;
-import javax.xml.ws.addressing.AddressingBuilder;
-import javax.xml.ws.addressing.JAXWSAConstants;
-import javax.xml.ws.addressing.soap.SOAPAddressingBuilder;
-import javax.xml.ws.addressing.soap.SOAPAddressingProperties;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.core.jaxrpc.handler.SOAPMessageContextJAXRPC;
-import org.jboss.ws.extensions.addressing.AddressingConstantsImpl;
-import org.jboss.ws.extensions.addressing.metadata.AddressingOpMetaExt;
-import org.jboss.ws.metadata.umdm.OperationMetaData;
-
-/**
- * A server side handler that reads/writes the addressing properties
- * and puts then into the message context.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 24-Nov-2005
- */
-public class WSAddressingServerHandler extends GenericHandler
-{
- // Provide logging
- private static Logger log = Logger.getLogger(WSAddressingServerHandler.class);
-
- // should the request be validated?
- private boolean validate = true;
-
- private static AddressingBuilder ADDR_BUILDER;
- private static AddressingConstantsImpl ADDR_CONSTANTS;
- static
- {
- ADDR_CONSTANTS = new AddressingConstantsImpl();
- ADDR_BUILDER = AddressingBuilder.getAddressingBuilder();
- }
-
- public QName[] getHeaders()
- {
- return new QName[] {};
- }
-
- public void init(HandlerInfo handlerInfo)
- {
- super.init(handlerInfo);
- String strValidate =
(String)handlerInfo.getHandlerConfig().get("validate");
- validate = "true".equals(strValidate);
- }
-
- /**
- * Read the addressing headers from the incomming message and put a
- * SOAPAddressingProperties object into the message context
- */
- public boolean handleRequest(MessageContext msgContext)
- {
- log.debug("handleRequest");
-
- SOAPAddressingProperties addrProps =
(SOAPAddressingProperties)ADDR_BUILDER.newAddressingProperties();
- SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
- addrProps.readHeaders(soapMessage);
- msgContext.setProperty(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_INBOUND,
addrProps);
-
- if (validate)
- validateRequest(addrProps);
-
- return true;
- }
-
- /**
- * Get a SOAPAddressingProperties object from the message context
- * and write the adressing headers
- */
- public boolean handleResponse(MessageContext msgContext)
- {
- log.debug("handleResponse");
- handleResponseOrFault(msgContext, false);
- return true;
- }
-
- /**
- * Get a SOAPAddressingProperties object from the message context
- * and write the adressing headers
- */
- public boolean handleFault(MessageContext msgContext)
- {
- log.debug("handleFault");
- handleResponseOrFault(msgContext, true);
- return true;
- }
-
- private void handleResponseOrFault(MessageContext msgContext, boolean isFault)
- {
- SOAPAddressingBuilder builder =
(SOAPAddressingBuilder)SOAPAddressingBuilder.getAddressingBuilder();
- SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
-
- SOAPAddressingProperties inProps =
(SOAPAddressingProperties)msgContext.getProperty(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_INBOUND);
- SOAPAddressingProperties outProps =
(SOAPAddressingProperties)msgContext.getProperty(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_OUTBOUND);
-
- if (outProps == null)
- {
- // create new response properties
- outProps = (SOAPAddressingProperties)builder.newAddressingProperties();
- msgContext.setProperty(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_OUTBOUND,
outProps);
- }
-
- outProps.initializeAsReply(inProps, isFault);
-
- try
- {
- // supply the response action
-
- OperationMetaData opMetaData =
((SOAPMessageContextJAXRPC)msgContext).getOperationMetaData();
-
- if (!isFault && !opMetaData.isOneWayOperation())
- {
-
- AddressingOpMetaExt addrExt =
(AddressingOpMetaExt)opMetaData.getExtension(ADDR_CONSTANTS.getNamespaceURI());
- if (addrExt != null)
- {
- outProps.setAction(ADDR_BUILDER.newURI(addrExt.getOutboundAction()));
- }
- else
- {
- log.warn("Unable to resolve replyAction for " +
opMetaData.getQName());
- }
-
- }
- else if (isFault)
- {
-
outProps.setAction(ADDR_BUILDER.newURI(ADDR_CONSTANTS.getDefaultFaultAction()));
- }
-
- }
- catch (URISyntaxException e)
- {
- log.error("Error setting response action", e);
- }
-
- outProps.writeHeaders(soapMessage);
- }
-
- /* check wsa formal constraints */
- private void validateRequest(SOAPAddressingProperties addrProps)
- {
-
- // If wsa:ReplyTo is supplied and the message lacks a [message id] property, the
processor MUST fault.
- if (addrProps.getReplyTo() != null && addrProps.getMessageID() == null)
- throw new IllegalArgumentException("wsa:MessageId is required when
wsa:ReplyTo is supplied");
-
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/jaxrpc/WSAddressingServerHandler.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/jaxrpc/WSAddressingServerHandler.java)
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/metadata
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/metadata)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/metadata/AddressingOpMetaExt.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/metadata/AddressingOpMetaExt.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/metadata/AddressingOpMetaExt.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,66 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.addressing.metadata;
-
-// $Id$
-
-import org.jboss.ws.metadata.umdm.MetaDataExtension;
-
-/**
- * Addressing meta data extensions:
- * <ul>
- * <li>wsa:Action attribute
- * </ul>
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 17-Mar-2006
- */
-public class AddressingOpMetaExt extends MetaDataExtension
-{
- private String inboundAction;
- private String outboundAction;
-
- public AddressingOpMetaExt(String extensionNameSpace)
- {
- super(extensionNameSpace);
- }
-
- public String getInboundAction()
- {
- return inboundAction;
- }
-
- public void setInboundAction(String inboundAction)
- {
- this.inboundAction = inboundAction;
- }
-
- public String getOutboundAction()
- {
- return outboundAction;
- }
-
- public void setOutboundAction(String outboundAction)
- {
- this.outboundAction = outboundAction;
- }
-
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/metadata/AddressingOpMetaExt.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/metadata/AddressingOpMetaExt.java)
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/soap (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/soap)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/soap/SOAPAddressingBuilderImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/soap/SOAPAddressingBuilderImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/soap/SOAPAddressingBuilderImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,92 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.addressing.soap;
-
-//$Id$
-
-import java.net.URI;
-import java.net.URISyntaxException;
-
-import javax.xml.namespace.QName;
-import javax.xml.ws.addressing.AddressingConstants;
-import javax.xml.ws.addressing.AddressingProperties;
-import javax.xml.ws.addressing.AttributedQName;
-import javax.xml.ws.addressing.AttributedURI;
-import javax.xml.ws.addressing.EndpointReference;
-import javax.xml.ws.addressing.Relationship;
-import javax.xml.ws.addressing.soap.SOAPAddressingBuilder;
-
-import org.jboss.ws.extensions.addressing.AddressingConstantsImpl;
-import org.jboss.ws.extensions.addressing.AddressingTypeImpl;
-import org.jboss.ws.extensions.addressing.AttributedQNameImpl;
-import org.jboss.ws.extensions.addressing.AttributedURIImpl;
-import org.jboss.ws.extensions.addressing.EndpointReferenceImpl;
-import org.jboss.ws.extensions.addressing.RelationshipImpl;
-
-/**
- * Factory for <code>AddressingElements</code>.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 14-Nov-2005
- */
-public class SOAPAddressingBuilderImpl extends SOAPAddressingBuilder
-{
- public AttributedURI newURI(URI uri)
- {
- return new AttributedURIImpl(uri);
- }
-
- public AttributedURI newURI(String uri) throws URISyntaxException
- {
- return newURI(new URI(uri));
- }
-
- public AttributedQName newQName(QName name)
- {
- return new AttributedQNameImpl(name);
- }
-
- public Relationship newRelationship(URI uri)
- {
- return new RelationshipImpl(uri);
- }
-
- public EndpointReference newEndpointReference(URI uri)
- {
- return new EndpointReferenceImpl(uri);
- }
-
- public AddressingProperties newAddressingProperties()
- {
- return new SOAPAddressingPropertiesImpl();
- }
-
- public AddressingConstants newAddressingConstants()
- {
- return new AddressingConstantsImpl();
- }
-
- public String getNamespaceURI()
- {
- return new AddressingTypeImpl().getNamespaceURI();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/soap/SOAPAddressingBuilderImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/soap/SOAPAddressingBuilderImpl.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/soap/SOAPAddressingPropertiesImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/soap/SOAPAddressingPropertiesImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/soap/SOAPAddressingPropertiesImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,338 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.addressing.soap;
-
-//$Id$
-
-import java.lang.reflect.Array;
-import java.net.URI;
-import java.net.URISyntaxException;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import javax.xml.namespace.QName;
-import javax.xml.soap.SOAPElement;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPFactory;
-import javax.xml.soap.SOAPHeader;
-import javax.xml.soap.SOAPHeaderElement;
-import javax.xml.soap.SOAPMessage;
-import javax.xml.ws.addressing.AddressingConstants;
-import javax.xml.ws.addressing.AddressingException;
-import javax.xml.ws.addressing.ReferenceParameters;
-import javax.xml.ws.addressing.Relationship;
-import javax.xml.ws.addressing.soap.SOAPAddressingBuilder;
-import javax.xml.ws.addressing.soap.SOAPAddressingProperties;
-
-import org.jboss.util.NotImplementedException;
-import org.jboss.ws.core.soap.NameImpl;
-import org.jboss.ws.core.soap.SOAPElementImpl;
-import org.jboss.ws.core.soap.SOAPFactoryImpl;
-import org.jboss.ws.core.utils.DOMUtils;
-import org.jboss.ws.core.utils.ThreadLocalAssociation;
-import org.jboss.ws.extensions.addressing.AddressingConstantsImpl;
-import org.jboss.ws.extensions.addressing.AddressingPropertiesImpl;
-import org.jboss.ws.extensions.addressing.EndpointReferenceImpl;
-import org.jboss.xb.binding.NamespaceRegistry;
-import org.w3c.dom.Attr;
-import org.w3c.dom.Element;
-import org.w3c.dom.NamedNodeMap;
-
-/**
- * Subimplementation of <code>AddressingProperties</code> includes methods
that
- * read and write the Message Addressing Properties to a
<code>SOAPMessage</code>.
- * All individual properties must implement
<code>SOAPAddressingElement</code>.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 15-Nov-2005
- */
-public class SOAPAddressingPropertiesImpl extends AddressingPropertiesImpl implements
SOAPAddressingProperties
-{
- private static AddressingConstants ADDR = new AddressingConstantsImpl();
-
- private NamespaceRegistry nsRegistry = new NamespaceRegistry();
-
- public void readHeaders(SOAPMessage message) throws AddressingException
- {
- try
- {
- SOAPHeader soapHeader = message.getSOAPHeader();
-
- SOAPAddressingBuilder builder = new SOAPAddressingBuilderImpl();
- AddressingConstants ADDR = builder.newAddressingConstants();
-
- Element wsaAction = DOMUtils.getFirstChildElement(soapHeader,
ADDR.getActionQName());
- if (wsaAction != null)
- {
- // Register wsa namespace
- nsRegistry.registerURI(ADDR.getNamespaceURI(), ADDR.getNamespacePrefix());
-
- // Register namespaces
- NamedNodeMap attribs = soapHeader.getAttributes();
- for (int i = 0; i < attribs.getLength(); i++)
- {
- Attr attr = (Attr)attribs.item(i);
- String attrName = attr.getName();
- String attrValue = attr.getValue();
- if (attrName.startsWith("xmlns:"))
- {
- String prefix = attrName.substring(6);
- nsRegistry.registerURI(attrValue, prefix);
- }
- }
-
- // Read wsa:To
- Element wsaTo = DOMUtils.getFirstChildElement(soapHeader,
ADDR.getToQName());
- if (wsaTo != null)
- {
- String to = DOMUtils.getTextContent(wsaTo);
- setTo(builder.newURI(to));
- }
-
- // Read wsa:From
- Element wsaFrom = DOMUtils.getFirstChildElement(soapHeader,
ADDR.getFromQName());
- if (wsaFrom != null)
- {
- EndpointReferenceImpl ref = new EndpointReferenceImpl(wsaFrom);
- setReplyTo(ref);
- }
-
- // Read wsa:ReplyTo
- Element wsaReplyTo = DOMUtils.getFirstChildElement(soapHeader,
ADDR.getReplyToQName());
- if (wsaReplyTo != null)
- {
- EndpointReferenceImpl ref = new EndpointReferenceImpl(wsaReplyTo);
- setReplyTo(ref);
- }
-
- // Read wsa:FaultTo
- Element wsaFaultTo = DOMUtils.getFirstChildElement(soapHeader,
ADDR.getFaultToQName());
- if (wsaFaultTo != null)
- {
- EndpointReferenceImpl ref = new EndpointReferenceImpl(wsaFaultTo);
- setFaultTo(ref);
- }
-
- // Read wsa:Action
- String action = DOMUtils.getTextContent(wsaAction);
- setAction(builder.newURI(action));
-
- // Read wsa:MessageID
- Element wsaMessageId = DOMUtils.getFirstChildElement(soapHeader,
ADDR.getMessageIDQName());
- if (wsaMessageId != null)
- {
- String messageID = DOMUtils.getTextContent(wsaMessageId);
- setMessageID(builder.newURI(messageID));
- }
-
- // Read wsa:RelatesTo
- Iterator itRelatesTo = DOMUtils.getChildElements(soapHeader,
ADDR.getRelatesToQName());
- List<Relationship> relList = new ArrayList<Relationship>();
- while (itRelatesTo.hasNext())
- {
- Element wsaRelatesTo = (Element)itRelatesTo.next();
- QName type = DOMUtils.getAttributeValueAsQName(wsaRelatesTo,
ADDR.getRelationshipTypeName());
- String uri = DOMUtils.getTextContent(wsaRelatesTo);
- Relationship rel = builder.newRelationship(new URI(uri));
- rel.setType(type);
- relList.add(rel);
- }
- Relationship[] relArr = (Relationship[])Array.newInstance(Relationship.class,
relList.size());
- relList.toArray(relArr);
- setRelatesTo(relArr);
- }
-
- // Read wsa:ReferenceParameters
- QName refQName = new QName(getNamespaceURI(),
"IsReferenceParameter");
- ReferenceParameters refParams = getReferenceParameters();
- Iterator it = soapHeader.examineAllHeaderElements();
- while (it.hasNext())
- {
- SOAPHeaderElement headerElement = (SOAPHeaderElement)it.next();
- if ("true".equals(DOMUtils.getAttributeValue(headerElement,
refQName)))
- {
- refParams.addElement(headerElement);
- }
- }
- }
- catch (SOAPException ex)
- {
- throw new AddressingException("Cannot read headers", ex);
- }
- catch (URISyntaxException ex)
- {
- throw new AddressingException("Cannot read headers", ex);
- }
- }
-
- public void writeHeaders(SOAPMessage message) throws AddressingException
- {
- try
- {
- SOAPFactoryImpl factory = (SOAPFactoryImpl)SOAPFactory.newInstance();
-
- SOAPHeader soapHeader = message.getSOAPHeader();
-
- if (getAction() == null)
- throw new AddressingException("Required addressing property
wsa:Action");
-
- // Add the xmlns:wsa declaration
- soapHeader.addNamespaceDeclaration(ADDR.getNamespacePrefix(),
ADDR.getNamespaceURI());
-
- // Write wsa:To
- if (getTo() != null)
- {
- SOAPElement wsaTo = soapHeader.addChildElement(new
NameImpl(ADDR.getToQName()));
- wsaTo.addTextNode(getTo().getURI().toString());
- }
-
- // Write wsa:From
- if (getFrom() != null)
- {
- EndpointReferenceImpl epr = (EndpointReferenceImpl)getFrom();
- epr.setRootQName(ADDR.getFromQName());
- SOAPElement soapElement = factory.createElement(epr.toElement(), true);
- soapElement.removeNamespaceDeclaration(ADDR.getNamespacePrefix());
- soapHeader.addChildElement(soapElement);
- }
-
- // Write wsa:ReplyTo
- if (getReplyTo() != null)
- {
- EndpointReferenceImpl epr = (EndpointReferenceImpl)getReplyTo();
- epr.setRootQName(ADDR.getReplyToQName());
- SOAPElement soapElement = factory.createElement(epr.toElement(), true);
- soapElement.removeNamespaceDeclaration(ADDR.getNamespacePrefix());
- soapHeader.addChildElement(soapElement);
- }
-
- // Write wsa:FaultTo
- if (getFaultTo() != null)
- {
- EndpointReferenceImpl epr = (EndpointReferenceImpl)getFaultTo();
- epr.setRootQName(ADDR.getFaultToQName());
- SOAPElement soapElement = factory.createElement(epr.toElement(), true);
- soapElement.removeNamespaceDeclaration(ADDR.getNamespacePrefix());
- soapHeader.addChildElement(soapElement);
- }
-
- // Write wsa:Action
- SOAPElement wsaAction = soapHeader.addChildElement(new
NameImpl(ADDR.getActionQName()));
- wsaAction.addTextNode(getAction().getURI().toString());
-
- // Write wsa:MessageID
- if (getMessageID() != null)
- {
- SOAPElement wsaMessageId = soapHeader.addChildElement(new
NameImpl(ADDR.getMessageIDQName()));
- wsaMessageId.addTextNode(getMessageID().getURI().toString());
- }
-
- // Write wsa:RelatesTo
- if (getRelatesTo() != null)
- {
- for (Relationship rel : getRelatesTo())
- {
- SOAPElement wsaRelatesTo = soapHeader.addChildElement(new
NameImpl(ADDR.getRelatesToQName()));
- if (rel.getType() != null)
- {
- wsaRelatesTo.setAttribute(ADDR.getRelationshipTypeName(),
getPrefixedName(rel.getType()));
- }
- wsaRelatesTo.addTextNode(rel.getID().toString());
- }
- }
-
- // Write wsa:ReferenceParameters
- ReferenceParameters refParams = getReferenceParameters();
- if (refParams.getElements().size() > 0 || refParams.getAttributes().size()
> 0)
- {
- SOAPElement wsaRefParams = soapHeader.addChildElement(new
NameImpl(ADDR.getReferenceParametersQName()));
- appendAttributes(wsaRefParams, refParams.getAttributes());
- appendElements(wsaRefParams, refParams.getElements());
- }
-
- appendElements(soapHeader, getElements());
- }
- catch (SOAPException ex)
- {
- throw new AddressingException("Cannot read headers", ex);
- }
- }
-
- public void setMu(boolean mu)
- {
- throw new NotImplementedException();
- }
-
- private void appendAttributes(SOAPElement soapElement, Map<QName, String>
attributes)
- {
- for (QName qname : attributes.keySet())
- {
- String qualname = getPrefixedName(qname);
- String value = attributes.get(qname);
- soapElement.setAttribute(qualname, value);
- }
- }
-
- private void appendElements(SOAPElement soapElement, List<Object> elements)
- {
- try
- {
- SOAPFactoryImpl factory = (SOAPFactoryImpl)SOAPFactory.newInstance();
- for (Object obj : elements)
- {
- if (obj instanceof Element)
- {
- SOAPElementImpl child = factory.createElement((Element)obj, true);
- soapElement.addChildElement(child);
- }
- else if (obj instanceof String)
- {
- Element el = DOMUtils.parse((String)obj);
- SOAPElementImpl child = factory.createElement(el, true);
- soapElement.addChildElement(child);
- }
- else
- {
- throw new AddressingException("Unsupported element: " +
obj.getClass().getName());
- }
- }
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Exception ex)
- {
- throw new AddressingException("Cannot append elements", ex);
- }
- }
-
- private String getPrefixedName(QName qname)
- {
- String prefix = qname.getPrefix();
- String localPart = qname.getLocalPart();
- String qualname = (prefix != null && prefix.length() > 0 ? prefix +
":" + localPart : localPart);
- return qualname;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/soap/SOAPAddressingPropertiesImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/addressing/soap/SOAPAddressingPropertiesImpl.java)
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing (from rev
1605, branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventSourceEndpoint.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventSourceEndpoint.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventSourceEndpoint.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,45 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.eventing;
-
-// $Id$
-
-import org.jboss.ws.extensions.eventing.element.SubscribeRequest;
-import org.jboss.ws.extensions.eventing.element.SubscribeResponse;
-import org.jboss.ws.extensions.eventing.element.SubscriptionEndRequest;
-
-import java.rmi.Remote;
-import java.rmi.RemoteException;
-
-/**
- * Event source endpoint interface.
- *
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 24-Nov-2005
- */
-public interface EventSourceEndpoint extends Remote
-{
-
- SubscribeResponse subscribe(SubscribeRequest subscribeRequest) throws
RemoteException;
-
- SubscriptionEndRequest subscriptionEnd() throws RemoteException;
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventSourceEndpoint.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventSourceEndpoint.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventSourceEndpointImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventSourceEndpointImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventSourceEndpointImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,108 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.eventing;
-
-// $Id$
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.extensions.eventing.element.EndpointReference;
-import org.jboss.ws.extensions.eventing.element.SubscribeRequest;
-import org.jboss.ws.extensions.eventing.element.SubscribeResponse;
-import org.jboss.ws.extensions.eventing.element.SubscriptionEndRequest;
-import org.jboss.ws.extensions.eventing.mgmt.Filter;
-import org.jboss.ws.extensions.eventing.mgmt.SubscriptionError;
-import org.jboss.ws.extensions.eventing.mgmt.SubscriptionManagerMBean;
-import org.jboss.ws.extensions.eventing.mgmt.SubscriptionTicket;
-
-import javax.xml.rpc.soap.SOAPFaultException;
-import javax.xml.ws.addressing.AddressingProperties;
-import javax.xml.ws.addressing.AttributedURI;
-import java.rmi.RemoteException;
-
-/**
- * Event source endpoint implementation.<br>
- * Delegates to {@link org.jboss.ws.extensions.eventing.mgmt.SubscriptionManager}
- *
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 25-Nov-2005
- */
-public class EventSourceEndpointImpl extends EventingEndpointBase
- implements EventSourceEndpoint
-{
- private static Logger log = Logger.getLogger(EventSourceEndpointImpl.class);
-
- public SubscribeResponse subscribe(SubscribeRequest request) throws RemoteException
- {
- try
- {
- // retrieve addressing headers
- AddressingProperties inProps = getAddrProperties();
- AttributedURI eventSourceURI = inProps.getTo();
- log.debug("Subscribe request for event source: " +
eventSourceURI.getURI());
-
- assertSubscriberEndpoints(request);
- EndpointReference notifyTo = request.getDelivery().getNotifyTo();
- EndpointReference endTo = request.getEndTo();
-
- // adapt filter elements
- Filter filter = null;
- if (request.getFilter() != null)
- {
- filter = new Filter(request.getFilter().getDialect(),
request.getFilter().get_value());
- }
-
- // invoke subscription manager
- SubscriptionManagerMBean subscriptionManager = getSubscriptionManager();
- SubscriptionTicket ticket =
subscriptionManager.subscribe(eventSourceURI.getURI(), notifyTo, endTo,
request.getExpires(), filter);
-
- // create the response element
- SubscribeResponse res = new SubscribeResponse();
- res.setExpires(ticket.getExpires());
- res.setSubscriptionManager(ticket.getSubscriptionManager());
-
- return res;
-
- }
- catch (SubscriptionError e)
- {
- throw new SOAPFaultException(buildFaultQName(e.getSubcode()), e.getReason(),
null, null);
- }
- }
-
- public SubscriptionEndRequest subscriptionEnd() throws RemoteException
- {
- return new SubscriptionEndRequest();
- }
-
- /**
- * Ensure that the subscriber endpoint information is supplied in request.
- * Namely NotifyTo and EndTo need to be set.
- * @param request
- */
- private void assertSubscriberEndpoints(SubscribeRequest request) {
- if(null == request.getDelivery().getNotifyTo() || null == request.getEndTo() )
- throw new SOAPFaultException(
buildFaultQName(EventingConstants.CODE_INVALID_MESSAGE) ,
- "Subcriber endpoint information missing from request",
- null, null
- );
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventSourceEndpointImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventSourceEndpointImpl.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventingConstants.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventingConstants.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventingConstants.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,161 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.eventing;
-
-// $Id$
-
-import org.jboss.ws.WSException;
-
-import javax.management.MalformedObjectNameException;
-import javax.management.ObjectName;
-import javax.xml.ws.addressing.AddressingBuilder;
-import javax.xml.ws.addressing.AddressingConstants;
-
-import java.net.URI;
-import java.net.URISyntaxException;
-
-/**
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 19-Dec-2005
- */
-public class EventingConstants
-{
- private static AddressingBuilder WSA_BUILDER =
AddressingBuilder.getAddressingBuilder();
- private static AddressingConstants WSA_CONSTANTS =
WSA_BUILDER.newAddressingConstants();
-
- // common namespaces
-
- public final static String NS_EVENTING =
"http://schemas.xmlsoap.org/ws/2004/08/eventing";
- public final static String PREFIX_EVENTING = "wse";
- public final static String NS_ADDRESSING = WSA_CONSTANTS.getNamespaceURI();
-
- // request /response action from specification
-
- public final static String SUBSCRIBE_ACTION =
"http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe";
- public final static String SUBSCRIBE_RESPONSE_ACTION =
"http://schemas.xmlsoap.org/ws/2004/08/eventing/SubscribeResponse";
- public final static String UNSUBSCRIBE_ACTION =
"http://schemas.xmlsoap.org/ws/2004/08/eventing/Unsubscribe";
- public final static String UNSUBSCRIBE_RESPONSE_ACTION =
"http://schemas.xmlsoap.org/ws/2004/08/eventing/UnsubscribeResponse";
- public final static String GET_STATUS_ACTION =
"http://schemas.xmlsoap.org/ws/2004/08/eventing/GetStatus";
- public final static String GET_STATUS_RESPONSE_ACTION =
"http://schemas.xmlsoap.org/ws/2004/08/eventing/GetStatusResponse";
- public final static String RENEW_ACTION =
"http://schemas.xmlsoap.org/ws/2004/08/eventing/Renew";
- public final static String RENEW_RESPONSE_ACTION =
"http://schemas.xmlsoap.org/ws/2004/08/eventing/RenewResponse";
- public final static String SUBSCRIPTION_END_ACTION =
"http://schemas.xmlsoap.org/ws/2004/08/eventing/SubscriptionEnd";
-
- public final static String WSA_FAULT_ACTION =
"http://schemas.xmlsoap.org/ws/2004/08/addressing/fault";
- public final static String WSA_ANONYMOUS_URI = WSA_CONSTANTS.getAnonymousURI();
-
- // failures
-
- public final static String DELIVERY_FAILURE =
"http://schemas.xmlsoap.org/ws/2004/08/eventing/DeliveryFailure";
- public final static String SOURCE_SHUTTING_DOWN =
"http://schemas.xmlsoap.org/ws/2004/08/eventing/SourceShuttingDown";
- public final static String SOURCE_CANCELING =
"http://schemas.xmlsoap.org/ws/2004/08/eventing/SourceCanceling";
-
- public final static String CODE_UNABLE_TO_PROCESS =
"EventSourceUnableToProcess";
- public final static String CODE_FILTER_NOT_SUPPORTED =
"FilteringNotSupported";
- public final static String CODE_REQUESTED_FILTER_UNAVAILABLE =
"FilteringRequestedUnavailable";
- public final static String CODE_INVALID_EXPIRATION_TIME =
"InvalidExpirationTime";
- public final static String CODE_UNABLE_TO_RENEW = "UnableToRenew";
- public final static String CODE_INVALID_MESSAGE = "InvalidMessage";
-
- // default config
-
- public final static String DISPATCHER_JNDI_NAME = "EventDispatcher";
-
- private static URI DELIVERY_PUSH_URI = null;
- private static URI DIALECT_XPATH_URI = null;
-
- private static URI SUBSCRIBE_ACTION_URI = null;
-
- public final static URI buildURI(String uri)
- {
- try
- {
- return new URI(uri);
- }
- catch (URISyntaxException e)
- {
- throw new IllegalArgumentException(e.getMessage());
- }
- }
-
- public static final URI getDefaultFilterDialect()
- {
- try
- {
- return new
URI("http://www.w3.org/TR/1999/REC-xpath-19991116");
- }
- catch (URISyntaxException e)
- {
- throw new WSException(e.getMessage());
- }
- }
-
- public static final URI getDeliveryPush()
- {
- if (null == DELIVERY_PUSH_URI)
- {
- try
- {
- DELIVERY_PUSH_URI = new
URI("http://schemas.xmlsoap.org/ws/2004/08/eventing/DeliveryModes/Pu...;
- }
- catch (URISyntaxException e)
- {
- //
- }
- }
- return DELIVERY_PUSH_URI;
- }
-
- public static URI getDialectXPath()
- {
- if (null == DIALECT_XPATH_URI)
- {
- try
- {
- DIALECT_XPATH_URI = new
URI("http://www.w3.org/TR/1999/REC-xpath-19991116");
- }
- catch (URISyntaxException e)
- {
- //
- }
- }
-
- return DIALECT_XPATH_URI;
- }
-
- public static URI getSubscribeAction()
- {
- if (null == SUBSCRIBE_ACTION_URI)
- {
- try
- {
- SUBSCRIBE_ACTION_URI = new URI(SUBSCRIBE_ACTION);
- }
- catch (URISyntaxException e)
- {
- //
- }
- }
-
- return SUBSCRIBE_ACTION_URI;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventingConstants.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventingConstants.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventingEndpointBase.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventingEndpointBase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventingEndpointBase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,99 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.eventing;
-
-
-// $Id$
-
-import java.net.URI;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.soap.SOAPFaultException;
-import javax.xml.ws.addressing.AddressingBuilder;
-import javax.xml.ws.addressing.AddressingProperties;
-import javax.xml.ws.addressing.JAXWSAConstants;
-
-import org.jboss.ws.Constants;
-import org.jboss.ws.core.CommonMessageContext;
-import org.jboss.ws.core.soap.MessageContextAssociation;
-import org.jboss.ws.extensions.eventing.mgmt.SubscriptionManagerFactory;
-import org.jboss.ws.extensions.eventing.mgmt.SubscriptionManagerMBean;
-
-/**
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 13-Jan-2006
- */
-public abstract class EventingEndpointBase
-{
-
- private AddressingBuilder addrBuilder;
-
- /**
- * Retrieve the addressing properties associated with the request
- * and verify them.
- */
- protected static AddressingProperties getAddrProperties()
- {
- CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
- AddressingProperties inProps =
(AddressingProperties)msgContext.getProperty(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_INBOUND);
- assertAddrProperties(inProps);
- return inProps;
- }
-
- protected void setReplyAction(URI replyAction)
- {
-
- }
-
- /**
- * Access local subscription manager service.
- */
- protected SubscriptionManagerMBean getSubscriptionManager()
- {
- SubscriptionManagerFactory factory = SubscriptionManagerFactory.getInstance();
- SubscriptionManagerMBean subscriptionManager = factory.getSubscriptionManager();
- return subscriptionManager;
- }
-
- protected AddressingBuilder getAddrBuilder()
- {
- if (null == addrBuilder)
- addrBuilder = AddressingBuilder.getAddressingBuilder();
- return addrBuilder;
- }
-
- /**
- * Ensure that all required inbound properties are supplied in request.
- * @param inProps
- * @throws javax.xml.rpc.soap.SOAPFaultException
- */
- protected static void assertAddrProperties(AddressingProperties inProps) throws
SOAPFaultException
- {
- if (null == inProps)
- throw new SOAPFaultException(Constants.SOAP11_FAULT_CODE_CLIENT,
"Addressing headers missing from request", "wse:InvalidMessage",
null);
- }
-
- public QName buildFaultQName(String elementName)
- {
- return new QName(EventingConstants.NS_EVENTING, elementName,
EventingConstants.PREFIX_EVENTING);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventingEndpointBase.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventingEndpointBase.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventingService.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventingService.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventingService.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,34 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.eventing;
-
-// $Id$
-
-import javax.xml.rpc.Service;
-
-/**
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 24-Nov-2005
- */
-public interface EventingService extends Service
-{
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventingService.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/EventingService.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/SubscriptionManagerEndpoint.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/SubscriptionManagerEndpoint.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/SubscriptionManagerEndpoint.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,45 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.eventing;
-
-// $Id$
-
-import org.jboss.ws.extensions.eventing.element.*;
-
-import java.rmi.Remote;
-import java.rmi.RemoteException;
-
-/**
- * Subscription manager endpoint interface.
- *
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 16-Dec-2005
- */
-public interface SubscriptionManagerEndpoint extends Remote
-{
-
- StatusResponse getStatus(StatusRequest request) throws RemoteException;
-
- RenewResponse renew(RenewRequest request) throws RemoteException;
-
- void unsubscribe(UnsubscribeRequest request) throws RemoteException;
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/SubscriptionManagerEndpoint.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/SubscriptionManagerEndpoint.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/SubscriptionManagerEndpointImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/SubscriptionManagerEndpointImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/SubscriptionManagerEndpointImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,194 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.eventing;
-
-// $Id$
-
-import java.net.URI;
-import java.net.URISyntaxException;
-import java.rmi.RemoteException;
-import java.util.Date;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.soap.SOAPFaultException;
-import javax.xml.ws.addressing.AddressingProperties;
-import javax.xml.ws.addressing.JAXWSAConstants;
-import javax.xml.ws.addressing.ReferenceParameters;
-
-import org.jboss.ws.Constants;
-import org.jboss.ws.core.CommonMessageContext;
-import org.jboss.ws.core.soap.MessageContextAssociation;
-import org.jboss.ws.core.utils.DOMUtils;
-import org.jboss.ws.extensions.eventing.element.RenewRequest;
-import org.jboss.ws.extensions.eventing.element.RenewResponse;
-import org.jboss.ws.extensions.eventing.element.StatusRequest;
-import org.jboss.ws.extensions.eventing.element.StatusResponse;
-import org.jboss.ws.extensions.eventing.element.UnsubscribeRequest;
-import org.jboss.ws.extensions.eventing.mgmt.SubscriptionError;
-import org.w3c.dom.Element;
-
-/**
- * SubscriptionManager endpoint implementation.<br>
- * Delegates to {@link org.jboss.ws.extensions.eventing.mgmt.SubscriptionManager}
- *
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 16-Dec-2005
- */
-public class SubscriptionManagerEndpointImpl extends EventingEndpointBase
- implements SubscriptionManagerEndpoint
-{
-
- public static final QName IDQN = new
QName("http://schemas.xmlsoap.org/ws/2004/08/eventing", "Identifier",
"ns1");
-
- /**
- * Get the status of a subscription.
- *
- * @param request
- * @return response including the lease time.
- * @throws RemoteException
- */
- public StatusResponse getStatus(StatusRequest request) throws RemoteException
- {
- URI identifier = retrieveSubscriptionId();
-
- try
- {
- Date leaseTime = getSubscriptionManager().getStatus(identifier);
- StatusResponse response = new StatusResponse();
- response.setExpires(leaseTime);
-
- return response;
- }
- catch (SubscriptionError e)
- {
- throw new SOAPFaultException(buildFaultQName(e.getSubcode()), e.getReason(),
null, null);
- }
- }
-
- /**
- * Update the expiration for a subscription.
- *
- * @param request
- * @return response inclduing the new lease time.
- * @throws RemoteException
- */
- public RenewResponse renew(RenewRequest request) throws RemoteException
- {
-
setReplyAction(EventingConstants.buildURI(EventingConstants.RENEW_RESPONSE_ACTION));
- URI identifier = retrieveSubscriptionId();
-
- try
- {
- Date newLeaseTime = getSubscriptionManager().renew(identifier,
request.getExpires());
- RenewResponse response = new RenewResponse();
- response.setExpires(newLeaseTime);
-
- return response;
- }
- catch (SubscriptionError e)
- {
- throw new SOAPFaultException(buildFaultQName(e.getSubcode()), e.getReason(),
null, null);
- }
-
- }
-
- /**
- * Explicitly delete a subscription.
- *
- * @param request
- * @throws RemoteException
- */
- public void unsubscribe(UnsubscribeRequest request) throws RemoteException
- {
-
setReplyAction(EventingConstants.buildURI(EventingConstants.UNSUBSCRIBE_RESPONSE_ACTION));
- URI identifier = retrieveSubscriptionId();
-
- try
- {
- getSubscriptionManager().unsubscribe(identifier);
- }
- catch (SubscriptionError e)
- {
- throw new SOAPFaultException(buildFaultQName(e.getSubcode()), e.getReason(),
null, null);
- }
-
- }
-
- private URI retrieveSubscriptionId()
- {
- URI subscriptionId = null;
- CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
- AddressingProperties addrProps =
(AddressingProperties)msgContext.getProperty(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_INBOUND);
-
- if (null == addrProps)
- {
- throw new SOAPFaultException(
- Constants.SOAP11_FAULT_CODE_CLIENT,
- "The message is not valid and cannot be processed:" +
- "Cannot obtain addressing properties.",
- null, null
- );
- }
-
- ReferenceParameters refParams = addrProps.getReferenceParameters();
- if (refParams != null)
- {
- for (Object obj : refParams.getElements())
- {
- if (obj instanceof Element)
- {
- Element el = (Element)obj;
- QName qname = DOMUtils.getElementQName(el);
- if (qname.equals(IDQN))
- {
- try
- {
- subscriptionId = new URI(DOMUtils.getTextContent(el));
- break;
- }
- catch (URISyntaxException e)
- {
- throw new SOAPFaultException(
- Constants.SOAP11_FAULT_CODE_CLIENT,
- "The message is not valid and cannot be processed:"
+
- "Invalid subscription id.",
- null, null
- );
- }
- }
- }
- }
- }
-
- if (null == subscriptionId)
- {
- throw new SOAPFaultException(
- buildFaultQName(EventingConstants.CODE_INVALID_MESSAGE),
- "The message is not valid and cannot be processed."
- + "Cannot obtain subscription id.",
- null, null
- );
- }
-
- return subscriptionId;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/SubscriptionManagerEndpointImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/SubscriptionManagerEndpointImpl.java)
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/deployment
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/deployment)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/deployment/EventingEndpoint.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/deployment/EventingEndpoint.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/deployment/EventingEndpoint.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,70 +0,0 @@
-package org.jboss.ws.extensions.eventing.deployment;
-
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.server.ServiceEndpoint;
-import org.jboss.ws.core.server.ServiceEndpointInfo;
-import org.jboss.ws.extensions.eventing.EventingConstants;
-import org.jboss.ws.extensions.eventing.metadata.EventingEpMetaExt;
-import org.jboss.ws.extensions.eventing.mgmt.SubscriptionManagerFactory;
-import org.jboss.ws.extensions.eventing.mgmt.SubscriptionManagerMBean;
-import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
-
-/**
- * EventingEndpointLifecycle is responsible to create event sources
- * and register them with the subscripion manager when a service endpoint is created.
- *
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 22-Mar-2006
- */
-public class EventingEndpoint extends ServiceEndpoint
-{
- // encupsulates access to subscription manager
- private SubscriptionManagerFactory factory =
SubscriptionManagerFactory.getInstance();
-
- public EventingEndpoint(ServiceEndpointInfo seInfo)
- {
- super(seInfo);
- }
-
- /**
- * Register event source with subscription manager.
- */
- public void create() throws Exception
- {
- super.create();
-
- ServerEndpointMetaData epMetaData = seInfo.getServerEndpointMetaData();
- EventingEpMetaExt ext =
(EventingEpMetaExt)epMetaData.getExtension(EventingConstants.NS_EVENTING);
- if (null == ext)
- throw new WSException("Cannot obtain eventing meta data");
-
- // Currently several endpoints may belong to an event source deployment.
- // Therefore we have to avoid duplicate registrations
- // Actually there should be a 1:n mapping of event source NS to endpoints.
- // See also
http://jira.jboss.org/jira/browse/JBWS-770
-
- // create pending incomplete event source
- EventingEndpointDI desc = new EventingEndpointDI(ext.getEventSourceNS(),
ext.getNotificationSchema());
- desc.setEndpointAddress(epMetaData.getEndpointAddress());
- desc.setPortName(epMetaData.getPortComponentName());
-
- SubscriptionManagerMBean manager = factory.getSubscriptionManager();
- manager.registerEventSource(desc);
- }
-
- /**
- * Unregister event source with subscription manager.
- */
- public void destroy()
- {
- ServerEndpointMetaData epMetaData = seInfo.getServerEndpointMetaData();
- EventingEpMetaExt ext =
(EventingEpMetaExt)epMetaData.getExtension(EventingConstants.NS_EVENTING);
- if (null == ext)
- throw new WSException("Cannot obtain eventing meta data");
-
- SubscriptionManagerMBean manager = factory.getSubscriptionManager();
- manager.removeEventSource(ext.getEventSourceURI());
-
- super.destroy();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/deployment/EventingEndpoint.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/deployment/EventingEndpoint.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/deployment/EventingEndpointDI.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/deployment/EventingEndpointDI.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/deployment/EventingEndpointDI.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,72 +0,0 @@
-package org.jboss.ws.extensions.eventing.deployment;
-
-import org.jboss.ws.core.utils.DOMUtils;
-import org.w3c.dom.Element;
-
-import java.io.IOException;
-
-/**
- * Eventsource endpoint deployment info.
- *
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 18-Jan-2006
- */
-public class EventingEndpointDI {
-
- /* event source URI */
- private String name;
-
- /* notification schema */
- private Object schema;
-
- private Element schemaElement;
-
- private String portName;
-
- // event source endpoint address
- private String endpointAddress;
-
- public EventingEndpointDI(String name, Object schema) {
- this.name = name;
- this.schema = schema;
- }
-
- public String getPortName() {
- return portName;
- }
-
- public void setPortName(String portName) {
- this.portName = portName;
- }
-
- public String getName() {
- return name;
- }
-
- public Object getSchema() {
- return schema;
- }
-
- public String getEndpointAddress() {
- return endpointAddress;
- }
-
- public void setEndpointAddress(String endpointAddress) {
- this.endpointAddress = endpointAddress;
- }
-
- Element getSchemaElement() {
- try
- {
- if(null == this.schemaElement)
- this.schemaElement = DOMUtils.parse((String)getSchema());
- }
- catch (IOException e)
- {
- throw new IllegalArgumentException("Failed to parse notification
schema:" +e.getMessage());
- }
-
- return this.schemaElement;
- }
-
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/deployment/EventingEndpointDI.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/deployment/EventingEndpointDI.java)
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/DeliveryType.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/DeliveryType.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/DeliveryType.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,100 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.eventing.element;
-
-// $Id$
-
-import javax.xml.soap.SOAPElement;
-import java.net.URI;
-
-/**
- * A delivery element states where and how to send notifications.
- * It can contain an EPR where the notifications should be delivered to:
- * <p/>
- * <pre>
- * <wse:Delivery>
- * <wse:NotifyTo>
- * <wsa:Address>
- *
http://www.other.example.com/OnStormWarning
- * </wsa:Address>
- * <wsa:ReferenceParameters>
- * <ew:MySubscription>2597</ew:MySubscription>
- * </wsa:ReferenceParameters>
- * </wse:NotifyTo>
- * </wse:Delivery>
- * </pre>
- * <p/>
- * NOTE: In case the NotifyTo is missing, the subscribers EPR should be used
- * (denoted by soap:Header/wsa:ReplyTo).<p>
- * <p/>
- * The specification defines single delivery mode,
- * Push Mode, which is simple asynchronous messaging.
- *
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 24-Nov-2005
- */
-public class DeliveryType
-{
- private URI mode;
- private SOAPElement[] _any;
- public String _value;
- private EndpointReference notifyTo;
-
- public URI getMode()
- {
- return mode;
- }
-
- public void setMode(URI mode)
- {
- this.mode = mode;
- }
-
- public SOAPElement[] get_any()
- {
- return _any;
- }
-
- public void set_any(SOAPElement[] _any)
- {
- this._any = _any;
- }
-
- public EndpointReference getNotifyTo()
- {
- return notifyTo;
- }
-
- public void setNotifyTo(EndpointReference notifyTo)
- {
- this.notifyTo = notifyTo;
- }
- public String get_value()
- {
- return _value;
- }
-
- public void set_value(String _value)
- {
- this._value = _value;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/DeliveryType.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/DeliveryType.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/EndpointReference.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/EndpointReference.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/EndpointReference.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,98 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.eventing.element;
-
-// $Id$
-
-import org.w3c.dom.Element;
-import org.jboss.ws.core.soap.SOAPFactoryImpl;
-import org.jboss.ws.extensions.addressing.EndpointReferenceImpl;
-import org.jboss.ws.extensions.eventing.EventingConstants;
-
-import javax.xml.soap.SOAPElement;
-import javax.xml.soap.SOAPFactory;
-import javax.xml.soap.SOAPException;
-import java.net.URI;
-
-/**
- * Simplified endpoint representation.
- *
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 29-Nov-2005
- */
-public class EndpointReference
-{
- private URI address;
- private ReferenceParameters referenceParams;
- private MetaData metadata;
-
- public EndpointReference()
- {
- }
-
- public URI getAddress()
- {
- return address;
- }
-
- public void setAddress(URI address)
- {
- this.address = address;
- }
-
- public ReferenceParameters getReferenceParams()
- {
- return referenceParams;
- }
-
- public void setReferenceParams(ReferenceParameters referenceParams)
- {
- this.referenceParams = referenceParams;
- }
-
- public MetaData getMetadata()
- {
- return metadata;
- }
-
- public void setMetadata(MetaData metadata)
- {
- this.metadata = metadata;
- }
-
- public EndpointReferenceImpl toWsaEndpointReference() {
-
- try
- {
- EndpointReferenceImpl epr = new EndpointReferenceImpl(this.address);
- SOAPFactoryImpl factory = (SOAPFactoryImpl) SOAPFactory.newInstance();
- SOAPElement idEl = factory.createElement("Identifier",
"wse", EventingConstants.NS_EVENTING);
- idEl.setValue(this.referenceParams.getIdentifier().toString());
- epr.getReferenceParameters().addElement(idEl);
- return epr;
- }
- catch (SOAPException e)
- {
- throw new RuntimeException(e);
- }
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/EndpointReference.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/EndpointReference.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/FilterType.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/FilterType.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/FilterType.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,79 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.eventing.element;
-
-// $Id$
-
-import javax.xml.soap.SOAPElement;
-import java.net.URI;
-
-/**
- * A Boolean expression in some dialect,
- * either as a string or as an XML fragment. If the expression evaluates to false
- * for a notification, the notification MUST NOT be sent to the event sink.
- * <p/>
- * The value must be a XPath predicate expression (PredicateExpr).
- * <p/>
- * <br>
- * For further information see
<
code>http://www.w3.org/TR/xpath#predicates</code>.
- *
- * @see org.jboss.ws.extensions.eventing.mgmt.Filter
- *
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 24-Nov-2005
- */
-public class FilterType
-{
- private URI dialect;
- private SOAPElement[] _any;
- public String _value;
-
- public URI getDialect()
- {
- return dialect;
- }
-
- public void setDialect(URI dialect)
- {
- this.dialect = dialect;
- }
-
- public SOAPElement[] get_any()
- {
- return _any;
- }
-
- public void set_any(SOAPElement[] _any)
- {
- this._any = _any;
- }
-
- public String get_value()
- {
- return _value;
- }
-
- public void set_value(String _value)
- {
- this._value = _value;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/FilterType.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/FilterType.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/MetaData.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/MetaData.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/MetaData.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,47 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.eventing.element;
-
-// $Id$
-
-import javax.xml.soap.SOAPElement;
-
-/**
- * Endpoint meta data.
- *
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 29-Nov-2005
- */
-public class MetaData
-{
- private SOAPElement[] _any;
-
- public SOAPElement[] get_any()
- {
- return _any;
- }
-
- public void set_any(SOAPElement[] _any)
- {
- this._any = _any;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/MetaData.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/MetaData.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/ReferenceParameters.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/ReferenceParameters.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/ReferenceParameters.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,56 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.eventing.element;
-
-// $Id$
-
-import java.net.URI;
-
-/**
- * A hack that makes eventing work without support for xml wildcards.
- *
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 16-Dec-2005
- */
-public class ReferenceParameters
-{
- private URI identifier;
-
- public ReferenceParameters()
- {
- }
-
- public ReferenceParameters(URI identifier)
- {
- this.identifier = identifier;
- }
-
- public URI getIdentifier()
- {
- return identifier;
- }
-
- public void setIdentifier(URI identifier)
- {
- this.identifier = identifier;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/ReferenceParameters.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/ReferenceParameters.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/RenewRequest.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/RenewRequest.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/RenewRequest.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,45 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.eventing.element;
-
-// $Id$
-
-import java.util.Date;
-
-/**
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 02-Dec-2005
- */
-public class RenewRequest
-{
- private Date expires;
-
- public Date getExpires()
- {
- return expires;
- }
-
- public void setExpires(Date expires)
- {
- this.expires = expires;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/RenewRequest.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/RenewRequest.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/RenewResponse.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/RenewResponse.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/RenewResponse.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,45 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.eventing.element;
-
-// $Id$
-
-import java.util.Date;
-
-/**
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 19-Dec-2005
- */
-public class RenewResponse
-{
- private Date expires;
-
- public Date getExpires()
- {
- return expires;
- }
-
- public void setExpires(Date expires)
- {
- this.expires = expires;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/RenewResponse.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/RenewResponse.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/StatusRequest.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/StatusRequest.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/StatusRequest.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,42 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.eventing.element;
-
-import javax.xml.soap.SOAPElement;
-// $Id$
-
-/**
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 19-Dec-2005
- */
-public class StatusRequest
-{
- private SOAPElement _any;
-
- public SOAPElement get_any() {
- return _any;
- }
-
- public void set_any(SOAPElement _any) {
- this._any = _any;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/StatusRequest.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/StatusRequest.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/StatusResponse.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/StatusResponse.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/StatusResponse.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,45 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.eventing.element;
-
-// $Id$
-
-import java.util.Date;
-
-/**
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 19-Dec-2005
- */
-public class StatusResponse
-{
- private Date expires;
-
- public Date getExpires()
- {
- return expires;
- }
-
- public void setExpires(Date expires)
- {
- this.expires = expires;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/StatusResponse.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/StatusResponse.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/SubscribeRequest.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/SubscribeRequest.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/SubscribeRequest.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,96 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.eventing.element;
-
-// $Id$
-
-import javax.xml.soap.SOAPElement;
-import java.util.Date;
-
-/**
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 24-Nov-2005
- */
-public class SubscribeRequest
-{
- private EndpointReference endTo;
- private DeliveryType delivery;
- private Date expires;
- private FilterType filter;
-
- private SOAPElement[] _any;
-
- public EndpointReference getEndTo()
- {
- return endTo;
- }
-
- public void setEndTo(EndpointReference endTo)
- {
- this.endTo = endTo;
- }
-
- public org.jboss.ws.extensions.eventing.element.DeliveryType getDelivery()
- {
- return delivery;
- }
-
- public void setDelivery(DeliveryType delivery)
- {
- this.delivery = delivery;
- }
-
- public Date getExpires()
- {
- return expires;
- }
-
- public void setExpires(Date expires)
- {
- this.expires = expires;
- }
-
- public FilterType getFilter()
- {
- return filter;
- }
-
- public void setFilter(FilterType filter)
- {
- this.filter = filter;
- }
-
- public SOAPElement[] get_any()
- {
- return _any;
- }
-
- public void set_any(SOAPElement[] _any)
- {
- this._any = _any;
- }
-
- public String toString()
- {
- return "SubscribeRequest{" + "delivery=" + getDelivery() +
"}";
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/SubscribeRequest.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/SubscribeRequest.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/SubscribeResponse.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/SubscribeResponse.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/SubscribeResponse.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,57 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.eventing.element;
-
-// $Id$
-
-import java.util.Date;
-
-/**
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 24-Nov-2005
- */
-public class SubscribeResponse
-{
- private org.jboss.ws.extensions.eventing.element.EndpointReference
subscriptionManager;
- private Date expires;
-
- public EndpointReference getSubscriptionManager()
- {
- return subscriptionManager;
- }
-
- public void setSubscriptionManager(EndpointReference subscriptionManager)
- {
- this.subscriptionManager = subscriptionManager;
- }
-
- public Date getExpires()
- {
- return expires;
- }
-
- public void setExpires(Date expires)
- {
- this.expires = expires;
- }
-
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/SubscribeResponse.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/SubscribeResponse.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/SubscriptionEndRequest.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/SubscriptionEndRequest.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/SubscriptionEndRequest.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,74 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.eventing.element;
-
-// $Id$
-
-import org.jboss.ws.extensions.addressing.EndpointReferenceImpl;
-
-import java.net.URI;
-
-/**
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 25-Nov-2005
- */
-public class SubscriptionEndRequest
-{
- EndpointReferenceImpl subscriptionManager;
- URI code;
- String reason;
-
- public EndpointReferenceImpl getSubscriptionManager()
- {
- return subscriptionManager;
- }
-
- /**
- * todo: remove, since this is one-way op
- *
- * @param subscriptionManager
- */
- public void setSubscriptionManager(EndpointReferenceImpl subscriptionManager)
- {
- this.subscriptionManager = subscriptionManager;
- }
-
- public URI getCode()
- {
- return code;
- }
-
- public void setCode(URI code)
- {
- this.code = code;
- }
-
- public String getReason()
- {
- return reason;
- }
-
- public void setReason(String reason)
- {
- this.reason = reason;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/SubscriptionEndRequest.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/SubscriptionEndRequest.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/UnsubscribeRequest.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/UnsubscribeRequest.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/UnsubscribeRequest.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,60 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.eventing.element;
-
-// $Id$
-
-import javax.xml.soap.SOAPElement;
-import java.net.URI;
-
-/**
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 19-Dec-2005
- */
-public class UnsubscribeRequest
-{
- private URI identifier;
- private SOAPElement _any;
-
- public UnsubscribeRequest() {
- }
-
- public UnsubscribeRequest(URI identifier) {
- this.identifier = identifier;
- }
- public URI getIdentifier()
- {
- return identifier;
- }
-
- public void setIdentifier(URI identifier)
- {
- this.identifier = identifier;
- }
- public SOAPElement get_any() {
- return _any;
- }
-
- public void set_any(SOAPElement _any) {
- this._any = _any;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/UnsubscribeRequest.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/element/UnsubscribeRequest.java)
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/metadata (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/metadata)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/metadata/EventingEpMetaExt.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/metadata/EventingEpMetaExt.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/metadata/EventingEpMetaExt.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,59 +0,0 @@
-package org.jboss.ws.extensions.eventing.metadata;
-
-import java.net.URI;
-import java.net.URISyntaxException;
-
-import org.jboss.ws.metadata.umdm.MetaDataExtension;
-
-/**
- * Eventing specific endpoint meta data extensions.
- *
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 21-Mar-2006
- */
-public class EventingEpMetaExt extends MetaDataExtension {
-
- private boolean isEventSource = true;
- private String eventSourceNS;
- private Object notificationSchema;
-
- public EventingEpMetaExt(String extensionNameSpace) {
- super(extensionNameSpace);
- }
-
- public boolean isEventSource() {
- return isEventSource;
- }
-
- public void setEventSource(boolean eventSource) {
- isEventSource = eventSource;
- }
-
- public String getEventSourceNS() {
- return eventSourceNS;
- }
-
- public void setEventSourceNS(String eventSourceNS) {
- this.eventSourceNS = eventSourceNS;
- }
-
- public URI getEventSourceURI()
- {
- try
- {
- return new URI(eventSourceNS);
- }
- catch (URISyntaxException e)
- {
- throw new IllegalArgumentException("Illegal event source URI: " +
eventSourceNS);
- }
- }
-
- public Object getNotificationSchema() {
- return notificationSchema;
- }
-
- public void setNotificationSchema(Object notificationSchema) {
- this.notificationSchema = notificationSchema;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/metadata/EventingEpMetaExt.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/metadata/EventingEpMetaExt.java)
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt (from rev
1605, branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/DispatchJob.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/DispatchJob.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/DispatchJob.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,62 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.eventing.mgmt;
-
-// $Id$
-
-import org.w3c.dom.Element;
-
-import java.net.URI;
-import java.util.List;
-import java.util.concurrent.ConcurrentMap;
-
-/**
- * Event dispatch job implementation.
- */
-public final class DispatchJob implements Runnable
-{
- public Element event;
- public URI eventSourceNS;
- public ConcurrentMap<URI, List<Subscription>> mapping;
-
- public DispatchJob(URI eventSourceNS, Element event, ConcurrentMap<URI,
List<Subscription>> mapping)
- {
- this.event = event;
- this.eventSourceNS = eventSourceNS;
- this.mapping = mapping;
- }
-
- public void run()
- {
- List<Subscription> subscriptions = mapping.get(eventSourceNS);
- for (Subscription s : subscriptions) // iterator is a snapshot
- {
- if (s.accepts(event) && !s.isExpired())
- s.notify(event);
- }
- }
-
- public String toString()
- {
- return "DispatchJob {" + "source=" + eventSourceNS + ",
event=" + event + "}";
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/DispatchJob.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/DispatchJob.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/DispatcherDelegate.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/DispatcherDelegate.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/DispatcherDelegate.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,98 +0,0 @@
-package org.jboss.ws.extensions.eventing.mgmt;
-
-import java.net.URI;
-import java.util.Properties;
-
-import javax.naming.*;
-import javax.management.ObjectName;
-import javax.management.MBeanServerInvocationHandler;
-import javax.management.MBeanServerConnection;
-
-import org.w3c.dom.Element;
-import org.jboss.ws.WSException;
-
-/**
- * Event dispatching delegate that will be bound to JNDI.
- *
- * @see DispatcherFactory
- *
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 11-Jan-2006
- */
-public class DispatcherDelegate implements EventDispatcher, Referenceable
-{
- private String hostname;
- public final static String MANAGER_HOSTNAME = "manager.hostname";
- private SubscriptionManagerMBean subscriptionManager = null;
-
- public DispatcherDelegate()
- {
- }
-
- public DispatcherDelegate(String hostname)
- {
- setHostname(hostname);
- }
-
- public void dispatch(URI eventSourceNS, Element payload)
- {
- getSubscriptionManager().dispatch(eventSourceNS, payload);
- }
-
- public Reference getReference() throws NamingException
- {
-
- Reference myRef = new Reference(DispatcherDelegate.class.getName(),
DispatcherFactory.class.getName(), null);
-
- // let the delegate now where to find the subscription manager
- myRef.add(new StringRefAddr(MANAGER_HOSTNAME, hostname));
-
- return myRef;
- }
-
- private SubscriptionManagerMBean getSubscriptionManager()
- {
- if (null == subscriptionManager)
- {
- try
- {
- ObjectName objectName = SubscriptionManager.OBJECT_NAME;
- subscriptionManager = (SubscriptionManagerMBean)
- MBeanServerInvocationHandler.newProxyInstance(
- getServer(), objectName,
- SubscriptionManagerMBean.class, false
- );
- }
- catch (Exception e)
- {
- throw new WSException("Failed to access subscription manager: " +
e.getMessage());
- }
- }
-
- return subscriptionManager;
- }
-
- private MBeanServerConnection getServer() throws NamingException
- {
- // todo: bypass rmi adapter when used locally
- InitialContext iniCtx = getInitialContext();
- MBeanServerConnection server =
(MBeanServerConnection)iniCtx.lookup("jmx/invoker/RMIAdaptor");
- return server;
- }
-
- private InitialContext getInitialContext() throws NamingException
- {
- Properties env = new Properties();
- env.setProperty(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
- env.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.naming.client");
- env.setProperty(Context.PROVIDER_URL,
"jnp://"+hostname+":1099");
- return new InitialContext(env);
- }
-
- void setHostname(String hostname)
- {
- if (null == hostname)
- throw new IllegalArgumentException("Hostname may not be null");
- this.hostname = hostname;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/DispatcherDelegate.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/DispatcherDelegate.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/DispatcherFactory.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/DispatcherFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/DispatcherFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,28 +0,0 @@
-package org.jboss.ws.extensions.eventing.mgmt;
-
-import javax.naming.Context;
-import javax.naming.Name;
-import javax.naming.Reference;
-import javax.naming.spi.ObjectFactory;
-import java.util.Hashtable;
-
-/**
- * Creates event dispatcher delegates.
- *
- * @see DispatcherDelegate
- *
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 11-Jan-2006
- */
-public class DispatcherFactory implements ObjectFactory {
- public Object getObjectInstance(Object object, Name name, Context context,
Hashtable<?, ?> hashtable) throws Exception {
-
- Reference ref = (Reference)object;
- String hostname =
(String)ref.get(DispatcherDelegate.MANAGER_HOSTNAME).getContent();
-
- Class cls =
Thread.currentThread().getContextClassLoader().loadClass(ref.getClassName());
- DispatcherDelegate delegate = (DispatcherDelegate)cls.newInstance();
- delegate.setHostname(hostname);
- return delegate;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/DispatcherFactory.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/DispatcherFactory.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/EventDispatcher.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/EventDispatcher.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/EventDispatcher.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,37 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.eventing.mgmt;
-
-// $Id$
-
-import org.w3c.dom.Element;
-
-import java.net.URI;
-
-/**
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 07-Dec-2005
- */
-public interface EventDispatcher
-{
- void dispatch(URI eventSourceNS, Element payload);
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/EventDispatcher.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/EventDispatcher.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/EventSource.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/EventSource.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/EventSource.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,131 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.eventing.mgmt;
-
-// $Id$
-
-import java.net.URI;
-import java.net.URISyntaxException;
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 02-Dec-2005
- */
-class EventSource implements java.io.Serializable
-{
- enum State
- {
- CREATED, STARTED, STOPED, DESTROYED
- }
-
- private State state;
- private long maxExpirationTime = -1;
-
- private String name;
- private URI nameSpace;
- private String notificationSchema;
-
- private URI managerAddress;
- private List<URI> supportedFilter = new ArrayList<URI>();
-
- public EventSource(String name, URI nameSpace) {
- this.name = name;
- this.nameSpace = nameSpace;
- this.state = State.CREATED;
- }
-
- public EventSource(String name, URI nameSpace, String schema)
- {
- this.name = name;
- this.nameSpace = nameSpace;
- this.notificationSchema = schema;
- this.state = State.CREATED;
- }
-
- State getState()
- {
- return state;
- }
-
- void setState(State state)
- {
- if(state == EventSource.State.STARTED)
- {
- assertConfiguration();
- }
- this.state = state;
- }
-
- private void assertConfiguration() {
- if(this.getManagerAddress() == null)
- throw new IllegalArgumentException("SubscriptionManager address unknown.
Unable to start event source.");
- }
-
- long getMaxExpirationTime()
- {
- return maxExpirationTime;
- }
-
- void setMaxExpirationTime(long maxExpirationTime)
- {
- this.maxExpirationTime = maxExpirationTime;
- }
-
- public List<URI> getSupportedFilterDialects()
- {
- return supportedFilter;
- }
-
- public String getNotificationSchema() {
- return notificationSchema;
- }
-
- public String getName() {
- return name;
- }
-
- public URI getNameSpace() {
- return nameSpace;
- }
-
- public URI getManagerAddress() {
- return managerAddress;
- }
-
- public void setManagerAddress(String managerAddress) {
- try
- {
- if(managerAddress!=null)
- this.managerAddress = new URI(managerAddress);
- }
- catch (URISyntaxException e)
- {
- throw new IllegalArgumentException("Illegal subscription manager endpoint
address: " + e.getMessage());
- }
- }
- public String toString()
- {
- return "EventSource {" + "nameSpace=" + nameSpace + ",
state=" + state + "}";
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/EventSource.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/EventSource.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/EventingBuilder.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/EventingBuilder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/EventingBuilder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,43 +0,0 @@
-package org.jboss.ws.extensions.eventing.mgmt;
-
-import org.jboss.ws.WSException;
-import org.jboss.ws.extensions.eventing.EventingConstants;
-import org.jboss.ws.extensions.eventing.deployment.EventingEndpointDI;
-
-import java.net.URI;
-import java.net.URISyntaxException;
-
-/**
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 24-Jan-2006
- */
-public class EventingBuilder {
-
- private EventingBuilder() {
- }
-
- public static EventingBuilder createEventingBuilder() {
- return new EventingBuilder();
- }
-
- public EventSource newEventSource(EventingEndpointDI desc) {
- URI eventSourceNS = newEventSourceURI(desc.getName());
- EventSource eventSource = new EventSource(desc.getName(), eventSourceNS,
(String)desc.getSchema());
-
eventSource.getSupportedFilterDialects().add(EventingConstants.getDefaultFilterDialect());
- return eventSource;
- }
-
-
- public URI newEventSourceURI(String name) {
- try
- {
- return new URI(name);
- }
- catch (URISyntaxException e)
- {
- throw new WSException("Failed to create eventsource URI: " +
e.getMessage());
- }
- }
-
-
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/EventingBuilder.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/EventingBuilder.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/Filter.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/Filter.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/Filter.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,61 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.eventing.mgmt;
-
-// $Id$
-
-import java.net.URI;
-
-/**
- * A local filter representation.
- *
- * @see org.jboss.ws.extensions.eventing.element.FilterType
- *
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 08-Dec-2005
- */
-public final class Filter
-{
- private URI dialect;
- private String expression;
-
- public Filter(URI dialect, String expression)
- {
- this.dialect = dialect;
- this.expression = expression;
- }
-
- public URI getDialect()
- {
- return dialect;
- }
-
- public String getExpression()
- {
- return expression;
- }
-
- public String toString()
- {
- return "Filter{dialect='" + dialect + "', expr='" +
expression + "'}";
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/Filter.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/Filter.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/Subscription.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/Subscription.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/Subscription.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,222 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.eventing.mgmt;
-
-// $Id$
-
-import org.apache.xpath.XPathAPI;
-import org.apache.xpath.objects.XObject;
-import org.jboss.logging.Logger;
-import org.jboss.ws.core.soap.SOAPConnectionImpl;
-import org.jboss.ws.core.utils.DOMWriter;
-import org.jboss.ws.extensions.eventing.EventingConstants;
-import org.jboss.ws.extensions.eventing.element.EndpointReference;
-import org.w3c.dom.Element;
-
-import javax.xml.soap.MessageFactory;
-import javax.xml.soap.SOAPConnection;
-import javax.xml.soap.SOAPConnectionFactory;
-import javax.xml.soap.SOAPMessage;
-import javax.xml.transform.TransformerException;
-import java.io.ByteArrayInputStream;
-import java.net.URI;
-import java.net.URL;
-import java.util.Date;
-
-/**
- * Represents a subscription.
- *
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 05-Jan-2006
- */
-class Subscription
-{
- final private static Logger log = Logger.getLogger(Subscription.class);
-
- final private EndpointReference notifyTo;
- final private EndpointReference endTo;
- private Date expires;
- final private Filter filter;
- final private EndpointReference endpointReference;
- final private URI eventSourceNS;
-
- public Subscription(URI eventSourceNS, EndpointReference endpointReference,
EndpointReference notifyTo, EndpointReference endTo, Date expires, Filter filter)
- {
- this.eventSourceNS = eventSourceNS;
- this.notifyTo = notifyTo;
- this.endTo = endTo; // is optional, can be null
- this.expires = expires;
- this.filter = filter;
- this.endpointReference = endpointReference;
- }
-
- public void notify(Element event)
- {
- log.debug(getIdentifier() + " dispatching " + event);
-
- try
- {
- String eventXML = DOMWriter.printNode(event, false);
- MessageFactory msgFactory = MessageFactory.newInstance();
-
- // notification elements need to declare their namespace locally
- StringBuilder sb = new StringBuilder();
- sb.append("<env:Envelope
xmlns:env='http://www.w3.org/2003/05/soap-envelope' ");
-
sb.append("xmlns:wse='").append(EventingConstants.NS_EVENTING).append("'
");
-
sb.append("xmlns:wsa='").append(EventingConstants.NS_ADDRESSING).append("'>");
- sb.append("<env:Header>");
-
sb.append("<wsa:Action>").append(getNotificationAction()).append("</wsa:Action>");
- // todo: add reference parameters when wildcards are supported
-
sb.append("<wsa:To>").append(notifyTo.getAddress().toString()).append("</wsa:To>");
- sb.append("</env:Header>");
- sb.append("<env:Body>");
- sb.append(eventXML);
- sb.append("</env:Body>");
- sb.append("</env:Envelope>");
-
- SOAPMessage reqMsg = msgFactory.createMessage(null, new
ByteArrayInputStream(sb.toString().getBytes()));
- URL epURL = notifyTo.getAddress().toURL();
- new SOAPConnectionImpl().callOneWay(reqMsg, epURL);
- }
- catch (Exception e)
- {
- // todo: this should get back to manager
- log.error("Failed to send notification message", e);
- }
- }
-
- public boolean accepts(Element event)
- {
-
- boolean b = true;
- if (filter != null)
- {
-
- try
- {
- XObject o = XPathAPI.eval(event, filter.getExpression());
- b = o.bool();
- }
- catch (TransformerException e)
- {
- log.error("Failed to evalute xpath expression", e);
- }
-
- }
- return b;
- }
-
- public void end(String status)
- {
- if (null == endTo) // it's an optional field.
- return;
-
- log.debug("Ending subscription " + getIdentifier());
-
- StringBuffer sb = new StringBuffer();
- sb.append("<env:Envelope
xmlns:env='http://www.w3.org/2003/05/soap-envelope' ");
-
sb.append("xmlns:wse='").append(EventingConstants.NS_EVENTING).append("'
");
-
sb.append("xmlns:wsa='").append(EventingConstants.NS_ADDRESSING).append("'>");
- sb.append("<env:Header>");
-
sb.append("<wsa:Action>").append(EventingConstants.SUBSCRIPTION_END_ACTION).append("</wsa:Action>");
-
sb.append("<wsa:To>").append(endTo.getAddress().toString()).append("</wsa:To>");
- sb.append("</env:Header>");
- sb.append("<env:Body>");
-
- sb.append("<wse:SubscriptionEnd>");
- sb.append("<wse:SubscriptionManager>");
- sb.append("<wsa:Address>");
- sb.append(endpointReference.getAddress().toString());
- sb.append("</wsa:Address>");
- sb.append("<wsa:ReferenceParameters>");
- sb.append("<wse:Identifier>");
- sb.append(getIdentifier().toString());
- sb.append("</wse:Identifier>");
- sb.append("</wsa:ReferenceParameters>");
- sb.append("</wse:SubscriptionManager>");
-
-
sb.append("<wse:Status>").append(status).append("</wse:Status>");
- sb.append("<wse:Reason/>");
- sb.append("</wse:SubscriptionEnd>");
-
- sb.append("</env:Body>");
- sb.append("</env:Envelope>");
-
- try
- {
- MessageFactory msgFactory = MessageFactory.newInstance();
- SOAPMessage reqMsg = msgFactory.createMessage(null, new
ByteArrayInputStream(sb.toString().getBytes()));
- URL epURL = endTo.getAddress().toURL();
- new SOAPConnectionImpl().callOneWay(reqMsg, epURL);
- }
- catch (Exception e)
- {
- log.warn("Failed to send subscription end message", e);
- }
-
- }
-
- private String getNotificationAction()
- {
- return this.eventSourceNS.toString() + "/Notification";
- }
-
- public boolean isExpired()
- {
- return System.currentTimeMillis() > expires.getTime();
- }
-
- public EndpointReference getNotifyTo()
- {
- return notifyTo;
- }
-
- public EndpointReference getEndTo()
- {
- return endTo;
- }
-
- public Date getExpires()
- {
- return expires;
- }
-
- public Filter getFilter()
- {
- return filter;
- }
-
- public EndpointReference getEndpointReference()
- {
- return endpointReference;
- }
-
- public URI getIdentifier()
- {
- return endpointReference.getReferenceParams().getIdentifier();
- }
-
- public void setExpires(Date expires)
- {
- this.expires = expires;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/Subscription.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/Subscription.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionError.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionError.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionError.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,30 +0,0 @@
-package org.jboss.ws.extensions.eventing.mgmt;
-
-/**
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 24-Jan-2006
- */
-public final class SubscriptionError extends Exception {
-
- private String subcode;
- private String reason;
-
- public SubscriptionError(String subscode, String reason) {
- super();
- this.subcode = subscode;
- this.reason = reason;
- }
-
- public String getMessage() {
- return getReason();
- }
-
- public String getSubcode() {
- return subcode;
- }
-
- public String getReason() {
- return reason;
- }
-
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionError.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionError.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManager.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManager.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManager.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,596 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.eventing.mgmt;
-
-// $Id$
-
-import org.jboss.logging.Logger;
-import org.jboss.util.naming.Util;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.utils.ObjectNameFactory;
-import org.jboss.ws.core.utils.UUIDGenerator;
-import org.jboss.ws.extensions.eventing.EventingConstants;
-import org.jboss.ws.extensions.eventing.deployment.EventingEndpointDI;
-import org.jboss.ws.extensions.eventing.element.EndpointReference;
-import org.jboss.ws.extensions.eventing.element.ReferenceParameters;
-import org.w3c.dom.Element;
-
-import javax.management.MBeanServer;
-import javax.management.MBeanServerFactory;
-import javax.management.ObjectName;
-import javax.naming.InitialContext;
-import javax.naming.NamingException;
-import java.io.PrintWriter;
-import java.io.StringWriter;
-import java.net.URI;
-import java.net.URISyntaxException;
-import java.util.ArrayList;
-import java.util.Date;
-import java.util.List;
-import java.util.concurrent.*;
-
-/**
- * The SubscriptionManager maintains event sources and subscriptions.<br>
- * It is interfaced through the EventSourceEndpoint and SubscriptionManagerEndpoint SOAP
endpoints.
- * <p>
- * Applications can use the EventDispatcher interface to dispatch
- * event messages to subscribers. The current implementation is backed by a
ThreadPoolExecutor,
- * that asynchronously delivers messages to event sink endpoints.
- * It can be configurd through the following attributes:
- * <ul>
- * <li>corePoolSize - average number of idle threads
- * <li>maximumPoolSize - maximum number of threads
- * <li>eventKeepAlive - keep alive before an undelivered event message is
discarded.
- * </ul>
- * Event filtering is supported on subscription level based on XPath expressions.
- * For further information see
<
code>http://www.w3.org/TR/xpath#predicates</code>.
- * <p>
- * Currently only event push is supported.
- *
- * @see org.jboss.ws.extensions.eventing.EventSourceEndpoint
- * @see org.jboss.ws.extensions.eventing.SubscriptionManagerEndpoint
- * @see org.jboss.ws.extensions.eventing.element.FilterType
- *
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 02-Dec-2005
- */
-public class SubscriptionManager implements SubscriptionManagerMBean, EventDispatcher
-{
- private static final Logger log = Logger.getLogger(SubscriptionManager.class);
- private long MAX_LEASE_TIME = 1000 * 60 * 10L;
- public long DEFAULT_LEASE = 1000 * 60 * 5L;
-
- public static final ObjectName OBJECT_NAME =
ObjectNameFactory.create("jboss.ws:service=SubscriptionManager,module=eventing");
-
- /**
- * Maps event source namespaces to event source instances.
- */
- private ConcurrentMap<URI, EventSource> eventSourceMapping = new
ConcurrentHashMap<URI, EventSource>();
-
- /**
- * Maps subscriptions to event sources
- */
- private ConcurrentMap<URI, List<Subscription>> subscriptionMapping = new
ConcurrentHashMap<URI, List<Subscription>>();
-
- /**
- * Buffers notifications. FIFO ordering.
- */
- private BlockingQueue<Runnable> eventQueue = new
LinkedBlockingQueue<Runnable>();
-
- /**
- * Event dispatcher thread pool.
- */
- private ThreadPoolExecutor threadPool;
-
- private boolean isDispatcherBound = false;
-
- /**
- * subscription watchdog that maintains expirations
- */
- private WatchDog watchDog;
-
- private static EventingBuilder builder = EventingBuilder.createEventingBuilder();
-
- public void create() throws Exception
- {
- MBeanServer server = getJMXServer();
- if (server != null)
- {
- log.debug("Create subscription manager");
- server.registerMBean(this, OBJECT_NAME);
- }
- }
-
- public void destroy() throws Exception
- {
- MBeanServer server = getJMXServer();
- if (server != null)
- {
- log.debug("Destroy subscription manager");
- server.unregisterMBean(OBJECT_NAME);
- }
- }
-
- public void start() throws Exception
- {
- log.debug("Start subscription manager");
-
- // setup thread pool
- threadPool = new ThreadPoolExecutor(5, 15, // core/max num threads
- 5000, TimeUnit.MILLISECONDS, // 5 seconds keepalive
- eventQueue);
-
- // start the subscription watchdog
- watchDog = new WatchDog(subscriptionMapping);
- watchDog.startup();
- }
-
- public void stop()
- {
- log.debug("Stop subscription manager");
- try
- {
- // remove event dispatcher
- Util.unbind(new InitialContext(), EventingConstants.DISPATCHER_JNDI_NAME);
-
- // stop thread pool
- threadPool.shutdown();
-
- // stop the watchdog
- watchDog.shutdown();
-
- for (URI eventSourceNS : eventSourceMapping.keySet())
- {
- removeEventSource(eventSourceNS);
- }
- }
- catch (NamingException e)
- {
- //log.warn("Cannot unbind event dispatcher: " + e.toString());
- // Ignore
- }
- }
-
- private static URI generateSubscriptionID()
- {
- try
- {
- return new URI("urn:jbwse:" +
UUIDGenerator.generateRandomUUIDString());
- }
- catch (URISyntaxException e)
- {
- throw new WSException(e.getMessage());
- }
- }
-
- /**
- * A two phase deployment process.
- */
- public void registerEventSource(EventingEndpointDI deploymentInfo)
- {
- // workaround for JBWS-1006
- lazyBindEventDispatcher();
-
- EventSource eventSource = builder.newEventSource(deploymentInfo);
- if (eventSourceMapping.containsKey(eventSource.getNameSpace()) == false)
- {
- eventSourceMapping.put(eventSource.getNameSpace(), eventSource);
- updateManagerAddress(deploymentInfo, eventSource);
-
- eventSource.setState(EventSource.State.CREATED);
- log.debug("Created: " + eventSource);
- }
- else
- {
- eventSource = eventSourceMapping.get(eventSource.getNameSpace());
- updateManagerAddress(deploymentInfo, eventSource);
- subscriptionMapping.put(eventSource.getNameSpace(), new
CopyOnWriteArrayList<Subscription>());
-
- eventSource.setState(EventSource.State.STARTED);
- log.debug("Started: " + eventSource);
- }
- }
-
- private void lazyBindEventDispatcher()
- {
- if(!isDispatcherBound)
- {
- try
- {
- // bind dispatcher to JNDI
- Util.rebind(new InitialContext(), EventingConstants.DISPATCHER_JNDI_NAME, new
DispatcherDelegate("localhost"));
- log.info("Bound event dispatcher to java:/" +
EventingConstants.DISPATCHER_JNDI_NAME);
- isDispatcherBound = true;
- }
- catch (NamingException e)
- {
- throw new WSException("Unable to bind EventDispatcher ", e);
- }
- }
- }
-
- /**
- * the of deployment info's is unknown therefore we try to
- * update the event source manager EPR anytime.
- * @param deploymentInfo
- * @param eventSource
- */
- private static void updateManagerAddress(EventingEndpointDI deploymentInfo,
EventSource eventSource)
- {
- String addr = null;
- if(deploymentInfo.getPortName().equals("SubscriptionManagerPort")) //
hackalert
- addr = deploymentInfo.getEndpointAddress();
-
- if(addr!=null)
- eventSource.setManagerAddress(addr);
- }
-
- public void removeEventSource(URI eventSourceNS)
- {
- if (eventSourceMapping.containsKey(eventSourceNS))
- {
- List<Subscription> subscriptions =
subscriptionMapping.get(eventSourceNS);
- for (Subscription s : subscriptions) // iterator is a snapshot
- {
- s.end(EventingConstants.SOURCE_SHUTTING_DOWN);
- }
-
- subscriptions.clear();
- eventSourceMapping.remove(eventSourceNS);
- log.debug("Event source " + eventSourceNS + " removed");
- }
- }
-
- /**
- * Subscribe to an event source.
- */
- public SubscriptionTicket subscribe(URI eventSourceNS, EndpointReference notifyTo,
EndpointReference endTo, Date expires, Filter filter) throws SubscriptionError
- {
-
- log.debug("Subscription request for " + eventSourceNS);
-
- EventSource eventSource = eventSourceMapping.get(eventSourceNS);
- if (null == eventSource)
- throw new SubscriptionError(EventingConstants.CODE_UNABLE_TO_PROCESS,
"EventSource '" + eventSourceNS + "' not registered");
-
- // expiry constraints
- if (expires != null)
- {
- assertLeaseConstraints(expires);
- }
- else
- {
- expires = new Date((System.currentTimeMillis() + DEFAULT_LEASE));
- }
-
- // filter constraints
- if (filter != null)
- {
- if (eventSource.getSupportedFilterDialects().isEmpty())
- throw new SubscriptionError(EventingConstants.CODE_FILTER_NOT_SUPPORTED,
"Filtering is not supported.");
- else
- {
- boolean filterAvailable = false;
- for (URI supportedDialect : eventSource.getSupportedFilterDialects())
- {
- if (filter.getDialect().equals(supportedDialect))
- {
- filterAvailable = true;
- break;
- }
- }
-
- if (!filterAvailable)
- throw new
SubscriptionError(EventingConstants.CODE_REQUESTED_FILTER_UNAVAILABLE, "The requested
filter dialect is not supported.");
- }
- }
-
- // create subscription
- EndpointReference endpointReference = new EndpointReference();
- endpointReference.setAddress(eventSource.getManagerAddress());
- endpointReference.setReferenceParams(new
ReferenceParameters(generateSubscriptionID()));
-
- Subscription subscription = new Subscription(eventSource.getNameSpace(),
endpointReference, notifyTo, endTo, expires, filter);
-
- subscriptionMapping.get(eventSourceNS).add(subscription);
- log.debug("Registered subscription " + subscription.getIdentifier());
-
- return new SubscriptionTicket(endpointReference, subscription.getExpires());
- }
-
- private void assertLeaseConstraints(Date expireDate) throws SubscriptionError
- {
- long expires = expireDate.getTime() - System.currentTimeMillis();
- if (expires <= 0 ) {
- throw new SubscriptionError(EventingConstants.CODE_INVALID_EXPIRATION_TIME,
"The expiration time requested is invalid: " + expires + "ms");
- }
- if (MAX_LEASE_TIME < expires) {
- expireDate.setTime((System.currentTimeMillis() + MAX_LEASE_TIME));
-
- }
-
- }
-
- /**
- * Renew a subscription.
- *
- * @param identifier
- * @param lease
- * @return the new lease date
- * @throws SubscriptionError
- */
- public Date renew(URI identifier, Date lease) throws SubscriptionError
- {
- Subscription subscription = subscriberForID(identifier);
- if (null == subscription)
- throw new SubscriptionError(EventingConstants.CODE_UNABLE_TO_RENEW,
"Subscription " + identifier + " does not exist");
-
- if (lease != null)
- assertLeaseConstraints(lease);
- else lease = new Date((System.currentTimeMillis() + DEFAULT_LEASE));
-
- subscription.setExpires(lease);
- return lease;
- }
-
- /**
- * Get status for subscription.
- *
- * @param identifier
- * @return the actual lease date.
- * @throws SubscriptionError when the subscriber does not exist
- */
- public final Date getStatus(URI identifier) throws SubscriptionError
- {
- Subscription subscription = subscriberForID(identifier);
- if (null == subscription)
- throw new SubscriptionError(EventingConstants.CODE_UNABLE_TO_PROCESS,
"Subscription " + identifier + " does not exist");
-
- return subscription.getExpires();
- }
-
- /**
- * Release a subscription.
- *
- * @param identifier
- * @throws SubscriptionError when the subscriber does not exist
- */
- public void unsubscribe(URI identifier) throws SubscriptionError
- {
- for (List<Subscription> subscriptions : subscriptionMapping.values())
- {
- for (Subscription s : subscriptions)
- {
- if (identifier.equals(s.getIdentifier()))
- {
- subscriptions.remove(s);
- log.debug("Removed subscription " + s);
- break;
- }
- }
- }
- }
-
- public String showEventsourceTable()
- {
-
- StringWriter sw = new StringWriter();
- PrintWriter pw = new PrintWriter(sw);
-
- pw.println("<h3>Deployed Eventsources</h3>");
-
- pw.println("<table>");
-
pw.println("<tr><td>Name</td><td>NS</td></tr>");
-
- for (EventSource source : eventSourceMapping.values())
- {
- pw.println("<tr><td>" + source.getName() +
"</td><td>" + source.getNameSpace() +
"</td></tr>");
- }
-
- pw.println("</table>");
- pw.close();
-
- return sw.toString();
- }
-
- public String showSubscriptionTable()
- {
- StringWriter sw = new StringWriter();
- PrintWriter pw = new PrintWriter(sw);
-
- pw.println("<h3>Registered Subscriptions</h3>");
-
- pw.println("<table>");
-
pw.println("<tr><td>Identifier</td><td>Expires</td><td>Filter</td></tr>");
-
- for (List<Subscription> subscriptions : subscriptionMapping.values())
- {
- for (Subscription s : subscriptions)
- {
- pw.println("<tr><td>" + s.getIdentifier() +
"</td><td>" + s.getExpires() + "</td><td>" +
s.getFilter().getExpression() + "</td></tr>");
- }
- }
- pw.println("</table>");
- pw.close();
-
- return sw.toString();
- }
-
- private Subscription subscriberForID(URI id)
- {
- Subscription subscription = null;
- for (List<Subscription> subscriptions : subscriptionMapping.values())
- {
- for (Subscription s : subscriptions)
- {
- if (id.equals(s.getIdentifier()))
- {
- subscription = s;
- break;
- }
- }
- }
- return subscription;
- }
-
- public void dispatch(URI eventSourceNS, Element payload)
- {
- DispatchJob dispatchJob = new DispatchJob(eventSourceNS, payload,
subscriptionMapping);
- threadPool.execute(dispatchJob);
- }
-
- // ----------------------------------------------------------------------
- // MBean support
-
- public int getCorePoolSize()
- {
- return threadPool.getCorePoolSize();
- }
-
- public int getMaximumPoolSize()
- {
- return threadPool.getMaximumPoolSize();
- }
-
- public int getLargestPoolSize()
- {
- return threadPool.getLargestPoolSize();
- }
-
- public int getActiveCount()
- {
- return threadPool.getActiveCount();
- }
-
- public long getCompletedTaskCount()
- {
- return threadPool.getCompletedTaskCount();
- }
-
- public void setCorePoolSize(int corePoolSize)
- {
- threadPool.setCorePoolSize(corePoolSize);
- }
-
- public int getMaxPoolSize()
- {
- return threadPool.getMaximumPoolSize();
- }
-
- public void setMaxPoolSize(int maxPoolSize)
- {
- threadPool.setMaximumPoolSize(maxPoolSize);
- }
-
- public void setEventKeepAlive(long millies)
- {
- threadPool.setKeepAliveTime(millies, TimeUnit.MILLISECONDS);
- }
-
- public long getEventKeepAlive() {
- return threadPool.getKeepAliveTime(TimeUnit.MILLISECONDS);
- }
-
- public void setDefaultLeaseTimeMins(int mins) {
- this.DEFAULT_LEASE = mins * 60 * 1000L;
- }
-
- public int getDefaultLeaseTimeMins() {
- return (int) this.DEFAULT_LEASE/60/1000;
- }
-
- public void setMaxLeaseTimeMins(int mins) {
- this.MAX_LEASE_TIME = mins * 60 * 1000L;
- }
-
- public int getMaxLeaseTimeMins() {
- return (int) this.MAX_LEASE_TIME/60/1000;
- }
-
-
- /**
- * The watchdog maintains subscription expirations.
- */
- private class WatchDog implements Runnable
- {
-
- private ConcurrentMap<URI, List<Subscription>> subscriptions;
- private boolean active = true;
- private Thread worker;
-
- public WatchDog(ConcurrentMap<URI, List<Subscription>> subscriptions)
- {
- this.subscriptions = subscriptions;
- }
-
- public void run()
- {
- while (active)
- {
-
- for (List<Subscription> subscriptions : subscriptionMapping.values())
- {
- for (Subscription s : subscriptions)
- {
- if (s.isExpired())
- {
- s.end(EventingConstants.SOURCE_CANCELING);
- subscriptions.remove(s);
- }
- }
- }
-
- try
- {
- Thread.sleep(1000 * 60);
- }
- catch (InterruptedException e)
- {
- log.error(e);
- }
- }
- }
-
- public void startup()
- {
- worker = new Thread(this, "SubscriptionWatchDog");
- worker.start();
- }
-
- public void shutdown()
- {
- this.active = false;
- }
-
- }
-
- private MBeanServer getJMXServer()
- {
- MBeanServer server = null;
- ArrayList servers = MBeanServerFactory.findMBeanServer(null);
- if (servers.size() > 0)
- {
- server = (MBeanServer)servers.get(0);
- }
- return server;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManager.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManager.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManagerFactory.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManagerFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManagerFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,31 +0,0 @@
-package org.jboss.ws.extensions.eventing.mgmt;
-
-import org.jboss.kernel.spi.registry.KernelRegistry;
-import org.jboss.kernel.spi.registry.KernelRegistryEntry;
-import org.jboss.ws.core.server.KernelLocator;
-
-/**
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 22-Mar-2006
- */
-public class SubscriptionManagerFactory
-{
- private static SubscriptionManagerFactory instance = new
SubscriptionManagerFactory();
-
- // Hide ctor
- protected SubscriptionManagerFactory()
- {
- }
-
- public static SubscriptionManagerFactory getInstance()
- {
- return instance;
- }
-
- public SubscriptionManagerMBean getSubscriptionManager()
- {
- KernelRegistry registry = KernelLocator.getKernel().getRegistry();
- KernelRegistryEntry entry = registry.getEntry(SubscriptionManagerMBean.BEAN_NAME);
- return (SubscriptionManagerMBean)entry.getTarget();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManagerFactory.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManagerFactory.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManagerMBean.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManagerMBean.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManagerMBean.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,114 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.eventing.mgmt;
-
-// $Id$
-
-import java.net.URI;
-import java.util.Date;
-
-import org.jboss.ws.extensions.eventing.deployment.EventingEndpointDI;
-import org.jboss.ws.extensions.eventing.element.EndpointReference;
-import org.w3c.dom.Element;
-
-/**
- * @author Heiko Braun, <heiko(a)openj.net>
- * @author Stefano Maestri
- * @since 12-Dec-2005
- */
-public interface SubscriptionManagerMBean
-{
- public static final String BEAN_NAME = "SubscriptionManager";
-
- // ----------------------------------------------------------------------------
- // Read/Write attributes
-
- /**
- * Returns the core number of threads.
- *
- * @return long
- */
- public int getCorePoolSize();
- public void setCorePoolSize(int corePoolSize);
-
- /**
- * Returns the maximum allowed number of threads.
- *
- * @return int
- */
- public int getMaxPoolSize();
- public void setMaxPoolSize(int maxPoolSize);
-
- public long getEventKeepAlive();
- public void setEventKeepAlive(long millies);
-
- public void setMaxLeaseTimeMins(int mins);
- public int getMaxLeaseTimeMins();
-
- public void setDefaultLeaseTimeMins(int mins);
- public int getDefaultLeaseTimeMins();
-
- // ----------------------------------------------------------------------------
- // Read only attributes
-
- /**
- * Returns the largest number of threads that have ever simultaneously been in the
pool.
- *
- * @return int
- */
- int getLargestPoolSize();
-
- /**
- * Returns the approximate number of threads that are actively executing tasks.
- *
- * @return int
- */
- int getActiveCount();
-
- /**
- * Returns the approximate total number of tasks that have completed execution.
- *
- * @return long
- */
- long getCompletedTaskCount();
-
- // ----------------------------------------------------------------------------
- // subscription endpointReference business
- SubscriptionTicket subscribe(URI eventSourceNS, EndpointReference notifyTo,
EndpointReference endTo, Date expires, Filter filter) throws SubscriptionError;
-
- Date renew(URI identifier, Date lease) throws SubscriptionError;
-
- Date getStatus(URI identifier) throws SubscriptionError;
-
- void unsubscribe(URI identifier) throws SubscriptionError;
-
- // notification API
- void dispatch(URI eventSourceNS, Element payload);
-
- void registerEventSource(EventingEndpointDI deploymentInfo);
-
- void removeEventSource(URI eventSourceNS);
-
- String showSubscriptionTable();
-
- String showEventsourceTable();
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManagerMBean.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManagerMBean.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionTicket.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionTicket.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionTicket.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,63 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.eventing.mgmt;
-
-// $Id$
-
-import org.jboss.ws.extensions.eventing.element.EndpointReference;
-
-import java.net.URI;
-import java.util.Date;
-
-/**
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 02-Dec-2005
- */
-public final class SubscriptionTicket
-{
-
- private URI identifier;
- private EndpointReference subscriptionManager;
- private Date expires;
-
- public SubscriptionTicket(EndpointReference subscriptionManager, Date expires)
- {
- this.identifier = subscriptionManager.getReferenceParams().getIdentifier();
- this.subscriptionManager = subscriptionManager;
- this.expires = expires;
- }
-
- public URI getIdentifier()
- {
- return identifier;
- }
-
- public org.jboss.ws.extensions.eventing.element.EndpointReference
getSubscriptionManager()
- {
- return subscriptionManager;
- }
-
- public Date getExpires()
- {
- return expires;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionTicket.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionTicket.java)
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/policy (from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/policy)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/policy/Policy.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/policy/Policy.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/policy/Policy.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,182 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.policy;
-
-// $Id$
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Iterator;
-
-import org.jboss.ws.core.utils.DOMUtils;
-import org.jboss.ws.core.utils.DOMWriter;
-import org.jboss.ws.WSException;
-import org.jboss.xb.binding.NamespaceRegistry;
-import org.w3c.dom.Element;
-
-/**
- * At the abstract level a policy is a potentially empty collection of policy
alternatives. A
- * policy with zero alternatives contains no choices; a policy with one or more
alternatives
- * indicates choice in requirements (or capabilities) within the policy.
- *
- * Alternatives are not ordered, and thus aspects such as preferences between
alternatives
- * in a given context are beyond the scope of this specification.
- *
- * Alternatives within a policy may differ significantly in terms of the behaviors they
- * indicate. Conversely, alternatives within a policy may be very similar. In either
case, the
- * value or suitability of an alternative is generally a function of the semantics of
assertions
- * within the alternative.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 13-Nov-2005
- */
-public class Policy
-{
- public static final String URI_POLICY =
"http://schemas.xmlsoap.org/ws/2004/09/policy";
- public static final String URI_SECURITY_UTILITY =
"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
-
- // The target namespace
- private String targetNamespace;
- // The optional base URI
- private String baseURI;
- // The optional ID
- private String id;
- // The policy alternatives
- private Collection<PolicyAlternative> alternatives = new
ArrayList<PolicyAlternative>();
- // The namespace registry for the policy
- private NamespaceRegistry nsRegistry = new NamespaceRegistry();
-
- // Hide constructor
- Policy()
- {
- }
-
- public NamespaceRegistry getNamespaceRegistry()
- {
- return nsRegistry;
- }
-
- public String getTargetNamespace()
- {
- return targetNamespace;
- }
-
- public void setTargetNamespace(String targetNamespace)
- {
- this.targetNamespace = targetNamespace;
- }
-
- public String getBaseURI()
- {
- return baseURI;
- }
-
- public void setBaseURI(String baseURI)
- {
- this.baseURI = baseURI;
- }
-
- public String getID()
- {
- return id;
- }
-
- public void setID(String id)
- {
- this.id = id;
- }
-
- public void addPolicyAlternative(PolicyAlternative polAlternative)
- {
- alternatives.add(polAlternative);
- }
-
- public Collection<PolicyAlternative> getPolicyAlternatives()
- {
- return new ArrayList<PolicyAlternative>(alternatives);
- }
-
- public Element toElement()
- {
- String xmlString = toXMLString(false);
- try
- {
- return DOMUtils.parse(xmlString);
- }
- catch (IOException ex)
- {
- throw new WSException("Cannot parse: " + xmlString, ex);
- }
- }
-
- public String toXMLString(boolean pretty)
- {
- if (pretty)
- {
- Element elPolicy = toElement();
- return DOMWriter.printNode(elPolicy, true);
- }
-
- StringBuilder xmlBuffer = new StringBuilder("<wsp:Policy");
-
- Iterator it = nsRegistry.getRegisteredURIs();
- while (it.hasNext())
- {
- String nsURI = (String)it.next();
- String prefix = nsRegistry.getPrefix(nsURI);
- xmlBuffer.append(" xmlns:" + prefix + "='" + nsURI +
"'");
- }
-
- if (id != null)
- {
- xmlBuffer.append(" xmlns:wsu='" + URI_SECURITY_UTILITY +
"'");
- xmlBuffer.append(" wsu:Id='" + id + "'");
- }
- if (baseURI != null)
- {
- xmlBuffer.append(" xml:base='" + baseURI + "'");
- }
- if (targetNamespace != null)
- {
- xmlBuffer.append(" TargetNamespace='" + targetNamespace +
"'");
- }
- xmlBuffer.append(">");
-
- xmlBuffer.append("<wsp:ExactlyOne>");
- for (PolicyAlternative polAlternative : alternatives)
- {
- xmlBuffer.append(polAlternative.toXMLString(false));
- }
- xmlBuffer.append("</wsp:ExactlyOne>");
-
- xmlBuffer.append("</wsp:Policy>");
-
- String xmlString = xmlBuffer.toString();
- return xmlString;
- }
-
- public String toString()
- {
- return toXMLString(true);
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/policy/Policy.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/policy/Policy.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/policy/PolicyAlternative.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/policy/PolicyAlternative.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/policy/PolicyAlternative.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,125 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.policy;
-
-//$Id$
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Iterator;
-
-import org.jboss.ws.core.utils.DOMUtils;
-import org.jboss.ws.core.utils.DOMWriter;
-import org.jboss.ws.WSException;
-import org.w3c.dom.Element;
-
-/**
- * A policy alternative is a potentially empty collection of policy assertions. An
alternative
- * with zero assertions indicates no behaviors. An alternative with one or more
assertions
- * indicates behaviors implied by those, and only those assertions.
- *
- * The vocabulary of a policy alternative is the set of all assertion types within the
- * alternative. The vocabulary of a policy is the set of all assertion types used in the
policy.
- * An assertion whose type is part of the policy's vocabulary but is not included in
an
- * alternative is explicitly prohibited by the alternative.
- *
- * Assertions within an alternative are not ordered, and thus aspects such as the order
in
- * which behaviors (indicated by assertions) are applied to a subject are beyond the
scope
- * of this specification.
- *
- * A policy alternative MAY contain multiple instances of an assertion type. Mechanisms
for
- * determining the aggregate behavior indicated by the assertion instances (and their
Post-
- * Schema-Validation Infoset (PSVI) content, if any) are specific to the assertion type.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 13-Nov-2005
- */
-public class PolicyAlternative
-{
- private Collection<PolicyAssertion> assertions = new
ArrayList<PolicyAssertion>();
-
- // Hide constructor
- PolicyAlternative()
- {
- }
-
- static PolicyAlternative parse(Element elAll)
- {
- // Work with a cloned copy, so parsing does not effect in input node
- elAll = (Element)elAll.cloneNode(true);
-
- PolicyAlternative all = new PolicyAlternative();
- Iterator it = DOMUtils.getChildElements(elAll);
- while (it.hasNext())
- {
- Element el = (Element)it.next();
- all.addPolicyAssertion(new PolicyAssertion(el));
- }
- return all;
- }
-
- public void addPolicyAssertion(PolicyAssertion polAssertion)
- {
- assertions.add(polAssertion);
- }
-
- public Collection<PolicyAssertion> getPolicyAssertions()
- {
- return new ArrayList<PolicyAssertion>(assertions);
- }
-
- public Element toElement()
- {
- String xmlString = toXMLString(false);
- try
- {
- return DOMUtils.parse(xmlString);
- }
- catch (IOException ex)
- {
- throw new WSException("Cannot parse: " + xmlString, ex);
- }
- }
-
- public String toXMLString(boolean pretty)
- {
- if (pretty)
- {
- Element elAll = toElement();
- return DOMWriter.printNode(elAll, true);
- }
-
- StringBuilder xmlBuffer = new StringBuilder("<wsp:All>");
- for (PolicyAssertion assertion : assertions)
- {
- xmlBuffer.append(assertion.toXMLString(false));
- }
- xmlBuffer.append("</wsp:All>");
- return xmlBuffer.toString();
- }
-
- public String toString()
- {
- return toXMLString(true);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/policy/PolicyAlternative.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/policy/PolicyAlternative.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/policy/PolicyAssertion.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/policy/PolicyAssertion.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/policy/PolicyAssertion.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,76 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.policy;
-
-//$Id$
-
-import org.jboss.ws.core.utils.DOMUtils;
-import org.jboss.ws.core.utils.DOMWriter;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-
-/**
- * A policy assertion identifies a behavior that is a requirement (or capability) of a
policy
- * subject. Assertions indicate domain-specific (e.g., security, transactions) semantics
and
- * are expected to be defined in separate, domain-specific specifications.
- *
- * Assertions are strongly typed. The type is identified only by the XML Infoset
- * [namespace name] and [local name] properties (that is, the qualified name or
- * QName) of the root Element Information Item representing the assertion. Assertions of
- * a given type MUST be consistently interpreted independent of their policy subjects.
- *
- * The XML Infoset of an assertion MAY contain a non-empty [attributes] property and/or
- * a non-empty [children] property. Such content MAY be used to parameterize the
- * behavior indicated by the assertion. For example, an assertion identifying support for
a
- * specific reliable messaging mechanism might include an Attribute Information Item to
- * indicate how long an endpoint will wait before sending an acknowledgement. However,
- * additional assertion content is not required when the identity of the root Element
- * Information Item alone is enough to convey the requirement (capability).
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 13-Nov-2005
- */
-public class PolicyAssertion
-{
- private Element assertionElement;
-
- PolicyAssertion(Element element)
- {
- Document doc = DOMUtils.getOwnerDocument();
- this.assertionElement = (Element)doc.adoptNode(element);
- }
-
- public Element getElement()
- {
- return assertionElement;
- }
-
- public String toXMLString(boolean pretty)
- {
- return DOMWriter.printNode(assertionElement, pretty);
- }
-
- public String toString()
- {
- return toXMLString(true);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/policy/PolicyAssertion.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/policy/PolicyAssertion.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/policy/PolicyFactory.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/policy/PolicyFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/policy/PolicyFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,116 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.policy;
-
-// $Id$
-
-import java.io.IOException;
-import java.util.Iterator;
-
-import javax.xml.namespace.QName;
-
-import org.jboss.ws.core.utils.DOMUtils;
-import org.jboss.ws.WSException;
-import org.w3c.dom.Attr;
-import org.w3c.dom.Element;
-import org.w3c.dom.NamedNodeMap;
-
-/**
- * A factory for Policy construction
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 13-Nov-2005
- */
-public class PolicyFactory
-{
- // PolicyFactory Singelton
- private static PolicyFactory factory = new PolicyFactory();
-
- // Hide constructor
- private PolicyFactory()
- {
- }
-
- public static PolicyFactory newInstance()
- {
- return factory;
- }
-
- public Policy createPolicy(String strPolicy)
- {
- try
- {
- return createPolicy(DOMUtils.parse(strPolicy));
- }
- catch (IOException ex)
- {
- throw new IllegalArgumentException("Cannot parse: " + strPolicy, ex);
- }
- }
-
- public Policy createPolicy(Element elPolicy)
- {
- // Work with a cloned copy, so parsing does not effect in input node
- elPolicy = (Element)elPolicy.cloneNode(true);
-
- Policy policy = new Policy();
- policy.setTargetNamespace(DOMUtils.getAttributeValue(elPolicy,
"TargetNamespace"));
- policy.setBaseURI(DOMUtils.getAttributeValue(elPolicy, "xml:base"));
- policy.setID(DOMUtils.getAttributeValue(elPolicy, new
QName(Policy.URI_SECURITY_UTILITY, "Id")));
-
- // Register namespaces
- NamedNodeMap attribs = elPolicy.getAttributes();
- for (int i = 0; i < attribs.getLength(); i++)
- {
- Attr attr = (Attr)attribs.item(i);
- String attrName = attr.getName();
- String attrValue = attr.getValue();
- if (attrName.startsWith("xmlns:"))
- {
- String prefix = attrName.substring(6);
- policy.getNamespaceRegistry().registerURI(attrValue, prefix);
- }
- }
-
- // Parse wsp:ExactlyOne
- QName oneQName = new QName(Policy.URI_POLICY, "ExactlyOne");
- Element elExactlyOne = DOMUtils.getFirstChildElement(elPolicy, oneQName);
- if (elExactlyOne == null)
- throw new WSException("Cannot find child element: " + oneQName);
-
- // Parse wsp:All
- QName allQName = new QName(Policy.URI_POLICY, "All");
- Element elAll = DOMUtils.getFirstChildElement(elExactlyOne, allQName);
- if (elAll == null)
- throw new WSException("Cannot find child element: " + allQName);
-
- Iterator it = DOMUtils.getChildElements(elExactlyOne, allQName);
- while (it.hasNext())
- {
- elAll = (Element)it.next();
- PolicyAlternative all = PolicyAlternative.parse(elAll);
- policy.addPolicyAlternative(all);
- }
-
- return policy;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/policy/PolicyFactory.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/policy/PolicyFactory.java)
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security (from rev
1605, branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/BinarySecurityTokenValidator.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/BinarySecurityTokenValidator.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/BinarySecurityTokenValidator.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,48 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import org.jboss.ws.extensions.security.element.BinarySecurityToken;
-import org.jboss.ws.extensions.security.element.X509Token;
-
-
-/**
- * <code>BinarySecurityTokenValidator</code> is responsible for validating
BSTs
- *
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @version $Revision$
- */
-public class BinarySecurityTokenValidator
-{
- private SecurityStore store;
-
- public BinarySecurityTokenValidator(SecurityStore store)
- {
- this.store = store;
- }
-
- public void validateToken(BinarySecurityToken token) throws WSSecurityException
- {
- if (token instanceof X509Token)
- store.validateCertificate(((X509Token)token).getCert());
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/BinarySecurityTokenValidator.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/BinarySecurityTokenValidator.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/Constants.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/Constants.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/Constants.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,70 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import org.apache.xml.security.utils.EncryptionConstants;
-
-
-/**
- * @author Jason T. Greene
- * @version $Id$
- */
-public class Constants
-{
- public static final String WSS_SOAP_NS =
"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0";
-
- public static final String JBOSS_WSSE_NS =
"http://www.jboss.com/jbossws/ws-security";
-
- public static final String JBOSS_WSSE_PREFIX = "jboss-wsse";
-
- public static final String WSSE_PREFIX = "wsse";
-
- public static final String WSSE_NS =
"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
-
- public static final String WSU_PREFIX = "wsu";
-
- public static final String WSU_NS =
"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
-
- public static final String XML_SIGNATURE_NS =
org.apache.xml.security.utils.Constants.SignatureSpecNS;
-
- public static final String XML_ENCRYPTION_NS = EncryptionConstants.EncryptionSpecNS;
-
- public static final String XML_ENCRYPTION_PREFIX = "xenc";
-
- public static final String ID = "Id";
-
- public static final String WSU_ID = WSU_PREFIX + ":" + ID;
-
- public static final String BASE64_ENCODING_TYPE = WSS_SOAP_NS +
"#Base64Binary";
-
- public static final String WSSE_HEADER = WSSE_PREFIX + ":Security";
-
- public static final String XMLNS_NS = "http://www.w3.org/2000/xmlns/";
-
- public static final String XENC_DATAREFERENCE = "DataReference";
-
- public static final String XENC_REFERENCELIST = "ReferenceList";
-
- public static final String XENC_ELEMENT_TYPE = EncryptionConstants.TYPE_ELEMENT;
-
- public static final String XENC_CONTENT_TYPE = EncryptionConstants.TYPE_CONTENT;
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/Constants.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/Constants.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/DecodingOperation.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/DecodingOperation.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/DecodingOperation.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,40 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import java.util.Collection;
-
-import org.jboss.ws.extensions.security.element.SecurityProcess;
-import org.w3c.dom.Document;
-
-/**
- * <code>DecodingOperation</code> represents an operation that is applied to
a
- * WS-Security encoded message to both convert and verify the contents of the
- * message.
- *
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @version $Revision$
- */
-public interface DecodingOperation extends Operation
-{
- public Collection<String> process(Document message, SecurityProcess process)
throws WSSecurityException;
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/DecodingOperation.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/DecodingOperation.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/DecryptionOperation.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/DecryptionOperation.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/DecryptionOperation.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,145 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import java.util.Collection;
-import java.util.HashSet;
-
-import javax.crypto.SecretKey;
-
-import org.apache.xml.security.encryption.XMLCipher;
-import org.apache.xml.security.encryption.XMLEncryptionException;
-import org.jboss.ws.extensions.security.element.EncryptedKey;
-import org.jboss.ws.extensions.security.element.ReferenceList;
-import org.jboss.ws.extensions.security.element.SecurityHeader;
-import org.jboss.ws.extensions.security.element.SecurityProcess;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-
-public class DecryptionOperation implements DecodingOperation
-{
-
- private SecurityHeader header;
-
- private SecurityStore store;
-
- public DecryptionOperation(SecurityHeader header, SecurityStore store) throws
WSSecurityException
- {
- this.header = header;
- this.store = store;
- }
-
- private boolean isContent(Element element)
- {
- return Constants.XENC_CONTENT_TYPE.equals(element.getAttribute("Type"));
- }
-
- private String getEncryptionAlgorithm(Element element) throws WSSecurityException
- {
- element = Util.findElement(element, "EncryptionMethod",
Constants.XML_ENCRYPTION_NS);
- if (element == null)
- throw new InvalidSecurityHeaderException("Encrypted element corrupted, no
encryption method");
-
- String alg = element.getAttribute("Algorithm");
- if (alg == null || alg.length() == 0)
- throw new InvalidSecurityHeaderException("Encrypted element corrupted, no
algorithm specified");
-
- return alg;
- }
-
- private String decryptElement(Element element, SecretKey key) throws
WSSecurityException
- {
- Element previous;
- boolean parent;
- boolean isContent;
-
- // We find the decrypted element by traversing to the element before the
- // encrypted data. If there is no sibling before the encrypted data, then
- // we traverse to the parent.
- // "Now take a step back . . . and then a step forward . . . and then a
- // step back . . . and then we're cha-chaing." -Chris Knight
- parent = isContent = isContent(element);
- if (parent)
- {
- previous = (Element) element.getParentNode();
- }
- else
- {
- previous = Util.getPreviousSiblingElement(element);
- if (previous == null)
- {
- parent = true;
- previous = (Element) element.getParentNode();
- }
- }
-
- String alg = getEncryptionAlgorithm(element);
- try
- {
- XMLCipher cipher = XMLCipher.getInstance(alg);
- cipher.init(XMLCipher.DECRYPT_MODE, key);
- cipher.doFinal(element.getOwnerDocument(), element);
- }
- catch (XMLEncryptionException e)
- {
- throw new FailedCheckException("Decryption was invalid.");
- }
- catch (Exception e)
- {
- throw new WSSecurityException("Could not decrypt element: " +
e.getMessage(), e);
- }
-
- if (isContent)
- return Util.getWsuId(previous);
-
- Element decrypted = (parent) ? Util.getFirstChildElement(previous) :
Util.getNextSiblingElement(previous);
- if (decrypted == null)
- return null;
-
- return Util.getWsuId(decrypted);
- }
-
- private boolean isEncryptedData(Element element)
- {
- return "EncryptedData".equals(element.getLocalName()) &&
Constants.XML_ENCRYPTION_NS.equals(element.getNamespaceURI());
- }
-
- public Collection<String> process(Document message, SecurityProcess process)
throws WSSecurityException
- {
- Collection<String> ids = new HashSet<String>();
- EncryptedKey key = (EncryptedKey) process;
- ReferenceList list = key.getReferenceList();
- for (String uri : list.getAllReferences())
- {
- Element element = Util.findElementByWsuId(message.getDocumentElement(), uri);
- if (element == null)
- throw new WSSecurityException("A reference list refered to an element
that was not found: " + uri);
-
- if (!isEncryptedData(element))
- throw new WSSecurityException("Malformed reference list, a non encrypted
data element was referenced: " + uri);
-
- ids.add(decryptElement(element, key.getSecretKey()));
- }
-
- return ids;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/DecryptionOperation.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/DecryptionOperation.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/EncodingOperation.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/EncodingOperation.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/EncodingOperation.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,39 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import java.util.List;
-
-import org.w3c.dom.Document;
-
-/**
- * <code>EncodingOperation</code> represents an encoding operation that is
- * applied to a standard SOAP message, transforming it into a WS-Security
- * encoded message.
- *
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @version $Revision$
- */
-public interface EncodingOperation extends Operation
-{
- public void process(Document message, List<Target> targets, String alias, String
credential, String algorithm) throws WSSecurityException;
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/EncodingOperation.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/EncodingOperation.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/EncryptionOperation.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/EncryptionOperation.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/EncryptionOperation.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,172 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import java.security.NoSuchAlgorithmException;
-import java.security.cert.X509Certificate;
-import java.util.HashMap;
-import java.util.List;
-
-import javax.crypto.KeyGenerator;
-import javax.crypto.SecretKey;
-import javax.xml.namespace.QName;
-
-import org.apache.xml.security.encryption.EncryptedData;
-import org.apache.xml.security.encryption.XMLCipher;
-import org.apache.xml.security.exceptions.XMLSecurityException;
-import org.jboss.util.NotImplementedException;
-import org.jboss.ws.extensions.security.element.EncryptedKey;
-import org.jboss.ws.extensions.security.element.ReferenceList;
-import org.jboss.ws.extensions.security.element.SecurityHeader;
-import org.jboss.ws.extensions.security.element.X509Token;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-
-public class EncryptionOperation implements EncodingOperation
-{
- private SecurityHeader header;
-
- private SecurityStore store;
-
- private static class Algorithm
- {
- Algorithm(String jceName, String xmlName, int size)
- {
- this.jceName = jceName;
- this.xmlName = xmlName;
- this.size = size;
- }
-
- public String jceName;
- public String xmlName;
- public int size;
- }
-
- private static HashMap<String, Algorithm> algorithms;
-
- private static final String DEFAULT_ALGORITHM = "aes-128";
-
- static
- {
- algorithms = new HashMap<String, Algorithm>(4);
- algorithms.put("aes-128", new Algorithm("AES",
XMLCipher.AES_128, 128));
- algorithms.put("aes-192", new Algorithm("AES",
XMLCipher.AES_192, 192));
- algorithms.put("aes-256", new Algorithm("AES",
XMLCipher.AES_256, 256));
- algorithms.put("tripledes", new Algorithm("TripleDes",
XMLCipher.TRIPLEDES, 168));
- }
-
- public EncryptionOperation(SecurityHeader header, SecurityStore store) throws
WSSecurityException
- {
- this.header = header;
- this.store = store;
- }
-
- private void processTarget(XMLCipher cipher, Document message, Target target,
ReferenceList list, SecretKey key) throws WSSecurityException
- {
- if (!(target instanceof QNameTarget))
- throw new NotImplementedException();
-
- QName name = ((QNameTarget)target).getName();
-
- Element element = Util.findElement(message.getDocumentElement(), name);
- if (element == null)
- throw new RuntimeException("Could not find element");
-
- // Ensure that the element has an id, so that encryption verification can be
performed
- Util.assignWsuId(element);
-
- try
- {
- cipher.init(XMLCipher.ENCRYPT_MODE, key);
- EncryptedData encrypted = cipher.getEncryptedData();
- String id = Util.generateId("encrypted");
- encrypted.setId(id);
- list.add(id);
- cipher.doFinal(message, element, target.isContent());
- }
- catch (Exception e)
- {
- throw new WSSecurityException("Error encrypting target: " + name, e);
- }
- }
-
- public SecretKey getSecretKey(String algorithm) throws WSSecurityException
- {
- Algorithm alg = algorithms.get(algorithm);
-
- try
- {
- KeyGenerator kgen = KeyGenerator.getInstance(alg.jceName);
- kgen.init(alg.size);
- return kgen.generateKey();
- }
- catch (NoSuchAlgorithmException e)
- {
- throw new WSSecurityException(e.getMessage());
- }
- }
-
- public void process(Document message, List<Target> targets, String alias, String
credential, String algorithm) throws WSSecurityException
- {
- if (! algorithms.containsKey(algorithm))
- algorithm = DEFAULT_ALGORITHM;
-
- SecretKey secretKey = getSecretKey(algorithm);
- XMLCipher cipher;
- try
- {
- cipher = XMLCipher.getInstance(algorithms.get(algorithm).xmlName);
- cipher.init(XMLCipher.ENCRYPT_MODE, secretKey);
- }
- catch (XMLSecurityException e)
- {
- throw new WSSecurityException("Error initializing xml cipher" +
e.getMessage(), e);
- }
-
- ReferenceList list = new ReferenceList();
-
- if (targets == null || targets.size() == 0)
- {
- // By default we encrypt the content of the body element
- String namespace = message.getDocumentElement().getNamespaceURI();
- processTarget(cipher, message, new QNameTarget(new QName(namespace,
"Body"), true), list, secretKey);
- }
- else
- {
- for (Target target : targets)
- processTarget(cipher, message, target, list, secretKey);
- }
-
- X509Certificate cert = store.getCertificate(alias);
- X509Token token = (X509Token) header.getSharedToken(cert);
-
- // Can we reuse an existing token?
- if (token == null)
- {
- token = new X509Token(cert, message);
- header.addToken(token);
- }
-
- EncryptedKey eKey = new EncryptedKey(message, secretKey, token, list);
- header.addSecurityProcess(eKey);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/EncryptionOperation.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/EncryptionOperation.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/FailedAuthenticationException.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/FailedAuthenticationException.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/FailedAuthenticationException.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,64 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import javax.xml.namespace.QName;
-
-
-/**
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @version $Revision$
- */
-public class FailedAuthenticationException extends WSSecurityException
-{
- public static final QName faultCode = new QName(Constants.WSSE_NS,
"FailedAuthentication", Constants.WSSE_PREFIX);
-
- public static final String faultString = "The security token could not be
authenticated or authorized.";
-
- public FailedAuthenticationException()
- {
- super(faultString);
- setFaultCode(faultCode);
- setFaultString(faultString);
- }
-
- public FailedAuthenticationException(Throwable cause)
- {
- super(faultString);
- setFaultCode(faultCode);
- setFaultString(faultString);
- }
-
- public FailedAuthenticationException(String message)
- {
- super(message);
- setFaultCode(faultCode);
- setFaultString(message);
- }
-
- public FailedAuthenticationException(String message, Throwable cause)
- {
- super(message, cause);
- setFaultCode(faultCode);
- setFaultString(message);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/FailedAuthenticationException.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/FailedAuthenticationException.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/FailedCheckException.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/FailedCheckException.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/FailedCheckException.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,64 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import javax.xml.namespace.QName;
-
-
-/**
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @version $Revision$
- */
-public class FailedCheckException extends WSSecurityException
-{
- public static final QName faultCode = new QName(Constants.WSSE_NS,
"FailedCheck", Constants.WSSE_PREFIX);
-
- public static final String faultString = "The signature or decryption was
invlaid.";
-
- public FailedCheckException()
- {
- super(faultString);
- setFaultCode(faultCode);
- setFaultString(faultString);
- }
-
- public FailedCheckException(Throwable cause)
- {
- super(faultString);
- setFaultCode(faultCode);
- setFaultString(faultString);
- }
-
- public FailedCheckException(String message)
- {
- super(message);
- setFaultCode(faultCode);
- setFaultString(message);
- }
-
- public FailedCheckException(String message, Throwable cause)
- {
- super(message, cause);
- setFaultCode(faultCode);
- setFaultString(message);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/FailedCheckException.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/FailedCheckException.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/InvalidSecurityHeaderException.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/InvalidSecurityHeaderException.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/InvalidSecurityHeaderException.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,64 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import javax.xml.namespace.QName;
-
-
-/**
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @version $Revision$
- */
-public class InvalidSecurityHeaderException extends WSSecurityException
-{
- public static final QName faultCode = new QName(Constants.WSSE_NS,
"InvalidSecurity", Constants.WSSE_PREFIX);
-
- public static final String faultString = "An error was dicovered processing the
<wsse:Security> header.";
-
- public InvalidSecurityHeaderException()
- {
- super(faultString);
- setFaultCode(faultCode);
- setFaultString(faultString);
- }
-
- public InvalidSecurityHeaderException(Throwable cause)
- {
- super(faultString);
- setFaultCode(faultCode);
- setFaultString(faultString);
- }
-
- public InvalidSecurityHeaderException(String message)
- {
- super(message);
- setFaultCode(faultCode);
- setFaultString(message);
- }
-
- public InvalidSecurityHeaderException(String message, Throwable cause)
- {
- super(message, cause);
- setFaultCode(faultCode);
- setFaultString(message);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/InvalidSecurityHeaderException.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/InvalidSecurityHeaderException.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/InvalidSecurityTokenException.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/InvalidSecurityTokenException.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/InvalidSecurityTokenException.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,64 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import javax.xml.namespace.QName;
-
-
-/**
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @version $Revision$
- */
-public class InvalidSecurityTokenException extends WSSecurityException
-{
- public static final QName faultCode = new QName(Constants.WSSE_NS,
"InvlalidSecurityToken", Constants.WSSE_PREFIX);
-
- public static final String faultString = "An invlaid security token was
provided.";
-
- public InvalidSecurityTokenException()
- {
- super(faultString);
- setFaultCode(faultCode);
- setFaultString(faultString);
- }
-
- public InvalidSecurityTokenException(Throwable cause)
- {
- super(faultString);
- setFaultCode(faultCode);
- setFaultString(faultString);
- }
-
- public InvalidSecurityTokenException(String message)
- {
- super(message);
- setFaultCode(faultCode);
- setFaultString(message);
- }
-
- public InvalidSecurityTokenException(String message, Throwable cause)
- {
- super(message, cause);
- setFaultCode(faultCode);
- setFaultString(message);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/InvalidSecurityTokenException.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/InvalidSecurityTokenException.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/KeyResolver.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/KeyResolver.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/KeyResolver.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,166 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import java.security.PrivateKey;
-import java.security.PublicKey;
-import java.security.cert.X509Certificate;
-import java.util.HashMap;
-
-import org.apache.xml.security.keys.KeyInfo;
-import org.jboss.util.NotImplementedException;
-import org.jboss.ws.extensions.security.element.BinarySecurityToken;
-import org.jboss.ws.extensions.security.element.DirectReference;
-import org.jboss.ws.extensions.security.element.KeyIdentifier;
-import org.jboss.ws.extensions.security.element.Reference;
-import org.jboss.ws.extensions.security.element.SecurityTokenReference;
-import org.jboss.ws.extensions.security.element.X509IssuerSerial;
-import org.jboss.ws.extensions.security.element.X509Token;
-import org.w3c.dom.Element;
-
-
-/**
- * <code>KeyResolver</code> is responsible for locating security tokens
- * within a WS-Security message.
- *
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @version $Revision$
- */
-public class KeyResolver
-{
- private HashMap<String, BinarySecurityToken> tokenCache = new HashMap<String,
BinarySecurityToken>();
-
- private SecurityStore store;
-
- public KeyResolver(SecurityStore store)
- {
- this.store = store;
- }
-
- private SecurityTokenReference extractSecurityTokenReference(KeyInfo info) throws
WSSecurityException
- {
- Element child = Util.getFirstChildElement(info.getElement());
- if (child == null)
- throw new WSSecurityException("Empty KeyInfo");
-
- if (! child.getLocalName().equals("SecurityTokenReference"))
- throw new WSSecurityException("KeyInfo did not contain expected
SecurityTokenReference, instead got: " + child.getLocalName());
-
- return new SecurityTokenReference(child);
- }
-
- public void cacheToken(BinarySecurityToken token)
- {
- tokenCache.put(token.getId(), token);
- }
-
- public BinarySecurityToken resolve(SecurityTokenReference reference) throws
WSSecurityException
- {
- Reference ref = reference.getReference();
- if (ref instanceof DirectReference)
- {
- DirectReference direct = (DirectReference) ref;
- return resolveDirectReference(direct);
- }
- else if (ref instanceof KeyIdentifier)
- {
- KeyIdentifier identifier = (KeyIdentifier) ref;
- return resolveKeyIdentifier(identifier);
- }
- else if (ref instanceof X509IssuerSerial)
- {
- X509IssuerSerial issuerSerial = (X509IssuerSerial) ref;
- return resolveX509IssuerSerial(issuerSerial);
- }
-
- throw new NotImplementedException("Currently only DirectReference is
supported!");
- }
-
- private BinarySecurityToken resolveDirectReference(DirectReference direct) throws
WSSecurityException
- {
- String id = direct.getUri().substring(1);
-
- BinarySecurityToken token = tokenCache.get(id);
- if (token == null)
- throw new SecurityTokenUnavailableException("Could not resolve token id:
" + id);
-
- return token;
- }
-
- private BinarySecurityToken resolveKeyIdentifier(KeyIdentifier identifier) throws
WSSecurityException
- {
- // Support only SKI at the moment
- X509Certificate cert =
store.getCertificateBySubjectKeyIdentifier(identifier.getIdentifier());
- if (cert == null)
- throw new SecurityTokenUnavailableException("Could not locate certificate
by key identifier");
- return new X509Token(cert, identifier.getDocument());
- }
-
- private BinarySecurityToken resolveX509IssuerSerial(X509IssuerSerial issuerSerial)
throws WSSecurityException
- {
- X509Certificate cert = store.getCertificateByIssuerSerial(issuerSerial.getIssuer(),
issuerSerial.getSerial());
- if (cert == null)
- throw new SecurityTokenUnavailableException("Could not locate certificate by
issuer and serial number");
-
- return new X509Token(cert, issuerSerial.getDocument());
- }
-
- public X509Certificate resolveCertificate(SecurityTokenReference reference) throws
WSSecurityException
- {
- BinarySecurityToken token = resolve(reference);
-
- if (! (token instanceof X509Token))
- throw new WSSecurityException("Expected X509Token, cache contained: "
+ token.getClass().getName());
-
- return ((X509Token)token).getCert();
- }
-
- public PublicKey resolvePublicKey(SecurityTokenReference reference) throws
WSSecurityException
- {
- return resolveCertificate(reference).getPublicKey();
- }
-
- public PrivateKey resolvePrivateKey(SecurityTokenReference reference) throws
WSSecurityException
- {
- return store.getPrivateKey(resolveCertificate(reference));
- }
-
- public BinarySecurityToken resolve(KeyInfo info) throws WSSecurityException
- {
- return resolve(extractSecurityTokenReference(info));
- }
-
- public X509Certificate resolveCertificate(KeyInfo info) throws WSSecurityException
- {
- return resolveCertificate(extractSecurityTokenReference(info));
- }
-
- public PublicKey resolvePublicKey(KeyInfo info) throws WSSecurityException
- {
- return resolvePublicKey(extractSecurityTokenReference(info));
- }
-
- public PrivateKey resolvePrivateKey(KeyInfo info) throws WSSecurityException
- {
- return resolvePrivateKey(extractSecurityTokenReference(info));
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/KeyResolver.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/KeyResolver.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/Operation.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/Operation.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/Operation.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,33 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-/**
- * Marker interface for all WS-Security operations
- *
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @version $Revision$
- */
-public interface Operation
-{
-
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/Operation.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/Operation.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/OperationDescription.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/OperationDescription.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/OperationDescription.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,105 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import java.util.List;
-
-
-/**
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @version $Revision$
- */
-public class OperationDescription<T extends Operation>
-{
- private Class<? extends T> operation;
-
- private List<Target> targets;
-
- private String certificateAlias;
-
- private String credential;
-
- private String algorithm;
-
- public OperationDescription(Class<? extends T> operation, List<Target>
targets, String certicateAlias, String credential, String algorithm)
- {
- this.operation = operation;
- this.targets = targets;
- this.certificateAlias = certicateAlias;
- this.credential = credential;
- this.algorithm = algorithm;
- }
-
- public Class<? extends T> getOperation()
- {
- return operation;
- }
-
- public void setOperation(Class<? extends T> operation)
- {
- this.operation = operation;
- }
-
- public List<Target> getTargets()
- {
- return targets;
- }
-
- public void setTargets(List<Target> targets)
- {
- this.targets = targets;
- }
-
-
- public String getCertificateAlias()
- {
- return certificateAlias;
- }
-
-
- public void setCertificateAlias(String certificateAlias)
- {
- this.certificateAlias = certificateAlias;
- }
-
-
- public String getCredential()
- {
- return credential;
- }
-
- public void setCredential(String credential)
- {
- this.credential = credential;
- }
-
- public String getAlgorithm()
- {
- return algorithm;
- }
-
- public void setAlgorithm(String algorithm)
- {
- this.algorithm = algorithm;
- }
-
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/OperationDescription.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/OperationDescription.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/QNameTarget.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/QNameTarget.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/QNameTarget.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,59 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import javax.xml.namespace.QName;
-
-
-
-/**
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @version $Revision$
- */
-public class QNameTarget extends Target
-{
- private QName name;
-
- private boolean content;
-
- public QNameTarget(QName name)
- {
- this.name = name;
- this.content = false;
- }
-
- public QNameTarget(QName name, boolean content)
- {
- this(name);
- this.content = content;
- }
-
- public QName getName()
- {
- return name;
- }
-
- public boolean isContent()
- {
- return content;
- }
-}
\ No newline at end of file
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/QNameTarget.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/QNameTarget.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/ReceiveUsernameOperation.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/ReceiveUsernameOperation.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/ReceiveUsernameOperation.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,50 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.security;
-
-import org.jboss.ws.extensions.security.element.SecurityHeader;
-import org.jboss.ws.extensions.security.element.Token;
-import org.jboss.ws.extensions.security.element.UsernameToken;
-import org.w3c.dom.Document;
-
-public class ReceiveUsernameOperation implements TokenOperation
-{
- private SecurityHeader header;
-
- private SecurityStore store;
-
- public ReceiveUsernameOperation(SecurityHeader header, SecurityStore store)
- {
- this.header = header;
- this.store = store;
- }
-
- public void process(Document message, Token token) throws WSSecurityException
- {
- UsernameToken user = (UsernameToken)token;
-
- SecurityAdaptorFactory factory = SecurityAdaptorFactory.getInstance();
- SecurityAdaptor securityAdaptor = factory.getSecurityAdaptor();
- securityAdaptor.setPrincipal(new SimplePrincipal(user.getUsername()));
- securityAdaptor.setCredential(user.getPassword());
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/ReceiveUsernameOperation.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/ReceiveUsernameOperation.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireEncryptionOperation.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireEncryptionOperation.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireEncryptionOperation.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,33 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import org.jboss.ws.extensions.security.element.SecurityHeader;
-
-
-public class RequireEncryptionOperation extends RequireTargetableOperation
-{
- public RequireEncryptionOperation(SecurityHeader header, SecurityStore store) throws
WSSecurityException
- {
- super(header, store);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireEncryptionOperation.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireEncryptionOperation.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireOperation.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireOperation.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireOperation.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,38 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import java.util.Collection;
-import java.util.List;
-
-import org.w3c.dom.Document;
-
-/**
- * Marker interface for all requirement based WS-Security operations.
- *
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @version $Revision$
- */
-public interface RequireOperation extends Operation
-{
- public void process(Document message, List<Target> targets, String alias, String
credential, Collection<String> processedIds) throws WSSecurityException;
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireOperation.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireOperation.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireSignatureOperation.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireSignatureOperation.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireSignatureOperation.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,33 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import org.jboss.ws.extensions.security.element.SecurityHeader;
-
-
-public class RequireSignatureOperation extends RequireTargetableOperation
-{
- public RequireSignatureOperation(SecurityHeader header, SecurityStore store) throws
WSSecurityException
- {
- super(header, store);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireSignatureOperation.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireSignatureOperation.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireTargetableOperation.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireTargetableOperation.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireTargetableOperation.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,90 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.List;
-
-import javax.xml.namespace.QName;
-
-import org.jboss.ws.extensions.security.element.SecurityHeader;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-
-public class RequireTargetableOperation implements RequireOperation
-{
- public RequireTargetableOperation(SecurityHeader header, SecurityStore store) throws
WSSecurityException
- {
- }
-
- private Collection<String> resolveTarget(Document message, Target target) throws
WSSecurityException
- {
- if (target instanceof QNameTarget)
- return resolveQNameTarget(message, (QNameTarget) target);
- else if (target instanceof WsuIdTarget)
- {
- Collection<String> result = new ArrayList<String>(1);
- result.add(((WsuIdTarget)target).getId());
- return result;
- }
-
- throw new WSSecurityException("Unknown target");
- }
-
- private Collection<String> resolveQNameTarget(Document message, QNameTarget
target) throws WSSecurityException
- {
- QName name = target.getName();
-
- Element element = Util.findElement(message.getDocumentElement(), name);
- if (element == null)
- throw new FailedCheckException("Required QName was not present: " +
name);
-
- String id = Util.getWsuId(element);
-
- if (id == null)
- throw new FailedCheckException("Required element did not contain a
wsu:id.");
-
- Collection<String> result = new ArrayList<String>(1);
- result.add(id);
-
- return result;
- }
-
- public void process(Document message, List<Target> targets, String alias, String
credential, Collection<String> processedIds) throws WSSecurityException
- {
- if (targets == null || targets.size() == 0)
- {
- // By default we require just the body element
- String namespace = message.getDocumentElement().getNamespaceURI();
- targets = new ArrayList<Target>(1);
- targets.add(new QNameTarget(new QName(namespace, "Body"), true));
- }
-
- for (Target target : targets)
- {
- Collection<String> ids = resolveTarget(message, target);
- if (! processedIds.containsAll(ids))
- throw new FailedCheckException("Required elements for encryption and or
signing are not all present.");
- }
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireTargetableOperation.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireTargetableOperation.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireTimestampOperation.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireTimestampOperation.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireTimestampOperation.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,60 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import java.util.Calendar;
-import java.util.Collection;
-import java.util.List;
-
-import org.jboss.ws.extensions.security.element.SecurityHeader;
-import org.jboss.ws.extensions.security.element.Timestamp;
-import org.w3c.dom.Document;
-
-
-public class RequireTimestampOperation implements RequireOperation
-{
- private SecurityHeader header;
-
- public RequireTimestampOperation(SecurityHeader header, SecurityStore store) throws
WSSecurityException
- {
- this.header = header;
- }
-
- public void process(Document message, List<Target> targets, String maxAge,
String credential, Collection<String> processedIds) throws WSSecurityException
- {
- Timestamp stamp = header.getTimestamp();
- if (stamp == null)
- throw new FailedCheckException("Required timestamp not present.");
-
- // If there is no maxAge specified then we are done
- if (maxAge == null)
- return;
-
- int max = Integer.parseInt(maxAge);
-
- Calendar expired = (Calendar)stamp.getCreated().clone();
- expired.add(Calendar.SECOND, max);
-
- if (! Calendar.getInstance().before(expired))
- throw new FailedCheckException("Timestamp of message is too old.");
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireTimestampOperation.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/RequireTimestampOperation.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/STRTransform.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/STRTransform.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/STRTransform.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,173 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import java.io.IOException;
-
-import javax.xml.parsers.ParserConfigurationException;
-
-import org.apache.xml.security.c14n.CanonicalizationException;
-import org.apache.xml.security.c14n.Canonicalizer;
-import org.apache.xml.security.c14n.InvalidCanonicalizerException;
-import org.apache.xml.security.signature.XMLSignatureInput;
-import org.apache.xml.security.transforms.Transform;
-import org.apache.xml.security.transforms.TransformSpi;
-import org.apache.xml.security.transforms.TransformationException;
-import org.apache.xml.security.utils.XMLUtils;
-import org.jboss.util.NotImplementedException;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.utils.ThreadLocalAssociation;
-import org.jboss.ws.extensions.security.element.BinarySecurityToken;
-import org.jboss.ws.extensions.security.element.SecurityTokenReference;
-import org.w3c.dom.Element;
-import org.xml.sax.SAXException;
-
-
-/**
- * <code>STRTransform</code> implements the STR-Transform specified in the
- * WS-Security specification. This class dynamically registers itself with
- * XML Security on its first load (using a static initializer).
- *
- * You must call the static yet thread safe setSecurityStore() before use of
- * this class.
- *
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @version $Revision$
- */
-public class STRTransform extends TransformSpi
-{
- public static final String STR_URI =
"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#STR-Transform";
-
- static
- {
- try
- {
- Transform.register(STR_URI, STRTransform.class.getName());
- }
- catch (Exception e)
- {
- // Eat
- }
- }
-
- private String canonicalize(Element element, Element method) throws
TransformationException, InvalidCanonicalizerException, CanonicalizationException
- {
- if (method == null || !
method.getLocalName().equals("CanonicalizationMethod"))
- throw new TransformationException("CanonicalizationMethod
expected!");
-
- String algorithm = method.getAttribute("Algorithm");
- if (algorithm == null || algorithm.length() == 0)
- throw new TransformationException("CanonicalizationMethod missing
algorithm!");
-
- Canonicalizer canon = Canonicalizer.getInstance(algorithm);
-
- return new String(canon.canonicalizeSubtree(element, "#default"));
- }
-
- @Override
- protected String engineGetURI()
- {
- return STR_URI;
- }
-
-
- @Override
- protected XMLSignatureInput enginePerformTransform(XMLSignatureInput input) throws
IOException, CanonicalizationException,
- InvalidCanonicalizerException, TransformationException,
ParserConfigurationException, SAXException
- {
-
- SecurityStore store = ThreadLocalAssociation.localStrTransformAssoc().get();
-
- if (store == null)
- throw new WSException("SecurityStore Thread Local not initialized before
call!");
-
- try
- {
- if (! input.isElement())
- throw new NotImplementedException("Only element input is
supported");
-
- // Resolve the BinarySecurityToken associated with this SecurityTokenReference
- Element element = (Element)input.getSubNode();
- SecurityTokenReference ref = new SecurityTokenReference(element);
- KeyResolver resolver = new KeyResolver(store);
- BinarySecurityToken token = resolver.resolve(ref);
-
- // Get the specially formated dom element for this element
- element = token.getSTRTransformElement();
-
- // Obtain the canonicalizer specified in the transformation parameters
- Element parameters =
XMLUtils.selectNode(this._transformObject.getElement().getFirstChild(),
Constants.WSSE_NS,
- "TransformationParameters", 0);
- if (parameters == null)
- throw new TransformationException("wsse:TransformationParameters
expected!");
-
- Element method = Util.getFirstChildElement(parameters);
- String transformed = canonicalize(element, method);
-
- // Now WS-Security says we must augment the transformed output to ensure that
there is
- // a default namespace
- int startTag = transformed.indexOf('<');
- int endTag = transformed.indexOf('>', startTag + 1);
- String within = transformed.substring(startTag + 1, endTag);
- if (! within.contains("xmlns="))
- {
- int insPos = within.indexOf(" ") + startTag + 1;
- transformed = new StringBuilder(transformed).insert(insPos, "
xmlns=\"\"").toString();
- }
-
- return new XMLSignatureInput(transformed.getBytes());
- }
- catch (WSSecurityException e)
- {
- throw new TransformationException(e.getMessage(), e);
- }
- finally
- {
- ThreadLocalAssociation.localStrTransformAssoc().set(null);
- }
- }
-
- public static void setSecurityStore(SecurityStore store)
- {
- ThreadLocalAssociation.localStrTransformAssoc().set(store);
- }
-
- public boolean wantsOctetStream()
- {
- return false;
- }
-
- public boolean wantsNodeSet()
- {
- return false;
- }
-
- public boolean returnsOctetStream()
- {
- return false;
- }
-
- public boolean returnsNodeSet()
- {
- return false;
- }
-}
\ No newline at end of file
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/STRTransform.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/STRTransform.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityAdaptor.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityAdaptor.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityAdaptor.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,38 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-// $Id: SecurityAdaptor.java 314 2006-05-11 10:57:59Z thomas.diesler(a)jboss.com $
-
-import java.security.Principal;
-
-/**
- * A container idependent security adaptor
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 10-May-2005
- */
-public interface SecurityAdaptor
-{
- void setPrincipal(Principal pricipal);
- void setCredential(Object credential);
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityAdaptor.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityAdaptor.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityAdaptorFactory.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityAdaptorFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityAdaptorFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,70 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.security;
-
-//$Id: SecurityAdaptorFactory.java 314 2006-05-11 10:57:59Z thomas.diesler(a)jboss.com $
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.WSException;
-
-/**
- * A container idependent security adaptor factory
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 10-May-2005
- */
-public class SecurityAdaptorFactory
-{
- // provide logging
- private static final Logger log = Logger.getLogger(SecurityAdaptorFactory.class);
-
- public static final String DEFAULT_FACTORY =
"org.jboss.ws.integration.SecurityAdaptorFactoryImpl";
-
- private static SecurityAdaptorFactory delegate;
-
- public static SecurityAdaptorFactory getInstance()
- {
- if (delegate == null)
- {
- ClassLoader ctxLoader = Thread.currentThread().getContextClassLoader();
- try
- {
- Class factoryClass = ctxLoader.loadClass(DEFAULT_FACTORY);
- delegate = (SecurityAdaptorFactory)factoryClass.newInstance();
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Exception e)
- {
- throw new WSException("Cannot load: " + DEFAULT_FACTORY, e);
- }
- }
- return delegate;
- }
-
- public SecurityAdaptor getSecurityAdaptor()
- {
- return delegate.getSecurityAdaptor();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityAdaptorFactory.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityAdaptorFactory.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityDecoder.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityDecoder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityDecoder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,194 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import java.lang.reflect.Constructor;
-import java.util.Calendar;
-import java.util.Collection;
-import java.util.HashSet;
-import java.util.List;
-
-import org.jboss.ws.extensions.security.element.EncryptedKey;
-import org.jboss.ws.extensions.security.element.SecurityHeader;
-import org.jboss.ws.extensions.security.element.SecurityProcess;
-import org.jboss.ws.extensions.security.element.Signature;
-import org.jboss.ws.extensions.security.element.Timestamp;
-import org.jboss.ws.extensions.security.element.Token;
-import org.jboss.ws.extensions.security.element.UsernameToken;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-
-/**
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @version $Revision$
- */
-public class SecurityDecoder
-{
- private Element headerElement;
-
- private Calendar now = null;
-
- private SecurityHeader header;
-
- private Document message;
-
- private SecurityStore store;
-
- private HashSet<String> signedIds = new HashSet<String>();
-
- private HashSet<String> encryptedIds = new HashSet<String>();
-
- public SecurityDecoder(SecurityStore store)
- {
- org.apache.xml.security.Init.init();
- this.store = store;
- }
-
- /**
- * A special constructor that allows you to use a different value when validating the
message.
- * DO NOT USE THIS UNLESS YOU REALLY KNOW WHAT YOU ARE DOING!.
- *
- * @param SecurityStore the security store that contains key and trust information
- * @param now The timestamp to use as the current time when validating a message
expiration
- */
- public SecurityDecoder(SecurityStore store, Calendar now)
- {
- this(store);
- this.now = now;
- }
-
- private Element getHeader(Document message) throws WSSecurityException
- {
- Element header = Util.findElement(message.getDocumentElement(),
"Security", Constants.WSSE_NS);
- if (header == null)
- throw new WSSecurityException("Expected security header was not
found");
-
- return header;
- }
-
- private void detachHeader()
- {
- headerElement.getParentNode().removeChild(headerElement);
- }
-
-
- private void decode() throws WSSecurityException
- {
- // Validate a timestamp if it is present
- Timestamp timestamp = header.getTimestamp();
-
- if (timestamp != null)
- {
- TimestampVerificationOperation operation =
- (now == null) ? new TimestampVerificationOperation() : new
TimestampVerificationOperation(now);
- operation.process(message, timestamp);
- }
-
- for (Token token : header.getTokens())
- {
- if (token instanceof UsernameToken)
- new ReceiveUsernameOperation(header, store).process(message, token);
- }
-
- signedIds.clear();
- encryptedIds.clear();
-
- SignatureVerificationOperation signatureVerifier = new
SignatureVerificationOperation(header, store);
- DecryptionOperation decrypter = new DecryptionOperation(header, store);
-
- for (SecurityProcess process : header.getSecurityProcesses())
- {
- // If this list gets much larger it should probably be a hash lookup
- if (process instanceof Signature)
- {
- Collection<String> ids = signatureVerifier.process(message, process);
- if (ids != null)
- signedIds.addAll(ids);
- }
- else if (process instanceof EncryptedKey)
- {
- Collection<String> ids = decrypter.process(message, process);
- if (ids != null)
- encryptedIds.addAll(ids);
- }
- }
- }
-
- public void verify(List<OperationDescription<RequireOperation>>
requireOperations) throws WSSecurityException
- {
- if (requireOperations == null)
- return;
-
- for (OperationDescription<RequireOperation> o : requireOperations)
- {
- Class<? extends RequireOperation> operation = o.getOperation();
- RequireOperation op;
- Collection<String> processedIds = null;
-
- if (operation.equals(RequireSignatureOperation.class))
- {
- op = new RequireSignatureOperation(header, store);
- processedIds = signedIds;
- }
- else if (operation.equals(RequireEncryptionOperation.class))
- {
- op = new RequireEncryptionOperation(header, store);
- processedIds = encryptedIds;
- }
- else
- {
- try
- {
- Constructor<? extends RequireOperation> c =
operation.getConstructor(SecurityHeader.class, SecurityStore.class);
- op = c.newInstance(header, store);
- }
- catch (Exception e)
- {
- throw new WSSecurityException("Error constructing operation: " +
operation);
- }
- }
-
- op.process(message, o.getTargets(), o.getCertificateAlias(), o.getCredential(),
processedIds);
- }
- }
-
- public void decode(Document message) throws WSSecurityException
- {
- decode(message, getHeader(message));
- }
-
- public void decode(Document message, Element headerElement) throws
WSSecurityException
- {
- this.headerElement = headerElement;
- this.header = new SecurityHeader(this.headerElement, store);
- this.message = message;
-
- decode();
- }
-
- public void complete()
- {
- // On completion we must remove the header so that no one else can process this
- // message (required by the specification)
- detachHeader();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityDecoder.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityDecoder.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityEncoder.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityEncoder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityEncoder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,86 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import java.lang.reflect.Constructor;
-import java.util.List;
-
-import org.jboss.ws.extensions.security.element.SecurityHeader;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-
-
-/**
- * <code>SecurityEncoder</code> is responsible for transforming a SOAP
message
- * into a WS-Security encoded message.
- *
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @version $Revision$
- */
-public class SecurityEncoder
-{
- private List<OperationDescription<EncodingOperation>> operations;
-
- private SecurityStore store;
-
- public SecurityEncoder(List<OperationDescription<EncodingOperation>>
operations, SecurityStore store)
- {
- org.apache.xml.security.Init.init();
- this.operations = operations;
- this.store = store;
- }
-
- private void attachHeader(SecurityHeader header, Document message)
- {
- Element soapHeader = Util.findOrCreateSoapHeader(message.getDocumentElement());
- try
- {
- Element wsse = header.getElement();
- wsse.setAttributeNS(soapHeader.getNamespaceURI(), soapHeader.getPrefix() +
":mustUnderstand", "1");
- soapHeader.insertBefore(wsse, soapHeader.getFirstChild());
- }
- catch (Exception e) {}
-
- }
-
- public void encode(Document message) throws WSSecurityException
- {
- SecurityHeader header = new SecurityHeader(message);
- for (OperationDescription<EncodingOperation> o : operations)
- {
- EncodingOperation operation;
-
- try
- {
- Constructor<? extends EncodingOperation> constructor =
o.getOperation().getConstructor(SecurityHeader.class, SecurityStore.class);
- operation = constructor.newInstance(header, store);
- }
- catch (Exception e)
- {
- throw new WSSecurityException("Error constructing operation: " +
o.getOperation());
- }
-
- operation.process(message, o.getTargets(), o.getCertificateAlias(),
o.getCredential(), o.getAlgorithm());
- }
- attachHeader(header, message);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityEncoder.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityEncoder.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityStore.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityStore.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityStore.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,488 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.security;
-
-// $Id$
-
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.lang.reflect.Constructor;
-import java.lang.reflect.Method;
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.security.InvalidAlgorithmParameterException;
-import java.security.KeyStore;
-import java.security.KeyStoreException;
-import java.security.PrivateKey;
-import java.security.cert.CertPath;
-import java.security.cert.CertPathValidator;
-import java.security.cert.CertPathValidatorException;
-import java.security.cert.Certificate;
-import java.security.cert.CertificateFactory;
-import java.security.cert.PKIXParameters;
-import java.security.cert.X509Certificate;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Enumeration;
-import java.util.List;
-import java.util.StringTokenizer;
-
-import org.jboss.logging.Logger;
-
-/**
- * <code>SecurityStore</code> holds and loads the keystore and truststore
required for encyption and signing.
- *
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @author <a href="mailto:jason.greene@jboss.com">Magesh Kumar
B</a>
- * @version $Revision$
- */
-public class SecurityStore
-{
- private static Logger log = Logger.getLogger(SecurityStore.class);
-
- private KeyStore keyStore;
-
- private String keyStorePassword;
-
- private KeyStore trustStore;
-
- private String trustStorePassword;
-
- public SecurityStore() throws WSSecurityException
- {
- this(null, null, null, null, null, null);
- }
-
- public SecurityStore(URL keyStoreURL, String keyStoreType, String keyStorePassword)
throws WSSecurityException
- {
- loadKeyStore(keyStoreURL, keyStoreType, keyStorePassword);
- loadTrustStore(keyStoreURL, keyStoreType, keyStorePassword);
- }
-
- public SecurityStore(URL keyStoreURL, String keyStoreType, String keyStorePassword,
URL trustStoreURL, String trustStoreType, String trustStorePassword)
- throws WSSecurityException
- {
- loadKeyStore(keyStoreURL, keyStoreType, keyStorePassword);
- loadTrustStore(trustStoreURL, trustStoreType, trustStorePassword);
- }
-
- private void loadKeyStore(URL keyStoreURL, String keyStoreType, String
keyStorePassword) throws WSSecurityException
- {
- if (keyStorePassword == null)
- keyStorePassword =
System.getProperty("org.jboss.ws.wsse.keyStorePassword");
-
- keyStore = loadStore("org.jboss.ws.wsse.keyStore", "Keystore",
keyStoreURL, keyStoreType, keyStorePassword);
- this.keyStorePassword = keyStorePassword;
- }
-
- private void loadTrustStore(URL trustStoreURL, String trustStoreType, String
trustStorePassword) throws WSSecurityException
- {
- if (trustStorePassword == null)
- trustStorePassword =
System.getProperty("org.jboss.ws.wsse.trustStorePassword");
-
- trustStore = loadStore("org.jboss.ws.wsse.trustStore",
"Truststore", trustStoreURL, trustStoreType, trustStorePassword);
- this.trustStorePassword = trustStorePassword;
- }
-
- private KeyStore loadStore(String property, String type, URL storeURL, String
storeType, String storePassword) throws WSSecurityException
- {
- if (storeURL == null)
- {
- String defaultStore = System.getProperty(property);
- if (defaultStore == null)
- {
- return null;
- }
-
- File storeFile = new File(defaultStore);
- try
- {
- storeURL = storeFile.toURL();
- }
- catch (MalformedURLException e)
- {
- throw new WSSecurityException("Problems loading " + type + ":
" + e.getMessage(), e);
- }
- }
-
- if (storeType == null)
- storeType = System.getProperty(property + "Type");
- if (storeType == null)
- storeType = "jks";
-
- KeyStore keyStore = null;
- try
- {
- log.debug("loadStore: " + storeURL);
- InputStream stream = storeURL.openStream();
- if (stream == null)
- throw new WSSecurityException("Cannot load store from: " +
storeURL);
-
- keyStore = KeyStore.getInstance(storeType);
- if (keyStore == null)
- throw new WSSecurityException("Cannot get keystore for type: " +
storeType);
-
- String decryptedPassword = decryptPassword(storePassword);
- if (decryptedPassword == null)
- throw new WSSecurityException("Cannot decrypt store password");
-
- keyStore.load(stream, decryptedPassword.toCharArray());
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (WSSecurityException ex)
- {
- throw ex;
- }
- catch (Exception ex)
- {
- throw new WSSecurityException("Problems loading " + type + ":
" + ex.getMessage(), ex);
- }
-
- return keyStore;
- }
-
- /**
- * This method examines the password for the presence of a encryption algorithm, if
found
- * decrypts and returns the password, else returns the password as is.
- */
- private String decryptPassword(String password) throws WSSecurityException
- {
- log.trace("decrypt password: " + password);
-
- if (password == null)
- throw new WSSecurityException("Invalid null password for security
store");
-
- if (password.charAt(0) == '{')
- {
- StringTokenizer tokenizer = new StringTokenizer(password, "{}");
- String keyStorePasswordCmdType = tokenizer.nextToken();
- String keyStorePasswordCmd = tokenizer.nextToken();
- if (keyStorePasswordCmdType.equals("EXT"))
- {
- password = execPasswordCmd(keyStorePasswordCmd);
- }
- else if (keyStorePasswordCmdType.equals("CLASS"))
- {
- password = invokePasswordClass(keyStorePasswordCmd);
- }
- else
- {
- throw new WSSecurityException("Unknown keyStorePasswordCmdType: " +
keyStorePasswordCmdType);
- }
- }
- if (password == null)
- throw new WSSecurityException("Cannot decrypt password, result is
null");
-
- log.trace("decrypted password: " + password);
- return password;
- }
-
- private String execPasswordCmd(String keyStorePasswordCmd) throws WSSecurityException
- {
- log.debug("Executing command: " + keyStorePasswordCmd);
- try
- {
- Runtime rt = Runtime.getRuntime();
- Process p = rt.exec(keyStorePasswordCmd);
- InputStream stdin = p.getInputStream();
- BufferedReader reader = new BufferedReader(new InputStreamReader(stdin));
- String password = reader.readLine();
- stdin.close();
- int exitCode = p.waitFor();
- log.debug("Command exited with: " + exitCode);
- return password;
- }
- catch (Exception e)
- {
- throw new WSSecurityException("Problems executing password command: "
+ keyStorePasswordCmd, e);
- }
- }
-
- private String invokePasswordClass(String keyStorePasswordCmd) throws
WSSecurityException
- {
- String password = null;
- String classname = keyStorePasswordCmd;
- String ctorArg = null;
- int colon = keyStorePasswordCmd.indexOf(':');
- if (colon > 0)
- {
- classname = keyStorePasswordCmd.substring(0, colon);
- ctorArg = keyStorePasswordCmd.substring(colon + 1);
- }
- log.debug("Loading class: " + classname + ", ctorArg=" +
ctorArg);
- try
- {
- ClassLoader loader = Thread.currentThread().getContextClassLoader();
- Class c = loader.loadClass(classname);
- Object instance = null;
- if (ctorArg != null)
- {
- Class[] sig = { String.class };
- Constructor ctor = c.getConstructor(sig);
- Object[] args = { ctorArg };
- instance = ctor.newInstance(args);
- }
- else
- {
- instance = c.newInstance();
- }
- try
- {
- log.debug("Checking for toCharArray");
- Class[] sig = {};
- Method toCharArray = c.getMethod("toCharArray", sig);
- Object[] args = {};
- log.debug("Invoking toCharArray");
- password = new String((char[])toCharArray.invoke(instance, args));
- }
- catch (NoSuchMethodException e)
- {
- log.debug("No toCharArray found, invoking toString");
- password = instance.toString();
- }
- }
- catch (Exception e)
- {
- throw new WSSecurityException("Problems loading or invoking Password class
: " + classname, e);
- }
- return password;
- }
-
- public static byte[] getSubjectKeyIdentifier(X509Certificate cert)
- {
- // Maybee we should make one ourselves if it isn't there?
- byte[] encoded = cert.getExtensionValue("2.5.29.14");
- if (encoded == null)
- return null;
-
- // We need to skip 4 bytes [(OCTET STRING) (LENGTH)[(OCTET STRING) (LENGTH) (Actual
data)]]
- int trunc = encoded.length - 4;
-
- byte[] identifier = new byte[trunc];
- System.arraycopy(encoded, 4, identifier, 0, trunc);
-
- return identifier;
- }
-
- public X509Certificate getCertificate(String alias) throws WSSecurityException
- {
- if (keyStore == null)
- {
- throw new WSSecurityException("KeyStore not set.");
- }
-
- X509Certificate cert;
- try
- {
- cert = (X509Certificate)keyStore.getCertificate(alias);
- }
- catch (Exception e)
- {
- throw new WSSecurityException("Problems retrieving cert: " +
e.getMessage(), e);
- }
-
- if (cert == null)
- throw new WSSecurityException("Certificate (" + alias + ") not in
keystore");
-
- return cert;
- }
-
- public X509Certificate getCertificateBySubjectKeyIdentifier(byte[] identifier) throws
WSSecurityException
- {
- if (identifier == null)
- return null;
-
- if (keyStore == null)
- {
- throw new WSSecurityException("KeyStore not set.");
- }
-
- try
- {
- Enumeration i = keyStore.aliases();
-
- while (i.hasMoreElements())
- {
- String alias = (String)i.nextElement();
- Certificate cert = keyStore.getCertificate(alias);
- if (!(cert instanceof X509Certificate))
- continue;
-
- byte[] subjectKeyIdentifier =
getSubjectKeyIdentifier((X509Certificate)cert);
- if (subjectKeyIdentifier == null)
- continue;
-
- if (Arrays.equals(identifier, subjectKeyIdentifier))
- return (X509Certificate)cert;
- }
- }
- catch (KeyStoreException e)
- {
- throw new WSSecurityException("Problems retrieving cert: " +
e.getMessage(), e);
- }
-
- return null;
- }
-
- public X509Certificate getCertificateByIssuerSerial(String issuer, String serial)
throws WSSecurityException
- {
- if (keyStore == null)
- {
- throw new WSSecurityException("KeyStore not set.");
- }
-
- try
- {
- Enumeration i = keyStore.aliases();
-
- while (i.hasMoreElements())
- {
- String alias = (String)i.nextElement();
- Certificate cert = keyStore.getCertificate(alias);
- if (!(cert instanceof X509Certificate))
- continue;
-
- X509Certificate x509 = (X509Certificate)cert;
- if (issuer.equals(x509.getIssuerDN().toString()) &&
serial.equals(x509.getSerialNumber().toString()))
- return x509;
- }
- }
- catch (KeyStoreException e)
- {
- throw new WSSecurityException("Problems retrieving cert: " +
e.getMessage(), e);
- }
-
- return null;
- }
-
- public PrivateKey getPrivateKey(String alias) throws WSSecurityException
- {
- if (keyStore == null)
- {
- throw new WSSecurityException("KeyStore not set.");
- }
-
- PrivateKey key;
- try
- {
- key = (PrivateKey)keyStore.getKey(alias,
decryptPassword(keyStorePassword).toCharArray());
- }
- catch (Exception e)
- {
- throw new WSSecurityException("Problems retrieving private key: " +
e.getMessage(), e);
- }
-
- if (key == null)
- throw new WSSecurityException("Private key (" + alias + ") not in
keystore");
-
- return key;
- }
-
- public PrivateKey getPrivateKey(X509Certificate cert) throws WSSecurityException
- {
- if (keyStore == null)
- {
- throw new WSSecurityException("KeyStore not set.");
- }
-
- try
- {
- String alias = keyStore.getCertificateAlias(cert);
- return getPrivateKey(alias);
- }
- catch (Exception e)
- {
- throw new WSSecurityException("Problems retrieving private key: " +
e.getMessage(), e);
- }
- }
-
- public void validateCertificate(X509Certificate cert) throws WSSecurityException
- {
- try
- {
- cert.checkValidity();
- }
- catch (Exception e)
- {
- log.debug("Certificate is invalid", e);
- throw new FailedAuthenticationException();
- }
-
- if (keyStore == null)
- {
- throw new WSSecurityException("TrustStore not set.");
- }
-
- // Check for the exact entry in the truststore first, then fallback to a CA check
- try
- {
- if (trustStore.getCertificateAlias(cert) != null)
- {
- return;
- }
- }
- catch (KeyStoreException e)
- {
- throw new WSSecurityException("Problems searching truststore", e);
- }
-
- List list = new ArrayList(1);
- list.add(cert);
-
- CertPath cp;
- CertPathValidator cpv;
- PKIXParameters parameters;
-
- try
- {
- cp = CertificateFactory.getInstance("X.509").generateCertPath(list);
- cpv = CertPathValidator.getInstance("PKIX");
- parameters = new PKIXParameters(trustStore);
-
- // We currently don't support CRLs
- parameters.setRevocationEnabled(false);
- }
- catch (Exception e)
- {
- throw new WSSecurityException("Problems setting up certificate
validation", e);
- }
-
- try
- {
- cpv.validate(cp, parameters);
- }
- catch (CertPathValidatorException cpve)
- {
- log.debug("Certificate is invalid:", cpve);
- throw new FailedAuthenticationException();
- }
- catch (InvalidAlgorithmParameterException e)
- {
- throw new WSSecurityException("Problems setting up certificate
validation", e);
- }
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityStore.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityStore.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityTokenUnavailableException.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityTokenUnavailableException.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityTokenUnavailableException.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,64 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import javax.xml.namespace.QName;
-
-
-/**
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @version $Revision$
- */
-public class SecurityTokenUnavailableException extends WSSecurityException
-{
- public static final QName faultCode = new QName(Constants.WSSE_NS,
"SecurityTokenUnavailable", Constants.WSSE_PREFIX);
-
- public static final String faultString = "Referenced security token could not be
retrieved.";
-
- public SecurityTokenUnavailableException()
- {
- super(faultString);
- setFaultCode(faultCode);
- setFaultString(faultString);
- }
-
- public SecurityTokenUnavailableException(Throwable cause)
- {
- super(faultString);
- setFaultCode(faultCode);
- setFaultString(faultString);
- }
-
- public SecurityTokenUnavailableException(String message)
- {
- super(message);
- setFaultCode(faultCode);
- setFaultString(message);
- }
-
- public SecurityTokenUnavailableException(String message, Throwable cause)
- {
- super(message, cause);
- setFaultCode(faultCode);
- setFaultString(message);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityTokenUnavailableException.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SecurityTokenUnavailableException.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SendUsernameOperation.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SendUsernameOperation.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SendUsernameOperation.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,46 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import java.util.List;
-
-import org.jboss.ws.extensions.security.element.SecurityHeader;
-import org.jboss.ws.extensions.security.element.UsernameToken;
-import org.w3c.dom.Document;
-
-public class SendUsernameOperation implements EncodingOperation
-{
- private SecurityHeader header;
-
- private SecurityStore store;
-
- public SendUsernameOperation(SecurityHeader header, SecurityStore store)
- {
- this.header = header;
- this.store = store;
- }
-
- public void process(Document message, List<Target> targets, String alias, String
credential, String algorithm) throws WSSecurityException
- {
- header.addToken(new UsernameToken(alias, credential, message));
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SendUsernameOperation.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SendUsernameOperation.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SignatureOperation.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SignatureOperation.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SignatureOperation.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,178 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import java.security.PrivateKey;
-import java.security.cert.X509Certificate;
-import java.util.List;
-
-import javax.xml.namespace.QName;
-
-import org.apache.xml.security.c14n.Canonicalizer;
-import org.apache.xml.security.exceptions.XMLSecurityException;
-import org.apache.xml.security.signature.XMLSignature;
-import org.apache.xml.security.signature.XMLSignatureException;
-import org.apache.xml.security.transforms.TransformationException;
-import org.apache.xml.security.transforms.Transforms;
-import org.jboss.util.NotImplementedException;
-import org.jboss.ws.extensions.security.element.DirectReference;
-import org.jboss.ws.extensions.security.element.SecurityHeader;
-import org.jboss.ws.extensions.security.element.SecurityTokenReference;
-import org.jboss.ws.extensions.security.element.Signature;
-import org.jboss.ws.extensions.security.element.X509Token;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-
-
-public class SignatureOperation implements EncodingOperation
-{
- private SecurityHeader header;
-
- private SecurityStore store;
-
- public SignatureOperation(SecurityHeader header, SecurityStore store) throws
WSSecurityException
- {
- this.header = header;
- this.store = store;
- }
-
- private void processTarget(XMLSignature sig, Document message, Target target)
- {
- if (target instanceof QNameTarget)
- processQNameTarget(sig, message, (QNameTarget) target);
- else if (target instanceof WsuIdTarget)
- processWsuIdTarget(sig, message, (WsuIdTarget) target);
- else
- throw new NotImplementedException();
- }
-
- private void processQNameTarget(XMLSignature sig, Document message, QNameTarget
target)
- {
- QName name = target.getName();
-
- Transforms transforms = new Transforms(message);
- try
- {
- transforms.addTransform(Transforms.TRANSFORM_C14N_EXCL_OMIT_COMMENTS);
- }
- catch (TransformationException e)
- {
- throw new RuntimeException(e);
- }
-
- Element element = Util.findElement(message.getDocumentElement(), name);
- if (element == null)
- throw new RuntimeException("Could not find element");
-
- String id = Util.assignWsuId(element);
-
- try
- {
- sig.addDocument("#" + id, transforms);
- }
- catch (XMLSignatureException e)
- {
- throw new RuntimeException(e);
- }
- }
-
- private void processWsuIdTarget(XMLSignature sig, Document message, WsuIdTarget
target)
- {
- String id = target.getId();
-
- Transforms transforms = new Transforms(message);
- try
- {
- transforms.addTransform(Transforms.TRANSFORM_C14N_EXCL_OMIT_COMMENTS);
- }
- catch (TransformationException e)
- {
- throw new RuntimeException(e);
- }
-
- try
- {
- sig.addDocument("#" + id, transforms);
- }
- catch (XMLSignatureException e)
- {
- throw new RuntimeException(e);
- }
- }
-
- public void process(Document message, List<Target> targets, String alias, String
credential, String algorithm) throws WSSecurityException
- {
- Element envelope = message.getDocumentElement();
- XMLSignature sig;
- try
- {
- sig = new XMLSignature(message, null, XMLSignature.ALGO_ID_SIGNATURE_RSA,
Canonicalizer.ALGO_ID_C14N_EXCL_OMIT_COMMENTS);
- }
- catch (XMLSecurityException e)
- {
- throw new WSSecurityException("Error building signature", e);
- }
-
- // For now we pass our resolver the root document because the signature element
isn't attached
- // to the evelope yet (no wsse header). Perhaps we should do this differently
- sig.addResourceResolver(new WsuIdResolver(message, header.getElement()));
- PrivateKey key = store.getPrivateKey(alias);
-
- if (targets == null || targets.size() == 0)
- {
- // By default we sign the body element, and a timestamp if it is available
- String namespace = envelope.getNamespaceURI();
- processTarget(sig, message, new QNameTarget(new QName(namespace,
"Body")));
- if (header.getTimestamp() != null)
- processTarget(sig, message, new WsuIdTarget("timestamp"));
- }
- else
- {
- for (Target target : targets)
- processTarget(sig, message, target);
- }
-
- try
- {
- sig.sign(key);
- }
- catch (XMLSignatureException e)
- {
- throw new WSSecurityException("Error signing message: " +
e.getMessage(), e);
- }
-
- X509Certificate cert = store.getCertificate(alias);
- X509Token token = (X509Token) header.getSharedToken(cert);
-
- // Can we reuse an existing token?
- if (token == null)
- {
- token = new X509Token(cert, message);
- header.addToken(token);
- }
-
- SecurityTokenReference reference = new SecurityTokenReference(new
DirectReference(message, token));
- sig.getKeyInfo().addUnknownElement(reference.getElement());
-
- header.addSecurityProcess(new Signature(sig));
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SignatureOperation.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SignatureOperation.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SignatureVerificationOperation.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SignatureVerificationOperation.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SignatureVerificationOperation.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,89 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import java.util.ArrayList;
-import java.util.Collection;
-
-import org.apache.xml.security.exceptions.XMLSecurityException;
-import org.apache.xml.security.signature.SignedInfo;
-import org.apache.xml.security.signature.XMLSignature;
-import org.apache.xml.security.signature.XMLSignatureException;
-import org.jboss.ws.extensions.security.element.SecurityHeader;
-import org.jboss.ws.extensions.security.element.SecurityProcess;
-import org.jboss.ws.extensions.security.element.Signature;
-import org.w3c.dom.Document;
-
-public class SignatureVerificationOperation implements DecodingOperation
-{
- private SecurityHeader header;
-
- private SecurityStore store;
-
- public SignatureVerificationOperation(SecurityHeader header, SecurityStore store)
throws WSSecurityException
- {
- this.header = header;
- this.store = store;
- }
-
- public Collection<String> process(Document message, SecurityProcess process)
throws WSSecurityException
- {
- Signature signature = (Signature) process;
- XMLSignature xmlSig = signature.getSignature();
-
- xmlSig.addResourceResolver(new WsuIdResolver(message));
- STRTransform.setSecurityStore(store);
-
- try
- {
- if (! xmlSig.checkSignatureValue(signature.getPublicKey()))
- throw new FailedCheckException("Signature is invalid.");
- }
- catch (XMLSignatureException e)
- {
- throw new WSSecurityException("An unexpected error occured while verifying
signature", e);
- }
- finally
- {
- STRTransform.setSecurityStore(null);
- }
-
- SignedInfo info = xmlSig.getSignedInfo();
- int length = info.getLength();
- Collection<String> processed = new ArrayList<String>(length);
- try
- {
- for (int i = 0; i < length; i++)
- {
- String uri = info.item(i).getURI();
- if (uri != null && uri.length() > 1 &&
uri.charAt(0)=='#')
- processed.add(uri.substring(1));
- }
- }
- catch (XMLSecurityException e)
- {
- throw new WSSecurityException("Could not extract references", e);
- }
-
- return processed;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SignatureVerificationOperation.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SignatureVerificationOperation.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SimplePrincipal.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SimplePrincipal.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SimplePrincipal.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,65 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.security;
-
-import java.io.Serializable;
-import java.security.Principal;
-
-/** A simple String based implementation of Principal.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 05-May-2006
- */
-public class SimplePrincipal implements Principal, Serializable
-{
- private static final long serialVersionUID = 136345402844480211L;
-
- private String name;
-
- public SimplePrincipal(String name)
- {
- this.name = name;
- }
-
- public String getName()
- {
- return name;
- }
-
- public boolean equals(Object obj)
- {
- if (!(obj instanceof Principal))
- return false;
-
- return toString().equals(((Principal)obj).getName());
- }
-
- public int hashCode()
- {
- return (name == null ? 0 : name.hashCode());
- }
-
- public String toString()
- {
- return "" + name;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SimplePrincipal.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/SimplePrincipal.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/Target.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/Target.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/Target.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,33 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-
-/**
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @version $Revision$
- */
-abstract public class Target
-{
- // Applies only to encryption
- abstract public boolean isContent();
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/Target.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/Target.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/TimestampOperation.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/TimestampOperation.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/TimestampOperation.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,58 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import java.util.List;
-
-import org.jboss.ws.extensions.security.element.SecurityHeader;
-import org.jboss.ws.extensions.security.element.Timestamp;
-import org.w3c.dom.Document;
-
-public class TimestampOperation implements EncodingOperation
-{
- private SecurityHeader header;
-
- private SecurityStore store;
-
- public TimestampOperation(SecurityHeader header, SecurityStore store)
- {
- this.header = header;
- this.store = store;
- }
-
- public void process(Document message, List<Target> targets, String alias, String
credential, String algorithm) throws WSSecurityException
- {
- Integer ttl = null;
-
- try
- {
- // Time to live is stuffed in the credential field
- ttl = Integer.valueOf(credential);
- }
- catch (NumberFormatException e)
- {
- // Eat
- }
-
- header.setTimestamp(new Timestamp(ttl, message));
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/TimestampOperation.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/TimestampOperation.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/TimestampVerificationOperation.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/TimestampVerificationOperation.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/TimestampVerificationOperation.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,61 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import java.util.Calendar;
-
-import org.jboss.ws.extensions.security.element.Timestamp;
-import org.w3c.dom.Document;
-
-
-public class TimestampVerificationOperation
-{
- private Calendar now = null;
-
- public TimestampVerificationOperation()
- {
- }
-
- /**
- * A special constructor that allows you to use a different value when validating the
message.
- * DO NOT USE THIS UNLESS YOU REALLY KNOW WHAT YOU ARE DOING!.
- *
- * @param now The timestamp to use as the current time when validating a message
expiration
- */
- public TimestampVerificationOperation(Calendar now)
- {
- this.now = now;
- }
-
- public void process(Document message, Timestamp timestamp) throws WSSecurityException
- {
- Calendar expired = timestamp.getExpires();
- Calendar created = timestamp.getCreated();
- Calendar now = (this.now == null) ? Calendar.getInstance() : this.now;
-
- if (created.after(now))
- throw new WSSecurityException("Invalid timestamp, message claimed to be
created after now");
-
- if (expired != null && ! now.before(expired))
- throw new FailedCheckException("Expired message.");
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/TimestampVerificationOperation.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/TimestampVerificationOperation.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/TokenOperation.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/TokenOperation.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/TokenOperation.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,38 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import org.jboss.ws.extensions.security.element.Token;
-import org.w3c.dom.Document;
-
-/**
- * <code>DecodingOperation</code> represents an operation that is applied to
a
- * WS-Security encoded message to both convert and verify the contents of the
- * message.
- *
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @version $Revision$
- */
-public interface TokenOperation
-{
- public void process(Document message, Token token) throws WSSecurityException;
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/TokenOperation.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/TokenOperation.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/UnsupportedAlgorithmException.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/UnsupportedAlgorithmException.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/UnsupportedAlgorithmException.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,65 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import javax.xml.namespace.QName;
-
-
-/**
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @version $Revision$
- */
-
-public class UnsupportedAlgorithmException extends WSSecurityException
-{
- public static final QName faultCode = new QName("UnsupportedAlgorithm",
Constants.WSSE_PREFIX, Constants.WSSE_NS);
-
- public static final String faultString = "An unsupported signature or encryption
algorithm was used.";
-
- public UnsupportedAlgorithmException()
- {
- super(faultString);
- setFaultCode(faultCode);
- setFaultString(faultString);
- }
-
- public UnsupportedAlgorithmException(Throwable cause)
- {
- super(faultString);
- setFaultCode(faultCode);
- setFaultString(faultString);
- }
-
- public UnsupportedAlgorithmException(String message)
- {
- super(message);
- setFaultCode(faultCode);
- setFaultString(message);
- }
-
- public UnsupportedAlgorithmException(String message, Throwable cause)
- {
- super(message, cause);
- setFaultCode(faultCode);
- setFaultString(message);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/UnsupportedAlgorithmException.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/UnsupportedAlgorithmException.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/UnsupportedSecurityTokenException.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/UnsupportedSecurityTokenException.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/UnsupportedSecurityTokenException.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,64 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import javax.xml.namespace.QName;
-
-
-/**
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @version $Revision$
- */
-public class UnsupportedSecurityTokenException extends WSSecurityException
-{
- public static final QName faultCode = new QName("UnsupportedSecurityToken",
Constants.WSSE_PREFIX, Constants.WSSE_NS);
-
- public static final String faultString = "An unsupported token was
provided.";
-
- public UnsupportedSecurityTokenException()
- {
- super(faultString);
- setFaultCode(faultCode);
- setFaultString(faultString);
- }
-
- public UnsupportedSecurityTokenException(Throwable cause)
- {
- super(faultString);
- setFaultCode(faultCode);
- setFaultString(faultString);
- }
-
- public UnsupportedSecurityTokenException(String message)
- {
- super(message);
- setFaultCode(faultCode);
- setFaultString(message);
- }
-
- public UnsupportedSecurityTokenException(String message, Throwable cause)
- {
- super(message, cause);
- setFaultCode(faultCode);
- setFaultString(message);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/UnsupportedSecurityTokenException.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/UnsupportedSecurityTokenException.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/Util.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/Util.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/Util.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,217 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.xml.namespace.QName;
-
-import org.w3c.dom.Element;
-import org.w3c.dom.Node;
-
-/**
- * @author Jason T. Greene
- * @version $Id$
- */
-public class Util
-{
- public static int count = 0;
-
- public static String assignWsuId(Element element)
- {
- String id = element.getAttributeNS(Constants.WSU_NS, Constants.ID);
-
- if (id == null || id.length() < 1)
- {
- id = generateId();
- element.setAttributeNS(Constants.WSU_NS, Constants.WSU_ID, id);
- addNamespace(element, Constants.WSU_PREFIX, Constants.WSU_NS);
- }
-
- return id;
- }
-
- public static Element getFirstChildElement(Node node)
- {
- Node child = node.getFirstChild();
- while (child != null && child.getNodeType() != Node.ELEMENT_NODE)
- child = child.getNextSibling();
-
- return (Element)child;
- }
-
- public static Element getNextSiblingElement(Element element)
- {
- Node sibling = element.getNextSibling();
- while (sibling != null && sibling.getNodeType() != Node.ELEMENT_NODE)
- sibling = sibling.getNextSibling();
-
- return (Element)sibling;
- }
-
- public static Element getPreviousSiblingElement(Element element)
- {
- Node sibling = element.getPreviousSibling();
- while (sibling != null && sibling.getNodeType() != Node.ELEMENT_NODE)
- sibling = sibling.getPreviousSibling();
-
- return (Element)sibling;
- }
-
- public static Element findElement(Element root, String localName, String namespace)
- {
- return findElement(root, new QName(namespace, localName));
- }
-
- public static Element findElement(Element root, QName name)
- {
- // Here lies your standard recusive DFS.....
- if (matchNode(root, name))
- return root;
-
- // Search children
- for (Node child = root.getFirstChild(); child != null; child =
child.getNextSibling())
- {
- if (child.getNodeType() != Node.ELEMENT_NODE)
- continue;
-
- Node possibleMatch = findElement((Element)child, name);
- if (possibleMatch != null)
- return (Element)possibleMatch;
- }
-
- return null;
- }
-
- public static List<Node> findAllElements(Element root, QName name, boolean
local)
- {
- List<Node> list = new ArrayList<Node>();
- if (matchNode(root, name, local))
- list.add(root);
-
- for (Node child = root.getFirstChild(); child != null; child =
child.getNextSibling())
- {
- if (child.getNodeType() != Node.ELEMENT_NODE)
- continue;
-
- list.addAll(findAllElements((Element) child, name, local));
- }
-
- return list;
- }
-
- public static Element findElementByWsuId(Element root, String id)
- {
- // Here lies another standard recusive DFS.....
- if (id.equals(getWsuId(root)))
- return root;
-
- // Search children
- for (Node child = root.getFirstChild(); child != null; child =
child.getNextSibling())
- {
- if (child.getNodeType() != Node.ELEMENT_NODE)
- continue;
-
- Node possibleMatch = findElementByWsuId((Element)child, id);
- if (possibleMatch != null)
- return (Element)possibleMatch;
- }
-
- return null;
- }
-
- public static Element findOrCreateSoapHeader(Element envelope)
- {
- String prefix = envelope.getPrefix();
- String uri = envelope.getNamespaceURI();
- QName name = new QName(uri, "Header");
- Element header = findElement(envelope, name);
- if (header == null)
- {
- header = envelope.getOwnerDocument().createElementNS(uri, prefix +
":Header");
- envelope.insertBefore(header, envelope.getFirstChild());
- }
-
- return header;
- }
-
- public static String getWsuId(Element element)
- {
- if (element.hasAttributeNS(Constants.WSU_NS, Constants.ID))
- return element.getAttributeNS(Constants.WSU_NS, Constants.ID);
-
- if (element.hasAttribute(Constants.ID))
- {
- String ns = element.getNamespaceURI();
- if (Constants.XML_SIGNATURE_NS.equals(ns) ||
Constants.XML_ENCRYPTION_NS.equals(ns))
- return element.getAttribute(Constants.ID);
- }
-
- return null;
- }
-
- public static boolean equalStrings(String string1, String string2)
- {
- if (string1 == null && string2 == null)
- return true;
-
- return string1 != null && string1.equals(string2);
- }
-
- public static boolean matchNode(Node node, QName name)
- {
- return matchNode(node, name, false);
- }
-
- public static boolean matchNode(Node node, QName name, boolean local)
- {
- return equalStrings(node.getLocalName(), name.getLocalPart())
- && (local || equalStrings(node.getNamespaceURI(),
name.getNamespaceURI()));
- }
-
- public static String generateId()
- {
- return generateId("element");
- }
-
- public static void addNamespace(Element element, String prefix, String uri)
- {
- element.setAttributeNS(Constants.XMLNS_NS, "xmlns:" + prefix, uri);
- }
-
- public static String generateId(String prefix)
- {
- StringBuilder id = new StringBuilder();
- long time = System.currentTimeMillis();
-
- // reasonably gaurantee uniqueness
- synchronized (Util.class)
- {
- count++;
- }
-
-
id.append(prefix).append("-").append(count).append("-").append(time).append("-").append(id.hashCode());
-
- return id.toString();
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/Util.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/Util.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/WSSecurityDispatcher.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/WSSecurityDispatcher.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/WSSecurityDispatcher.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,303 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.security;
-
-// $Id$
-
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.Stub;
-import javax.xml.rpc.soap.SOAPFaultException;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPHeader;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.CommonMessageContext;
-import org.jboss.ws.core.jaxrpc.StubExt;
-import org.jboss.ws.core.soap.SOAPMessageImpl;
-import org.jboss.ws.core.utils.DOMWriter;
-import org.jboss.ws.metadata.umdm.EndpointMetaData;
-import org.jboss.ws.metadata.umdm.OperationMetaData;
-import org.jboss.ws.metadata.wsse.Config;
-import org.jboss.ws.metadata.wsse.Encrypt;
-import org.jboss.ws.metadata.wsse.Operation;
-import org.jboss.ws.metadata.wsse.Port;
-import org.jboss.ws.metadata.wsse.RequireEncryption;
-import org.jboss.ws.metadata.wsse.RequireSignature;
-import org.jboss.ws.metadata.wsse.RequireTimestamp;
-import org.jboss.ws.metadata.wsse.Requires;
-import org.jboss.ws.metadata.wsse.Sign;
-import org.jboss.ws.metadata.wsse.Timestamp;
-import org.jboss.ws.metadata.wsse.WSSecurityConfiguration;
-import org.w3c.dom.Element;
-
-public class WSSecurityDispatcher
-{
- // provide logging
- private static Logger log = Logger.getLogger(WSSecurityDispatcher.class);
-
- private static List<Target>
convertTargets(List<org.jboss.ws.metadata.wsse.Target> targets)
- {
- if (targets == null)
- return null;
-
- ArrayList<Target> newList = new ArrayList<Target>(targets.size());
-
- for (org.jboss.ws.metadata.wsse.Target target : targets)
- {
- if ("qname".equals(target.getType()))
- {
- QNameTarget qnameTarget = new QNameTarget(QName.valueOf(target.getValue()),
target.isContentOnly());
- newList.add(qnameTarget);
- }
- else if ("wsuid".equals(target.getType()))
- {
- newList.add(new WsuIdTarget(target.getValue()));
- }
- }
-
- return newList;
- }
-
- private static Config getConfig(WSSecurityConfiguration config, String portName,
String operationName)
- {
- Port port = config.getPorts().get(portName);
- if (port == null)
- return config.getDefaultConfig();
-
- Operation operation = port.getOperations().get(operationName);
- if (operation == null)
- {
- Config portConfig = port.getDefaultConfig();
- return (portConfig == null) ? config.getDefaultConfig() : portConfig;
-
- }
-
- return operation.getConfig();
- }
-
- private static SOAPFaultException convertToFault(WSSecurityException e)
- {
- return new SOAPFaultException(e.getFaultCode(), e.getFaultString(), null, null);
- }
-
- public static void handleInbound(CommonMessageContext ctx) throws SOAPException,
SOAPFaultException
- {
- WSSecurityConfiguration config = getSecurityConfig(ctx);
- SOAPMessageImpl soapMessage = (SOAPMessageImpl)ctx.getSOAPMessage();
-
- SOAPHeader soapHeader = soapMessage.getSOAPHeader();
- QName secQName = new QName(Constants.WSSE_NS, "Security");
- Element secHeaderElement = Util.findElement(soapHeader, secQName);
-
- if (secHeaderElement == null)
- {
- // This is ok, we always allow faults to be received because WS-Security does
not encrypt faults
- if (soapMessage.getSOAPBody().getFault() != null)
- return;
-
- OperationMetaData opMetaData = ctx.getOperationMetaData();
- if (opMetaData == null)
- {
- // Get the operation meta data from the soap message
- // for the server side inbound message.
- EndpointMetaData epMetaData = ctx.getEndpointMetaData();
- opMetaData = soapMessage.getOperationMetaData(epMetaData);
- }
-
- String operation = opMetaData.getQName().toString();
- String port = opMetaData.getEndpointMetaData().getQName().getLocalPart();
-
- if (hasRequirements(config, operation, port))
- throw convertToFault(new InvalidSecurityHeaderException("This service
requires <wsse:Security>, which is missing."));
-
- return;
- }
-
- try
- {
- SecurityStore securityStore = new SecurityStore(config.getKeyStoreURL(),
config.getKeyStoreType(), config.getKeyStorePassword(), config.getTrustStoreURL(),
- config.getTrustStoreType(), config.getTrustStorePassword());
- SecurityDecoder decoder = new SecurityDecoder(securityStore);
-
- decoder.decode(soapMessage.getSOAPPart(), secHeaderElement);
- log.debug("Decoded Message:\n" +
DOMWriter.printNode(soapMessage.getSOAPPart(), true));
-
- OperationMetaData opMetaData = ctx.getOperationMetaData();
- if (opMetaData == null)
- {
- // Get the operation meta data from the soap message
- // for the server side inbound message.
- EndpointMetaData epMetaData = ctx.getEndpointMetaData();
- opMetaData = soapMessage.getOperationMetaData(epMetaData);
- }
-
- String operation = opMetaData.getQName().toString();
- String port = opMetaData.getEndpointMetaData().getQName().getLocalPart();
-
- List<OperationDescription<RequireOperation>> operations =
buildRequireOperations(config, operation, port);
-
- decoder.verify(operations);
- log.debug("Verification is successful");
-
- decoder.complete();
- }
- catch (WSSecurityException e)
- {
- if (e.isInternalError())
- log.error("Internal error occured handling inbound message:", e);
- else log.debug("Returning error to sender: " + e.getMessage());
-
- throw convertToFault(e);
- }
- }
-
- private static WSSecurityConfiguration getSecurityConfig(CommonMessageContext ctx)
- {
- WSSecurityConfiguration config =
ctx.getEndpointMetaData().getServiceMetaData().getSecurityConfiguration();
- if (config == null)
- throw new WSException("Cannot obtatin security configuration from message
context");
-
- return config;
- }
-
- private static boolean hasRequirements(WSSecurityConfiguration config, String
operation, String port)
- {
- Config operationConfig = getConfig(config, port, operation);
- return (operationConfig != null && operationConfig.getRequires() != null);
- }
-
- private static List<OperationDescription<RequireOperation>>
buildRequireOperations(WSSecurityConfiguration config, String operation, String port)
- {
- Config operationConfig = getConfig(config, port, operation);
- if (operationConfig == null)
- return null;
-
- Requires requires = operationConfig.getRequires();
- if (requires == null)
- return null;
-
- ArrayList<OperationDescription<RequireOperation>> operations = new
ArrayList<OperationDescription<RequireOperation>>();
- RequireTimestamp requireTimestamp = requires.getRequireTimestamp();
- if (requireTimestamp != null)
- operations.add(new
OperationDescription<RequireOperation>(RequireTimestampOperation.class, null,
requireTimestamp.getMaxAge(), null, null));
-
- RequireSignature requireSignature = requires.getRequireSignature();
- if (requireSignature != null)
- {
- List<Target> targets = convertTargets(requireSignature.getTargets());
- operations.add(new
OperationDescription<RequireOperation>(RequireSignatureOperation.class, targets,
null, null, null));
- }
-
- RequireEncryption requireEncryption = requires.getRequireEncryption();
- if (requireEncryption != null)
- {
- List<Target> targets = convertTargets(requireEncryption.getTargets());
- operations.add(new
OperationDescription<RequireOperation>(RequireEncryptionOperation.class, targets,
null, null, null));
- }
-
- return operations;
- }
-
- public static void handleOutbound(CommonMessageContext ctx) throws SOAPException,
SOAPFaultException
- {
- WSSecurityConfiguration config = getSecurityConfig(ctx);
- SOAPMessageImpl soapMessage = (SOAPMessageImpl)ctx.getSOAPMessage();
-
- OperationMetaData opMetaData = ctx.getOperationMetaData();
- String operation = opMetaData.getQName().toString();
- String port = opMetaData.getEndpointMetaData().getQName().getLocalPart();
-
- Config operationConfig = getConfig(config, port, operation);
-
- log.debug("WS-Security config:" + operationConfig);
- // Nothing to process
- if (operationConfig == null)
- return;
-
- ArrayList<OperationDescription<EncodingOperation>> operations = new
ArrayList<OperationDescription<EncodingOperation>>();
- Timestamp timestamp = operationConfig.getTimestamp();
- if (timestamp != null)
- {
- operations.add(new
OperationDescription<EncodingOperation>(TimestampOperation.class, null, null,
timestamp.getTtl(), null));
- }
-
- if (operationConfig.getUsername() != null)
- {
- Object user = ctx.getProperty(Stub.USERNAME_PROPERTY);
- Object pass = ctx.getProperty(Stub.PASSWORD_PROPERTY);
-
- if (user != null && pass != null)
- {
- operations.add(new
OperationDescription<EncodingOperation>(SendUsernameOperation.class, null,
user.toString(), pass.toString(), null));
- ctx.setProperty(StubExt.PROPERTY_AUTH_TYPE,
StubExt.PROPERTY_AUTH_TYPE_WSSE);
- }
- }
-
- Sign sign = operationConfig.getSign();
- if (sign != null)
- {
- List<Target> targets = convertTargets(sign.getTargets());
- if (sign.isIncludeTimestamp())
- {
- if (timestamp == null)
- operations.add(new
OperationDescription<EncodingOperation>(TimestampOperation.class, null, null, null,
null));
-
- if (targets != null && targets.size() > 0)
- targets.add(new WsuIdTarget("timestamp"));
- }
-
- operations.add(new
OperationDescription<EncodingOperation>(SignatureOperation.class, targets,
sign.getAlias(), null, null));
- }
-
- Encrypt encrypt = operationConfig.getEncrypt();
- if (encrypt != null)
- {
- List<Target> targets = convertTargets(encrypt.getTargets());
- operations.add(new
OperationDescription<EncodingOperation>(EncryptionOperation.class, targets,
encrypt.getAlias(), null, encrypt.getAlgorithm()));
- }
-
- if (operations.size() == 0)
- return;
-
- log.debug("Encoding Message:\n" +
DOMWriter.printNode(soapMessage.getSOAPPart(), true));
-
- try
- {
- SecurityStore securityStore = new SecurityStore(config.getKeyStoreURL(),
config.getKeyStoreType(), config.getKeyStorePassword(), config.getTrustStoreURL(),
- config.getTrustStoreType(), config.getTrustStorePassword());
- SecurityEncoder encoder = new SecurityEncoder(operations, securityStore);
- encoder.encode(soapMessage.getSOAPPart());
- }
- catch (WSSecurityException e)
- {
- if (e.isInternalError())
- log.error("Internal error occured handling outbound message:", e);
- else log.debug("Returning error to sender: " + e.getMessage());
-
- throw convertToFault(e);
- }
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/WSSecurityDispatcher.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/WSSecurityDispatcher.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/WSSecurityException.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/WSSecurityException.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/WSSecurityException.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,74 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import javax.xml.namespace.QName;
-
-/**
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @version $Revision$
- */
-public class WSSecurityException extends Exception
-{
- private boolean internal = false;
-
- private QName faultCode = new QName(Constants.JBOSS_WSSE_NS,
"InternalError", Constants.JBOSS_WSSE_PREFIX);
-
- private String faultString = "An internal WS-Security error occurred. See log for
details";
-
- public WSSecurityException(String message)
- {
- super(message);
- this.internal = true;
- }
-
- public WSSecurityException(String message, Throwable cause)
- {
- super(message, cause);
- this.internal = true;
- }
-
- protected void setFaultCode(QName faultCode)
- {
- this.faultCode = faultCode;
- }
-
- protected void setFaultString(String faultMessage)
- {
- this.faultString = faultMessage;
- }
-
- public boolean isInternalError()
- {
- return internal;
- }
-
- public QName getFaultCode()
- {
- return faultCode;
- }
-
- public String getFaultString()
- {
- return faultString;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/WSSecurityException.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/WSSecurityException.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/WsuIdResolver.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/WsuIdResolver.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/WsuIdResolver.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,89 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import org.apache.xml.security.signature.XMLSignatureInput;
-import org.apache.xml.security.utils.resolver.ResourceResolverException;
-import org.apache.xml.security.utils.resolver.ResourceResolverSpi;
-import org.w3c.dom.Attr;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-
-
-/**
- * @author Jason T. Greene
- * @version $Id$
- */
-public class WsuIdResolver extends ResourceResolverSpi
-{
- Document doc;
- Element header;
-
- public WsuIdResolver(Document doc)
- {
- this.doc = doc;
- }
-
- public WsuIdResolver(Document doc, Element header)
- {
- this.doc = doc;
- this.header = header;
- }
-
- /**
- * @see
org.apache.xml.security.utils.resolver.ResourceResolverSpi#engineCanResolve(org.w3c.dom.Attr,
java.lang.String)
- */
- public boolean engineCanResolve(Attr uri, String baseURI)
- {
- if (uri == null)
- return false;
-
- String nodeValue = uri.getNodeValue();
- return nodeValue != null && nodeValue.startsWith("#");
- }
-
- /**
- * @see
org.apache.xml.security.utils.resolver.ResourceResolverSpi#engineResolve(org.w3c.dom.Attr,
java.lang.String)
- */
- public XMLSignatureInput engineResolve(Attr uri, String BaseURI) throws
ResourceResolverException
- {
- //Document doc = uri.getOwnerDocument();
- String id = uri.getValue().substring(1);
-
- Element element = doc.getDocumentElement();
- element = Util.findElementByWsuId(element, id);
-
- // If its not in the document, try the header
- if (element == null && header != null)
- element = Util.findElementByWsuId(header, id);
-
- if (element == null)
- throw new ResourceResolverException(id, uri, BaseURI);
-
- XMLSignatureInput input = new XMLSignatureInput(element);
- input.setMIMEType("text/xml");
-
- input.setSourceURI(BaseURI + uri);
-
- return input;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/WsuIdResolver.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/WsuIdResolver.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/WsuIdTarget.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/WsuIdTarget.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/WsuIdTarget.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,56 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-
-/**
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @version $Revision$
- */
-public class WsuIdTarget extends Target
-{
- private String id;
-
- private boolean content;
-
- public WsuIdTarget(String url)
- {
- this.id = url;
- this.content = false;
- }
-
- public WsuIdTarget(String url, boolean content)
- {
- this(url);
- this.content = content;
- }
-
- public String getId()
- {
- return id;
- }
-
- public boolean isContent()
- {
- return content;
- }
-}
\ No newline at end of file
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/WsuIdTarget.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/WsuIdTarget.java)
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/BinarySecurityToken.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/BinarySecurityToken.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/BinarySecurityToken.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,100 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security.element;
-
-import org.jboss.ws.extensions.security.Constants;
-import org.jboss.ws.extensions.security.Util;
-import org.jboss.ws.extensions.security.WSSecurityException;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-
-
-/**
- * @author Jason T. Greene
- * @version $Id$
- */
-abstract public class BinarySecurityToken implements Token
-{
- private Document doc;
-
- private String id;
-
- private Element cachedElement;
-
- public static BinarySecurityToken createBinarySecurityToken(Element element) throws
WSSecurityException
- {
- String valueType = element.getAttribute("ValueType");
- if (X509Token.TYPE.equals(valueType))
- return new X509Token(element);
- else
- throw new WSSecurityException("Unkown Binary Security Token!!!");
- }
-
- public BinarySecurityToken(Document doc)
- {
- this.doc = doc;
- }
-
- abstract public String getValueType();
-
- abstract public String getEncodingType();
-
- abstract public String getEncodedValue(boolean noWhitespace);
-
- public String getId()
- {
- if (id == null)
- id = Util.generateId("token");
-
- return id;
- }
-
- public void setId(String id)
- {
- this.id = id;
- }
-
- public Element getElement()
- {
- if (cachedElement != null)
- return cachedElement;
-
- Element element = doc.createElementNS(Constants.WSSE_NS, Constants.WSSE_PREFIX +
":" + "BinarySecurityToken");
- element.setAttributeNS(Constants.WSU_NS, Constants.WSU_ID, getId());
- element.setAttribute("ValueType", getValueType());
- element.setAttribute("EncodingType", getEncodingType());
- element.appendChild(doc.createTextNode(getEncodedValue(false)));
-
- cachedElement = element;
- return cachedElement;
- }
-
- public Element getSTRTransformElement()
- {
- Element element = doc.createElementNS(Constants.WSSE_NS, Constants.WSSE_PREFIX +
":" + "BinarySecurityToken");
- Util.addNamespace(element, Constants.WSSE_PREFIX, Constants.WSSE_NS);
- element.setAttribute("ValueType", getValueType());
- element.appendChild(doc.createTextNode(getEncodedValue(true)));
-
- return element;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/BinarySecurityToken.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/BinarySecurityToken.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/DirectReference.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/DirectReference.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/DirectReference.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,121 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security.element;
-
-import org.jboss.ws.extensions.security.Constants;
-import org.jboss.ws.extensions.security.WSSecurityException;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-
-/**
- * <code>DirectReference</code> is a reference type within a
- * <code>SecurityTokenReference</code> that referes to a token that is
- * retrievable via a URL. This is typically used for refering to a
- * <code>BinarySecurityToken</code> that is within the same message.
- *
- * @see org.jboss.ws.extensions.security.element.SecurityTokenReference
- * @see org.jboss.ws.extensions.security.element.BinarySecurityToken
- *
- * @author Jason T. Greene
- * @version $Id$
- */
-public class DirectReference extends Reference
-{
-
- private Document doc;
-
- private String uri;
-
- private String valueType;
-
- private Element cachedElement;
-
- public DirectReference(Document doc)
- {
- this.doc = doc;
- }
-
- public DirectReference(Document doc, BinarySecurityToken token)
- {
- this.doc = doc;
- referenceToken(token);
- }
-
- public DirectReference(Element element) throws WSSecurityException
- {
- this.doc = element.getOwnerDocument();
-
- if (!"Reference".equals(element.getLocalName()))
- throw new WSSecurityException("Invalid message, invalid local name on a
DirectReference");
-
- String uri = element.getAttribute("URI");
- if (uri == null || uri.length() == 0)
- throw new WSSecurityException("Inavliad message, Reference element is
missing a URI");
-
- setUri(uri);
-
- String valueType = element.getAttribute("ValueType");
- if (valueType == null || valueType.length() == 0)
- throw new WSSecurityException("Inavliad message, Reference element is
missing a ValueType");
-
- setValueType(valueType);
- }
-
- public String getUri()
- {
- return uri;
- }
-
- public void referenceToken(BinarySecurityToken token)
- {
- setUri("#" + token.getId());
- setValueType(token.getValueType());
- }
-
- public void setUri(String uri)
- {
- this.uri = uri;
- }
-
- public String getValueType()
- {
- return valueType;
- }
-
- public void setValueType(String valueType)
- {
- this.valueType = valueType;
- }
-
- public Element getElement()
- {
- if (cachedElement != null)
- return cachedElement;
-
- Element element = doc.createElementNS(Constants.WSSE_NS, Constants.WSSE_PREFIX +
":" + "Reference");
- element.setAttribute("ValueType", getValueType());
- element.setAttribute("URI", getUri());
-
- cachedElement = element;
- return cachedElement;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/DirectReference.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/DirectReference.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/EncryptedKey.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/EncryptedKey.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/EncryptedKey.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,192 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security.element;
-
-import java.security.PrivateKey;
-
-import javax.crypto.SecretKey;
-
-import org.apache.xml.security.encryption.XMLCipher;
-import org.apache.xml.security.exceptions.XMLSecurityException;
-import org.apache.xml.security.keys.KeyInfo;
-import org.jboss.ws.extensions.security.Constants;
-import org.jboss.ws.extensions.security.InvalidSecurityHeaderException;
-import org.jboss.ws.extensions.security.KeyResolver;
-import org.jboss.ws.extensions.security.Util;
-import org.jboss.ws.extensions.security.WSSecurityException;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-
-/**
- * <code>EncryptedKey</code> represents the am XMLSecurity encrypted key.
- *
- * @author Jason T. Greene
- * @version $Id$
- */
-public class EncryptedKey implements SecurityProcess
-{
- private Document document;
-
- private SecretKey secretKey;
-
- private X509Token token;
-
- private ReferenceList list;
-
- private Element cachedElement;
-
- public EncryptedKey(Document document, SecretKey secretKey, X509Token token)
- {
- this(document, secretKey, token, new ReferenceList());
- }
-
- public EncryptedKey(Document document, SecretKey secretKey, X509Token token,
ReferenceList list)
- {
- this.document = document;
- this.secretKey = secretKey;
- this.token = token;
- this.list = list;
- }
-
- public EncryptedKey(Element element, KeyResolver resolver) throws WSSecurityException
- {
- org.apache.xml.security.encryption.EncryptedKey key;
- XMLCipher cipher;
-
- try
- {
- cipher = XMLCipher.getInstance();
- key = cipher.loadEncryptedKey(element);
- }
- catch (XMLSecurityException e)
- {
- throw new WSSecurityException("Could not parse encrypted key: " +
e.getMessage(), e);
- }
-
- KeyInfo info = key.getKeyInfo();
-
- if (info == null)
- throw new WSSecurityException("EncryptedKey element did not contain
KeyInfo");
-
- PrivateKey privateKey = resolver.resolvePrivateKey(info);
-
- // Locate the reference list. We have to manually parse this because xml security
doesn't handle
- // shorthand xpointer references (URI="#fooid")
-
- Element referenceList = Util.findElement(element, Constants.XENC_REFERENCELIST,
Constants.XML_ENCRYPTION_NS);
- if (referenceList == null)
- throw new WSSecurityException("Encrypted key did not contain a reference
list");
-
- this.list = new ReferenceList(referenceList);
-
- // Now use the element list to determine the encryption alg
- String alg = getKeyAlgorithm(element);
- if (alg == null)
- throw new WSSecurityException("Could not determine encrypted key
algorithm!");
-
- try
- {
- cipher.init(XMLCipher.UNWRAP_MODE, privateKey);
- this.secretKey = (SecretKey) cipher.decryptKey(key, alg);
- }
- catch (XMLSecurityException e)
- {
- throw new WSSecurityException("Could not parse encrypted key: " +
e.getMessage(), e);
- }
-
- this.document = element.getOwnerDocument();
- this.token = new X509Token(resolver.resolveCertificate(info), this.document);
- }
-
- private String getKeyAlgorithm(Element element) throws WSSecurityException
- {
- // We obtain the keys algorithm by looking at the first data element in our
reference list
- String id = this.list.getAllReferences().iterator().next();
- if (id == null)
- return null;
-
- Element dataElement =
Util.findElementByWsuId(element.getOwnerDocument().getDocumentElement(), id);
- if (dataElement == null)
- return null;
-
- return getEncryptionAlgorithm(dataElement);
- }
-
- private String getEncryptionAlgorithm(Element element) throws WSSecurityException
- {
- element = Util.findElement(element, "EncryptionMethod",
Constants.XML_ENCRYPTION_NS);
- if (element == null)
- throw new InvalidSecurityHeaderException("Encrypted element corrupted, no
encryption method");
-
- String alg = element.getAttribute("Algorithm");
- if (alg == null || alg.length() == 0)
- throw new InvalidSecurityHeaderException("Encrypted element corrupted, no
algorithm specified");
-
- return alg;
- }
-
- public Element getElement() throws WSSecurityException
- {
- if (cachedElement != null)
- return cachedElement;
-
- XMLCipher cipher;
- org.apache.xml.security.encryption.EncryptedKey key;
-
- try
- {
- cipher = XMLCipher.getInstance(XMLCipher.RSA_v1dot5);
- cipher.init(XMLCipher.WRAP_MODE, token.getCert().getPublicKey());
- key = cipher.encryptKey(document, secretKey);
- }
- catch (XMLSecurityException e)
- {
- throw new WSSecurityException("Error encrypting key: " +
e.getMessage(), e);
- }
-
- SecurityTokenReference reference = new SecurityTokenReference(new
DirectReference(document, token));
- KeyInfo keyInfo = new KeyInfo(document);
- keyInfo.addUnknownElement(reference.getElement());
- key.setKeyInfo(keyInfo);
-
-
key.setReferenceList(cipher.createReferenceList(org.apache.xml.security.encryption.ReferenceList.DATA_REFERENCE));
- list.populateRealReferenceList(key.getReferenceList());
-
- cachedElement = cipher.martial(key);
- return cachedElement;
- }
-
- public void addReference(String id)
- {
- list.add(id);
- }
-
- public SecretKey getSecretKey()
- {
- return secretKey;
- }
-
- public ReferenceList getReferenceList()
- {
- return list;
- }
-}
\ No newline at end of file
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/EncryptedKey.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/EncryptedKey.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/KeyIdentifier.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/KeyIdentifier.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/KeyIdentifier.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,146 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security.element;
-
-import java.security.cert.X509Certificate;
-
-import org.apache.xml.security.exceptions.Base64DecodingException;
-import org.apache.xml.security.utils.Base64;
-import org.apache.xml.security.utils.XMLUtils;
-import org.jboss.ws.extensions.security.Constants;
-import org.jboss.ws.extensions.security.WSSecurityException;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-
-/**
- * <code>KeyIdentifier</code> is a reference type within a
- * <code>SecurityTokenReference</code> that referes to a token that
- * using some uniquely identifying characteristic. An example is an
- * X.509v3 Subject Key Identifier, which is the only currently
- * supported key identifier by this class.
- *
- * @see org.jboss.ws.extensions.security.element.SecurityTokenReference
- * @see org.jboss.ws.extensions.security.element.BinarySecurityToken
- *
- * @author Jason T. Greene
- * @version $Id$
- */
-public class KeyIdentifier extends Reference
-{
- public static final String SKI_TYPE =
"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509SubjectKeyIdentifier";
-
- private Document doc;
-
- private String value;
-
- private Element cachedElement;
-
- public KeyIdentifier(Document doc, BinarySecurityToken token) throws
WSSecurityException
- {
- this.doc = doc;
- referenceToken(token);
- }
-
- public KeyIdentifier(Element element) throws WSSecurityException
- {
- this.doc = element.getOwnerDocument();
-
- if (! "KeyIdentifier".equals(element.getLocalName()))
- throw new WSSecurityException("Invalid message, invalid local name on a
KeyIdentifier");
-
- String valueType = element.getAttribute("ValueType");
- if (valueType == null || valueType.length() == 0)
- throw new WSSecurityException("Inavliad message, KeyIdentifier element is
missing an ValueType");
-
- if (! SKI_TYPE.equals(valueType))
- throw new WSSecurityException("Currently only SubjectKeyIdentifiers are
supported, was passed: " + valueType);
-
- // Lets be soft on encoding type since other clients don't properly use it
- this.value = XMLUtils.getFullTextChildrenFromElement(element);
- }
-
- public void referenceToken(BinarySecurityToken token) throws WSSecurityException
- {
- if (! (token instanceof X509Token))
- throw new WSSecurityException("KeyIdentifier tried to reference something
besides an X509 token");
-
- X509Token x509 = (X509Token) token;
- X509Certificate cert = x509.getCert();
-
- // Maybee we should make one ourselves if it isn't there?
- byte[] encoded = cert.getExtensionValue("2.5.29.14");
- if (encoded == null)
- throw new WSSecurityException("Certificate did not contain a subject key
identifier!");
-
- // We need to skip 4 bytes [(OCTET STRING) (LENGTH)[(OCTET STRING) (LENGTH) (Actual
data)]]
- int trunc = encoded.length - 4;
-
- byte[] identifier = new byte[trunc];
- System.arraycopy(identifier, 4, encoded, 0, trunc);
-
- value = Base64.encode(identifier);
- }
-
- public String getValue()
- {
- return value;
- }
-
- public String getValueType()
- {
- // Support only SKI at the moment
- return SKI_TYPE;
- }
-
- public Document getDocument()
- {
- return doc;
- }
-
- public byte[] getIdentifier() throws WSSecurityException
- {
- if (value == null)
- return null;
-
- try
- {
- return Base64.decode(value);
- }
- catch (Base64DecodingException e)
- {
- throw new WSSecurityException("Error decoding key identifier", e);
- }
- }
-
- public Element getElement()
- {
- if (cachedElement != null)
- return cachedElement;
-
- Element element = doc.createElementNS(Constants.WSSE_NS, Constants.WSSE_PREFIX +
":" + "KeyIdentifier");
- element.setAttribute("ValueType", getValueType());
- element.setAttribute("EncodingType", Constants.BASE64_ENCODING_TYPE);
-
- cachedElement = element;
- return cachedElement;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/KeyIdentifier.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/KeyIdentifier.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/Reference.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/Reference.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/Reference.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,49 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security.element;
-
-import org.jboss.ws.extensions.security.WSSecurityException;
-import org.w3c.dom.Element;
-
-abstract public class Reference implements SecurityElement
-{
- public static Reference getReference(Element element) throws WSSecurityException
- {
- String name = element.getLocalName();
- if ("Reference".equals(name))
- {
- return new DirectReference(element);
- }
- else if ("KeyIdentifier".equals(name))
- {
- return new KeyIdentifier(element);
- }
- else if ("X509Data".equals(name))
- {
- return new X509IssuerSerial(element);
- }
- else
- {
- throw new WSSecurityException("Unkown reference element: " + name);
- }
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/Reference.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/Reference.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/ReferenceList.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/ReferenceList.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/ReferenceList.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,94 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security.element;
-
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.LinkedList;
-
-import org.apache.xml.security.encryption.Reference;
-import org.jboss.ws.extensions.security.Constants;
-import org.jboss.ws.extensions.security.Util;
-import org.w3c.dom.Element;
-
-/**
- * @author Jason T. Greene
- * @version $Id$
- */
-public class ReferenceList
-{
-
- private LinkedList<String> references = new LinkedList<String>();
-
- public ReferenceList()
- {
- }
-
- public ReferenceList(Element element)
- {
- Element child = Util.getFirstChildElement(element);
- while (child != null)
- {
- // Skip key references, they aren't used by WS-Security
- if (Constants.XML_ENCRYPTION_NS.equals(child.getNamespaceURI())
- && Constants.XENC_DATAREFERENCE.equals(child.getLocalName()))
- {
- String uri = child.getAttribute("URI");
- if (uri != null && uri.length() > 1 && uri.charAt(0) ==
'#')
- references.add(uri.substring(1));
- }
-
- child = Util.getNextSiblingElement(child);
- }
- }
-
- public ReferenceList(org.apache.xml.security.encryption.ReferenceList list)
- {
- Iterator i = list.getReferences();
-
- while (i.hasNext())
- {
- Reference r = (Reference) i.next();
- references.add(r.getURI());
- }
- }
-
- public void add(String id)
- {
- // We prepend so that decryption can handle nested elements by just
- // following the order
- references.addFirst(id);
- }
-
- public void populateRealReferenceList(org.apache.xml.security.encryption.ReferenceList
list)
- {
- for (String i : references)
- {
- list.add(list.newDataReference("#" + i));
- }
- }
-
- public Collection<String> getAllReferences()
- {
- return references;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/ReferenceList.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/ReferenceList.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/SecurityElement.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/SecurityElement.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/SecurityElement.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,35 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security.element;
-
-import org.jboss.ws.extensions.security.WSSecurityException;
-import org.w3c.dom.Element;
-
-
-/**
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @version $Revision$
- */
-public interface SecurityElement
-{
- public Element getElement() throws WSSecurityException;
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/SecurityElement.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/SecurityElement.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/SecurityHeader.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/SecurityHeader.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/SecurityHeader.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,190 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security.element;
-
-import java.util.HashMap;
-import java.util.LinkedList;
-
-import org.jboss.ws.extensions.security.BinarySecurityTokenValidator;
-import org.jboss.ws.extensions.security.Constants;
-import org.jboss.ws.extensions.security.KeyResolver;
-import org.jboss.ws.extensions.security.SecurityStore;
-import org.jboss.ws.extensions.security.UnsupportedSecurityTokenException;
-import org.jboss.ws.extensions.security.Util;
-import org.jboss.ws.extensions.security.WSSecurityException;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-
-
-/**
- * <code>SecurityHeader</code> represents the wsse:security element of
WS-Security,
- * and is responsible for storing the processing state of a message.
- *
- * @author Jason T. Greene
- * @version $Id$
- */
-public class SecurityHeader implements SecurityElement
-{
- private Document document;
-
- private Timestamp timestamp;
-
- private LinkedList<Token> tokens = new LinkedList<Token>();
-
- private HashMap<Object, Token> sharedTokens = new HashMap<Object,
Token>();
-
- private LinkedList<SecurityProcess> securityProcesses = new
LinkedList<SecurityProcess>();
-
- // Looks like this is only for embedded tokens
- private LinkedList<SecurityTokenReference> securityTokenReferences = new
LinkedList<SecurityTokenReference>();
-
- public SecurityHeader(Document document)
- {
- this.document = document;
- }
-
- public SecurityHeader(Element element, SecurityStore store) throws
WSSecurityException
- {
- document = element.getOwnerDocument();
- KeyResolver resolver = new KeyResolver(store);
- BinarySecurityTokenValidator validator = new BinarySecurityTokenValidator(store);
- Element child = Util.getFirstChildElement(element);
- while (child != null)
- {
- String tag = child.getLocalName();
-
- if (tag.equals("BinarySecurityToken"))
- {
- BinarySecurityToken token =
BinarySecurityToken.createBinarySecurityToken(child);
- validator.validateToken(token);
- resolver.cacheToken(token);
- tokens.add(token);
- }
- else if (tag.equals("UsernameToken"))
- tokens.add(new UsernameToken(child));
- else if (tag.equals("Timestamp"))
- timestamp = new Timestamp(child);
- else if (tag.equals("Signature"))
- securityProcesses.add(new Signature(child, resolver));
- else if (tag.equals("EncryptedKey"))
- securityProcesses.add(new EncryptedKey(child, resolver));
- else if (tag.equals("ReferenceList"))
- throw new UnsupportedSecurityTokenException("ReferenceLists outside of
encrypted keys (shared secrets) are not supported.");
-
- child = Util.getNextSiblingElement(child);
- }
- }
-
- public Timestamp getTimestamp()
- {
- return timestamp;
- }
-
- public void setTimestamp(Timestamp timestamp)
- {
- this.timestamp = timestamp;
- }
-
- /**
- * @return Returns the securityTokenReferences.
- */
- public LinkedList getSecurityTokenReferences()
- {
- return securityTokenReferences;
- }
- /**
- * @param securityTokenReferences The securityTokenReferences to set.
- */
- public void setSecurityTokenReferences(LinkedList<SecurityTokenReference>
securityTokenReferences)
- {
- this.securityTokenReferences = securityTokenReferences;
- }
- /**
- * @return Returns the securityProcesses.
- */
- public LinkedList<SecurityProcess> getSecurityProcesses()
- {
- return securityProcesses;
- }
-
- /**
- * @param securityProcesses The securityProcesses to set.
- */
- public void setSecurityProcesses(LinkedList<SecurityProcess> securityProcesses)
- {
- this.securityProcesses = securityProcesses;
- }
- /**
- * @return the tokens.
- */
- public LinkedList<Token> getTokens()
- {
- return tokens;
- }
-
- public void addToken(Token token)
- {
- tokens.addFirst(token);
- Object content = token.getUniqueContent();
- if (content != null)
- sharedTokens.put(content, token);
- }
-
- public Token getSharedToken(Object uniqueContent)
- {
- if (uniqueContent == null)
- return null;
-
- return sharedTokens.get(uniqueContent);
- }
-
- public void addSecurityProcess(SecurityProcess process)
- {
- securityProcesses.addFirst(process);
- }
-
- public void addSecurityTokenReference(SecurityTokenReference reference)
- {
- securityTokenReferences.addFirst(reference);
- }
-
- public Element getElement() throws WSSecurityException
- {
- Element element = document.createElementNS(Constants.WSSE_NS,
Constants.WSSE_HEADER);
- Util.addNamespace(element, Constants.WSSE_PREFIX, Constants.WSSE_NS);
- Util.addNamespace(element, Constants.WSU_PREFIX, Constants.WSU_NS);
-
- if (timestamp != null)
- element.appendChild(timestamp.getElement());
-
- for (Token t : tokens)
- element.appendChild(t.getElement());
-
- for (SecurityTokenReference r : securityTokenReferences)
- element.appendChild(r.getElement());
-
- for (SecurityProcess p : securityProcesses)
- element.appendChild(p.getElement());
-
- return element;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/SecurityHeader.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/SecurityHeader.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/SecurityProcess.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/SecurityProcess.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/SecurityProcess.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,31 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security.element;
-
-
-/**
- * @author Jason T. Greene
- * @version $Id$
- */
-public interface SecurityProcess extends SecurityElement
-{
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/SecurityProcess.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/SecurityProcess.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/SecurityTokenReference.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/SecurityTokenReference.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/SecurityTokenReference.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,96 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security.element;
-
-import org.jboss.ws.extensions.security.Constants;
-import org.jboss.ws.extensions.security.Util;
-import org.jboss.ws.extensions.security.WSSecurityException;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-
-
-/**
- * @author Jason T. Greene
- * @version $Id$
- */
-public class SecurityTokenReference
-{
- private String id;
-
- private Reference reference;
-
- private Element cachedElement;
-
- public SecurityTokenReference(Reference reference)
- {
- this.reference = reference;
- }
-
- public SecurityTokenReference(Element element) throws WSSecurityException
- {
- if (! "SecurityTokenReference".equals(element.getLocalName()))
- throw new WSSecurityException("SecurityTokenReference was passed an invalid
local name");
-
- String id = element.getAttributeNS(Constants.WSU_NS, Constants.ID);
- if (id == null || id.length() == 0)
- setId(id);
-
- Element child = Util.getFirstChildElement(element);
- if (child == null)
- throw new WSSecurityException("Invalid message, SecurityTokenRefence is
empty: " + id);
-
- this.reference = Reference.getReference(child);
- }
-
- public Reference getReference()
- {
- return reference;
- }
-
- public String getId()
- {
- if (id == null)
- id = Util.generateId("reference");
-
- return id;
- }
-
- public void setId(String id)
- {
- this.id = id;
- }
-
- public Element getElement() throws WSSecurityException
- {
- if (cachedElement != null)
- return cachedElement;
-
- Element referenceElement = reference.getElement();
- Document doc = referenceElement.getOwnerDocument();
- Element element = doc.createElementNS(Constants.WSSE_NS, Constants.WSSE_PREFIX +
":" + "SecurityTokenReference");
- element.setAttributeNS(Constants.WSU_NS, Constants.WSU_ID, getId());
- element.appendChild(referenceElement);
-
- cachedElement = element;
- return cachedElement;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/SecurityTokenReference.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/SecurityTokenReference.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/Signature.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/Signature.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/Signature.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,87 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security.element;
-
-import java.security.PublicKey;
-
-import org.apache.xml.security.exceptions.XMLSecurityException;
-import org.apache.xml.security.signature.XMLSignature;
-import org.jboss.ws.extensions.security.KeyResolver;
-import org.jboss.ws.extensions.security.WSSecurityException;
-import org.w3c.dom.Element;
-
-
-/**
- * @author Jason T. Greene
- * @version $Id$
- */
-public class Signature implements SecurityProcess
-{
- private XMLSignature signature;
-
- /* Used only for decoding */
- private PublicKey publicKey;
-
- private Element cachedElement;
-
- public Signature(XMLSignature signature)
- {
- this.signature = signature;
- }
-
- public Signature(Element element, KeyResolver resolver) throws WSSecurityException
- {
- try
- {
- signature = new XMLSignature(element, null);
- publicKey = resolver.resolvePublicKey(signature.getKeyInfo());
- }
- catch (XMLSecurityException e)
- {
- throw new WSSecurityException("Error decoding xml signature: " +
e.getMessage(), e);
- }
- }
-
- public XMLSignature getSignature()
- {
- return signature;
- }
-
- public void setSignature(XMLSignature signature)
- {
- this.signature = signature;
- }
-
- public Element getElement()
- {
- if (cachedElement != null)
- return cachedElement;
-
- cachedElement = signature.getElement();
- return cachedElement;
- }
-
- public PublicKey getPublicKey()
- {
- return publicKey;
- }
-}
\ No newline at end of file
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/Signature.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/Signature.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/Timestamp.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/Timestamp.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/Timestamp.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,131 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security.element;
-
-import java.util.Calendar;
-import java.util.GregorianCalendar;
-import java.util.TimeZone;
-
-import org.apache.xml.security.utils.XMLUtils;
-import org.jboss.ws.extensions.security.Constants;
-import org.jboss.ws.extensions.security.Util;
-import org.jboss.ws.extensions.security.WSSecurityException;
-import org.jboss.xb.binding.SimpleTypeBindings;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-
-/**
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @version $Revision$
- */
-public class Timestamp implements SecurityElement
-{
-
- private String id = "timestamp";
-
- private Integer ttl;
-
- private Document doc;
-
- private Calendar created;
-
- private Calendar expires;
-
- private Element cachedElement;
-
- public Timestamp(Integer ttl, Document doc)
- {
- this.doc = doc;
- this.ttl = ttl;
- }
-
- public Timestamp(Element element) throws WSSecurityException
- {
- this.doc = element.getOwnerDocument();
- String id = element.getAttributeNS(Constants.WSU_NS, Constants.ID);
- if (id == null || id.length() == 0)
- throw new WSSecurityException("Invalid message, Timestamp is missing an
id");
-
- this.id = id;
-
- Element child = Util.getFirstChildElement(element);
- if (child == null || !Constants.WSU_NS.equals(child.getNamespaceURI()) ||
!"Created".equals(child.getLocalName()))
- throw new WSSecurityException("Created child expected in Timestamp
element");
-
- this.created =
SimpleTypeBindings.unmarshalDateTime(XMLUtils.getFullTextChildrenFromElement(child));
-
- child = Util.getNextSiblingElement(child);
- if (child == null)
- return;
-
- this.expires =
SimpleTypeBindings.unmarshalDateTime(XMLUtils.getFullTextChildrenFromElement(child));
- }
-
- private void setupTime()
- {
- created = new GregorianCalendar(TimeZone.getTimeZone("UTC"));
- if (ttl != null)
- {
- expires = (Calendar) created.clone();
- expires.add(Calendar.SECOND, ttl.intValue());
- }
- }
-
- private String getId()
- {
- return id;
- }
-
- public Calendar getCreated()
- {
- return created;
- }
-
- public Calendar getExpires()
- {
- return expires;
- }
-
- public Element getElement() throws WSSecurityException
- {
- if (cachedElement != null)
- return cachedElement;
-
- setupTime();
-
- Element element = doc.createElementNS(Constants.WSU_NS, Constants.WSU_PREFIX +
":" + "Timestamp");
- element.setAttributeNS(Constants.WSU_NS, Constants.WSU_ID, getId());
- Element child = doc.createElementNS(Constants.WSU_NS, Constants.WSU_PREFIX +
":" + "Created");
-
child.appendChild(doc.createTextNode(SimpleTypeBindings.marshalDateTime(created)));
- element.appendChild(child);
-
- if (expires != null)
- {
- child = doc.createElementNS(Constants.WSU_NS, Constants.WSU_PREFIX +
":" + "Expires");
-
child.appendChild(doc.createTextNode(SimpleTypeBindings.marshalDateTime(expires)));
- element.appendChild(child);
- }
-
- cachedElement = element;
- return cachedElement;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/Timestamp.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/Timestamp.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/Token.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/Token.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/Token.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,41 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security.element;
-
-/**
- * <code>Token</code> represnts an authenticated identifier contained in a
- * WS-Security message.
- *
- * @author Jason T. Greene
- * @version $Id$
- */
-public interface Token extends SecurityElement
-{
-
- /**
- * Returns a uniquely identifying content that facilitates reuse of that token
- * (by making an additional reference instead of copying).
- *
- * @return the unique content
- */
- public Object getUniqueContent();
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/Token.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/Token.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/UsernameToken.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/UsernameToken.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/UsernameToken.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,134 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security.element;
-
-import org.apache.xml.security.utils.XMLUtils;
-import org.jboss.ws.extensions.security.Constants;
-import org.jboss.ws.extensions.security.Util;
-import org.jboss.ws.extensions.security.WSSecurityException;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-
-
-/**
- * @author Jason T. Greene
- * @version $Id$
- */
-public class UsernameToken implements Token
-{
- private String username;
-
- private String password;
-
- private Document doc;
-
- private String id;
-
- private Element cachedElement;
-
- public UsernameToken(String username, String password, Document doc)
- {
- this.username = username;
- this.password = password;
- this.doc = doc;
- }
-
- public UsernameToken(Element element) throws WSSecurityException
- {
- this.doc = element.getOwnerDocument();
- String id = element.getAttributeNS(Constants.WSU_NS, Constants.ID);
- if (id == null || id.length() == 0)
- throw new WSSecurityException("Invalid message, UsernameToken is missing an
id");
-
- setId(id);
-
- Element child = Util.getFirstChildElement(element);
- if (child == null || ! Constants.WSSE_NS.equals(child.getNamespaceURI()) || !
"Username".equals(child.getLocalName()))
- throw new WSSecurityException("Username child expected in UsernameToken
element");
-
- this.username = XMLUtils.getFullTextChildrenFromElement(child);
-
- child = Util.getNextSiblingElement(child);
- if (child == null || ! Constants.WSSE_NS.equals(child.getNamespaceURI()) || !
"Password".equals(child.getLocalName()))
- throw new WSSecurityException("Password child expected in UsernameToken
element");
-
- this.password = XMLUtils.getFullTextChildrenFromElement(child);
- }
-
- public String getId()
- {
- if (id == null)
- id = Util.generateId("token");
-
- return id;
- }
-
- public void setId(String id)
- {
- this.id = id;
- }
-
-
- public String getPassword()
- {
- return password;
- }
-
-
- public void setPassword(String password)
- {
- this.password = password;
- }
-
- public String getUsername()
- {
- return username;
- }
-
- public void setUsername(String username)
- {
- this.username = username;
- }
-
- public Element getElement()
- {
- if (cachedElement != null)
- return cachedElement;
-
- Element element = doc.createElementNS(Constants.WSSE_NS, Constants.WSSE_PREFIX +
":" + "UsernameToken");
- element.setAttributeNS(Constants.WSU_NS, Constants.WSU_ID, getId());
- Element child = doc.createElementNS(Constants.WSSE_NS, Constants.WSSE_PREFIX +
":" + "Username");
- child.appendChild(doc.createTextNode(username));
- element.appendChild(child);
- child = doc.createElementNS(Constants.WSSE_NS, Constants.WSSE_PREFIX +
":" + "Password");
- child.appendChild(doc.createTextNode(password));
- element.appendChild(child);
-
- cachedElement = element;
- return cachedElement;
- }
-
- public Object getUniqueContent()
- {
- return null;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/UsernameToken.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/UsernameToken.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/X509IssuerSerial.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/X509IssuerSerial.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/X509IssuerSerial.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,145 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security.element;
-
-import java.security.cert.X509Certificate;
-
-import org.apache.xml.security.utils.XMLUtils;
-import org.jboss.ws.extensions.security.Constants;
-import org.jboss.ws.extensions.security.InvalidSecurityHeaderException;
-import org.jboss.ws.extensions.security.Util;
-import org.jboss.ws.extensions.security.WSSecurityException;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-
-/**
- * <code>X509IssuerSerial</code> is a reference type within a
- * <code>SecurityTokenReference</code> that referes to a token that
- * using the Issuer's DN, and certificate serial number.
- *
- * @see org.jboss.ws.extensions.security.element.SecurityTokenReference
- * @see org.jboss.ws.extensions.security.element.BinarySecurityToken
- *
- * @author Jason T. Greene
- * @version $Id$
- */
-public class X509IssuerSerial extends Reference
-{
- private Document doc;
-
- private String issuer;
-
- private String serial;
-
- private Element cachedElement;
-
- public X509IssuerSerial(Document doc, BinarySecurityToken token) throws
WSSecurityException
- {
- this.doc = doc;
- referenceToken(token);
- }
-
- public X509IssuerSerial(Element element) throws WSSecurityException
- {
- this.doc = element.getOwnerDocument();
-
- if (! "X509Data".equals(element.getLocalName()))
- throw new InvalidSecurityHeaderException("Invalid message, invalid local
name on a X509Data element");
-
- element = Util.getFirstChildElement(element);
- if (element == null)
- throw new InvalidSecurityHeaderException("X509DataElement empty");
-
- if (! element.getLocalName().equals("X509IssuerSerial"))
- throw new InvalidSecurityHeaderException("Only X509IssuerSerial is
supported for an X509Data element");
-
- element = Util.getFirstChildElement(element);
- if (element == null)
- throw new InvalidSecurityHeaderException("X509IssuerSerial empty");
-
-
- while (element != null)
- {
- String name = element.getLocalName();
- if (name.equals("X509IssuerName"))
- issuer = XMLUtils.getFullTextChildrenFromElement(element);
- else if (name.equals("X509SerialNumber"))
- serial = XMLUtils.getFullTextChildrenFromElement(element);
-
- element = Util.getNextSiblingElement(element);
- }
-
- if (serial == null)
- throw new InvalidSecurityHeaderException("X509SerialNumber missing from
X509IssuerSerial");
-
- if (issuer == null)
- throw new InvalidSecurityHeaderException("X509IssuerName missing from
X509IssuerSerial");
- }
-
- public void referenceToken(BinarySecurityToken token) throws WSSecurityException
- {
- if (! (token instanceof X509Token))
- throw new WSSecurityException("X509IssuerSerial tried to reference
something besides an X509 token");
-
- X509Token x509 = (X509Token) token;
- X509Certificate cert = x509.getCert();
-
- this.issuer = cert.getIssuerDN().toString();
- this.serial = cert.getSerialNumber().toString();
- }
-
- public String getIssuer()
- {
- return issuer;
- }
-
- public String getSerial()
- {
- return serial;
- }
-
- public Document getDocument()
- {
- return doc;
- }
-
- public Element getElement()
- {
- if (cachedElement != null)
- return cachedElement;
-
- Element element = doc.createElementNS(Constants.XML_SIGNATURE_NS,
"ds:X509Data");
- Element issuerSerial = doc.createElementNS(Constants.XML_SIGNATURE_NS,
"ds:X509IssuerSerial");
- element.appendChild(issuerSerial);
-
- element = doc.createElementNS(Constants.XML_SIGNATURE_NS,
"ds:X509IssuerName");
- element.appendChild(doc.createTextNode(issuer));
- issuerSerial.appendChild(element);
-
- element = doc.createElementNS(Constants.XML_SIGNATURE_NS,
"ds:X509SerialNumber");
- element.appendChild(doc.createTextNode(serial));
- issuerSerial.appendChild(element);
-
- cachedElement = element;
- return cachedElement;
- }
-}
\ No newline at end of file
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/X509IssuerSerial.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/X509IssuerSerial.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/X509Token.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/X509Token.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/X509Token.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,117 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security.element;
-
-import java.io.ByteArrayInputStream;
-import java.security.cert.CertificateEncodingException;
-import java.security.cert.CertificateFactory;
-import java.security.cert.X509Certificate;
-
-import org.apache.xml.security.utils.XMLUtils;
-import org.jboss.util.Base64;
-import org.jboss.ws.extensions.security.Constants;
-import org.jboss.ws.extensions.security.WSSecurityException;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-
-
-public class X509Token extends BinarySecurityToken
-{
- private X509Certificate cert;
-
- public static final String TYPE =
"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3";
-
- public X509Token(X509Certificate cert, Document doc)
- {
- super(doc);
- this.cert = cert;
- }
-
- public X509Token(Element element) throws WSSecurityException
- {
- super(element.getOwnerDocument());
-
- String id = element.getAttributeNS(Constants.WSU_NS, Constants.ID);
- if (id == null || id.length() == 0)
- throw new WSSecurityException("Invalid message, BinarySecurityToken is
missing an id");
-
- setId(id);
-
- if (!
Constants.BASE64_ENCODING_TYPE.equals(element.getAttribute("EncodingType")))
- throw new WSSecurityException("Invalid encoding type (only base64 is
supported) for token:" + id);
-
- setCert(decodeCert(XMLUtils.getFullTextChildrenFromElement(element)));
- }
-
- @Override
- public String getEncodingType()
- {
- return Constants.BASE64_ENCODING_TYPE;
- }
-
- @Override
- public String getValueType()
- {
- return TYPE;
- }
-
- @Override
- public String getEncodedValue(boolean noWhitespace)
- {
- try
- {
- return Base64.encodeBytes(cert.getEncoded(), (noWhitespace) ?
Base64.DONT_BREAK_LINES : 0);
- }
- catch (CertificateEncodingException e)
- {
- throw new RuntimeException("Could not encode X509 token", e);
- }
- }
-
- public X509Certificate getCert()
- {
- return cert;
- }
-
- public void setCert(X509Certificate cert)
- {
- this.cert = cert;
- }
-
- public X509Certificate decodeCert(String data) throws WSSecurityException
- {
- try
- {
- CertificateFactory factory = CertificateFactory.getInstance("X.509");
- return (X509Certificate)factory.generateCertificate(new
ByteArrayInputStream(Base64.decode(data)));
- }
- catch(Exception e)
- {
- throw new WSSecurityException("Error decoding BinarySecurityToken: " +
e.getMessage());
- }
- }
-
- public Object getUniqueContent()
- {
- return cert;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/X509Token.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/element/X509Token.java)
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/jaxrpc (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/jaxrpc)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/jaxrpc/WSSecurityHandler.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/jaxrpc/WSSecurityHandler.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/jaxrpc/WSSecurityHandler.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,96 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security.jaxrpc;
-
-// $Id$
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.handler.GenericHandler;
-import javax.xml.rpc.handler.MessageContext;
-import javax.xml.soap.SOAPException;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.core.jaxrpc.handler.SOAPMessageContextJAXRPC;
-import org.jboss.ws.extensions.security.WSSecurityDispatcher;
-import org.jboss.ws.metadata.umdm.EndpointMetaData;
-import org.jboss.ws.metadata.wsse.WSSecurityConfiguration;
-
-/**
- * An abstract JAXRPC handler that delegates to the WSSecurityDispatcher
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 12-Nov-2005
- */
-public abstract class WSSecurityHandler extends GenericHandler
-{
- // provide logging
- private static Logger log = Logger.getLogger(WSSecurityHandler.class);
-
- public QName[] getHeaders()
- {
- return null;
- }
-
- protected boolean handleInboundSecurity(MessageContext msgContext)
- {
- try
- {
- if (getSecurityConfiguration(msgContext) != null)
- {
- WSSecurityDispatcher.handleInbound((SOAPMessageContextJAXRPC)msgContext);
- }
- }
- catch (SOAPException ex)
- {
- log.error("Cannot handle inbound ws-security", ex);
- return false;
- }
- return true;
- }
-
- protected boolean handleOutboundSecurity(MessageContext msgContext)
- {
- try
- {
- if (getSecurityConfiguration(msgContext) != null)
- {
- WSSecurityDispatcher.handleOutbound((SOAPMessageContextJAXRPC)msgContext);
- }
- }
- catch (SOAPException ex)
- {
- log.error("Cannot handle outbound ws-security", ex);
- return false;
- }
- return true;
- }
-
- private WSSecurityConfiguration getSecurityConfiguration(MessageContext msgContext)
- {
- EndpointMetaData epMetaData =
((SOAPMessageContextJAXRPC)msgContext).getEndpointMetaData();
- WSSecurityConfiguration securityConfiguration =
epMetaData.getServiceMetaData().getSecurityConfiguration();
- if (securityConfiguration == null)
- log.warn("Cannot obtain security configuration");
-
- return securityConfiguration;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/jaxrpc/WSSecurityHandler.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/jaxrpc/WSSecurityHandler.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/jaxrpc/WSSecurityHandlerInbound.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/jaxrpc/WSSecurityHandlerInbound.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/jaxrpc/WSSecurityHandlerInbound.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,47 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.security.jaxrpc;
-
-// $Id$
-
-import javax.xml.rpc.handler.MessageContext;
-
-
-/**
- * A JAXRPC handler that delegates to the WSSecurityDispatcher
- * where the request is an inbound message.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 12-Nov-2005
- */
-public class WSSecurityHandlerInbound extends WSSecurityHandler
-{
- public boolean handleRequest(MessageContext msgContext)
- {
- return handleInboundSecurity(msgContext);
- }
-
- public boolean handleResponse(MessageContext msgContext)
- {
- return handleOutboundSecurity(msgContext);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/jaxrpc/WSSecurityHandlerInbound.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/jaxrpc/WSSecurityHandlerInbound.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/jaxrpc/WSSecurityHandlerOutbound.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/jaxrpc/WSSecurityHandlerOutbound.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/jaxrpc/WSSecurityHandlerOutbound.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,46 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.security.jaxrpc;
-
-// $Id$
-
-import javax.xml.rpc.handler.MessageContext;
-
-
-/**
- * A JAXRPC handler that delegates to the WSSecurityDispatcher
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 12-Nov-2005
- */
-public class WSSecurityHandlerOutbound extends WSSecurityHandler
-{
- public boolean handleRequest(MessageContext msgContext)
- {
- return handleOutboundSecurity(msgContext);
- }
-
- public boolean handleResponse(MessageContext msgContext)
- {
- return handleInboundSecurity(msgContext);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/jaxrpc/WSSecurityHandlerOutbound.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/security/jaxrpc/WSSecurityHandlerOutbound.java)
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop (from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/CreateAttachmentVisitor.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/CreateAttachmentVisitor.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/CreateAttachmentVisitor.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,89 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.xop;
-
-import org.jboss.ws.core.soap.SAAJVisitor;
-import org.jboss.ws.core.soap.SOAPContentElement;
-import org.jboss.ws.core.soap.SOAPElementImpl;
-
-import java.util.Iterator;
-import java.io.Writer;
-import java.io.IOException;
-
-/**
- * @author Heiko Braun <heiko.braun(a)jboss.com>
- * @version $Id$
- * @since Nov 7, 2006
- */
-public class CreateAttachmentVisitor implements SAAJVisitor {
- public void visitXOPElements(SOAPElementImpl root)
- {
- boolean isSCE = (root instanceof SOAPContentElement);
-
- // don't expand SOAPContentElements
- if(isSCE)
- {
- root.accept(this);
- }
- else
- {
- Iterator it = root.getChildElements();
- while(it.hasNext())
- {
- final Object o = it.next();
- if(o instanceof SOAPElementImpl)
- visitXOPElements((SOAPElementImpl)o);
- }
- }
- }
-
- public void visitSOAPElement(SOAPElementImpl soapElement) {
- // nada
- }
-
- public void visitSOAPContentElement(SOAPContentElement scElement) {
- // Calling writeElement will enforce marshalling of this object
- // Any attachment will be created while doiong this.
- try
- {
- scElement.writeElement( new NoopWriter() );
- }
- catch (IOException e)
- {
- //
- }
- }
-
- class NoopWriter extends Writer {
- public void write(char cbuf[], int off, int len) throws IOException {
-
- }
-
- public void flush() throws IOException {
-
- }
-
- public void close() throws IOException {
-
- }
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/CreateAttachmentVisitor.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/CreateAttachmentVisitor.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/DisableMTOMHandler.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/DisableMTOMHandler.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/DisableMTOMHandler.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,59 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.xop;
-
-import org.jboss.ws.core.jaxrpc.StubExt;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.handler.GenericHandler;
-import javax.xml.rpc.handler.MessageContext;
-
-/**
- * @author Heiko Braun <heiko.braun(a)jboss.com>
- * @version $Id$
- * @since Oct 2, 2006
- */
-public class DisableMTOMHandler extends GenericHandler {
- public QName[] getHeaders() {
- return new QName[0];
- }
-
- public boolean handleRequest(MessageContext msgContext) {
- disableMTOM(msgContext);
- return true;
- }
-
- public boolean handleResponse(MessageContext msgContext) {
- disableMTOM(msgContext);
- return true;
- }
-
- public boolean handleFault(MessageContext msgContext) {
- disableMTOM(msgContext);
- return true;
- }
-
- public void disableMTOM(MessageContext msgContext)
- {
- msgContext.setProperty(StubExt.PROPERTY_MTOM_ENABLED, Boolean.FALSE);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/DisableMTOMHandler.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/DisableMTOMHandler.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/RestoreXOPElementVisitor.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/RestoreXOPElementVisitor.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/RestoreXOPElementVisitor.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,75 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.xop;
-
-import org.jboss.ws.core.soap.SAAJVisitor;
-import org.jboss.ws.core.soap.SOAPContentElement;
-import org.jboss.ws.core.soap.SOAPElementImpl;
-
-import java.util.Iterator;
-
-/**
- * Visit soap object model and restore XOP contents.
- * This visitor is invoked when:
- * <ul>
- * <li>Client side request handler chain has been executed
- * <li>Server side response or fault handler chain been executed
- * </ul>
- *
- * It basically takes care that when jaxrpc handlers have been in place,
- * the XOP contents are being restored upon request and response.
- *
- * @author Heiko Braun <heiko.braun(a)jboss.com>
- * @version $Id$
- * @since Sep 26, 2006
- */
-public class RestoreXOPElementVisitor implements SAAJVisitor {
-
- public void visitXOPElements(SOAPElementImpl root)
- {
- boolean isSCE = (root instanceof SOAPContentElement);
-
- // don't expand SOAPContentElements
- if(isSCE)
- {
- root.accept(this);
- }
- else
- {
- Iterator it = root.getChildElements();
- while(it.hasNext())
- {
- final Object o = it.next();
- if(o instanceof SOAPElementImpl)
- visitXOPElements((SOAPElementImpl)o);
- }
- }
- }
-
- public void visitSOAPElement(SOAPElementImpl soapElement) {
- // nada
- }
-
- public void visitSOAPContentElement(SOAPContentElement scElement) {
- scElement.handleMTOMTransitions();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/RestoreXOPElementVisitor.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/RestoreXOPElementVisitor.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/XOPContext.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/XOPContext.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/XOPContext.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,406 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.xop;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.Constants;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.CommonMessageContext;
-import org.jboss.ws.core.jaxrpc.StubExt;
-import org.jboss.ws.core.soap.MessageContextAssociation;
-import org.jboss.ws.core.soap.NameImpl;
-import org.jboss.ws.core.soap.SOAPElementImpl;
-import org.jboss.ws.core.soap.SOAPMessageImpl;
-import org.jboss.ws.core.soap.attachment.MimeConstants;
-import org.jboss.ws.core.utils.DOMUtils;
-import org.jboss.ws.core.utils.JavaUtils;
-import org.jboss.ws.core.utils.MimeUtils;
-import org.jboss.ws.extensions.xop.jaxrpc.XOPMarshallerImpl;
-import org.jboss.ws.extensions.xop.jaxrpc.XOPUnmarshallerImpl;
-import org.jboss.xb.binding.SimpleTypeBindings;
-import org.jboss.xb.binding.sunday.xop.XOPMarshaller;
-import org.jboss.xb.binding.sunday.xop.XOPObject;
-
-import javax.activation.DataHandler;
-import javax.xml.namespace.QName;
-import javax.xml.soap.*;
-import java.io.ByteArrayInputStream;
-import java.io.ByteArrayOutputStream;
-import java.util.Iterator;
-
-/**
- * XOP context associated with a message context.
- * Acts as a facade to the current soap message and supports the various XOP
transitions.<p>
- * A good starting point to understand how MTOM in JBossWS works is to take a
- * look at the SOAPContentElement implementation.
- *
- * @see org.jboss.ws.core.soap.SOAPContentElement#handleMTOMTransitions()
- * @see XOPUnmarshallerImpl
- * @see XOPMarshallerImpl
- *
- * @author Heiko Braun <heiko.braun(a)jboss.com>
- * @since May 10, 2006
- * @version $Id$
- */
-public class XOPContext {
-
- private static final Logger log = Logger.getLogger(XOPContext.class);
-
- private static final String NS_XOP_JBOSSWS = "http://org.jboss.ws/xop";
-
- /**
- * Check if the current soap message flagged as a XOP package.
- * This may differ from the wire format when jaxrpc handlers are in place.
- */
- public static boolean isXOPMessage() {
- boolean isXOP = false;
- CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
- if(msgContext!=null) {
- SOAPMessageImpl soapMessage = (SOAPMessageImpl)msgContext.getSOAPMessage();
- isXOP = (soapMessage != null && soapMessage.isXOPMessage());
- }
- return isXOP;
- }
-
- /**
- * Check if the wire format is actually a xop encoded multipart message
- */
- public static boolean isXOPEncodedRequest()
- {
- boolean isMultippartXOP = false;
- CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
- if(msgContext!=null) {
- SOAPMessageImpl soapMessage = (SOAPMessageImpl)msgContext.getSOAPMessage();
- String[] contentType =
soapMessage.getMimeHeaders().getHeader("content-type");
- if(contentType!=null)
- {
- for(String value : contentType)
- {
- if(value.indexOf(MimeConstants.TYPE_APPLICATION_XOP_XML) != -1)
- {
- isMultippartXOP = true;
- break;
- }
- }
- }
- }
-
- return isMultippartXOP;
- }
-
- /**
- * Check if MTOM is disabled through a message context property.
- * (<code>org.jboss.ws.mtom.enabled</code>)<br>
- * Defaults to TRUE if the property is not set.
- */
- public static boolean isMTOMEnabled()
- {
- CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
- Boolean mtomEnabled =
(Boolean)msgContext.getProperty(StubExt.PROPERTY_MTOM_ENABLED);
- return Boolean.TRUE.equals(mtomEnabled) || mtomEnabled == null;
- }
-
- public static void setMTOMEnabled(boolean b)
- {
- CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
- msgContext.setProperty(StubExt.PROPERTY_MTOM_ENABLED, Boolean.valueOf(b));
- }
-
- /**
- * Replace all <code>xop:Include</code> elements with it's base64
representation.
- * This happens when the associated SOAPContentElement transitions to state
dom-valid.<br>
- * All attachement parts will be removed.
- */
- public static void inlineXOPData(SOAPElement xopElement)
- {
- String ns = xopElement.getNamespaceURI()!=null ? xopElement.getNamespaceURI():
"";
- String localName = xopElement.getLocalName();
-
- // rpc/lit
- if(ns.equals(Constants.NS_XOP) && localName.equals("Include"))
- {
- replaceXOPInclude(xopElement.getParentElement(), xopElement);
- }
- else
- {
- // doc/lit
- Iterator it = DOMUtils.getChildElements(xopElement);
- while(it.hasNext())
- {
- SOAPElement childElement = (SOAPElement)it.next();
- String childNS = childElement.getNamespaceURI()!=null ?
childElement.getNamespaceURI(): "";
- String childName = childElement.getLocalName();
- if(childNS.equals(Constants.NS_XOP) &&
childName.equals("Include"))
- {
- replaceXOPInclude(xopElement, childElement);
- }
- else
- {
- inlineXOPData(childElement);
- }
- }
- }
- }
-
- /**
- * When handlers jump in, the SOAPMessage flag that indicates
- * a xop encoded message (derived from wire format) becomes stale.
- *
- * @param isXOPMessage
- */
- private static void setXOPMessage(boolean isXOPMessage)
- {
- CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
- SOAPMessageImpl soapMsg = (SOAPMessageImpl)msgContext.getSOAPMessage();
- soapMsg.setXOPMessage(isXOPMessage);
- }
-
- /**
- * The XOP attachments need to be created before the actual message is written
- * to an output stream. This is necessary because it changes the overall message
content-type.
- * If we would do this lazily (i.e. upon remoting callback) the previous content-type
- * would already have been written.
- *
- * @see
org.jboss.ws.core.soap.SOAPConnectionImpl#callInternal(javax.xml.soap.SOAPMessage, Object,
boolean)
- * @see org.jboss.ws.core.soap.SOAPMessageMarshaller#write(Object,
java.io.OutputStream)
- */
- public static void eagerlyCreateAttachments()
- {
- if(!isXOPMessage())
- return;
-
- try
- {
- CommonMessageContext msgContext =
MessageContextAssociation.peekMessageContext();
- SOAPMessage soapMessage = msgContext != null ? msgContext.getSOAPMessage() :
null;
- SOAPBody body = soapMessage!=null ? soapMessage.getSOAPBody() : null;
-
- if(body!=null)
- {
- CreateAttachmentVisitor visitor = new CreateAttachmentVisitor();
- visitor.visitXOPElements((SOAPElementImpl)body);
- }
- }
- catch (SOAPException e)
- {
- throw new WSException("Failed to eagerly create XOP attachments", e);
- }
- }
-
- /**
- * Visit the soap object model elements and restore xop data.
- */
- public static void visitAndRestoreXOPData()
- {
- try
- {
- if(!isXOPMessage() && isMTOMEnabled())
- {
- CommonMessageContext msgContext =
MessageContextAssociation.peekMessageContext();
- SOAPBody body = msgContext.getSOAPMessage().getSOAPBody();
- RestoreXOPElementVisitor visitor = new RestoreXOPElementVisitor();
- visitor.visitXOPElements((SOAPElementImpl)body);
- }
- }
- catch (SOAPException e)
- {
- throw new WSException("Failed to restore XOP data", e);
- }
- }
-
- /**
- * Restore previously inlined XOP elements.
- * All base64 representations will be replaced by
<code>xop:Include</code>
- * elements and the attachment parts will be recreated. <br>
- * This happens when a SOAPContentElement is written to an output stream.
- */
- public static void restoreXOPDataDOM(SOAPElement xopElement)
- {
- String contentType = xopElement.getAttributeNS(NS_XOP_JBOSSWS,
"content-type");
- if(contentType != null && contentType.length()>0)
- {
- replaceBase64Representation(xopElement, contentType);
- xopElement.removeAttribute(new NameImpl(new QName(NS_XOP_JBOSSWS,
"content-type")));
- }
- else
- {
- Iterator it = DOMUtils.getChildElements(xopElement);
- while(it.hasNext())
- {
- SOAPElement childElement = (SOAPElement)it.next();
- restoreXOPDataDOM(childElement);
- }
- }
- }
-
- private static void replaceBase64Representation(SOAPElement xopElement, String
contentType) {
-
- SOAPElement parentElement = xopElement.getParentElement();
- log.debug("Replace base64 representation on element [xmlName=" +
parentElement.getLocalName()+"]");
-
- String base64 = xopElement.getValue();
- byte[] data = SimpleTypeBindings.unmarshalBase64(base64);
-
- MimeUtils.ByteArrayConverter converter =
MimeUtils.getConverterForContentType(contentType);
- Object converted = converter.readFrom(new ByteArrayInputStream(data));
-
- XOPObject xopObject = new XOPObject(converted);
- xopObject.setContentType(contentType);
-
- XOPMarshaller xopMarshaller = new XOPMarshallerImpl();
- String cid = xopMarshaller.addMtomAttachment(xopObject,
xopElement.getNamespaceURI(), xopElement.getLocalName());
-
- // remove base64 node with the xop:Include element
- org.w3c.dom.Node child = (org.w3c.dom.Node)xopElement.getFirstChild();
- xopElement.removeChild(child);
-
- try
- {
- SOAPElement xopInclude =
xopElement.addChildElement(Constants.NAME_XOP_INCLUDE);
- xopInclude.setAttribute("href", cid);
- log.debug("Restored xop:Include element on
[xmlName="+xopElement.getLocalName()+"]");
-
- XOPContext.setXOPMessage(true);
- }
- catch (SOAPException e)
- {
- throw new WSException("Failed to create XOP include element", e);
- }
-
- }
-
- private static void replaceXOPInclude(SOAPElement parent, SOAPElement
xopIncludeElement)
- {
-
- log.debug("Replace xop:Include on element [xmlName=" +
parent.getLocalName() +"]");
-
- String cid = xopIncludeElement.getAttribute("href");
- byte[] data;
- String contentType;
-
- try
- {
- AttachmentPart part = XOPContext.getAttachmentByCID(cid);
- DataHandler dh = part.getDataHandler();
- contentType = dh.getContentType();
-
- // TODO: can't we create base64 directly from stream?
- ByteArrayOutputStream bout = new ByteArrayOutputStream();
- dh.writeTo(bout);
- data = bout.toByteArray();
-
- }
- catch (Exception e)
- {
- throw new WSException("Failed to inline XOP data", e);
- }
-
- // create base64 contents
- String base64 = SimpleTypeBindings.marshalBase64(data);
- parent.removeChild(xopIncludeElement);
- parent.setValue(base64);
- parent.setAttributeNS(NS_XOP_JBOSSWS, "content-type", contentType);
-
- log.debug("Created base64 representation for content-type " +
contentType);
-
- // cleanup the attachment part
- CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
- SOAPMessageImpl soapMessage = (SOAPMessageImpl)msgContext.getSOAPMessage();
-
- if(cid.startsWith("cid:")) cid = cid.substring(4);
- cid = '<'+cid+'>';
-
- AttachmentPart removedPart = soapMessage.removeAttachmentByContentId(cid);
- if(null == removedPart)
- throw new WSException("Unable to remove attachment part " + cid);
-
- log.debug("Removed attachment part " + cid);
-
- // leave soap object model in a valid state
- setXOPMessage(false);
-
- }
-
- /**
- * Access an XOP attachment part by content id (CID).
- */
- public static AttachmentPart getAttachmentByCID(String cid) throws SOAPException
- {
- CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
- SOAPMessageImpl soapMessage = (SOAPMessageImpl)msgContext.getSOAPMessage();
-
- // RFC2392 requires the 'cid:' part to be stripped from the cid
- if(cid.startsWith("cid:")) cid = cid.substring(4);
- cid = '<'+cid+'>';
-
- AttachmentPart part = soapMessage.getAttachmentByContentId(cid);
- if (part == null)
- throw new WSException("Cannot find attachment part for: " + cid);
-
- return part;
- }
-
- /**
- * Create a <code>DataHandler</code> for an object.
- * The handlers content type is based on the java type.
- */
- public static DataHandler createDataHandler(XOPObject xopObject)
- {
- DataHandler dataHandler;
- Object o = xopObject.getContent();
-
- if(o instanceof DataHandler)
- {
- dataHandler = (DataHandler)o;
- }
- else if(xopObject.getContentType() != null)
- {
- dataHandler = new DataHandler(o, xopObject.getContentType());
- }
- else
- {
- dataHandler = new DataHandler(o, getContentTypeForClazz(o.getClass()));
- }
-
- return dataHandler;
- }
-
- public static String getContentTypeForClazz(Class clazz)
- {
- if(JavaUtils.isAssignableFrom(java.awt.Image.class, clazz))
- {
- return "image/jpeg";
- }
- else if (JavaUtils.isAssignableFrom(javax.xml.transform.Source.class, clazz))
- {
- return "application/xml";
- }
- else if (JavaUtils.isAssignableFrom(java.lang.String.class, clazz))
- {
- return "text/plain";
- }
- else
- {
- return "application/octet-stream";
- }
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/XOPContext.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/XOPContext.java)
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/jaxrpc (from rev
1605, branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/jaxrpc)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/jaxrpc/JBossXBContentAdapter.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/jaxrpc/JBossXBContentAdapter.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/jaxrpc/JBossXBContentAdapter.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,235 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.xop.jaxrpc;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.Constants;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.soap.attachment.ContentHandlerRegistry;
-import org.jboss.ws.core.soap.attachment.SwapableMemoryDataSource;
-import org.jboss.ws.core.utils.IOUtils;
-import org.jboss.ws.core.utils.MimeUtils;
-import org.jboss.ws.extensions.xop.XOPContext;
-import org.jboss.xb.binding.sunday.marshalling.MarshallingContext;
-import org.jboss.xb.binding.sunday.marshalling.TermBeforeMarshallingCallback;
-import org.jboss.xb.binding.sunday.unmarshalling.SchemaBinding;
-import org.jboss.xb.binding.sunday.unmarshalling.TermBeforeSetParentCallback;
-import org.jboss.xb.binding.sunday.unmarshalling.TypeBinding;
-import org.jboss.xb.binding.sunday.unmarshalling.UnmarshallingContext;
-
-import javax.activation.DataHandler;
-import javax.activation.DataSource;
-import javax.xml.namespace.QName;
-import java.io.ByteArrayInputStream;
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-
-/**
- * Adopts raw binary contents to java types.
- * This class works in conjunction with the <code>XOPUnmarshallerImpl</code>
- * and <code>XOPMarshallerImpl</code>.
- *
- * @see XOPUnmarshallerImpl
- * @see XOPMarshallerImpl
- *
- * @author Heiko Braun <heiko.braun(a)jboss.com>
- * @version $Id$
- * @since Oct 19, 2006
- */
-public class JBossXBContentAdapter implements TermBeforeMarshallingCallback,
TermBeforeSetParentCallback {
-
- private static final Logger log = Logger.getLogger(JBossXBContentAdapter.class);
- private static final QName XMIME_BASE_64 = new QName(Constants.NS_XML_MIME,
"base64Binary");
- private static final QName XOP_INCLUDE = new QName(Constants.NS_XOP,
"Include");
-
- static
- {
- // Load JAF content handlers
- ContentHandlerRegistry.register();
- }
-
- /**
- * When XOP is disabled we need to convert java types to byte[]
- * before handing off to XB.
- */
- public Object beforeMarshalling(Object object, MarshallingContext marshallingContext)
{
-
- boolean mtomDisabled = !XOPContext.isMTOMEnabled();
- boolean convertableType = object!=null && !(object instanceof byte[]);
-
- if( mtomDisabled && convertableType )
- {
- String contentType = MimeUtils.resolveMimeType(object);
- log.debug("Adopt " + object.getClass() + " to byte[], contentType
" + contentType);
-
- DataHandler dh = new DataHandler(object, contentType);
- ByteArrayOutputStream bout = new ByteArrayOutputStream();
- try
- {
- IOUtils.copyStream(bout, dh.getInputStream());
- object = bout.toByteArray();
- }
- catch (IOException e)
- {
- throw new WSException("Failed to adopt XOP content type", e);
- }
- }
-
- return object;
- }
-
- /**
- * When XOP is disabled (inlined request) we receive a byte[] from XB
- * that needs to be converted in to java type
- */
- public Object beforeSetParent(Object object, UnmarshallingContext ctx) {
-
- if(null==object)
- return object;
-
- // may be null when it's actually an encoded request ?!
- Class targetClass = ctx.resolvePropertyType();
-
- if(null==targetClass) {
- throw new WSException("Failed to resolve target property type on "+
ctx.getParticle());
- }
-
- boolean isRegularMessage = !XOPContext.isXOPMessage();
- boolean isSimpleType = (object instanceof byte[]);
- boolean doTypesMatch = ( targetClass.equals(object.getClass()) );
-
- // Handle inlined requests.
- // In this case XB treats binaries as simple types that are unmarshalled to byte[]
- // Still type conversion will be necessary.
- if( isRegularMessage && isSimpleType && !doTypesMatch)
- {
- String contentType = MimeUtils.resolveMimeType(targetClass);
- log.debug("Adopt byte[] to " + targetClass +", contentType
"+ contentType);
-
- try
- {
- DataHandler dh = new DataHandler(
- wrapAsDataSource(object, contentType)
- );
-
- if(targetClass.equals(DataHandler.class))
- object = dh;
- else
- object = dh.getContent();
- }
- catch (IOException e)
- {
- throw new WSException("Failed to adopt XOP content type", e);
- }
- }
-
- // Handle XOP encoded requests.
- // XB will use the XOPUnmarshaller callback and receive a DataHandler instance.
- // In this case we are be able to instantiate the correct content object
- // from the data handler, with the exception of content-type
'application/octet-stream'.
- // These attachments will be returned as DataHandler instances.
- else if(XOPContext.isXOPMessage() && (object instanceof DataHandler)
&& !doTypesMatch)
- {
- try
- {
- String contentType = MimeUtils.resolveMimeType(targetClass);
- log.debug("Adopt DataHandler to " + targetClass +",
contentType "+ contentType);
-
- DataHandler dh = new DataHandler(
- wrapAsDataSource(object, contentType)
- );
- object = dh.getContent();
-
- // 'application/octet-stream' will return a byte[] instead fo the
stream
- if(object instanceof InputStream)
- {
- ByteArrayOutputStream bout = new ByteArrayOutputStream();
- dh.writeTo(bout);
- object = bout.toByteArray();
- }
- }
- catch (IOException e)
- {
- throw new WSException("Failed to adopt XOP content type", e);
- }
- }
-
- return object;
- }
-
- private DataSource wrapAsDataSource(Object object, String contentType) throws
IOException {
-
- DataSource ds;
-
- if(object instanceof byte[])
- {
- ds = new SwapableMemoryDataSource(new ByteArrayInputStream((byte[])object),
contentType);
- }
- else if(object instanceof DataHandler)
- {
- ds = new SwapableMemoryDataSource(((DataHandler)object).getInputStream(),
contentType);
- }
- else
- {
- throw new IllegalArgumentException("Failed to wrap as data source:
"+object.getClass());
- }
-
- return ds;
- }
-
- /**
- * A factory method that registers the XB (un)marshalling adapters with schema
binding.
- * These adapters convert java types into byte[] and reverse,
- * in order to match the jaxrpc-mapping declaration in case we receive or send an
inlined request.
- */
- public static void register(SchemaBinding schemaBinding)
- {
- JBossXBContentAdapter contentAdapter = new JBossXBContentAdapter();
-
- // base64 simple types
- TypeBinding base64Type =
schemaBinding.getType(org.jboss.xb.binding.Constants.QNAME_BASE64BINARY);
- base64Type.setBeforeMarshallingCallback( contentAdapter );
- base64Type.setBeforeSetParentCallback( contentAdapter );
-
- // xmime complex types
- TypeBinding xmimeBase64Type = schemaBinding.getType(XMIME_BASE_64);
- if(xmimeBase64Type!=null)
- {
- xmimeBase64Type.setBeforeMarshallingCallback( contentAdapter );
- xmimeBase64Type.setBeforeSetParentCallback( contentAdapter );
-
- // xop:Include
- /*ModelGroupBinding modelGroup =
(ModelGroupBinding)xmimeBase64Type.getParticle().getTerm();
- ParticleBinding particle =
(ParticleBinding)modelGroup.getParticles().iterator().next();
- ElementBinding xopInclude = (ElementBinding)particle.getTerm();
-
- if(! xopInclude.getQName().equals(XOP_INCLUDE))
- throw new WSException("Looks like the JBossXB XOP implementation has
changed, please open a JIRA issue");
-
- xopInclude.setBeforeMarshallingCallback(contentAdapter);
- xopInclude.setBeforeSetParentCallback(contentAdapter);
- */
- }
- }
-
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/jaxrpc/JBossXBContentAdapter.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/jaxrpc/JBossXBContentAdapter.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/jaxrpc/XOPMarshallerImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/jaxrpc/XOPMarshallerImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/jaxrpc/XOPMarshallerImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,106 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.xop.jaxrpc;
-
-import org.jboss.logging.Logger;
-import org.jboss.util.NotImplementedException;
-import org.jboss.ws.core.CommonMessageContext;
-import org.jboss.ws.core.soap.MessageContextAssociation;
-import org.jboss.ws.core.soap.SOAPMessageImpl;
-import org.jboss.ws.core.soap.attachment.ContentHandlerRegistry;
-import org.jboss.ws.core.soap.attachment.MimeConstants;
-import org.jboss.ws.extensions.xop.XOPContext;
-import org.jboss.xb.binding.sunday.xop.XOPMarshaller;
-import org.jboss.xb.binding.sunday.xop.XOPObject;
-
-import javax.activation.DataHandler;
-import javax.xml.namespace.QName;
-import javax.xml.soap.AttachmentPart;
-
-/**
- * The XOPUnmarshallerImpl allows callbacks from the binding layer towards the
- * soap processing components in order to optimize binary processing.
- *
- * @see org.jboss.ws.extensions.xop.jaxrpc.XOPUnmarshallerImpl
- *
- * @author Heiko Braun <heiko.braun(a)jboss.com>
- * @since May 9, 2006
- * @version $Id$
- */
-public class XOPMarshallerImpl implements XOPMarshaller {
-
- private static final Logger log = Logger.getLogger(XOPMarshallerImpl.class);
-
- static
- {
- // Load JAF content handlers
- ContentHandlerRegistry.register();
- }
-
- public boolean isXOPPackage()
- {
- return XOPContext.isXOPMessage();
- }
-
- public String addMtomAttachment(XOPObject obj, String elementNamespace, String
elementName)
- {
-
- CommonMessageContext msgContext =
(CommonMessageContext)MessageContextAssociation.peekMessageContext();
- SOAPMessageImpl soapMessage = (SOAPMessageImpl)msgContext.getSOAPMessage();
-
- QName xmlName = new QName(elementNamespace, elementName);
- log.debug("serialize: [xmlName=" + xmlName + "]");
-
- String cid =
soapMessage.getCidGenerator().generateFromName(xmlName.getLocalPart());
-
- DataHandler dataHandler = XOPContext.createDataHandler(obj);
- AttachmentPart xopPart = soapMessage.createAttachmentPart(dataHandler);
- xopPart.addMimeHeader(MimeConstants.CONTENT_ID, '<'+cid+'>');
// RFC2392 requirement
- soapMessage.addAttachmentPart(xopPart);
-
- log.debug("Created attachment part " +cid+", with content-type
" +xopPart.getContentType());
-
- return "cid:" + cid;
-
- }
-
- public String addMtomAttachment(byte[] data, String elementNamespace, String
elementName)
- {
- /*
- TODO: this requires a java mail upgrade
- ByteArrayDataSource ds = new ByteArrayDataSource(data,
MimeConstants.TYPE_APPLICATION_OCTET_STREAM);
- return addMtomAttachment(
- new DataHandler(
- ds, MimeConstants.TYPE_APPLICATION_OCTET_STREAM),
- elementNamespace, elementName
- );*/
-
- throw new NotImplementedException("Not implemented yet");
- }
-
- public String addSwaRefAttachment(Object obj)
- {
- throw new NotImplementedException();
- }
-
-
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/jaxrpc/XOPMarshallerImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/jaxrpc/XOPMarshallerImpl.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/jaxrpc/XOPScanner.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/jaxrpc/XOPScanner.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/jaxrpc/XOPScanner.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,146 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.xop.jaxrpc;
-
-import org.apache.xerces.xs.*;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * Scans complex type definitions for nested XOP type declarations.
- * A XOP type declaration is identified as a complex type
- * that derives from xsd:base64Binary, i.e:
- *
- * <code> <pre>
- * <xs:complexType name="MyXOPElement" >
- * <xs:simpleContent>
- * <xs:extension base="xs:base64Binary" >
- * <xs:attribute ref="xmime:contentType" />
- * </xs:extension>
- * </xs:simpleContent>
- * </xs:complexType>
- * </pre></code>
- *
- * @author Heiko Braun <heiko.braun(a)jboss.com>
- * @since Jun 9, 2006
- * @version $Id$
- */
-public class XOPScanner {
-
- // avoid circular scans
- private List<String> scannedItems = new ArrayList<String>();
- private static final String BASE64_BINARY = "base64Binary";
-
- /**
- * Query a complex type for nested XOP type definitions.
- */
- public XSTypeDefinition findXOPTypeDef(XSTypeDefinition typeDef)
- {
- if(typeDef==null)
- return typeDef;
- XSTypeDefinition result = null;
- String name = typeDef.getName();
- String namespace = typeDef.getNamespace()!=null ?
typeDef.getNamespace():"";
-
- if(typeDef instanceof XSSimpleTypeDefinition &&
BASE64_BINARY.equals(name))
- {
- return typeDef;
- }
- else if(typeDef instanceof XSComplexTypeDefinition)
- {
- XSComplexTypeDefinition complexTypeDef = (XSComplexTypeDefinition)typeDef;
- if(name!=null)
- {
- String typeKey = namespace+":"+name;
-
- if(scannedItems.contains(typeKey))
- {
- return null;
- }
- else
- {
- scannedItems.add(typeKey);
- }
- }
-
- // An XOP parameter is detected if it is a complex type
- // that derives from xsd:base64Binary
- if (complexTypeDef.getSimpleType() != null)
- {
- String typeName = complexTypeDef.getSimpleType().getName();
- if (BASE64_BINARY.equals(typeName))
- return complexTypeDef;
- }
- else
- {
-
- XSModelGroup xm = null;
- if(complexTypeDef.getContentType() !=
XSComplexTypeDefinition.CONTENTTYPE_EMPTY)
- {
- XSParticle xp = complexTypeDef.getParticle();
- if (xp != null)
- {
- XSTerm xterm = xp.getTerm();
- if(xterm instanceof XSModelGroup)
- {
- xm = (XSModelGroup)xterm;
- //System.out.println("xm -> " + xm);
-
- XSObjectList xo = xm.getParticles();
-
- // interate over nested particles
- for(int i=0; i<xm.getParticles().getLength(); i++ )
- {
- XSTerm xsterm = ((XSParticle)xo.item(i)).getTerm();
-
- // Can be either XSModelGroup, XSWildcard, XSElementDeclaration
- // We only proceed with XSElementDeclaration
- if(xsterm instanceof XSElementDeclaration)
- {
- XSElementDeclaration xe = (XSElementDeclaration)xsterm;
- XSTypeDefinition nestedTypeDef = xe.getTypeDefinition();
-
- //System.out.println("Query nested -> " +
xe.getName());
- result = findXOPTypeDef(nestedTypeDef);
- }
- }
- }
- }
- }
-
- }
-
- //System.out.println("result -> " + result);
-
- }
-
- return result;
-
- }
-
- public void reset()
- {
- scannedItems.clear();
- }
-
-}
\ No newline at end of file
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/jaxrpc/XOPScanner.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/jaxrpc/XOPScanner.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/jaxrpc/XOPUnmarshallerImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/jaxrpc/XOPUnmarshallerImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/jaxrpc/XOPUnmarshallerImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,106 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.extensions.xop.jaxrpc;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.Constants;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.soap.attachment.ContentHandlerRegistry;
-import org.jboss.ws.extensions.xop.XOPContext;
-import org.jboss.xb.binding.sunday.xop.XOPObject;
-import org.jboss.xb.binding.sunday.xop.XOPUnmarshaller;
-
-import javax.activation.DataHandler;
-import javax.xml.namespace.QName;
-import javax.xml.soap.AttachmentPart;
-import javax.xml.soap.SOAPException;
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-
-/**
- * The XOPUnmarshallerImpl allows callbacks from the binding layer towards the
- * soap processing components in order to optimize binary processing.
- *
- * @see XOPMarshallerImpl
- *
- * @author Heiko Braun <heiko.braun(a)jboss.com>
- * @since May 9, 2006
- * @version $Id$
- */
-public class XOPUnmarshallerImpl implements XOPUnmarshaller {
-
- private static final Logger log = Logger.getLogger(XOPUnmarshallerImpl.class);
- private static final QName XOP_INCLUDE = new QName(Constants.NS_XOP,
"Include");
-
- static
- {
- // Load JAF content handlers
- ContentHandlerRegistry.register();
- }
-
- public boolean isXOPPackage()
- {
- return XOPContext.isXOPMessage();
- }
-
- public XOPObject getAttachmentAsDataHandler(String cid)
- {
- try
- {
- AttachmentPart part = XOPContext.getAttachmentByCID(cid);
- DataHandler dataHandler = part.getDataHandler();
- String contentType = dataHandler.getContentType();
-
- // Wrapping the DataHandler shields XB from the JAF dependency
- XOPObject xopObject = new XOPObject(dataHandler);
- xopObject.setContentType(contentType);
-
- return xopObject;
- }
- catch(SOAPException e)
- {
- throw new WSException("Failed to access attachment part", e);
- }
- }
-
- public byte[] getAttachmentAsByteArray(String cid)
- {
- try
- {
- AttachmentPart part = XOPContext.getAttachmentByCID(cid);
- DataHandler dh = part.getDataHandler();
- ByteArrayOutputStream bout = new ByteArrayOutputStream();
- dh.writeTo(bout);
-
- return bout.toByteArray();
- }
- catch (SOAPException ex)
- {
- throw new WSException(ex);
- }
- catch(IOException e)
- {
- throw new WSException(e);
- }
-
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/jaxrpc/XOPUnmarshallerImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/extensions/xop/jaxrpc/XOPUnmarshallerImpl.java)
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/SecurityAdaptorFactoryImpl.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/SecurityAdaptorFactoryImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/SecurityAdaptorFactoryImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -26,8 +26,8 @@
import java.security.Principal;
import org.jboss.security.SecurityAssociation;
-import org.jboss.ws.wsse.SecurityAdaptor;
-import org.jboss.ws.wsse.SecurityAdaptorFactory;
+import org.jboss.ws.extensions.security.SecurityAdaptor;
+import org.jboss.ws.extensions.security.SecurityAdaptorFactory;
/**
* A Jboss specific SecurityAdaptorFactory
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42 (from rev
1605, branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ApplicationMetaDataAdaptor.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ApplicationMetaDataAdaptor.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ApplicationMetaDataAdaptor.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,126 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.integration.jboss42;
-
-// $Id: ApplicationMetaDataAdaptor.java 354 2006-05-16 13:46:47Z thomas.diesler(a)jboss.com
$
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.jboss.metadata.ApplicationMetaData;
-import org.jboss.metadata.BeanMetaData;
-import org.jboss.metadata.EjbPortComponentMetaData;
-import org.jboss.metadata.MessageDrivenMetaData;
-import org.jboss.metadata.SessionMetaData;
-import org.jboss.metadata.WebMetaData;
-import org.jboss.ws.metadata.j2ee.UnifiedApplicationMetaData;
-import org.jboss.ws.metadata.j2ee.UnifiedBeanMetaData;
-import org.jboss.ws.metadata.j2ee.UnifiedEjbPortComponentMetaData;
-import org.jboss.ws.metadata.j2ee.UnifiedMessageDrivenMetaData;
-import org.jboss.ws.metadata.j2ee.UnifiedSessionMetaData;
-import org.jboss.ws.metadata.j2ee.UnifiedApplicationMetaData.PublishLocationAdapter;
-
-/**
- * Build container independent application meta data
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 05-May-2006
- */
-public class ApplicationMetaDataAdaptor
-{
- public static UnifiedApplicationMetaData
buildUnifiedApplicationMetaData(ApplicationMetaData apmd)
- {
- UnifiedApplicationMetaData umd = new UnifiedApplicationMetaData();
- buildUnifiedBeanMetaData(umd, apmd);
- umd.setConfigName(apmd.getConfigName());
- umd.setConfigFile(apmd.getConfigFile());
- umd.setWebServiceContextRoot(apmd.getWebServiceContextRoot());
- umd.setSecurityDomain(apmd.getSecurityDomain());
- umd.setPublishLocationAdapter(getPublishLocationAdpater(apmd));
- return umd;
- }
-
- private static PublishLocationAdapter getPublishLocationAdpater(final
ApplicationMetaData apmd)
- {
- return new PublishLocationAdapter ()
- {
- public String getWsdlPublishLocationByName(String name)
- {
- return apmd.getWsdlPublishLocationByName(name);
- }
- };
- }
-
- private static void buildUnifiedBeanMetaData(UnifiedApplicationMetaData umd,
ApplicationMetaData metaData)
- {
- List<UnifiedBeanMetaData> beans = new
ArrayList<UnifiedBeanMetaData>();
- Iterator it = metaData.getEnterpriseBeans();
- while (it.hasNext())
- {
- BeanMetaData bmd = (BeanMetaData)it.next();
- UnifiedBeanMetaData ubmd = buildUnifiedBeanMetaData(bmd);
- if (ubmd != null)
- {
- beans.add(ubmd);
- }
- }
- umd.setEnterpriseBeans(beans);
- }
-
- private static UnifiedBeanMetaData buildUnifiedBeanMetaData(BeanMetaData bmd)
- {
- UnifiedBeanMetaData ubmd = null;
- if (bmd instanceof SessionMetaData)
- {
- ubmd = new UnifiedSessionMetaData();
- }
- else if (bmd instanceof MessageDrivenMetaData)
- {
- ubmd = new UnifiedMessageDrivenMetaData();
-
((UnifiedMessageDrivenMetaData)ubmd).setDestinationJndiName(((MessageDrivenMetaData)bmd).getDestinationJndiName());
- }
-
- if (ubmd != null)
- {
- ubmd.setEjbName(bmd.getEjbName());
- ubmd.setEjbClass(bmd.getEjbClass());
- ubmd.setServiceEndpoint(bmd.getServiceEndpoint());
- ubmd.setHome(bmd.getHome());
- ubmd.setLocalHome(bmd.getLocalHome());
- ubmd.setJndiName(bmd.getJndiName());
- ubmd.setLocalJndiName(bmd.getLocalJndiName());
-
- EjbPortComponentMetaData pcmd = bmd.getPortComponent();
- if (pcmd != null)
- {
- UnifiedEjbPortComponentMetaData upcmd = new
UnifiedEjbPortComponentMetaData();
- upcmd.setPortComponentName(pcmd.getPortComponentName());
- upcmd.setPortComponentURI(pcmd.getPortComponentURI());
- upcmd.setAuthMethod(pcmd.getAuthMethod());
- upcmd.setTransportGuarantee(pcmd.getTransportGuarantee());
- ubmd.setPortComponent(upcmd);
- }
- }
- return ubmd;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ApplicationMetaDataAdaptor.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ApplicationMetaDataAdaptor.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptor.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptor.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptor.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,184 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.integration.jboss42;
-
-//$Id: WebServiceDeployer.java 377 2006-05-18 13:57:29Z thomas.diesler(a)jboss.com $
-
-import org.jboss.deployment.DeploymentInfo;
-import org.jboss.deployment.MainDeployerMBean;
-import org.jboss.deployment.SubDeployerInterceptorSupport;
-import org.jboss.kernel.spi.registry.KernelRegistry;
-import org.jboss.kernel.spi.registry.KernelRegistryEntry;
-import org.jboss.metadata.WebMetaData;
-import org.jboss.mx.server.Invocation;
-import org.jboss.mx.util.MBeanProxy;
-import org.jboss.ws.core.server.KernelLocator;
-import org.jboss.ws.deployment.ServiceEndpointDeployer;
-import org.jboss.ws.deployment.ServiceEndpointPublisher;
-import org.jboss.ws.deployment.UnifiedDeploymentInfo;
-
-/**
- * A deployer service that manages WS4EE compliant Web Services
- *
- * This service is called from the {@see org.jboss.ws.metadata.WebServiceInterceptor}
- *
- * @author Thomas.Diesler(a)jboss.org
- * @author Dimitris.Andreadis(a)jboss.org
- * @since 15-Jan-2005
- */
-public abstract class DeployerInterceptor extends SubDeployerInterceptorSupport
-{
- // The main deployer
- private MainDeployerMBean mainDeployer;
-
- /** Create the deployer service
- */
- protected void createService() throws Exception
- {
- mainDeployer = (MainDeployerMBean)MBeanProxy.get(MainDeployerMBean.class,
MainDeployerMBean.OBJECT_NAME, server);
- super.attach();
- }
-
- /** Destroy the deployer service
- */
- protected void destroyService()
- {
- super.detach();
- }
-
- /** Overwrite to create the webservice
- */
- protected Object create(Invocation invocation, DeploymentInfo di) throws Throwable
- {
- log.debug("create: " + di.url);
-
- Object retn = invokeNext(invocation);
-
- if (isWebserviceDeployment(di))
- {
- UnifiedDeploymentInfo udi = createUnifiedDeploymentInfo(di);
- di.context.put(UnifiedDeploymentInfo.class.getName(), udi);
- getServiceEndpointDeployer().create(udi);
- }
-
- return retn;
- }
-
- /** Overwrite to start the webservice
- */
- protected Object start(Invocation invocation, DeploymentInfo di) throws Throwable
- {
- log.debug("start: " + di.url);
-
- Object retn = invokeNext(invocation);
-
- UnifiedDeploymentInfo udi = getServiceEndpointDeployment(di);
- if (udi != null)
- {
- // late initialization of the web context loader
- if (di.metaData instanceof WebMetaData)
- {
- ClassLoader classLoader = ((WebMetaData)di.metaData).getContextLoader();
- udi.ucl = classLoader;
- }
-
- getServiceEndpointDeployer().start(udi);
- }
-
- return retn;
- }
-
- /** Overwrite to stop the webservice
- */
- protected Object stop(Invocation invocation, DeploymentInfo di) throws Throwable
- {
- log.debug("stop: " + di.url);
-
- UnifiedDeploymentInfo udi = getServiceEndpointDeployment(di);
- if (udi != null)
- {
- getServiceEndpointDeployer().stop(udi);
- }
-
- return invokeNext(invocation);
- }
-
- /** Overwrite to destroy the webservice
- */
- protected Object destroy(Invocation invocation, DeploymentInfo di) throws Throwable
- {
- log.debug("destroy: " + di.url);
-
- UnifiedDeploymentInfo udi = getServiceEndpointDeployment(di);
- if (udi != null)
- {
- getServiceEndpointDeployer().destroy(udi);
- }
-
- return invokeNext(invocation);
- }
-
- protected ServiceEndpointDeployer getServiceEndpointDeployer()
- {
- KernelRegistry registry = KernelLocator.getKernel().getRegistry();
- KernelRegistryEntry entry = registry.getEntry(ServiceEndpointDeployer.BEAN_NAME);
- return (ServiceEndpointDeployer)entry.getTarget();
- }
-
- protected ServiceEndpointPublisher getServiceEndpointPublisher()
- {
- KernelRegistry registry = KernelLocator.getKernel().getRegistry();
- KernelRegistryEntry entry = registry.getEntry(ServiceEndpointPublisher.BEAN_NAME);
- return (ServiceEndpointPublisher)entry.getTarget();
- }
-
- /** Return true if the deployment contains a web service endpoint
- */
- protected abstract boolean isWebserviceDeployment(DeploymentInfo di);
-
- protected abstract UnifiedDeploymentInfo createUnifiedDeploymentInfo(DeploymentInfo
di) throws Throwable;
-
- protected UnifiedDeploymentInfo getServiceEndpointDeployment(DeploymentInfo di)
- {
- return
(UnifiedDeploymentInfo)di.context.get(UnifiedDeploymentInfo.class.getName());
- }
-
- /** Handle all webservice deployment exceptions.
- * You can either simply logs the problem and keep the EJB/WAR module
- * alive or undeploy properly.
- */
- protected void handleStartupException(DeploymentInfo di, Throwable th)
- {
- log.error("Cannot startup webservice for: " + di.shortName, th);
- mainDeployer.undeploy(di);
- }
-
- /** Handle all webservice deployment exceptions.
- *
- * You can either simply logs the problem and keep the EJB/WAR module
- * alive or undeploy properly.
- */
- protected void handleShutdownException(String moduleName, Throwable th)
- {
- log.error("Cannot shutdown webservice for: " + moduleName, th);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptor.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptor.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,70 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.integration.jboss42;
-
-//$Id: WebServiceDeployerEJB.java 377 2006-05-18 13:57:29Z thomas.diesler(a)jboss.com $
-
-import java.io.IOException;
-import java.net.URL;
-
-import org.jboss.deployment.DeploymentInfo;
-import org.jboss.mx.server.Invocation;
-import org.jboss.ws.deployment.UnifiedDeploymentInfo;
-import org.jboss.ws.metadata.umdm.UnifiedMetaData;
-
-/**
- * A deployer service that manages WS4EE compliant Web-Services for EJB Endpoints
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 15-Jan-2005
- */
-public abstract class DeployerInterceptorEJB extends DeployerInterceptor
-{
- protected Object create(Invocation invocation, DeploymentInfo di) throws Throwable
- {
- Object retObj = super.create(invocation, di);
-
- UnifiedDeploymentInfo udi = getServiceEndpointDeployment(di);
- if (udi != null)
- {
- UnifiedMetaData wsMetaData =
getServiceEndpointDeployer().getUnifiedMetaData(udi);
- udi.localUrl = generateWebDeployment(di, wsMetaData);
- udi.context.put(DeploymentInfo.class.getName(), di);
- getServiceEndpointPublisher().publishServiceEndpoint(udi);
- }
-
- return retObj;
- }
-
- protected abstract URL generateWebDeployment(DeploymentInfo di, UnifiedMetaData
wsMetaData) throws IOException;
-
- protected Object destroy(Invocation invocation, DeploymentInfo di) throws Throwable
- {
- UnifiedDeploymentInfo udi = getServiceEndpointDeployment(di);
- if (udi != null)
- {
- getServiceEndpointPublisher().destroyServiceEndpoint(udi);
- }
-
- return super.destroy(invocation, di);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB21.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB21.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB21.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,119 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.integration.jboss42;
-
-//$Id: WebServiceDeployerEJB21.java 377 2006-05-18 13:57:29Z thomas.diesler(a)jboss.com $
-
-import java.io.IOException;
-import java.net.URL;
-import java.util.Iterator;
-
-import org.jboss.deployment.DeploymentInfo;
-import org.jboss.metadata.ApplicationMetaData;
-import org.jboss.metadata.BeanMetaData;
-import org.jboss.ws.WSException;
-import org.jboss.ws.deployment.JSR109Deployment;
-import org.jboss.ws.deployment.JSR181Deployment;
-import org.jboss.ws.deployment.UnifiedDeploymentInfo;
-import org.jboss.ws.metadata.umdm.UnifiedMetaData;
-
-/**
- * A deployer service that manages WS4EE compliant Web-Services for EJB-2.1 Endpoints
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 15-Jan-2005
- */
-public class DeployerInterceptorEJB21 extends DeployerInterceptorEJB implements
DeployerInterceptorEJB21MBean
-{
- protected UnifiedDeploymentInfo createUnifiedDeploymentInfo(DeploymentInfo di) throws
Exception
- {
- UnifiedDeploymentInfo udi;
- URL webservicesURL = getWebservicesDescriptor(di);
- if (webservicesURL != null)
- {
- udi = new JSR109Deployment(UnifiedDeploymentInfo.DeploymentType.JSR109_EJB21,
webservicesURL);
- DeploymentInfoAdaptor.buildDeploymentInfo(udi, di);
- }
- else
- {
- udi = new JSR181Deployment(UnifiedDeploymentInfo.DeploymentType.JSR181_EJB21);
- DeploymentInfoAdaptor.buildDeploymentInfo(udi, di);
- }
- return udi;
- }
-
- /** Return true if the deployment is a web service endpoint
- */
- protected boolean isWebserviceDeployment(DeploymentInfo di)
- {
- ApplicationMetaData applMetaData = (ApplicationMetaData)di.metaData;
- boolean isWebserviceDeployment = applMetaData.isWebServiceDeployment();
-
- // Check if we have a webservices.xml descriptor
- if (isWebserviceDeployment == false)
- {
- isWebserviceDeployment = getWebservicesDescriptor(di) != null;
- }
-
- // Check if the ejb-jar contains annotated endpoints
- if (isWebserviceDeployment == false)
- {
- try
- {
- Iterator itBeans = applMetaData.getEnterpriseBeans();
- while (itBeans.hasNext() && isWebserviceDeployment == false)
- {
- BeanMetaData beanMetaData = (BeanMetaData)itBeans.next();
- String ejbClassName = beanMetaData.getEjbClass();
- Class ejbClass = di.annotationsCl.loadClass(ejbClassName);
- isWebserviceDeployment =
ejbClass.isAnnotationPresent(javax.jws.WebService.class);
- }
- }
- catch (RuntimeException e)
- {
- throw e;
- }
- catch (Exception e)
- {
- throw new WSException(e);
- }
- }
-
- applMetaData.setWebServiceDeployment(isWebserviceDeployment);
- return isWebserviceDeployment;
- }
-
- /**
- * Get the resource name of the webservices.xml descriptor.
- */
- protected URL getWebservicesDescriptor(DeploymentInfo di)
- {
- return di.localCl.findResource("META-INF/webservices.xml");
- }
-
- protected URL generateWebDeployment(DeploymentInfo di, UnifiedMetaData wsMetaData)
throws IOException
- {
- ServiceEndpointGeneratorEJB21 generator = new ServiceEndpointGeneratorEJB21();
- return generator.generatWebDeployment(di, wsMetaData);
- }
-
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB21.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB21.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB21MBean.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB21MBean.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB21MBean.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,37 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.integration.jboss42;
-
-import javax.management.ObjectName;
-
-import org.jboss.deployment.SubDeployerInterceptorMBean;
-import org.jboss.ws.core.utils.ObjectNameFactory;
-
-/**
- * MBean interface.
- * @since 19-Jan-2005
- */
-public interface DeployerInterceptorEJB21MBean extends SubDeployerInterceptorMBean
-{
- //default object name
- public static final ObjectName OBJECT_NAME =
ObjectNameFactory.create("jboss.ws:service=WebServiceDeployerEJB21");
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB21MBean.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB21MBean.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB3.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB3.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB3.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,129 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.integration.jboss42;
-
-// $Id: WebServiceDeployerEJB3.java 377 2006-05-18 13:57:29Z thomas.diesler(a)jboss.com $
-
-import java.io.IOException;
-import java.net.URL;
-import java.util.ArrayList;
-
-import javax.jws.WebService;
-import javax.management.MBeanServer;
-import javax.management.ObjectName;
-
-import org.jboss.deployment.DeploymentInfo;
-import org.jboss.ejb3.Ejb3ModuleMBean;
-import org.jboss.ejb3.stateless.StatelessContainer;
-import org.jboss.mx.util.MBeanProxy;
-import org.jboss.mx.util.MBeanProxyCreationException;
-import org.jboss.mx.util.MBeanServerLocator;
-import org.jboss.ws.WSException;
-import org.jboss.ws.deployment.JSR181Deployment;
-import org.jboss.ws.deployment.UnifiedDeploymentInfo;
-import org.jboss.ws.metadata.j2ee.UnifiedApplicationMetaData;
-import org.jboss.ws.metadata.j2ee.UnifiedBeanMetaData;
-import org.jboss.ws.metadata.umdm.UnifiedMetaData;
-
-/**
- * A deployer service that manages WS4EE compliant Web-Services for EJB3 Endpoints
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 10-May-2005
- */
-public class DeployerInterceptorEJB3 extends DeployerInterceptorEJB implements
DeployerInterceptorEJB3MBean
-{
- protected UnifiedDeploymentInfo createUnifiedDeploymentInfo(DeploymentInfo di) throws
Exception
- {
- UnifiedDeploymentInfo udi = new
JSR181Deployment(UnifiedDeploymentInfo.DeploymentType.JSR181_EJB3);
- DeploymentInfoAdaptor.buildDeploymentInfo(udi, di);
-
- Ejb3ModuleMBean ejb3Module = getEJB3Module(udi.deployedObject);
-
- // The container objects below provide access to all of the ejb metadata
- ArrayList<UnifiedBeanMetaData> beans = new
ArrayList<UnifiedBeanMetaData>();
- for (Object container : ejb3Module.getContainers().values())
- {
- if (container instanceof StatelessContainer)
- {
- StatelessContainer slc = (StatelessContainer)container;
- UnifiedBeanMetaData uslc = new UnifiedBeanMetaData();
- uslc.setEjbName(slc.getEjbName());
- uslc.setEjbClass(slc.getBeanClassName());
- beans.add(uslc);
- }
- }
-
- UnifiedApplicationMetaData appMetaData = new UnifiedApplicationMetaData();
- appMetaData.setEnterpriseBeans(beans);
- udi.metaData = appMetaData;
-
- return udi;
- }
-
- /** Return true if the deployment is a web service endpoint
- */
- protected boolean isWebserviceDeployment(DeploymentInfo di)
- {
- boolean isWebserviceDeployment = false;
-
- // Check if the ejb3 contains annotated endpoints
- Ejb3ModuleMBean ejb3Module = getEJB3Module(di.deployedObject);
- for (Object manager : ejb3Module.getContainers().values())
- {
- if (manager instanceof StatelessContainer)
- {
- StatelessContainer container = (StatelessContainer)manager;
- if (container.resolveAnnotation(WebService.class) != null)
- {
- isWebserviceDeployment = true;
- break;
- }
- }
- }
-
- return isWebserviceDeployment;
- }
-
- private Ejb3ModuleMBean getEJB3Module(ObjectName objectName)
- {
- Ejb3ModuleMBean ejb3Module;
- try
- {
- MBeanServer server = MBeanServerLocator.locateJBoss();
- ejb3Module = (Ejb3ModuleMBean)MBeanProxy.get(Ejb3ModuleMBean.class, objectName,
server);
- if (ejb3Module == null)
- throw new WSException("Cannot obtain EJB3 module: " + objectName);
-
- return ejb3Module;
- }
- catch (MBeanProxyCreationException ex)
- {
- throw new WSException("Cannot obtain proxy to EJB3 module");
- }
- }
-
- protected URL generateWebDeployment(DeploymentInfo di, UnifiedMetaData wsMetaData)
throws IOException
- {
- return new ServiceEndpointGeneratorEJB3().generatWebDeployment(di, wsMetaData);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB3.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB3.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB3MBean.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB3MBean.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB3MBean.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,37 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.integration.jboss42;
-
-import javax.management.ObjectName;
-
-import org.jboss.deployment.SubDeployerInterceptorMBean;
-import org.jboss.ws.core.utils.ObjectNameFactory;
-
-/**
- * MBean interface.
- * @since 19-Jan-2005
- */
-public interface DeployerInterceptorEJB3MBean extends SubDeployerInterceptorMBean
-{
- //default object name
- public static final ObjectName OBJECT_NAME =
ObjectNameFactory.create("jboss.ws:service=WebServiceDeployerEJB3");
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB3MBean.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB3MBean.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorJSE.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorJSE.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorJSE.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,162 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.integration.jboss42;
-
-// $Id: WebServiceDeployerJSE.java 377 2006-05-18 13:57:29Z thomas.diesler(a)jboss.com $
-
-import java.net.URL;
-import java.util.Iterator;
-import java.util.Map;
-
-import org.jboss.deployment.DeploymentInfo;
-import org.jboss.metadata.WebMetaData;
-import org.jboss.mx.server.Invocation;
-import org.jboss.ws.WSException;
-import org.jboss.ws.deployment.JSR109Deployment;
-import org.jboss.ws.deployment.JSR181Deployment;
-import org.jboss.ws.deployment.ServiceEndpointPublisher;
-import org.jboss.ws.deployment.UnifiedDeploymentInfo;
-import org.jboss.ws.deployment.UnifiedDeploymentInfo.DeploymentType;
-import org.jboss.ws.metadata.umdm.EndpointMetaData;
-import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
-import org.jboss.ws.metadata.umdm.ServiceMetaData;
-import org.jboss.ws.metadata.umdm.UnifiedMetaData;
-
-/**
- * A deployer service that manages WS4EE compliant Web Services for WAR
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 15-Jan-2005
- */
-public class DeployerInterceptorJSE extends DeployerInterceptor implements
DeployerInterceptorJSEMBean
-{
- protected UnifiedDeploymentInfo createUnifiedDeploymentInfo(DeploymentInfo di) throws
Exception
- {
- UnifiedDeploymentInfo udi;
-
- DeploymentType type =
(DeploymentType)di.context.get("UnifiedDeploymentInfo.Type");
- if (type == UnifiedDeploymentInfo.DeploymentType.JSR109_JSE)
- {
- URL webservicesURL = getWebservicesDescriptor(di);
- udi = new JSR109Deployment(UnifiedDeploymentInfo.DeploymentType.JSR109_JSE,
webservicesURL);
- DeploymentInfoAdaptor.buildDeploymentInfo(udi, di);
-
- }
- else if (type == UnifiedDeploymentInfo.DeploymentType.JSR181_JSE)
- {
- udi = new JSR181Deployment(UnifiedDeploymentInfo.DeploymentType.JSR181_JSE);
- DeploymentInfoAdaptor.buildDeploymentInfo(udi, di);
- }
- else
- {
- throw new WSException("Unexpected type: " + type);
- }
-
- return udi;
- }
-
- /** Overwrite to create the webservice
- *
- * This implemantation modifies the servlet entries in web.xml
- */
- protected Object create(Invocation invocation, DeploymentInfo di) throws Throwable
- {
- Object retn = super.create(invocation, di);
-
- UnifiedDeploymentInfo udi = getServiceEndpointDeployment(di);
- if (udi != null)
- {
- ServiceEndpointPublisher endpointPublisher = getServiceEndpointPublisher();
- Map<String, String> sepTargetMap = endpointPublisher.rewriteWebXML(udi);
- updateServiceEndpointTargetBeans(udi, sepTargetMap);
- }
- return retn;
- }
-
- private void updateServiceEndpointTargetBeans(UnifiedDeploymentInfo udi,
Map<String, String> sepTargetMap)
- {
- UnifiedMetaData wsMetaData = getServiceEndpointDeployer().getUnifiedMetaData(udi);
-
- for (ServiceMetaData serviceMetaData : wsMetaData.getServices())
- {
- for (EndpointMetaData epMetaData : serviceMetaData.getEndpoints())
- {
- ServerEndpointMetaData sepMetaData = (ServerEndpointMetaData)epMetaData;
- String targetBean = sepTargetMap.get(sepMetaData.getLinkName());
- sepMetaData.setServiceEndpointImplName(targetBean);
- }
- }
- }
-
- /** Return true if the deployment is a web service endpoint
- */
- protected boolean isWebserviceDeployment(DeploymentInfo di)
- {
- WebMetaData webMetaData = (WebMetaData)di.metaData;
- boolean isWebserviceDeployment = webMetaData.isWebServiceDeployment();
-
- // Check if we have a webservices.xml descriptor
- if (isWebserviceDeployment == false)
- {
- if (getWebservicesDescriptor(di) != null)
- {
- di.context.put("UnifiedDeploymentInfo.Type",
UnifiedDeploymentInfo.DeploymentType.JSR109_JSE);
- isWebserviceDeployment = true;
- }
- }
-
- // Check if the web.xml contains annotated endpoint impl
- if (isWebserviceDeployment == false)
- {
- Map servletClassMap = webMetaData.getServletClassMap();
- Iterator<String> it = servletClassMap.values().iterator();
- while (it.hasNext() && isWebserviceDeployment == false)
- {
- String servletClassName = it.next();
- try
- {
- Class servletClass = di.annotationsCl.loadClass(servletClassName);
- if (servletClass.isAnnotationPresent(javax.jws.WebService.class))
- {
- di.context.put("UnifiedDeploymentInfo.Type",
UnifiedDeploymentInfo.DeploymentType.JSR181_JSE);
- isWebserviceDeployment = true;
- }
- }
- catch (ClassNotFoundException ex)
- {
- log.warn("Cannot load servlet class: " + servletClassName);
- }
- }
- }
-
- webMetaData.setWebServiceDeployment(isWebserviceDeployment);
- return isWebserviceDeployment;
- }
-
- /**
- * Get the resource name of the webservices.xml descriptor.
- */
- protected URL getWebservicesDescriptor(DeploymentInfo di)
- {
- return di.localCl.findResource("WEB-INF/webservices.xml");
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorJSE.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorJSE.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorJSEMBean.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorJSEMBean.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorJSEMBean.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,37 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.integration.jboss42;
-
-import javax.management.ObjectName;
-
-import org.jboss.deployment.SubDeployerInterceptorMBean;
-import org.jboss.ws.core.utils.ObjectNameFactory;
-
-/**
- * MBean interface.
- * @since 19-Jan-2005
- */
-public interface DeployerInterceptorJSEMBean extends SubDeployerInterceptorMBean
-{
- //default object name
- public static final ObjectName OBJECT_NAME =
ObjectNameFactory.create("jboss.ws:service=WebServiceDeployerJSE");
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorJSEMBean.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorJSEMBean.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorNestedJSE.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorNestedJSE.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorNestedJSE.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,132 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.integration.jboss42;
-
-// $Id: WebServiceDeployerNestedJSE.java 275 2006-05-04 21:36:29Z jason.greene(a)jboss.com
$
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
-import java.io.IOException;
-
-import org.jboss.deployment.DeploymentException;
-import org.jboss.deployment.DeploymentInfo;
-import org.jboss.deployment.MainDeployerMBean;
-import org.jboss.deployment.SubDeployerSupport;
-import org.jboss.system.server.ServerConfig;
-import org.jboss.system.server.ServerConfigLocator;
-import org.jboss.ws.core.utils.IOUtils;
-
-/**
- * A deployer service that manages WS4EE compliant Web Services for
- * nested POJO endpoints.
- *
- * The WebServiceDeployerJSE attaches itself as an deployment interceptor to
- * the jboss.web:service=WebServer deployer. As a consequence, all *.war deployments
- * that are picked up before the interceptor is installed are not treated as potential
- * web service endpoint deployments.
- *
- * Nested POJO endpoints can be packaged in *.jse deployments that are then picked up by
this
- * deployer.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 03-Mar-2005
- */
-public class DeployerInterceptorNestedJSE extends SubDeployerSupport implements
DeployerInterceptorNestedJSEMBean
-{
- private static final String NESTED_JSE_WAR_FILE =
"org.jboss.ws.server.nested.jse";
-
- // The MainDeployer
- protected MainDeployerMBean mainDeployer;
-
- public void setMainDeployer(MainDeployerMBean mainDeployer)
- {
- this.mainDeployer = mainDeployer;
- }
-
- public boolean accepts(DeploymentInfo sdi)
- {
- setSuffixes(new String[] { ".jse" });
- return super.accepts(sdi);
- }
-
- /** Copy the *.jse to a *.war and deploy through the main deployer
- */
- public void create(DeploymentInfo di) throws DeploymentException
- {
- log.debug("create: " + di.url);
-
- try
- {
- File jseFile = new File(di.localUrl.getFile());
- if (jseFile.isFile() == false)
- throw new DeploymentException("Expected a file: " + di.localUrl);
-
- ServerConfig config = ServerConfigLocator.locate();
- String warFileName = config.getServerTempDir().getCanonicalPath() +
"/deploy/" + di.shortName;
- warFileName = warFileName.substring(0, warFileName.length() - 4) +
".war";
- File warFile = new File(warFileName);
-
- FileOutputStream fos = new FileOutputStream(warFile);
- FileInputStream fis = new FileInputStream(jseFile);
- try
- {
- IOUtils.copyStream(fos, fis);
- }
- finally
- {
- fos.close();
- fis.close();
- }
-
- mainDeployer.deploy(warFile.toURL());
-
- // remember the war url that we deployed
- di.context.put(NESTED_JSE_WAR_FILE, warFile);
-
- super.create(di);
- }
- catch (IOException ex)
- {
- throw new DeploymentException("Failed to create: " + di.url, ex);
- }
- }
-
- /** Undeploy the *.war through the main deployer
- */
- public void destroy(DeploymentInfo di) throws DeploymentException
- {
- log.debug("destroy: " + di.url);
- try
- {
- File warFile = (File)di.context.get(NESTED_JSE_WAR_FILE);
- mainDeployer.undeploy(warFile.toURL());
- warFile.delete();
-
- super.destroy(di);
- }
- catch (IOException ex)
- {
- throw new DeploymentException("Failed to destroy: " + di.url, ex);
- }
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorNestedJSE.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorNestedJSE.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorNestedJSEMBean.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorNestedJSEMBean.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorNestedJSEMBean.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,42 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.integration.jboss42;
-
-// $Id: WebServiceDeployerNestedJSEMBean.java 296 2006-05-08 19:45:49Z
thomas.diesler(a)jboss.com $
-
-import javax.management.ObjectName;
-
-import org.jboss.deployment.MainDeployerMBean;
-import org.jboss.deployment.SubDeployerMBean;
-import org.jboss.ws.core.utils.ObjectNameFactory;
-
-/**
- * @author Thomas.Diesler(a)jboss.org
- * @since 03-Mar-2005
- */
-public interface DeployerInterceptorNestedJSEMBean extends SubDeployerMBean
-{
- //default object name
- public static final ObjectName OBJECT_NAME =
ObjectNameFactory.create("jboss.ws:service=WebServiceDeployerNestedJSE");
-
- void setMainDeployer(MainDeployerMBean mainDeployer);
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorNestedJSEMBean.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeployerInterceptorNestedJSEMBean.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeploymentInfoAdaptor.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeploymentInfoAdaptor.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeploymentInfoAdaptor.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,72 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.integration.jboss42;
-
-// $Id: WebServiceDeploymentAdaptor.java 317 2006-05-14 17:16:59Z
thomas.diesler(a)jboss.com $
-
-import org.jboss.deployment.DeploymentInfo;
-import org.jboss.metadata.ApplicationMetaData;
-import org.jboss.metadata.WebMetaData;
-import org.jboss.ws.deployment.UnifiedDeploymentInfo;
-
-/**
- * Build container independent deployment info.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 05-May-2006
- */
-public class DeploymentInfoAdaptor
-{
- public static UnifiedDeploymentInfo buildDeploymentInfo(UnifiedDeploymentInfo udi,
DeploymentInfo di)
- {
- if (di.parent != null)
- {
- udi.parent = new UnifiedDeploymentInfo(null);
- buildDeploymentInfo(udi.parent, di.parent);
- }
-
- udi.shortName = di.shortName;
- udi.url = di.url;
- udi.localUrl = di.localUrl;
- udi.metaData = buildMetaData(di.metaData);
- udi.annotationsCl = di.annotationsCl;
- udi.localCl = di.localCl;
- udi.ucl = di.ucl;
- udi.deployedObject = di.deployedObject;
-
- return udi;
- }
-
- private static Object buildMetaData(Object metaData)
- {
- Object retMetaData = null;
- if (metaData instanceof WebMetaData)
- {
- retMetaData =
WebMetaDataAdaptor.buildUnifiedWebMetaData((WebMetaData)metaData);
- }
- else if (metaData instanceof ApplicationMetaData)
- {
- retMetaData =
ApplicationMetaDataAdaptor.buildUnifiedApplicationMetaData((ApplicationMetaData)metaData);
- }
- return retMetaData;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeploymentInfoAdaptor.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/DeploymentInfoAdaptor.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/JBossContextServlet.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/JBossContextServlet.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/JBossContextServlet.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,46 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.integration.jboss42;
-
-// $Id$
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.core.CommonContextServlet;
-import org.jboss.ws.core.server.ServiceEndpointManagerFactory;
-
-/**
- * The servlet that that is associated with context /jbossws
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 21-Mar-2005
- */
-public class JBossContextServlet extends CommonContextServlet
-{
- // provide logging
- protected final Logger log = Logger.getLogger(JBossContextServlet.class);
-
- protected void initServiceEndpointManager()
- {
- ServiceEndpointManagerFactory factory =
ServiceEndpointManagerFactory.getInstance();
- epManager = factory.getServiceEndpointManager();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/JBossContextServlet.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/JBossContextServlet.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/JBossServiceEndpointPublisher.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/JBossServiceEndpointPublisher.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/JBossServiceEndpointPublisher.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,100 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.integration.jboss42;
-
-// $Id: WebServiceDeployer.java 312 2006-05-11 10:49:22Z thomas.diesler(a)jboss.com $
-
-import java.net.URL;
-import java.util.HashSet;
-import java.util.Set;
-
-import javax.management.MBeanServer;
-
-import org.jboss.deployment.DeploymentInfo;
-import org.jboss.deployment.MainDeployerMBean;
-import org.jboss.mx.util.MBeanProxy;
-import org.jboss.mx.util.MBeanProxyCreationException;
-import org.jboss.mx.util.MBeanServerLocator;
-import org.jboss.ws.deployment.ServiceEndpointPublisher;
-import org.jboss.ws.deployment.UnifiedDeploymentInfo;
-import org.jboss.ws.metadata.umdm.EndpointMetaData;
-import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
-import org.jboss.ws.metadata.umdm.ServiceMetaData;
-import org.jboss.ws.metadata.umdm.UnifiedMetaData;
-
-/**
- * Publish the HTTP service endpoint to Tomcat
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 12-May-2006
- */
-public class JBossServiceEndpointPublisher extends ServiceEndpointPublisher
-{
-
- public String publishServiceEndpoint(UnifiedDeploymentInfo udi) throws Exception
- {
- URL warURL = udi.localUrl;
- DeploymentInfo di =
(DeploymentInfo)udi.context.get(DeploymentInfo.class.getName());
- if (di == null)
- throw new IllegalStateException("Cannot obtain DeploymentInfo from
context");
-
- rewriteWebXML(udi);
-
- // Preserve the repository config
- DeploymentInfo auxdi = new DeploymentInfo(warURL, null,
MBeanServerLocator.locateJBoss());
- auxdi.repositoryConfig = di.getTopRepositoryConfig();
- getMainDeployer().deploy(auxdi);
- return "OK";
- }
-
- public String destroyServiceEndpoint(UnifiedDeploymentInfo udi) throws Exception
- {
- getMainDeployer().undeploy(udi.localUrl);
- return "OK";
- }
-
- public Set<String> getWebServiceServletLinks(UnifiedDeploymentInfo udi)
- {
- Set<String> links = new HashSet<String>();
-
- UnifiedMetaData wsMetaData = getServiceEndpointDeployer().getUnifiedMetaData(udi);
-
- for (ServiceMetaData serviceMetaData : wsMetaData.getServices())
- {
- for (EndpointMetaData epMetaData : serviceMetaData.getEndpoints())
- {
- ServerEndpointMetaData sepMetaData = (ServerEndpointMetaData)epMetaData;
- links.add(sepMetaData.getLinkName());
-
- }
- }
-
- return links;
- }
-
- private MainDeployerMBean getMainDeployer() throws MBeanProxyCreationException
- {
- MBeanServer server = MBeanServerLocator.locateJBoss();
- MainDeployerMBean mainDeployer =
(MainDeployerMBean)MBeanProxy.get(MainDeployerMBean.class, MainDeployerMBean.OBJECT_NAME,
server);
- return mainDeployer;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/JBossServiceEndpointPublisher.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/JBossServiceEndpointPublisher.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/JBossServiceEndpointServlet.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/JBossServiceEndpointServlet.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/JBossServiceEndpointServlet.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,87 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.integration.jboss42;
-
-// $Id: ServiceEndpointServlet.java 296 2006-05-08 19:45:49Z thomas.diesler(a)jboss.com $
-
-import java.util.List;
-
-import javax.servlet.ServletContext;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.server.ServiceEndpoint;
-import org.jboss.ws.core.server.StandardEndpointServlet;
-import org.jboss.ws.metadata.config.WSCommonConfig;
-import org.jboss.ws.metadata.umdm.HandlerMetaData;
-import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
-import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
-
-/**
- * A servlet that is installed for every web service endpoint.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 16-May-2006
- */
-public class JBossServiceEndpointServlet extends StandardEndpointServlet
-{
- // provide logging
- private static final Logger log =
Logger.getLogger(JBossServiceEndpointServlet.class);
-
- /** Initialize the service endpoint
- */
- protected void initServiceEndpoint(String contextPath)
- {
- super.initServiceEndpoint(contextPath);
-
- ServiceEndpoint wsEndpoint = epManager.getServiceEndpointByID(sepId);
- if (wsEndpoint == null)
- throw new WSException("Cannot obtain endpoint for: " + sepId);
-
- // read the config name/file from web.xml
- ServletContext ctx = getServletContext();
- String configName = ctx.getInitParameter("jbossws-config-name");
- String configFile = ctx.getInitParameter("jbossws-config-file");
- if (configName != null || configFile != null)
- {
- log.debug("Updating service endpoint config\n config-name: " +
configName + "\n config-file: " + configFile);
- ServerEndpointMetaData sepMetaData =
wsEndpoint.getServiceEndpointInfo().getServerEndpointMetaData();
- sepMetaData.setConfigName(configName);
- sepMetaData.setConfigFile(configFile);
-
- List<HandlerMetaData> sepHandlers =
sepMetaData.getHandlerMetaData(HandlerType.ENDPOINT);
- sepMetaData.clearHandlers();
-
- // Add pre handlers
- WSCommonConfig sepConfig = sepMetaData.getEndpointConfig();
- sepMetaData.addHandlers(sepConfig.getHandlers(sepMetaData, HandlerType.PRE));
-
- // Restore the endpoint handlers
- sepMetaData.addHandlers(sepHandlers);
-
- // Add post handlers
- sepMetaData.addHandlers(sepConfig.getHandlers(sepMetaData, HandlerType.POST));
-
- log.debug("Updated endpoint meta data" + sepMetaData);
- }
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/JBossServiceEndpointServlet.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/JBossServiceEndpointServlet.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/PortComponentLinkServlet.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/PortComponentLinkServlet.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/PortComponentLinkServlet.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,93 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.integration.jboss42;
-
-// $Id: PortComponentLinkServlet.java 419 2006-05-30 13:32:38Z thomas.diesler(a)jboss.com
$
-
-import java.io.IOException;
-import java.io.PrintWriter;
-
-import javax.servlet.ServletConfig;
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.server.ServiceEndpoint;
-import org.jboss.ws.core.server.ServiceEndpointManager;
-import org.jboss.ws.core.server.ServiceEndpointManagerFactory;
-
-/**
- * A servlet that reports the serviceURL for a given service ID.
- * <p/>
- * When the web service client ENC is setup, it may contain port-component-link
- * entries that point to service endpoints in the same top level deployment.
- * The final serviceURL of those endpoints will become available after the
- * reference to the javax.xml.rpc.Service is bound to JNDI.
- * <p/>
- * When the client does a lookup of the javax.xml.rpc.Service from JNDI the
ObjectFactory
- * will contact this servlet for the final serviceURL. It is acceptable that the client
- * wsdl does not contain the correct serviceURL if the client is using the
port-component-link element.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 29-May-2004
- */
-public class PortComponentLinkServlet extends HttpServlet
-{
- // provide logging
- private static final Logger log = Logger.getLogger(PortComponentLinkServlet.class);
-
- protected ServiceEndpointManager epManager;
-
- public void init(ServletConfig config) throws ServletException
- {
- super.init(config);
- ServiceEndpointManagerFactory factory =
ServiceEndpointManagerFactory.getInstance();
- epManager = factory.getServiceEndpointManager();
- }
-
- /**
- * Get the serviceURL as string for a given serviceID.
- */
- public void doGet(HttpServletRequest req, HttpServletResponse res) throws
ServletException, IOException
- {
- String pcLink = req.getParameter("pcLink");
- if (pcLink == null)
- throw new IllegalArgumentException("Cannot obtain request parameter
'pcLink'");
-
- ServiceEndpoint serviceEndpoint = epManager.resolvePortComponentLink(pcLink);
- ;
- if (serviceEndpoint == null)
- throw new WSException("Cannot resolve port-component-link: " +
pcLink);
-
- res.setContentType("text/plain");
- PrintWriter out = res.getWriter();
-
- String endpointAddress =
serviceEndpoint.getServiceEndpointInfo().getServerEndpointMetaData().getEndpointAddress();
- out.println(endpointAddress);
-
- log.debug("Resolved " + pcLink + " to: " + endpointAddress);
- out.close();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/PortComponentLinkServlet.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/PortComponentLinkServlet.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServerConfigImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServerConfigImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServerConfigImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,150 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.integration.jboss42;
-
-//$Id: ServiceEndpointManagerFactoryImpl.java 294 2006-05-08 16:33:42Z
thomas.diesler(a)jboss.com $
-
-import java.io.File;
-import java.util.Set;
-
-import javax.management.AttributeNotFoundException;
-import javax.management.JMException;
-import javax.management.MBeanServer;
-import javax.management.ObjectName;
-
-import org.jboss.logging.Logger;
-import org.jboss.mx.util.MBeanServerLocator;
-import org.jboss.ws.core.server.ServerConfig;
-import org.jboss.ws.core.utils.ObjectNameFactory;
-
-/**
- * JBoss specific implementation of a ServerConfig
- *
- * @author Thomas.Diesler(a)jboss.org
- * @author darran.lofthouse(a)jboss.com
- * @since 08-May-2006
- */
-public class ServerConfigImpl implements ServerConfig
-{
-
- private static final Logger log = Logger.getLogger(ServerConfigImpl.class);
-
- public File getServerTempDir()
- {
- try
- {
- MBeanServer server = MBeanServerLocator.locateJBoss();
- ObjectName oname =
ObjectNameFactory.create("jboss.system:type=ServerConfig");
- File tmpdir = (File)server.getAttribute(oname, "ServerTempDir");
- return tmpdir;
- }
- catch (JMException e)
- {
- return null;
- }
- }
-
- public File getServerDataDir()
- {
- try
- {
- MBeanServer server = MBeanServerLocator.locateJBoss();
- ObjectName oname =
ObjectNameFactory.create("jboss.system:type=ServerConfig");
- File tmpdir = (File)server.getAttribute(oname, "ServerDataDir");
- return tmpdir;
- }
- catch (JMException e)
- {
- return null;
- }
- }
-
- public int getWebServicePort()
- {
- int port = getConnectorPort("HTTP/1.1", false);
- if (port > -1)
- {
- return port;
- }
-
- log.warn("Unable to calculate 'WebServicePort', using default
'8080'");
- return 8080;
- }
-
- public int getWebServiceSecurePort()
- {
- int port = getConnectorPort("HTTP/1.1", true);
- if (port > -1)
- {
- return port;
- }
-
- log.warn("Unable to calculate 'WebServiceSecurePort', using default
'8443'");
- return 8443;
- }
-
- private int getConnectorPort(final String protocol, final boolean secure)
- {
- int port = -1;
-
- try
- {
- MBeanServer server = MBeanServerLocator.locateJBoss();
- ObjectName connectors = new ObjectName("jboss.web:type=Connector,*");
-
- Set connectorNames = server.queryNames(connectors, null);
- for (Object current : connectorNames)
- {
- ObjectName currentName = (ObjectName)current;
-
- try
- {
- int connectorPort = (Integer)server.getAttribute(currentName,
"port");
- boolean connectorSecure = (Boolean)server.getAttribute(currentName,
"secure");
- String connectorProtocol = (String)server.getAttribute(currentName,
"protocol");
-
- if (protocol.equals(connectorProtocol) && secure ==
connectorSecure)
- {
- if (port > -1)
- {
- log.warn("Found multiple connectors for protocol='" +
protocol + "' and secure='" + secure + "', using first port
found '" + port + "'");
- }
- else
- {
- port = connectorPort;
- }
- }
- }
- catch (AttributeNotFoundException ignored)
- {
- }
- }
-
- return port;
- }
- catch (JMException e)
- {
- return -1;
- }
-
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServerConfigImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServerConfigImpl.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointGeneratorEJB.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointGeneratorEJB.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointGeneratorEJB.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,306 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.integration.jboss42;
-
-//$Id$
-
-import java.io.File;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.net.URL;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-
-import org.jboss.deployment.DeploymentInfo;
-import org.jboss.logging.Logger;
-import org.jboss.system.server.ServerConfig;
-import org.jboss.system.server.ServerConfigLocator;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.utils.DOMUtils;
-import org.jboss.ws.core.utils.DOMWriter;
-import org.jboss.ws.metadata.umdm.EndpointMetaData;
-import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
-import org.jboss.ws.metadata.umdm.ServiceMetaData;
-import org.jboss.ws.metadata.umdm.UnifiedMetaData;
-import org.w3c.dom.Element;
-
-/**
- * Generate a web deployment for EJB endpoints
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 12-May-2006
- */
-public abstract class ServiceEndpointGeneratorEJB
-{
- // logging support
- protected Logger log = Logger.getLogger(ServiceEndpointGeneratorEJB.class);
-
- public URL generatWebDeployment(DeploymentInfo di, UnifiedMetaData wsMetaData) throws
IOException
- {
- // Collect the list of PortComponentMetaData
- List<EndpointMetaData> epMetaDataList = new
ArrayList<EndpointMetaData>();
- for (ServiceMetaData serviceMetaData : wsMetaData.getServices())
- {
- for (EndpointMetaData epMetaData : serviceMetaData.getEndpoints())
- {
- epMetaDataList.add(epMetaData);
- }
- }
-
- Element webDoc = createWebAppDescriptor(di, epMetaDataList);
- Element jbossDoc = createJBossWebAppDescriptor(di, epMetaDataList);
-
- File tmpWar = null;
- try
- {
- ServerConfig config = ServerConfigLocator.locate();
- File tmpdir = new File(config.getServerTempDir().getCanonicalPath() +
"/deploy");
-
- String deploymentName = di.getCanonicalName().replace('/', '-')
+ "-ws";
- tmpWar = File.createTempFile(deploymentName, ".war", tmpdir);
- tmpWar.delete();
- File webInf = new File(tmpWar, "WEB-INF");
- webInf.mkdirs();
-
- File webXml = new File(webInf, "web.xml");
- FileWriter fw = new FileWriter(webXml);
- new DOMWriter(fw).setPrettyprint(true).print(webDoc);
- fw.close();
-
- File jbossWebXml = new File(webInf, "jboss-web.xml");
- fw = new FileWriter(jbossWebXml);
- new DOMWriter(fw).setPrettyprint(true).print(jbossDoc);
- fw.close();
- }
- catch (IOException e)
- {
- throw new WSException("Failed to create webservice.war", e);
- }
-
- return tmpWar.toURL();
- }
-
- private Element createWebAppDescriptor(DeploymentInfo di, List<EndpointMetaData>
epMetaDataList)
- {
- Element webApp = DOMUtils.createElement("web-app");
-
- /*
- <servlet>
- <servlet-name>
- <servlet-class>
- </servlet>
- */
- for (EndpointMetaData epMetaData : epMetaDataList)
- {
- ServerEndpointMetaData sepMetaData = (ServerEndpointMetaData)epMetaData;
- String ejbName = sepMetaData.getLinkName();
- Element servlet =
(Element)webApp.appendChild(DOMUtils.createElement("servlet"));
- Element servletName =
(Element)servlet.appendChild(DOMUtils.createElement("servlet-name"));
- servletName.appendChild(DOMUtils.createTextNode(ejbName));
- Element servletClass =
(Element)servlet.appendChild(DOMUtils.createElement("servlet-class"));
- String targetBean = sepMetaData.getServiceEndpointImplName();
- String seiName = sepMetaData.getServiceEndpointInterfaceName();
- String servletClassName = (targetBean != null ? targetBean : seiName);
- servletClass.appendChild(DOMUtils.createTextNode(servletClassName));
- }
-
- /*
- <servlet-mapping>
- <servlet-name>
- <url-pattern>
- </servlet-mapping>
- */
- ArrayList<String> urlPatters = new ArrayList<String>();
- for (EndpointMetaData epMetaData : epMetaDataList)
- {
- ServerEndpointMetaData sepMetaData = (ServerEndpointMetaData)epMetaData;
- String ejbName = sepMetaData.getLinkName();
- Element servletMapping =
(Element)webApp.appendChild(DOMUtils.createElement("servlet-mapping"));
- Element servletName =
(Element)servletMapping.appendChild(DOMUtils.createElement("servlet-name"));
- servletName.appendChild(DOMUtils.createTextNode(ejbName));
- Element urlPatternElement =
(Element)servletMapping.appendChild(DOMUtils.createElement("url-pattern"));
-
- String urlPattern = "/*";
- if (sepMetaData.getURLPattern() != null)
- {
- urlPattern = sepMetaData.getURLPattern();
- }
-
- if (urlPatters.contains(urlPattern))
- throw new IllegalArgumentException("Cannot use the same url-pattern with
different endpoints, " + "check your <port-component-uri> in
jboss.xml");
-
- urlPatternElement.appendChild(DOMUtils.createTextNode(urlPattern));
- urlPatters.add(urlPattern);
- }
-
- String authMethod = null;
-
- // Add web-app/security-constraint for each port component
- for (EndpointMetaData epMetaData : epMetaDataList)
- {
- ServerEndpointMetaData sepMetaData = (ServerEndpointMetaData)epMetaData;
- String ejbName = sepMetaData.getLinkName();
- if (sepMetaData.getAuthMethod() != null || sepMetaData.getTransportGuarantee()
!= null)
- {
- /*
- <security-constraint>
- <web-resource-collection>
- <web-resource-name>TestUnAuthPort</web-resource-name>
- <url-pattern>/HSTestRoot/TestUnAuth/*</url-pattern>
- </web-resource-collection>
- <auth-constraint>
- <role-name>*</role-name>
- </auth-constraint>
- <user-data-constraint>
- <transport-guarantee>NONE</transport-guarantee>
- </user-data-constraint>
- </security-constraint>
- */
- Element securityConstraint =
(Element)webApp.appendChild(DOMUtils.createElement("security-constraint"));
- Element wrc =
(Element)securityConstraint.appendChild(DOMUtils.createElement("web-resource-collection"));
- Element wrName =
(Element)wrc.appendChild(DOMUtils.createElement("web-resource-name"));
- wrName.appendChild(DOMUtils.createTextNode(ejbName));
- Element pattern =
(Element)wrc.appendChild(DOMUtils.createElement("url-pattern"));
- String uri = sepMetaData.getURLPattern();
- pattern.appendChild(DOMUtils.createTextNode(uri));
- Element method =
(Element)wrc.appendChild(DOMUtils.createElement("http-method"));
- method.appendChild(DOMUtils.createTextNode("GET"));
- method =
(Element)wrc.appendChild(DOMUtils.createElement("http-method"));
- method.appendChild(DOMUtils.createTextNode("POST"));
-
- // Optional auth-constraint
- if (sepMetaData.getAuthMethod() != null)
- {
- // Only the first auth-method gives the war login-config/auth-method
- if (authMethod == null)
- authMethod = sepMetaData.getAuthMethod();
-
- Element authConstraint =
(Element)securityConstraint.appendChild(DOMUtils.createElement("auth-constraint"));
- Element roleName =
(Element)authConstraint.appendChild(DOMUtils.createElement("role-name"));
- roleName.appendChild(DOMUtils.createTextNode("*"));
- }
- // Optional user-data-constraint
- if (sepMetaData.getTransportGuarantee() != null)
- {
- Element userData =
(Element)securityConstraint.appendChild(DOMUtils.createElement("user-data-constraint"));
- Element transport =
(Element)userData.appendChild(DOMUtils.createElement("transport-guarantee"));
-
transport.appendChild(DOMUtils.createTextNode(sepMetaData.getTransportGuarantee()));
- }
- }
- }
-
- // Optional login-config/auth-method
- if (authMethod != null)
- {
- Element loginConfig =
(Element)webApp.appendChild(DOMUtils.createElement("login-config"));
- Element method =
(Element)loginConfig.appendChild(DOMUtils.createElement("auth-method"));
- method.appendChild(DOMUtils.createTextNode(authMethod));
- Element realm =
(Element)loginConfig.appendChild(DOMUtils.createElement("realm-name"));
- realm.appendChild(DOMUtils.createTextNode("EJBServiceEndpointServlet
Realm"));
-
- addEJBSecurityRoles(di, webApp);
- }
-
- return webApp;
- }
-
- private Element createJBossWebAppDescriptor(DeploymentInfo di,
List<EndpointMetaData> epMetaDataList)
- {
- /* Create a jboss-web
- <jboss-web>
- <security-domain>java:/jaas/cts</security-domain>
- <context-root>/ws/ejbN/</context-root>
- </jboss-web>
- */
- Element jbossWeb = DOMUtils.createElement("jboss-web");
-
- UnifiedMetaData wsMetaData =
epMetaDataList.get(0).getServiceMetaData().getUnifiedMetaData();
- String securityDomain = wsMetaData.getSecurityDomain();
- if (securityDomain != null)
- {
- Element secDomain =
(Element)jbossWeb.appendChild(DOMUtils.createElement("security-domain"));
- secDomain.appendChild(DOMUtils.createTextNode("java:/jaas/" +
securityDomain));
- }
-
- // Get the context root for this deployment
- String contextRoot = null;
- for (EndpointMetaData epMetaData : epMetaDataList)
- {
- ServerEndpointMetaData sepMetaData = (ServerEndpointMetaData)epMetaData;
- String next = sepMetaData.getContextRoot();
- if (next != null)
- {
- if (contextRoot == null)
- {
- contextRoot = next;
- }
- else if (contextRoot.equals(next) == false)
- {
- throw new WSException("Multiple context root not supported");
- }
- }
- }
- if (contextRoot == null)
- throw new WSException("Cannot obtain context root");
-
- Element root =
(Element)jbossWeb.appendChild(DOMUtils.createElement("context-root"));
- root.appendChild(DOMUtils.createTextNode(contextRoot));
-
- String[] virtualHosts = null;
- for (EndpointMetaData epMetaData : epMetaDataList)
- {
- ServerEndpointMetaData sepMetaData = (ServerEndpointMetaData)epMetaData;
- String[] next = sepMetaData.getVirtualHosts();
- if (next != null && next.length > 0)
- {
- Arrays.sort(next);
- if (virtualHosts == null)
- {
- virtualHosts = next;
- }
- else
- {
- if (Arrays.equals(virtualHosts, next) == false)
- {
- throw new WSException("All endpoints must define the same virtual
hosts");
- }
- }
- }
- }
-
- if (virtualHosts != null)
- {
- for (String current : virtualHosts)
- {
- Element virtualHost =
(Element)jbossWeb.appendChild(DOMUtils.createElement("virtual-host"));
- virtualHost.appendChild(DOMUtils.createTextNode(current));
- }
- }
-
- return jbossWeb;
- }
-
- /** Add the roles from ejb-jar.xml to the security roles
- */
- protected abstract void addEJBSecurityRoles(DeploymentInfo di, Element webApp);
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointGeneratorEJB.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointGeneratorEJB.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointGeneratorEJB21.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointGeneratorEJB21.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointGeneratorEJB21.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,69 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.integration.jboss42;
-
-//$Id$
-
-import java.util.Iterator;
-import java.util.Map;
-
-import org.jboss.deployment.DeploymentInfo;
-import org.jboss.logging.Logger;
-import org.jboss.metadata.ApplicationMetaData;
-import org.jboss.metadata.AssemblyDescriptorMetaData;
-import org.jboss.ws.core.utils.DOMUtils;
-import org.w3c.dom.Element;
-
-/**
- * Generate a service endpoint deployment for EJB endpoints
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 12-May-2006
- */
-public class ServiceEndpointGeneratorEJB21 extends ServiceEndpointGeneratorEJB
-{
- // logging support
- protected Logger log = Logger.getLogger(ServiceEndpointGeneratorEJB21.class);
-
- /** Add the roles from ejb-jar.xml to the security roles
- */
- protected void addEJBSecurityRoles(DeploymentInfo di, Element webApp)
- {
- // Fix:
http://jira.jboss.org/jira/browse/JBWS-309
- ApplicationMetaData applMetaData = (ApplicationMetaData)di.metaData;
- AssemblyDescriptorMetaData assemblyDescriptor =
applMetaData.getAssemblyDescriptor();
- if (assemblyDescriptor != null)
- {
- Map securityRoles = assemblyDescriptor.getSecurityRoles();
- if (securityRoles != null)
- {
- Iterator it = securityRoles.keySet().iterator();
- while (it.hasNext())
- {
- Element securityRole =
(Element)webApp.appendChild(DOMUtils.createElement("security-role"));
- Element roleName =
(Element)securityRole.appendChild(DOMUtils.createElement("role-name"));
- roleName.appendChild(DOMUtils.createTextNode((String)it.next()));
- }
- }
- }
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointGeneratorEJB21.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointGeneratorEJB21.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointGeneratorEJB3.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointGeneratorEJB3.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointGeneratorEJB3.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,95 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.integration.jboss42;
-
-//$Id$
-
-import javax.annotation.security.RolesAllowed;
-import javax.management.MBeanServer;
-import javax.management.ObjectName;
-
-import org.jboss.deployment.DeploymentInfo;
-import org.jboss.ejb3.Ejb3ModuleMBean;
-import org.jboss.ejb3.stateless.StatelessContainer;
-import org.jboss.logging.Logger;
-import org.jboss.mx.util.MBeanProxy;
-import org.jboss.mx.util.MBeanProxyCreationException;
-import org.jboss.mx.util.MBeanServerLocator;
-import org.jboss.ws.core.utils.DOMUtils;
-import org.jboss.ws.WSException;
-import org.w3c.dom.Element;
-
-/**
- * Generate a service endpoint deployment for EJB endpoints
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 12-May-2006
- */
-public class ServiceEndpointGeneratorEJB3 extends ServiceEndpointGeneratorEJB
-{
- // logging support
- protected Logger log = Logger.getLogger(ServiceEndpointGeneratorEJB3.class);
-
- /** Add the roles from ejb-jar.xml to the security roles
- */
- protected void addEJBSecurityRoles(DeploymentInfo di, Element webApp)
- {
- // The container objects below provide access to all of the ejb metadata
- Ejb3ModuleMBean ejb3Module = getEJB3Module(di.deployedObject);
- for (Object manager : ejb3Module.getContainers().values())
- {
- if (manager instanceof StatelessContainer)
- {
- StatelessContainer container = (StatelessContainer)manager;
-
- RolesAllowed anRolesAllowed =
(RolesAllowed)container.resolveAnnotation(RolesAllowed.class);
- if (anRolesAllowed != null)
- {
- for (String role : anRolesAllowed.value())
- {
- Element securityRole =
(Element)webApp.appendChild(DOMUtils.createElement("security-role"));
- Element roleName =
(Element)securityRole.appendChild(DOMUtils.createElement("role-name"));
- roleName.appendChild(DOMUtils.createTextNode(role));
- }
- }
- }
- }
- }
-
- private Ejb3ModuleMBean getEJB3Module(ObjectName objectName)
- {
- Ejb3ModuleMBean ejb3Module;
- try
- {
- MBeanServer server = MBeanServerLocator.locateJBoss();
- ejb3Module = (Ejb3ModuleMBean)MBeanProxy.get(Ejb3ModuleMBean.class, objectName,
server);
- if (ejb3Module == null)
- throw new WSException("Cannot obtain EJB3 module: " + objectName);
-
- return ejb3Module;
- }
- catch (MBeanProxyCreationException ex)
- {
- throw new WSException("Cannot obtain proxy to EJB3 module");
- }
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointGeneratorEJB3.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointGeneratorEJB3.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointInterceptor.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointInterceptor.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointInterceptor.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,139 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.integration.jboss42;
-
-// $Id: ServiceEndpointInterceptor.java 906 2006-09-06 18:57:40Z thomas.diesler(a)jboss.com
$
-
-import javax.xml.soap.SOAPMessage;
-
-import org.jboss.ejb.plugins.AbstractInterceptor;
-import org.jboss.invocation.Invocation;
-import org.jboss.invocation.InvocationKey;
-import org.jboss.logging.Logger;
-import org.jboss.ws.core.CommonBinding;
-import org.jboss.ws.core.CommonBindingProvider;
-import org.jboss.ws.core.CommonMessageContext;
-import org.jboss.ws.core.EndpointInvocation;
-import org.jboss.ws.core.jaxrpc.SOAPFaultExceptionHelper;
-import org.jboss.ws.metadata.umdm.OperationMetaData;
-import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
-
-/**
- * This Interceptor does the ws4ee handler processing.
- *
- * According to the ws4ee spec the handler logic must be invoked after the container
- * applied method level security to the invocation.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 21-Sep-2005
- */
-public class ServiceEndpointInterceptor extends AbstractInterceptor
-{
- // provide logging
- private static Logger log = Logger.getLogger(ServiceEndpointInterceptor.class);
-
- // Interceptor implementation --------------------------------------
-
- /** Before and after we call the service endpoint bean, we process the handler
chains.
- */
- public Object invoke(final Invocation mi) throws Exception
- {
- // If no msgContext, it's not for us
- CommonMessageContext msgContext =
(CommonMessageContext)mi.getPayloadValue(InvocationKey.SOAP_MESSAGE_CONTEXT);
- if (msgContext == null)
- {
- return getNext().invoke(mi);
- }
-
- // Get the endpoint invocation
- EndpointInvocation epInv =
(EndpointInvocation)mi.getValue(EndpointInvocation.class.getName());
- OperationMetaData opMetaData = epInv.getOperationMetaData();
-
- // Get the handler callback
- String key = ServiceEndpointInvokerEJB21.HandlerCallback.class.getName();
- ServiceEndpointInvokerEJB21.HandlerCallback callback =
(ServiceEndpointInvokerEJB21.HandlerCallback)mi.getValue(key);
-
- // Handlers need to be Tx. Therefore we must invoke the handler chain after the
TransactionInterceptor.
- if (callback != null && epInv != null)
- {
- try
- {
- // call the request handlers
- boolean handlersPass =
callback.callRequestHandlerChain(HandlerType.ENDPOINT);
- handlersPass = handlersPass &&
callback.callRequestHandlerChain(HandlerType.POST);
-
- // Call the next interceptor in the chain
- if (handlersPass)
- {
- // The SOAPContentElements stored in the EndpointInvocation might have
changed after
- // handler processing. Get the updated request payload. This should be a
noop if request
- // handlers did not modify the incomming SOAP message.
- Object[] reqParams = epInv.getRequestPayload();
- mi.setArguments(reqParams);
- Object resObj = getNext().invoke(mi);
- epInv.setReturnValue(resObj);
-
- // Bind the response message
- CommonBindingProvider bindingProvider = new
CommonBindingProvider(opMetaData.getEndpointMetaData());
- CommonBinding binding =
(CommonBinding)bindingProvider.getCommonBinding();
- SOAPMessage resMessage =
(SOAPMessage)binding.bindResponseMessage(opMetaData, epInv);
- msgContext.setSOAPMessage(resMessage);
- }
-
- // call the response handlers
- handlersPass = callback.callResponseHandlerChain(HandlerType.POST);
- handlersPass = handlersPass &&
callback.callResponseHandlerChain(HandlerType.ENDPOINT);
-
- // update the return value after response handler processing
- Object resObj = epInv.getReturnValue();
-
- return resObj;
- }
- catch (Exception ex)
- {
- try
- {
- SOAPMessage faultMessage =
SOAPFaultExceptionHelper.exceptionToFaultMessage(ex);
- msgContext.setSOAPMessage(faultMessage);
-
- // call the fault handlers
- boolean handlersPass = callback.callFaultHandlerChain(HandlerType.POST,
ex);
- handlersPass = handlersPass &&
callback.callFaultHandlerChain(HandlerType.ENDPOINT, ex);
- }
- catch (Exception subEx)
- {
- log.warn("Cannot process handlerChain.handleFault, ignoring: ",
subEx);
- }
- throw ex;
- }
- finally
- {
- // do nothing
- }
- }
- else
- {
- log.warn("Handler callback not available");
- return getNext().invoke(mi);
- }
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointInterceptor.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointInterceptor.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointInvokerEJB21.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointInvokerEJB21.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointInvokerEJB21.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,264 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.integration.jboss42;
-
-// $Id: ServiceEndpointInvokerEJB21.java 906 2006-09-06 18:57:40Z
thomas.diesler(a)jboss.com $
-
-import java.lang.reflect.Method;
-import java.security.Principal;
-
-import javax.management.MBeanServer;
-import javax.management.ObjectName;
-import javax.xml.rpc.soap.SOAPFaultException;
-
-import org.jboss.ejb.EjbModule;
-import org.jboss.ejb.Interceptor;
-import org.jboss.ejb.StatelessSessionContainer;
-import org.jboss.invocation.Invocation;
-import org.jboss.invocation.InvocationKey;
-import org.jboss.invocation.InvocationType;
-import org.jboss.invocation.PayloadKey;
-import org.jboss.logging.Logger;
-import org.jboss.mx.util.MBeanServerLocator;
-import org.jboss.security.SecurityAssociation;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.CommonMessageContext;
-import org.jboss.ws.core.EndpointInvocation;
-import org.jboss.ws.core.server.AbstractServiceEndpointInvoker;
-import org.jboss.ws.core.server.ServiceEndpointInfo;
-import org.jboss.ws.core.server.ServiceEndpointInvoker;
-import org.jboss.ws.core.soap.MessageContextAssociation;
-import org.jboss.ws.core.utils.ObjectNameFactory;
-import org.jboss.ws.metadata.j2ee.UnifiedApplicationMetaData;
-import org.jboss.ws.metadata.j2ee.UnifiedBeanMetaData;
-import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
-import org.jboss.ws.metadata.umdm.EndpointMetaData.Type;
-import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
-
-/**
- * Handles invocations on EJB2.1 endpoints.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 19-Jan-2005
- */
-public class ServiceEndpointInvokerEJB21 extends AbstractServiceEndpointInvoker
implements ServiceEndpointInvoker
-{
- // provide logging
- private Logger log = Logger.getLogger(ServiceEndpointInvokerEJB21.class);
-
- private String jndiName;
- private MBeanServer server;
- private ObjectName objectName;
-
- public ServiceEndpointInvokerEJB21()
- {
- server = MBeanServerLocator.locateJBoss();
- }
-
- /** Initialize the service endpoint */
- @Override
- public void initServiceEndpoint(ServiceEndpointInfo seInfo)
- {
- super.initServiceEndpoint(seInfo);
-
- ServerEndpointMetaData epMetaData = seInfo.getServerEndpointMetaData();
- String ejbName = epMetaData.getLinkName();
- if (ejbName == null)
- throw new WSException("Cannot obtain ejb-link from port component");
-
- UnifiedApplicationMetaData applMetaData =
(UnifiedApplicationMetaData)seInfo.getUnifiedDeploymentInfo().metaData;
- UnifiedBeanMetaData beanMetaData =
(UnifiedBeanMetaData)applMetaData.getBeanByEjbName(ejbName);
- if (beanMetaData == null)
- throw new WSException("Cannot obtain ejb meta data for: " + ejbName);
-
- // verify the service endpoint
- String seiName = epMetaData.getServiceEndpointInterfaceName();
- if (epMetaData.getType() == Type.JAXRPC && seiName != null)
- {
- String bmdSEI = beanMetaData.getServiceEndpoint();
- if (seiName.equals(bmdSEI) == false)
- throw new WSException("Endpoint meta data defines SEI '" +
seiName + "', <service-endpoint> in ejb-jar.xml defines '" +
bmdSEI + "'");
- }
-
- // get the bean's JNDI name
- jndiName = beanMetaData.getContainerObjectNameJndiName();
- if (jndiName == null)
- throw new WSException("Cannot obtain JNDI name for: " + ejbName);
-
- objectName = ObjectNameFactory.create("jboss.j2ee:jndiName=" + jndiName +
",service=EJB");
-
- // Dynamically add the service endpoint interceptor
- //
http://jira.jboss.org/jira/browse/JBWS-758
- try
- {
- EjbModule ejbModule = (EjbModule)server.getAttribute(objectName,
"EjbModule");
- StatelessSessionContainer container =
(StatelessSessionContainer)ejbModule.getContainer(ejbName);
-
- boolean injectionPointFound = false;
- Interceptor prev = container.getInterceptor();
- while (prev != null && prev.getNext() != null)
- {
- Interceptor next = prev.getNext();
- if (next.getNext() == null)
- {
- log.debug("Inject service endpoint interceptor after: " +
prev.getClass().getName());
- ServiceEndpointInterceptor sepInterceptor = new
ServiceEndpointInterceptor();
- prev.setNext(sepInterceptor);
- sepInterceptor.setNext(next);
- injectionPointFound = true;
- }
- prev = next;
- }
- if (injectionPointFound == false)
- log.warn("Cannot service endpoint interceptor injection point");
- }
- catch (Exception ex)
- {
- log.warn("Cannot add service endpoint interceptor", ex);
- }
- }
-
- /** Load the SEI implementation bean if necessary
- */
- public Class loadServiceEndpoint(ServiceEndpointInfo seInfo)
- {
- if (server.isRegistered(objectName) == false)
- throw new WSException("Cannot find service endpoint target: " +
objectName);
-
- return null;
- }
-
- /** Create an instance of the SEI implementation bean if necessary */
- public Object createServiceEndpoint(ServiceEndpointInfo seInfo, Object
endpointContext, Class seiImplClass)
- {
- return null;
- }
-
- /** Invoke an instance of the SEI implementation bean */
- public void invokeServiceEndpoint(ServiceEndpointInfo seInfo, Object seiImpl,
EndpointInvocation epInv) throws SOAPFaultException
- {
- log.debug("invokeServiceEndpoint: " + epInv.getJavaMethod().getName());
-
- // these are provided by the ServerLoginHandler
- Principal principal = SecurityAssociation.getPrincipal();
- Object credential = SecurityAssociation.getCredential();
-
- CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
-
- // invoke on the container
- try
- {
- // setup the invocation
- Method method = epInv.getJavaMethod();
- Object[] args = epInv.getRequestPayload();
- Invocation inv = new Invocation(null, method, args, null, principal,
credential);
-
- inv.setValue(InvocationKey.SOAP_MESSAGE_CONTEXT, msgContext);
- inv.setValue(InvocationKey.SOAP_MESSAGE, msgContext.getSOAPMessage());
- inv.setType(InvocationType.SERVICE_ENDPOINT);
-
- // Set the handler callback and endpoint invocation
- inv.setValue(HandlerCallback.class.getName(), new HandlerCallback(seInfo),
PayloadKey.TRANSIENT);
- inv.setValue(EndpointInvocation.class.getName(), epInv, PayloadKey.TRANSIENT);
-
- String[] sig = { Invocation.class.getName() };
- Object retObj = server.invoke(objectName, "invoke", new Object[] { inv
}, sig);
- epInv.setReturnValue(retObj);
- }
- catch (Exception e)
- {
- handleInvocationException(e);
- }
- }
-
- /** Create an instance of the SEI implementation bean if necessary */
- public void destroyServiceEndpoint(ServiceEndpointInfo seInfo, Object seiImpl)
- {
- // do nothing
- }
-
- /** Handlers are beeing called through the HandlerCallback from the EJB interceptor
*/
- public boolean callRequestHandlerChain(ServiceEndpointInfo seInfo, HandlerType type)
- {
- if (type == HandlerType.PRE)
- return handlerDelegate.callRequestHandlerChain(seInfo, type);
- else
- return true;
- }
-
- /** Handlers are beeing called through the HandlerCallback from the EJB interceptor
*/
- public boolean callResponseHandlerChain(ServiceEndpointInfo seInfo, HandlerType type)
- {
- if (type == HandlerType.PRE)
- return handlerDelegate.callResponseHandlerChain(seInfo, type);
- else
- return true;
- }
-
- /** Handlers are beeing called through the HandlerCallback from the EJB interceptor
*/
- public boolean callFaultHandlerChain(ServiceEndpointInfo seInfo, HandlerType type,
Exception ex)
- {
- if (type == HandlerType.PRE)
- return handlerDelegate.callFaultHandlerChain(seInfo, type, ex);
- else
- return true;
- }
-
- // The ServiceEndpointInterceptor calls the methods in this callback
- public class HandlerCallback
- {
- private ServiceEndpointInfo seInfo;
-
- public HandlerCallback(ServiceEndpointInfo seInfo)
- {
- this.seInfo = seInfo;
- }
-
- /** Handlers are beeing called through the HandlerCallback from the EJB interceptor
*/
- public boolean callRequestHandlerChain(HandlerType type)
- {
- if (type == HandlerType.PRE)
- return true;
- else
- return handlerDelegate.callRequestHandlerChain(seInfo, type);
- }
-
- /** Handlers are beeing called through the HandlerCallback from the EJB interceptor
*/
- public boolean callResponseHandlerChain(HandlerType type)
- {
- if (type == HandlerType.PRE)
- return true;
- else
- return handlerDelegate.callResponseHandlerChain(seInfo, type);
- }
-
- /** Handlers are beeing called through the HandlerCallback from the EJB interceptor
*/
- public boolean callFaultHandlerChain(HandlerType type, Exception ex)
- {
- if (type == HandlerType.PRE)
- return true;
- else
- return handlerDelegate.callFaultHandlerChain(seInfo, type, ex);
- }
-
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointInvokerEJB21.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointInvokerEJB21.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointInvokerEJB3.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointInvokerEJB3.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointInvokerEJB3.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,145 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.integration.jboss42;
-
-// $Id: ServiceEndpointInvokerEJB3.java 902 2006-09-05 20:10:19Z thomas.diesler(a)jboss.com
$
-
-import java.lang.reflect.Method;
-
-import javax.management.MBeanServer;
-import javax.management.ObjectName;
-import javax.xml.rpc.soap.SOAPFaultException;
-
-import org.jboss.aop.Dispatcher;
-import org.jboss.ejb3.stateless.StatelessContainer;
-import org.jboss.logging.Logger;
-import org.jboss.mx.util.MBeanServerLocator;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.EndpointInvocation;
-import org.jboss.ws.core.server.AbstractServiceEndpointInvoker;
-import org.jboss.ws.core.server.ServiceEndpointInfo;
-import org.jboss.ws.core.server.ServiceEndpointInvoker;
-import org.jboss.ws.core.utils.ObjectNameFactory;
-import org.jboss.ws.deployment.UnifiedDeploymentInfo;
-
-/**
- * Handles invocations on EJB3 endpoints.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 23-Jul-2005
- */
-public class ServiceEndpointInvokerEJB3 extends AbstractServiceEndpointInvoker implements
ServiceEndpointInvoker
-{
- // provide logging
- private Logger log = Logger.getLogger(ServiceEndpointInvokerEJB3.class);
-
- private MBeanServer server;
- private ObjectName objectName;
-
- public ServiceEndpointInvokerEJB3()
- {
- server = MBeanServerLocator.locateJBoss();
- }
-
- /** Initialize the service endpoint */
- @Override
- public void initServiceEndpoint(ServiceEndpointInfo seInfo)
- {
- super.initServiceEndpoint(seInfo);
-
- String ejbName = seInfo.getServerEndpointMetaData().getLinkName();
- UnifiedDeploymentInfo udi = seInfo.getUnifiedDeploymentInfo();
- String nameStr = "jboss.j2ee:name=" + ejbName +
",service=EJB3,jar=" + udi.shortName;
- if (udi.parent != null)
- {
- nameStr += ",ear=" + udi.parent.shortName;
- }
-
- objectName = ObjectNameFactory.create(nameStr.toString());
- }
-
- /** Load the SEI implementation bean if necessary
- */
- public Class loadServiceEndpoint(ServiceEndpointInfo seInfo)
- {
- if (server.isRegistered(objectName) == false)
- throw new WSException("Cannot find service endpoint target: " +
objectName);
-
- return null;
- }
-
- /** Create an instance of the SEI implementation bean if necessary */
- public Object createServiceEndpoint(ServiceEndpointInfo seInfo, Object
endpointContext, Class seiImplClass)
- {
- return null;
- }
-
- /** Invoke an instance of the SEI implementation bean */
- public void invokeServiceEndpoint(ServiceEndpointInfo seInfo, Object seiImpl,
EndpointInvocation epInv) throws SOAPFaultException
- {
- log.debug("invokeServiceEndpoint: " + epInv.getJavaMethod().getName());
-
- /* [FIXME] how to do this for EJB3
-
- // these are provided by the ServerLoginHandler
- Principal principal = SecurityAssociation.getPrincipal();
- Object credential = SecurityAssociation.getCredential();
-
- CommonMessageContext msgContext = MessageContextAssociation.getMessageContext();
-
- Invocation inv = new Invocation(null, method, args, null, principal, credential);
- inv.setValue(InvocationKey.SOAP_MESSAGE_CONTEXT, msgContext);
- inv.setValue(InvocationKey.SOAP_MESSAGE, msgContext.getMessage());
- inv.setType(InvocationType.SERVICE_ENDPOINT);
- */
-
- // invoke on the container
- try
- {
- // setup the invocation
- Method seiMethod = epInv.getJavaMethod();
- Object[] args = epInv.getRequestPayload();
-
- Dispatcher dispatcher = Dispatcher.singleton;
- String canonicalName = objectName.getCanonicalName();
- StatelessContainer container =
(StatelessContainer)dispatcher.getRegistered(canonicalName);
- if (container == null)
- throw new WSException("Cannot obtain container from Dispatcher: " +
canonicalName);
-
- Class implClass = container.getBeanClass();
- Method implMethod = getImplMethod(implClass, seiMethod);
-
- Object retObj = container.localInvoke(implMethod, args);
- epInv.setReturnValue(retObj);
- }
- catch (Throwable e)
- {
- handleInvocationException(e);
- }
- }
-
- /** Create an instance of the SEI implementation bean if necessary */
- public void destroyServiceEndpoint(ServiceEndpointInfo seInfo, Object seiImpl)
- {
- // do nothing
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointInvokerEJB3.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointInvokerEJB3.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointInvokerMDB.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointInvokerMDB.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointInvokerMDB.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,97 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.integration.jboss42;
-
-// $Id: ServiceEndpointInvokerMDB.java 694 2006-08-04 16:27:13Z thomas.diesler(a)jboss.com
$
-
-import java.lang.reflect.Method;
-
-import javax.xml.rpc.soap.SOAPFaultException;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.core.EndpointInvocation;
-import org.jboss.ws.core.server.AbstractServiceEndpointInvoker;
-import org.jboss.ws.core.server.ServiceEndpointInfo;
-import org.jboss.ws.core.server.ServiceEndpointInvoker;
-import org.jboss.ws.core.utils.ThreadLocalAssociation;
-
-/**
- * Handles invocations on MDB endpoints.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 21-Mar-2006
- */
-public class ServiceEndpointInvokerMDB extends AbstractServiceEndpointInvoker implements
ServiceEndpointInvoker
-{
- // provide logging
- private Logger log = Logger.getLogger(ServiceEndpointInvokerMDB.class);
-
- /** Load the SEI implementation bean if necessary
- */
- public Class loadServiceEndpoint(ServiceEndpointInfo seInfo) throws
ClassNotFoundException
- {
- return null;
- }
-
- // The dispatcher sets the target bean object
- public void setTargetBeanObject(Object targetMDB)
- {
- ThreadLocalAssociation.localInvokerMDBAssoc().set(targetMDB);
- }
-
- /** Create an instance of the SEI implementation bean if necessary
- */
- public Object createServiceEndpoint(ServiceEndpointInfo seInfo, Object
endpointContext, Class seiImplClass) throws InstantiationException,
IllegalAccessException
- {
- return ThreadLocalAssociation.localInvokerMDBAssoc().get();
- }
-
- /** Invoke an instance of the SEI implementation bean */
- public void invokeServiceEndpoint(ServiceEndpointInfo seInfo, Object seiImpl,
EndpointInvocation epInv) throws SOAPFaultException
- {
- log.debug("invokeServiceEndpoint: " + epInv.getJavaMethod().getName());
- try
- {
- Class implClass = seiImpl.getClass();
- Method seiMethod = epInv.getJavaMethod();
- Method implMethod = getImplMethod(implClass, seiMethod);
-
- Object[] args = epInv.getRequestPayload();
- Object retObj = implMethod.invoke(seiImpl, args);
- epInv.setReturnValue(retObj);
- }
- catch (Exception e)
- {
- handleInvocationException(e);
- }
- finally
- {
- // cleanup thread local
- setTargetBeanObject(null);
- }
- }
-
- /** Destroy an instance of the SEI implementation bean if necessary */
- public void destroyServiceEndpoint(ServiceEndpointInfo seInfo, Object seiImpl)
- {
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointInvokerMDB.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceEndpointInvokerMDB.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceRefMetaDataAdaptor.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceRefMetaDataAdaptor.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceRefMetaDataAdaptor.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,106 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.integration.jboss42;
-
-// $Id: ServiceRefMetaDataAdaptor.java 906 2006-09-06 18:57:40Z thomas.diesler(a)jboss.com
$
-
-import java.util.ArrayList;
-import java.util.LinkedHashMap;
-
-import javax.xml.namespace.QName;
-
-import org.jboss.webservice.metadata.serviceref.HandlerMetaData;
-import org.jboss.webservice.metadata.serviceref.InitParamMetaData;
-import org.jboss.webservice.metadata.serviceref.PortComponentRefMetaData;
-import org.jboss.webservice.metadata.serviceref.ServiceRefMetaData;
-import org.jboss.ws.metadata.j2ee.UnifiedHandlerMetaData;
-import org.jboss.ws.metadata.j2ee.UnifiedPortComponentRefMetaData;
-import org.jboss.ws.metadata.j2ee.UnifiedServiceRefMetaData;
-import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerInitParam;
-
-/**
- * Build container independent service ref meta data
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 05-May-2006
- */
-public class ServiceRefMetaDataAdaptor
-{
- public static UnifiedServiceRefMetaData
buildUnifiedServiceRefMetaData(ServiceRefMetaData srmd)
- {
- UnifiedServiceRefMetaData usrmd = new UnifiedServiceRefMetaData();
- usrmd.setServiceRefName(srmd.getServiceRefName());
- usrmd.setServiceInterface(srmd.getServiceInterface());
- usrmd.setWsdlFile(srmd.getWsdlFile());
- usrmd.setJaxrpcMappingFile(srmd.getJaxrpcMappingFile());
- usrmd.setServiceQName(srmd.getServiceQName());
-
- LinkedHashMap<String, UnifiedPortComponentRefMetaData> pcrefs = new
LinkedHashMap<String, UnifiedPortComponentRefMetaData>();
- for (PortComponentRefMetaData pcmd : srmd.getPortComponentRefs())
- {
- UnifiedPortComponentRefMetaData upcmd = new UnifiedPortComponentRefMetaData();
- upcmd.setServiceEndpointInterface(pcmd.getServiceEndpointInterface());
- upcmd.setPortComponentLink(pcmd.getPortComponentLink());
- upcmd.setCallProperties(pcmd.getCallProperties());
- pcrefs.put(pcmd.getServiceEndpointInterface(), upcmd);
- }
- usrmd.setPortComponentRefs(pcrefs);
-
- ArrayList<UnifiedHandlerMetaData> handlers = new
ArrayList<UnifiedHandlerMetaData>();
- for (HandlerMetaData hmd : srmd.getHandlers())
- {
- UnifiedHandlerMetaData uhmd = new UnifiedHandlerMetaData(null);
- uhmd.setHandlerName(hmd.getHandlerName());
- uhmd.setHandlerClass(hmd.getHandlerClass());
-
- for(String portname : hmd.getPortNames())
- {
- uhmd.addPortName(portname);
- }
- for (InitParamMetaData ipmd : hmd.getInitParams())
- {
- HandlerInitParam ip = new HandlerInitParam();
- ip.setParamName(ipmd.getParamName());
- ip.setParamValue(ipmd.getParamValue());
- uhmd.addInitParam(ip);
- }
- for (QName soapHeader : hmd.getSoapHeaders())
- {
- uhmd.addSoapHeader(soapHeader);
- }
- for (String soapRole : hmd.getSoapRoles())
- {
- uhmd.addSoapRole(soapRole);
- }
- handlers.add(uhmd);
- }
- usrmd.setHandlers(handlers);
-
- usrmd.setConfigName(srmd.getConfigName());
- usrmd.setConfigFile(srmd.getConfigFile());
- usrmd.setWsdlOverride(srmd.getWsdlOverride());
- usrmd.setCallProperties(srmd.getCallProperties());
- usrmd.setResourceCL(srmd.getResourceCL());
-
- return usrmd;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceRefMetaDataAdaptor.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/ServiceRefMetaDataAdaptor.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/WebMetaDataAdaptor.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/WebMetaDataAdaptor.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/WebMetaDataAdaptor.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,105 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.integration.jboss42;
-
-// $Id: WebMetaDataAdaptor.java 354 2006-05-16 13:46:47Z thomas.diesler(a)jboss.com $
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import org.jboss.metadata.WebMetaData;
-import org.jboss.metadata.WebSecurityMetaData;
-import org.jboss.metadata.WebSecurityMetaData.WebResourceCollection;
-import org.jboss.ws.metadata.j2ee.UnifiedServiceRefMetaData;
-import org.jboss.ws.metadata.j2ee.UnifiedWebMetaData;
-import org.jboss.ws.metadata.j2ee.UnifiedWebSecurityMetaData;
-import org.jboss.ws.metadata.j2ee.UnifiedWebMetaData.PublishLocationAdapter;
-import
org.jboss.ws.metadata.j2ee.UnifiedWebSecurityMetaData.UnifiedWebResourceCollection;
-
-/**
- * Build container independent web meta data
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 05-May-2006
- */
-public class WebMetaDataAdaptor
-{
- public static UnifiedWebMetaData buildUnifiedWebMetaData(WebMetaData wmd)
- {
- UnifiedWebMetaData umd = new UnifiedWebMetaData();
- umd.setContextRoot(wmd.getContextRoot());
- umd.setServletMappings(wmd.getServletMappings());
- umd.setServletClassMap(wmd.getServletClassMap());
- umd.setConfigName(wmd.getConfigName());
- umd.setConfigFile(wmd.getConfigFile());
- umd.setContextLoader(wmd.getContextLoader());
- umd.setSecurityDomain(wmd.getSecurityDomain());
- umd.setPublishLocationAdapter(getPublishLocationAdpater(wmd));
- umd.setSecurityMetaData(getSecurityMetaData(wmd.getSecurityContraints()));
-
- return umd;
- }
-
- private static PublishLocationAdapter getPublishLocationAdpater(final WebMetaData
wmd)
- {
- return new PublishLocationAdapter ()
- {
- public String getWsdlPublishLocationByName(String name)
- {
- return wmd.getWsdlPublishLocationByName(name);
- }
- };
- }
-
- private static List<UnifiedWebSecurityMetaData> getSecurityMetaData(final
Iterator securityConstraints)
- {
- ArrayList<UnifiedWebSecurityMetaData> unifiedsecurityMetaData = new
ArrayList<UnifiedWebSecurityMetaData>();
-
- while (securityConstraints.hasNext())
- {
- WebSecurityMetaData securityMetaData =
(WebSecurityMetaData)securityConstraints.next();
-
- UnifiedWebSecurityMetaData current = new UnifiedWebSecurityMetaData();
- unifiedsecurityMetaData.add(current);
-
- current.setTransportGuarantee(securityMetaData.getTransportGuarantee());
-
- HashMap resources = securityMetaData.getWebResources();
- for (Object webResourceObj : resources.values())
- {
- WebResourceCollection webResource = (WebResourceCollection)webResourceObj;
- UnifiedWebResourceCollection currentResource =
current.addWebResource(webResource.getName());
- for (String currentPattern : webResource.getUrlPatterns())
- {
- currentResource.addPattern(currentPattern);
- }
- }
-
- }
-
- return unifiedsecurityMetaData;
- }
-
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/WebMetaDataAdaptor.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/WebMetaDataAdaptor.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/WebServiceClientDeployer.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/WebServiceClientDeployer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/WebServiceClientDeployer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,139 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.integration.jboss42;
-
-// $Id: WebServiceClientDeployer.java 522 2006-06-30 06:54:49Z thomas.diesler(a)jboss.com
$
-
-import java.net.URL;
-import java.util.Iterator;
-
-import javax.naming.Context;
-import javax.wsdl.Definition;
-import javax.wsdl.WSDLException;
-import javax.xml.rpc.JAXRPCException;
-
-import org.jboss.deployment.DeploymentException;
-import org.jboss.deployment.DeploymentInfo;
-import org.jboss.webservice.metadata.serviceref.ServiceRefMetaData;
-import org.jboss.naming.Util;
-import org.jboss.system.ServiceMBeanSupport;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.jaxrpc.ServiceReferenceable;
-import org.jboss.ws.deployment.JSR109ClientDeployment;
-import org.jboss.ws.deployment.UnifiedDeploymentInfo;
-import org.jboss.ws.metadata.j2ee.UnifiedServiceRefMetaData;
-import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
-import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMappingFactory;
-import org.jboss.ws.tools.wsdl.WSDL11DefinitionFactory;
-
-/**
- * Binds a JAXRPC Service object in the client's ENC for every service-ref element in
the
- * deployment descriptor.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 15-Jan-2005
- */
-public class WebServiceClientDeployer extends ServiceMBeanSupport implements
WebServiceClientDeployerMBean
-{
- /**
- * This binds a jaxrpc Service into the callers ENC for every service-ref element
- *
- * @param envCtx ENC to bind the javax.rpc.xml.Service object to
- * @param serviceRefs An iterator of the service-ref elements in the client deployment
descriptor
- * @param di The client's deployment info
- * @throws org.jboss.deployment.DeploymentException if it goes wrong
- */
- public void setupServiceRefEnvironment(Context envCtx, Iterator serviceRefs,
DeploymentInfo di) throws DeploymentException
- {
- try
- {
- while (serviceRefs.hasNext())
- {
- ServiceRefMetaData serviceRef = (ServiceRefMetaData)serviceRefs.next();
- String serviceRefName = serviceRef.getServiceRefName();
-
- UnifiedServiceRefMetaData wsServiceRef =
ServiceRefMetaDataAdaptor.buildUnifiedServiceRefMetaData(serviceRef);
-
- JavaWsdlMapping javaWsdlMapping = getJavaWsdlMapping(wsServiceRef);
- wsServiceRef.setJavaWsdlMapping(javaWsdlMapping);
-
- Definition wsdlDefinition = getWsdlDefinition(wsServiceRef);
- wsServiceRef.setWsdlDefinition(wsdlDefinition);
-
- // build the container independent deployment info
- UnifiedDeploymentInfo udi = new
JSR109ClientDeployment(UnifiedDeploymentInfo.DeploymentType.JSR109_Client);
- DeploymentInfoAdaptor.buildDeploymentInfo(udi, di);
-
- ServiceReferenceable ref = new ServiceReferenceable(wsServiceRef, udi);
- Util.bind(envCtx, serviceRefName, ref);
-
- log.debug("Webservice binding: java:comp/env/" + serviceRefName);
- }
- }
- catch (Exception e)
- {
- throw new DeploymentException("Cannot bind webservice to client
environment", e);
- }
- }
-
- private JavaWsdlMapping getJavaWsdlMapping(UnifiedServiceRefMetaData serviceRef)
- {
- JavaWsdlMapping javaWsdlMapping = null;
- URL mappingURL = serviceRef.getJavaWsdlMappingURL();
- if (mappingURL != null)
- {
- try
- {
- // setup the XML binding Unmarshaller
- JavaWsdlMappingFactory mappingFactory =
JavaWsdlMappingFactory.newInstance();
- javaWsdlMapping = mappingFactory.parse(mappingURL);
- }
- catch (Exception e)
- {
- throw new JAXRPCException("Cannot unmarshal jaxrpc-mapping-file: "
+ mappingURL, e);
- }
- }
- return javaWsdlMapping;
- }
-
- private Definition getWsdlDefinition(UnifiedServiceRefMetaData serviceRef)
- {
- Definition wsdlDefinition = null;
- {
- URL wsdlOverride = serviceRef.getWsdlOverride();
- URL wsdlURL = serviceRef.getWsdlURL();
- if (wsdlOverride == null && wsdlURL != null)
- {
- try
- {
- WSDL11DefinitionFactory factory = WSDL11DefinitionFactory.newInstance();
- wsdlDefinition = factory.parse(wsdlURL);
- }
- catch (WSDLException e)
- {
- throw new WSException("Cannot unmarshall wsdl, cause: " +
e.toString());
- }
- }
- }
- return wsdlDefinition;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/WebServiceClientDeployer.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/WebServiceClientDeployer.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/WebServiceClientDeployerMBean.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/WebServiceClientDeployerMBean.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/WebServiceClientDeployerMBean.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,38 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.integration.jboss42;
-
-import javax.management.ObjectName;
-
-import org.jboss.ws.core.utils.ObjectNameFactory;
-import org.jboss.system.ServiceMBean;
-import org.jboss.webservice.WebServiceClientDeployment;
-
-/**
- * MBean interface.
- * @since 19-Jan-2005
- */
-public interface WebServiceClientDeployerMBean extends WebServiceClientDeployment,
ServiceMBean
-{
- // default object name
- public static final ObjectName OBJECT_NAME =
ObjectNameFactory.create("jboss.ws:service=WebServiceClientDeployer");
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/WebServiceClientDeployerMBean.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/WebServiceClientDeployerMBean.java)
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/jms (from rev
1605, branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/jms)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/jms/JMSMessageDispatcher.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/jms/JMSMessageDispatcher.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/jms/JMSMessageDispatcher.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,149 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.integration.jboss42.jms;
-
-// $Id:JMSMessageDispatcher.java 915 2006-09-08 08:40:45Z thomas.diesler(a)jboss.com $
-
-import java.io.ByteArrayOutputStream;
-import java.io.InputStream;
-import java.rmi.RemoteException;
-
-import javax.management.MBeanServer;
-import javax.management.ObjectName;
-import javax.xml.soap.SOAPMessage;
-
-import org.jboss.logging.Logger;
-import org.jboss.mx.util.MBeanServerLocator;
-import org.jboss.util.NotImplementedException;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.CommonMessageContext;
-import org.jboss.ws.core.jaxrpc.handler.SOAPMessageContextJAXRPC;
-import org.jboss.ws.core.server.ServiceEndpoint;
-import org.jboss.ws.core.server.ServiceEndpointInvoker;
-import org.jboss.ws.core.server.ServiceEndpointManager;
-import org.jboss.ws.core.server.ServiceEndpointManagerFactory;
-import org.jboss.ws.core.soap.MessageContextAssociation;
-import org.jboss.ws.integration.jboss42.ServiceEndpointInvokerMDB;
-import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
-
-/**
- * A dispatcher for SOAPMessages
- *
- * @author Thomas.Diesler(a)jboss.org
- */
-public class JMSMessageDispatcher implements JMSMessageDispatcherMBean
-{
- // logging support
- protected Logger log = Logger.getLogger(JMSMessageDispatcher.class);
-
- /** Dispatch the message to the underlying SOAP engine
- */
- public SOAPMessage dipatchMessage(String fromName, Object targetBean, InputStream
reqMessage) throws RemoteException
- {
- ServiceEndpointManagerFactory factory =
ServiceEndpointManagerFactory.getInstance();
- ServiceEndpointManager epManager = factory.getServiceEndpointManager();
- ObjectName sepID = getServiceEndpointForDestination(epManager, fromName);
-
- if (sepID == null)
- throw new WSException("Cannot find serviceID for: " + fromName);
-
- log.debug("dipatchMessage: " + sepID);
-
- // Setup the MDB invoker
- ServiceEndpoint sep = epManager.getServiceEndpointByID(sepID);
- ServerEndpointMetaData sepMetaData =
sep.getServiceEndpointInfo().getServerEndpointMetaData();
-
- ServiceEndpointInvoker invoker = sep.getServiceEndpointInfo().getInvoker();
- if (invoker instanceof ServiceEndpointInvokerMDB)
- {
- ServiceEndpointInvokerMDB mdbInvoker = (ServiceEndpointInvokerMDB)invoker;
- mdbInvoker.setTargetBeanObject(targetBean);
- }
-
- // Associate a message context with the current thread
- CommonMessageContext msgContext = new SOAPMessageContextJAXRPC();
- MessageContextAssociation.pushMessageContext(msgContext);
- msgContext.setEndpointMetaData(sepMetaData);
-
- SOAPMessage resMessage = null;
- try
- {
- // Process the request message and return the already serialized response
- // Legacy implementations of the JMSTransportSupport dont provide a msg
- // context which is needed for serialization.
- resMessage = sep.handleRequest(null, null, reqMessage);
- resMessage.writeTo(new ByteArrayOutputStream());
- return resMessage;
- }
- catch (Exception ex)
- {
- WSException.rethrowException("Cannot process SOAP request", ex);
- }
- finally
- {
- MessageContextAssociation.popMessageContext();
- }
-
- return resMessage;
- }
-
- /** Dispatch the message to the underlying SOAP engine
- */
- public SOAPMessage delegateMessage(String serviceID, InputStream soapMessage) throws
RemoteException
- {
- throw new NotImplementedException();
- }
-
- // The destination jndiName is encoded in the service object name under key
'jms'
- private ObjectName getServiceEndpointForDestination(ServiceEndpointManager epManager,
String fromName)
- {
- ObjectName sepID = null;
- for (ObjectName aux : epManager.getServiceEndpoints())
- {
- String jmsProp = aux.getKeyProperty("jms");
- if (jmsProp != null && jmsProp.equals(fromName))
- {
- sepID = aux;
- break;
- }
- }
- return sepID;
- }
-
- public void create() throws Exception
- {
- MBeanServer server = MBeanServerLocator.locateJBoss();
- if (server != null)
- {
- server.registerMBean(this, OBJECT_NAME);
- }
- }
-
- public void destroy() throws Exception
- {
- MBeanServer server = MBeanServerLocator.locateJBoss();
- if (server != null)
- {
- server.unregisterMBean(OBJECT_NAME);
- }
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/jms/JMSMessageDispatcher.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/jms/JMSMessageDispatcher.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/jms/JMSMessageDispatcherMBean.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/jms/JMSMessageDispatcherMBean.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/jms/JMSMessageDispatcherMBean.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,28 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.integration.jboss42.jms;
-
-// $Id:JMSMessageDispatcher.java 915 2006-09-08 08:40:45Z thomas.diesler(a)jboss.com $
-
-public interface JMSMessageDispatcherMBean extends MessageDispatcher
-{
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/jms/JMSMessageDispatcherMBean.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/jms/JMSMessageDispatcherMBean.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/jms/JMSTransportSupport.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/jms/JMSTransportSupport.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/jms/JMSTransportSupport.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,241 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.integration.jboss42.jms;
-
-// $Id:JMSTransportSupport.java 915 2006-09-08 08:40:45Z thomas.diesler(a)jboss.com $
-
-import java.io.ByteArrayInputStream;
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.rmi.RemoteException;
-
-import javax.ejb.EJBException;
-import javax.ejb.MessageDrivenBean;
-import javax.ejb.MessageDrivenContext;
-import javax.jms.BytesMessage;
-import javax.jms.Destination;
-import javax.jms.JMSException;
-import javax.jms.Message;
-import javax.jms.MessageListener;
-import javax.jms.Queue;
-import javax.jms.QueueConnection;
-import javax.jms.QueueConnectionFactory;
-import javax.jms.QueueSender;
-import javax.jms.QueueSession;
-import javax.jms.Session;
-import javax.jms.TextMessage;
-import javax.jms.Topic;
-import javax.naming.InitialContext;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPMessage;
-
-import org.jboss.logging.Logger;
-import org.jboss.util.NestedRuntimeException;
-
-/**
- * The abstract base class for MDBs that want to act as web service endpoints.
- * A subclass should only need to implement the service endpoint interface.
- *
- * @author Thomas.Diesler(a)jboss.org
- */
-public abstract class JMSTransportSupport implements MessageDrivenBean, MessageListener
-{
- // logging support
- protected Logger log = Logger.getLogger(JMSTransportSupport.class);
-
- //private MessageDrivenContext mdbCtx;
- private QueueConnectionFactory queueFactory;
-
- /**
- * All messages come in here, if it is a BytesMessage we pass it on for further
processing.
- */
- public void onMessage(Message message)
- {
- try
- {
- String msgStr = null;
- if (message instanceof BytesMessage)
- {
- msgStr = getMessageStr((BytesMessage)message);
- }
- else if (message instanceof TextMessage)
- {
- msgStr = ((TextMessage)message).getText();
- }
- else
- {
- log.warn("Invalid message type: " + message);
- return;
- }
-
- log.debug("Incomming SOAP message: " + msgStr);
-
- String fromName = null;
- Destination destination = message.getJMSDestination();
- if (destination instanceof Queue)
- fromName = "queue/" + ((Queue)destination).getQueueName();
- if (destination instanceof Topic)
- fromName = "topic/" + ((Topic)destination).getTopicName();
-
- InputStream reqMessage = new ByteArrayInputStream(msgStr.getBytes());
- SOAPMessage resMessage = processSOAPMessage(fromName, reqMessage);
-
- if (resMessage != null)
- {
- ByteArrayOutputStream baos = new ByteArrayOutputStream();
- resMessage.writeTo(baos);
-
- msgStr = new String(baos.toByteArray());
- log.debug("Outgoing SOAP message: " + msgStr);
-
- Queue replyQueue = getReplyQueue(message);
- if (replyQueue != null)
- {
- sendResponse(replyQueue, msgStr);
- }
- else
- {
- log.warn("No reply queue, ignore response message");
- }
- }
- else
- {
- log.debug("SOAP response message is null");
- }
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Exception e)
- {
- throw new EJBException(e);
- }
- }
-
- protected SOAPMessage processSOAPMessage(String fromName, InputStream reqMessage)
throws SOAPException, IOException, RemoteException
- {
- MessageDispatcher msgDispatcher = new JMSMessageDispatcher();
- SOAPMessage resMessage = msgDispatcher.dipatchMessage(fromName, this, reqMessage);
- return resMessage;
- }
-
- private String getMessageStr(BytesMessage message) throws Exception
- {
- byte[] buffer = new byte[8 * 1024];
- ByteArrayOutputStream out = new ByteArrayOutputStream(buffer.length);
- int read = message.readBytes(buffer);
- while (read != -1)
- {
- out.write(buffer, 0, read);
- read = message.readBytes(buffer);
- }
-
- byte[] msgBytes = out.toByteArray();
- return new String(msgBytes);
- }
-
- /**
- * Get the reply queue.
- */
- protected Queue getReplyQueue(Message message) throws JMSException
- {
- Queue replyQueue = (Queue)message.getJMSReplyTo();
- return replyQueue;
- }
-
- /**
- * Respond to the call by sending a message to the reply queue
- */
- protected void sendResponse(Queue replyQueue, String msgStr) throws SOAPException,
IOException, JMSException
- {
- QueueConnection qc = queueFactory.createQueueConnection();
- QueueSession session = qc.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
- QueueSender sender = null;
- try
- {
- sender = session.createSender(replyQueue);
- TextMessage responseMessage = session.createTextMessage(msgStr);
- sender.send(responseMessage);
- log.info("Sent response");
- }
- finally
- {
- try
- {
- sender.close();
- }
- catch (JMSException ignored)
- {
- }
- try
- {
- session.close();
- }
- catch (JMSException ignored)
- {
- }
- try
- {
- qc.close();
- }
- catch (JMSException ignored)
- {
- }
- }
- }
-
- // MDB lifecycle methods
********************************************************************************************
-
- public void ejbCreate()
- {
- try
- {
- InitialContext ctx = new InitialContext();
- queueFactory =
(QueueConnectionFactory)ctx.lookup("java:/ConnectionFactory");
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Exception e)
- {
- throw new NestedRuntimeException(e);
- }
- }
-
- /**
- * A container invokes this method before it ends the life of the message-driven
object.
- */
- public void ejbRemove() throws EJBException
- {
- }
-
- /**
- * Set the associated message-driven context.
- */
- public void setMessageDrivenContext(MessageDrivenContext ctx) throws EJBException
- {
- //this.mdbCtx = ctx;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/jms/JMSTransportSupport.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/jms/JMSTransportSupport.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/jms/MessageDispatcher.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/jms/MessageDispatcher.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/jms/MessageDispatcher.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,51 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.integration.jboss42.jms;
-
-// $Id:MessageDispatcher.java 898 2006-09-05 08:23:03Z thomas.diesler(a)jboss.com $
-
-import java.io.InputStream;
-import java.rmi.RemoteException;
-
-import javax.management.ObjectName;
-import javax.xml.soap.SOAPMessage;
-
-import org.jboss.ws.core.utils.ObjectNameFactory;
-
-/**
- * A dispatcher for SOAPMessages
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 19-Feb-2006
- */
-public interface MessageDispatcher
-{
- public static final ObjectName OBJECT_NAME =
ObjectNameFactory.create("jboss.ws:service=JMSTransportSupport");
-
- /** Dispatch the message to the underlying SOAP engine
- */
- SOAPMessage dipatchMessage(String fromName, Object targetImplBean, InputStream
reqMessage) throws RemoteException;
-
- /** Dispatch the message to the underlying SOAP engine
- */
- SOAPMessage delegateMessage(String serviceID, InputStream reqMessage) throws
RemoteException;
-}
\ No newline at end of file
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/jms/MessageDispatcher.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/integration/jboss42/jms/MessageDispatcher.java)
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/tomcat/DeploymentInfoAdaptor.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/tomcat/DeploymentInfoAdaptor.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/tomcat/DeploymentInfoAdaptor.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -36,8 +36,8 @@
import javax.servlet.ServletContext;
-import org.jboss.ws.utils.DOMUtils;
import org.jboss.ws.WSException;
+import org.jboss.ws.core.utils.DOMUtils;
import org.jboss.ws.deployment.UnifiedDeploymentInfo;
import org.jboss.ws.deployment.ServiceEndpointPublisher;
import org.jboss.ws.metadata.j2ee.UnifiedWebMetaData;
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/tomcat/KernelBootstrap.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/tomcat/KernelBootstrap.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/tomcat/KernelBootstrap.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -28,7 +28,7 @@
import org.jboss.kernel.plugins.bootstrap.basic.BasicBootstrap;
import org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer;
import org.jboss.logging.Logger;
-import org.jboss.ws.server.KernelLocator;
+import org.jboss.ws.core.server.KernelLocator;
/**
* Bootstrap the microkernel in Tomcat
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/tomcat/ServerConfigImpl.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/tomcat/ServerConfigImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/tomcat/ServerConfigImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -26,7 +26,7 @@
import java.io.File;
import java.io.IOException;
-import org.jboss.ws.server.ServerConfig;
+import org.jboss.ws.core.server.ServerConfig;
/**
* Tomcat specific implementation of a ServerConfig
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/tomcat/TomcatContextServlet.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/tomcat/TomcatContextServlet.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/tomcat/TomcatContextServlet.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -37,9 +37,9 @@
import org.jboss.logging.Logger;
import org.jboss.ws.WSException;
-import org.jboss.ws.common.CommonContextServlet;
-import org.jboss.ws.server.ServiceEndpointManager;
-import org.jboss.ws.server.ServiceEndpointManagerFactory;
+import org.jboss.ws.core.CommonContextServlet;
+import org.jboss.ws.core.server.ServiceEndpointManager;
+import org.jboss.ws.core.server.ServiceEndpointManagerFactory;
/**
* The servlet that that is associated with context /jbossws
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/tomcat/TomcatServiceEndpointPublisher.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/tomcat/TomcatServiceEndpointPublisher.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/tomcat/TomcatServiceEndpointPublisher.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -35,14 +35,14 @@
import org.jboss.logging.Logger;
import org.jboss.ws.WSException;
+import org.jboss.ws.core.utils.DOMUtils;
+import org.jboss.ws.core.utils.JBossWSEntityResolver;
import org.jboss.ws.deployment.ServiceEndpointPublisher;
import org.jboss.ws.deployment.UnifiedDeploymentInfo;
-import org.jboss.ws.metadata.jsr109.PortComponentMetaData;
-import org.jboss.ws.metadata.jsr109.WebserviceDescriptionMetaData;
-import org.jboss.ws.metadata.jsr109.WebservicesFactory;
-import org.jboss.ws.metadata.jsr109.WebservicesMetaData;
-import org.jboss.ws.utils.DOMUtils;
-import org.jboss.ws.utils.JBossWSEntityResolver;
+import org.jboss.ws.metadata.webservices.PortComponentMetaData;
+import org.jboss.ws.metadata.webservices.WebserviceDescriptionMetaData;
+import org.jboss.ws.metadata.webservices.WebservicesFactory;
+import org.jboss.ws.metadata.webservices.WebservicesMetaData;
import org.jboss.xb.binding.ObjectModelFactory;
import org.jboss.xb.binding.Unmarshaller;
import org.jboss.xb.binding.UnmarshallerFactory;
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/tomcat/TomcatServiceEndpointServlet.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/tomcat/TomcatServiceEndpointServlet.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/integration/tomcat/TomcatServiceEndpointServlet.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -38,12 +38,12 @@
import org.jboss.kernel.spi.registry.KernelRegistryEntry;
import org.jboss.logging.Logger;
import org.jboss.ws.WSException;
+import org.jboss.ws.core.server.KernelLocator;
+import org.jboss.ws.core.server.StandardEndpointServlet;
import org.jboss.ws.deployment.JSR109Deployment;
import org.jboss.ws.deployment.JSR181Deployment;
import org.jboss.ws.deployment.ServiceEndpointDeployer;
import org.jboss.ws.deployment.UnifiedDeploymentInfo;
-import org.jboss.ws.server.KernelLocator;
-import org.jboss.ws.server.StandardEndpointServlet;
/**
* A servlet that is installed for every web service endpoint.
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/ClientEndpointMetaData.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/ClientEndpointMetaData.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/ClientEndpointMetaData.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,154 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.metadata;
-
-// $Id$
-
-import java.net.MalformedURLException;
-import java.net.URL;
-
-import javax.xml.namespace.QName;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.WSException;
-import org.jboss.ws.metadata.HandlerMetaData.HandlerType;
-import org.jboss.ws.metadata.config.WSConfigFactory;
-import org.jboss.ws.metadata.config.jaxrpc.WSConfigRootJAXRPC;
-
-/**
- * Client side endpoint meta data.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 12-May-2005
- */
-public class ClientEndpointMetaData extends EndpointMetaData
-{
- // provide logging
- private static Logger log = Logger.getLogger(ClientEndpointMetaData.class);
-
- public ClientEndpointMetaData(ServiceMetaData service, QName portName, Type type)
- {
- super(service, portName, type);
- }
-
- public void setConfigName(String configName)
- {
- super.setConfigName(configName);
- endpointConfig = null;
- }
-
- public void setConfigFile(String configFile)
- {
- super.setConfigFile(configFile);
- endpointConfig = null;
- }
-
- @Override
- public Object getEndpointConfig()
- {
- if (endpointConfig == null)
- {
- String configName = getConfigName();
- if (configName == null)
- {
- configName = "Standard Client";
- setConfigName(configName);
- }
-
- String configFile = getConfigFile();
- if (configFile == null)
- {
- configFile = "META-INF/standard-jaxrpc-client-config.xml";
- setConfigFile(configFile);
- }
-
- log.debug("getClientConfig: [name=" + configName + ",url=" +
configFile + "]");
-
- URL configURL = null;
- try
- {
- configURL = new URL(configFile);
- }
- catch (MalformedURLException ex)
- {
- // ignore
- }
-
- // Try to get the URL as resource
- if (configURL == null)
- {
- ClassLoader cl = Thread.currentThread().getContextClassLoader();
- configURL = cl.getResource(configFile);
- if (configURL == null)
- throw new WSException("Cannot get resource: " + configFile);
- }
-
- // Get the config root
- Object wsConfig;
- try
- {
- WSConfigFactory factory = WSConfigFactory.newInstance();
- wsConfig = factory.parseWithObjectModelFactory(configURL);
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Exception ex)
- {
- throw new WSException("Cannot parse client config", ex);
- }
-
- // Get the client config
- endpointConfig =
((WSConfigRootJAXRPC)wsConfig).getClientConfigByName(configName);
- if (endpointConfig == null)
- throw new WSException("Cannot obtain client config: " +
configName);
- }
-
- return endpointConfig;
- }
-
- public String toString()
- {
- StringBuilder buffer = new StringBuilder("\nClientEndpointMetaData:");
- buffer.append("\n type=" + getType());
- buffer.append("\n qname=" + getQName());
- buffer.append("\n address=" + getEndpointAddress());
- buffer.append("\n binding=" + getBindingId());
- buffer.append("\n seiName=" + getServiceEndpointInterfaceName());
- buffer.append("\n configFile=" + getConfigFile());
- buffer.append("\n configName=" + getConfigName());
- buffer.append("\n authMethod=" + getAuthMethod());
- buffer.append("\n transportGuarantee=" + getTransportGuarantee());
- buffer.append("\n properties=" + getProperties());
-
- for (OperationMetaData opMetaData : getOperations())
- {
- buffer.append("\n" + opMetaData);
- }
- for (HandlerMetaData hdlMetaData : getHandlerMetaData(HandlerType.ALL))
- {
- buffer.append("\n" + hdlMetaData);
- }
- return buffer.toString();
- }
-}
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/EndpointMetaData.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/EndpointMetaData.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/EndpointMetaData.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,485 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.metadata;
-
-// $Id$
-
-import java.lang.reflect.Method;
-import java.net.URLClassLoader;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Properties;
-
-import javax.jws.soap.SOAPBinding.ParameterStyle;
-import javax.xml.namespace.QName;
-import javax.xml.rpc.ParameterMode;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.WSException;
-import org.jboss.ws.common.CommonSOAPBinding;
-import org.jboss.ws.jaxrpc.Style;
-import org.jboss.ws.jaxrpc.Use;
-import org.jboss.ws.metadata.HandlerMetaData.HandlerType;
-import org.jboss.ws.metadata.config.WSCommonConfig;
-
-/**
- * A Service component describes a set of endpoints.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 12-May-2005
- */
-public abstract class EndpointMetaData extends ExtensibleMetaData
-{
- // provide logging
- private static Logger log = Logger.getLogger(EndpointMetaData.class);
-
- public enum Type
- {
- JAXRPC, JAXWS
- }
-
- // The parent meta data.
- private ServiceMetaData serviceMetaData;
-
- // The REQUIRED endpoint config
- protected WSCommonConfig endpointConfig;
-
- // The REQUIRED name
- private QName portName;
- // The REQUIRED binding id
- private String bindingId;
- // The REQUIRED config-name
- private String configName;
- // The REQUIRED config-file
- private String configFile;
- // The endpoint address
- private String endpointAddress;
- // The endpoint interface name
- private String seiName;
- // The endpoint interface
- private Class seiClass;
- // The optional authentication method
- private String authMethod;
- // The optional transport guarantee
- private String transportGuarantee;
- // Arbitrary properties given by <call-property>
- private Properties properties;
- // The SOAPBinding style
- private Style style;
- // The SOAPBinding use
- private Use use;
- // The SOAPBinding parameter style
- private ParameterStyle parameterStyle;
- // Whether the endpoint was deployed from annotations
- private Type type;
- // The list of service meta data
- private List<OperationMetaData> operations = new
ArrayList<OperationMetaData>();
- // The optional handlers
- private List<HandlerMetaData> handlers = new
ArrayList<HandlerMetaData>();
- // True if the handlers are initialized
- private boolean handlersInitialized;
- // Maps the java method to the operation meta data
- private Map<Method, OperationMetaData> opMetaDataCache = new HashMap<Method,
OperationMetaData>();
-
- public EndpointMetaData(ServiceMetaData service, QName portName, Type type)
- {
- this.serviceMetaData = service;
- this.portName = portName;
- this.type = type;
-
- // The default binding
- this.bindingId = CommonSOAPBinding.SOAP11HTTP_BINDING;
- }
-
- public ServiceMetaData getServiceMetaData()
- {
- return serviceMetaData;
- }
-
- public QName getQName()
- {
- return portName;
- }
-
- public String getConfigFile()
- {
- return configFile;
- }
-
- public void setConfigFile(String configFile)
- {
- this.configFile = configFile;
- this.endpointConfig = null;
- }
-
- public String getConfigName()
- {
- return configName;
- }
-
- public void setConfigName(String configName)
- {
- this.configName = configName;
- this.endpointConfig = null;
- }
-
- public abstract Object getEndpointConfig();
-
- public String getEndpointAddress()
- {
- return endpointAddress;
- }
-
- public void setEndpointAddress(String endpointAddress)
- {
- this.endpointAddress = endpointAddress;
- }
-
- public String getBindingId()
- {
- return bindingId;
- }
-
- public void setBindingId(String bindingId)
- {
- if (!CommonSOAPBinding.SOAP11HTTP_BINDING.equals(bindingId) &&
!CommonSOAPBinding.SOAP12HTTP_BINDING.equals(bindingId))
- throw new WSException("Unsupported binding: " + bindingId);
- this.bindingId = bindingId;
- }
-
- public String getServiceEndpointInterfaceName()
- {
- return seiName;
- }
-
- public void setServiceEndpointInterfaceName(String seiName)
- {
- this.seiName = seiName;
- this.seiClass = null;
-
- UnifiedMetaData wsMetaData = serviceMetaData.getUnifiedMetaData();
- if (wsMetaData.isEagerInitialized())
- {
- if (UnifiedMetaData.isFinalRelease() == false)
- log.warn("Set SEI name after eager initialization", new
IllegalStateException());
-
- // reinitialize
- initializeInternal();
- }
- }
-
- /** Get the class loader associated with the endpoint meta data */
- public ClassLoader getClassLoader()
- {
- ClassLoader classLoader =
getServiceMetaData().getUnifiedMetaData().getClassLoader();
- return classLoader;
- }
-
- /** Get the resource loader associated with the endpoint meta data */
- public URLClassLoader getResourceLoader()
- {
- URLClassLoader classLoader =
getServiceMetaData().getUnifiedMetaData().getResourceLoader();
- return classLoader;
- }
-
- /**
- * Load the service endpoint interface.
- * It should only be cached during eager initialization.
- */
- public Class getServiceEndpointInterface()
- {
- Class tmpClass = seiClass;
- if (tmpClass == null && seiName != null)
- {
- try
- {
- ClassLoader classLoader = getClassLoader();
- tmpClass = classLoader.loadClass(seiName);
- if (serviceMetaData.getUnifiedMetaData().isEagerInitialized())
- {
- log.warn("Loading SEI after eager initialization");
- seiClass = tmpClass;
- }
- }
- catch (ClassNotFoundException ex)
- {
- throw new WSException("Cannot load service endpoint interface: " +
seiName, ex);
- }
- }
- return tmpClass;
- }
-
- public Use getEncodingStyle()
- {
- if (use == null)
- {
- use = Use.getDefaultUse();
- log.debug("Using default encoding style: " + use);
- }
- return use;
- }
-
- public void setEncodingStyle(Use value)
- {
- if (value != null && use != null && !use.equals(value))
- throw new WSException("Mixed encoding styles not supported");
-
- log.trace("setEncodingStyle: " + value);
- this.use = value;
- }
-
- public Style getStyle()
- {
- if (style == null)
- {
- style = Style.getDefaultStyle();
- log.debug("Using default style: " + style);
- }
- return style;
- }
-
- public void setStyle(Style value)
- {
- if (value != null && style != null && !style.equals(value))
- throw new WSException("Mixed styles not supported");
-
- log.trace("setStyle: " + value);
- this.style = value;
- }
-
- public ParameterStyle getParameterStyle()
- {
- if (parameterStyle == null)
- {
- parameterStyle = ParameterStyle.WRAPPED;
- log.debug("Using default parameter style: " + parameterStyle);
- }
- return parameterStyle;
- }
-
- public void setParameterStyle(ParameterStyle value)
- {
- if (value != null && parameterStyle != null &&
!parameterStyle.equals(value))
- throw new WSException("Mixed SOAP parameter styles not supported");
-
- log.debug("setParameterStyle: " + value);
- this.parameterStyle = value;
- }
-
- public Type getType()
- {
- return type;
- }
-
- public String getAuthMethod()
- {
- return authMethod;
- }
-
- public void setAuthMethod(String authMethod)
- {
- this.authMethod = authMethod;
- }
-
- public String getTransportGuarantee()
- {
- return transportGuarantee;
- }
-
- public void setTransportGuarantee(String transportGuarantee)
- {
- this.transportGuarantee = transportGuarantee;
- }
-
- public Properties getProperties()
- {
- return properties;
- }
-
- public void setProperties(Properties properties)
- {
- this.properties = properties;
- }
-
- public List<OperationMetaData> getOperations()
- {
- return new ArrayList<OperationMetaData>(operations);
- }
-
- public OperationMetaData getOperation(QName xmlName)
- {
- OperationMetaData opMetaData = null;
- for (OperationMetaData auxOperation : operations)
- {
- QName opQName = auxOperation.getQName();
- if (opQName.equals(xmlName))
- {
- if (opMetaData == null)
- {
- opMetaData = auxOperation;
- }
- else
- {
- throw new WSException("Cannot uniquely indetify operation: " +
xmlName);
- }
- }
- }
-
- if (opMetaData == null && getStyle() == Style.DOCUMENT)
- {
- for (OperationMetaData auxOperation : operations)
- {
- ParameterMetaData paramMetaData = null;
- for (ParameterMetaData auxParam : auxOperation.getParameters())
- {
- ParameterMode mode = auxParam.getMode();
- if (auxParam.isInHeader() == false && mode == ParameterMode.IN)
- {
- paramMetaData = auxParam;
- break;
- }
- }
- if (paramMetaData != null &&
paramMetaData.getXmlName().equals(xmlName))
- {
- if (opMetaData == null)
- {
- opMetaData = auxOperation;
- }
- else
- {
- throw new WSException("Cannot uniquely indetify operation: "
+ xmlName);
- }
- }
- }
- }
-
- return opMetaData;
- }
-
- public OperationMetaData getOperation(Method method)
- {
- if (opMetaDataCache.size() == 0)
- {
- // This can happen when the SEI mapping was not found
- log.warn("Access to empty operation meta data cache,
reinitializing");
- initializeInternal();
- }
- OperationMetaData opMetaData = opMetaDataCache.get(method);
- return opMetaData;
- }
-
- public void addOperation(OperationMetaData opMetaData)
- {
- operations.add(opMetaData);
- }
-
- public void clearOperations()
- {
- operations.clear();
- }
-
- public void addHandlers(List<HandlerMetaData> configHandlers)
- {
- handlers.addAll(configHandlers);
- }
-
- public void addHandler(HandlerMetaData handler)
- {
- handlers.add(handler);
- }
-
- public void clearHandlers()
- {
- handlers.clear();
- handlersInitialized = false;
- }
-
- public List<HandlerMetaData> getHandlerMetaData(HandlerType type)
- {
- List<HandlerMetaData> typeHandlers = new ArrayList<HandlerMetaData>();
- for (HandlerMetaData hmd : handlers)
- {
- if (hmd.getHandlerType() == type || type == HandlerType.ALL)
- typeHandlers.add(hmd);
- }
- return typeHandlers;
- }
-
- public boolean isHandlersInitialized()
- {
- return handlersInitialized;
- }
-
- public void setHandlersInitialized(boolean flag)
- {
- this.handlersInitialized = flag;
- }
-
- public void validate()
- {
- for (HandlerMetaData handler : handlers)
- handler.validate();
-
- for (OperationMetaData opMetaData : operations)
- opMetaData.validate();
- }
-
- /**
- * @see UnifiedMetaData#eagerInitialize()
- */
- public void eagerInitialize()
- {
- initializeInternal();
- }
-
- private void initializeInternal()
- {
- // reset sei class
- seiClass = null;
-
- // Initialize handlers
- for (HandlerMetaData handler : handlers)
- handler.eagerInitialize();
-
- // Initialize operations
- seiClass = getServiceEndpointInterface();
- if (seiClass != null)
- {
- List<Method> unsynchronizedMethods = new ArrayList<Method>();
- unsynchronizedMethods.addAll(Arrays.asList(seiClass.getMethods()));
-
- for (OperationMetaData opMetaData : operations)
- {
- opMetaData.eagerInitialize(unsynchronizedMethods);
- Method method = opMetaData.getJavaMethod();
- if (method != null)
- {
- opMetaDataCache.put(method, opMetaData);
- unsynchronizedMethods.remove(method);
- }
- }
- }
- }
-}
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/ExtensibleMetaData.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/ExtensibleMetaData.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/ExtensibleMetaData.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,28 +0,0 @@
-package org.jboss.ws.metadata;
-
-import java.util.Map;
-import java.util.HashMap;
-
-/**
- * Base class for UMD elements that are extensible.
- *
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 21-Mar-2006
- */
-public abstract class ExtensibleMetaData {
-
- private Map<String, MetaDataExtension> extensions = new HashMap<String,
MetaDataExtension>();
-
- public Map<String, MetaDataExtension> getExtensions() {
- return extensions;
- }
-
- public void addExtension(MetaDataExtension ext) {
- getExtensions().put(ext.getExtensionNameSpace(), ext);
- }
-
- public MetaDataExtension getExtension(String namespace) {
- return getExtensions().get(namespace);
- }
-
-}
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/FaultMetaData.java
===================================================================
--- branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/FaultMetaData.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/FaultMetaData.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,134 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.metadata;
-
-// $Id$
-
-import javax.xml.namespace.QName;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.WSException;
-import org.jboss.ws.utils.JavaUtils;
-
-/**
- * A Fault component describes a fault that a given operation supports.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @author jason.greene(a)jboss.com
- * @since 12-May-2005
- */
-public class FaultMetaData
-{
- // provide logging
- private final Logger log = Logger.getLogger(FaultMetaData.class);
-
- // The parent operation
- private OperationMetaData opMetaData;
-
- private QName xmlName;
- private QName xmlType;
- private String javaTypeName;
- private Class javaType;
-
- public FaultMetaData(OperationMetaData operation, QName xmlName, QName xmlType, String
javaTypeName)
- {
- if (xmlName == null)
- throw new IllegalArgumentException("Invalid null xmlName argument");
- if (xmlType == null)
- throw new IllegalArgumentException("Invalid null xmlType argument, for:
" + xmlName);
- if (javaTypeName == null)
- throw new IllegalArgumentException("Invalid null javaTypeName argument,
for: " + xmlName);
-
- this.opMetaData = operation;
- this.xmlName = xmlName;
- this.xmlType = xmlType;
- this.javaTypeName = javaTypeName;
- }
-
- public OperationMetaData getOperationMetaData()
- {
- return opMetaData;
- }
-
- public QName getXmlName()
- {
- return xmlName;
- }
-
- public QName getXmlType()
- {
- return xmlType;
- }
-
- public String getJavaTypeName()
- {
- return javaTypeName;
- }
-
- /** Load the java type.
- * It should only be cached during eager initialization.
- */
- public Class getJavaType()
- {
- Class tmpJavaType = javaType;
- if (tmpJavaType == null && javaTypeName != null)
- {
- try
- {
- ClassLoader loader = opMetaData.getEndpointMetaData().getClassLoader();
- tmpJavaType = JavaUtils.loadJavaType(javaTypeName, loader);
-
- if
(opMetaData.getEndpointMetaData().getServiceMetaData().getUnifiedMetaData().isEagerInitialized())
- {
- log.warn("Loading java type after eager initialization");
- javaType = tmpJavaType;
- }
- }
- catch (ClassNotFoundException ex)
- {
- throw new WSException("Cannot load java type: " + javaTypeName,
ex);
- }
- }
- return tmpJavaType;
- }
-
- public void validate()
- {
- // nothing to do
- }
-
- public void eagerInitialize()
- {
- javaType = getJavaType();
- if (javaType == null)
- throw new WSException("Cannot load java type: " + javaTypeName);
- }
-
- public String toString()
- {
- StringBuilder buffer = new StringBuilder("\nFaultMetaData");
- buffer.append("\n xmlName=" + xmlName);
- buffer.append("\n xmlType=" + xmlType);
- buffer.append("\n javaType=" + javaTypeName);
- return buffer.toString();
- }
-}
\ No newline at end of file
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/HandlerMetaData.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/HandlerMetaData.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/HandlerMetaData.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,204 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.metadata;
-
-// $Id:HandlerMetaData.java 915 2006-09-08 08:40:45Z thomas.diesler(a)jboss.com $
-
-import java.io.Serializable;
-import java.util.ArrayList;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-
-import javax.xml.namespace.QName;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.WSException;
-import org.jboss.ws.wsse.jaxrpc.WSSecurityHandlerInbound;
-import org.jboss.ws.wsse.jaxrpc.WSSecurityHandlerOutbound;
-
-/**
- * The common metdata data for a handler element
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 05-May-2006
- */
-public abstract class HandlerMetaData implements Serializable
-{
- // provide logging
- private static final Logger log = Logger.getLogger(HandlerMetaData.class);
-
- public enum HandlerType
- {
- PRE, ENDPOINT, POST, ALL
- };
-
- private transient EndpointMetaData epMetaData;
-
- // The required <handler-name> element
- private String handlerName;
- // The required <handler-class> element
- private String handlerClassName;
- // The required handler type
- private HandlerType handlerType;
- // The optional <soap-header> elements
- private Set<QName> soapHeaders = new HashSet<QName>();
- // The optional <init-param> elements
- private List<HandlerInitParam> initParams = new
ArrayList<HandlerInitParam>();
- // The cached handler class
- private Class handlerClass;
-
- public HandlerMetaData(EndpointMetaData epMetaData, HandlerType type)
- {
- this.epMetaData = epMetaData;
- this.handlerType = type;
- }
-
- public void setEndpointMetaData(EndpointMetaData epMetaData)
- {
- this.epMetaData = epMetaData;
- }
-
- public EndpointMetaData getEndpointMetaData()
- {
- return epMetaData;
- }
-
- public void setHandlerName(String value)
- {
- this.handlerName = value;
- }
-
- public String getHandlerName()
- {
- return handlerName;
- }
-
- public void setHandlerClassName(String handlerClassName)
- {
- this.handlerClassName = handlerClassName;
- }
-
- public String getHandlerClassName()
- {
- return handlerClassName;
- }
-
- public Class getHandlerClass()
- {
- if (handlerClassName == null)
- throw new IllegalStateException("Handler class name cannot be null");
-
- Class localClass = handlerClass;
- if (localClass == null)
- {
- try
- {
- ClassLoader loader = epMetaData.getClassLoader();
- localClass = loader.loadClass(handlerClassName);
- }
- catch (ClassNotFoundException ex)
- {
- throw new WSException("Cannot load handler: " + handlerClassName,
ex);
- }
- }
- return localClass;
- }
-
- public HandlerType getHandlerType()
- {
- return handlerType;
- }
-
- public void setSoapHeaders(Set<QName> soapHeaders)
- {
- this.soapHeaders = soapHeaders;
- }
-
- public Set<QName> getSoapHeaders()
- {
- return soapHeaders;
- }
-
- public void seiInitParams(List<HandlerInitParam> initParams)
- {
- this.initParams = initParams;
- }
-
- public List<HandlerInitParam> getInitParams()
- {
- return initParams;
- }
-
- public void validate()
- {
- List<String> securityHandlers = new ArrayList<String>();
- securityHandlers.add(WSSecurityHandlerInbound.class.getName());
- securityHandlers.add(WSSecurityHandlerOutbound.class.getName());
-
- if (securityHandlers.contains(handlerClassName))
- {
- if (epMetaData.getServiceMetaData().getSecurityConfiguration() == null)
- log.warn("WS-Security requires security configuration");
- }
- }
-
- public void eagerInitialize()
- {
- handlerClass = getHandlerClass();
- }
-
- public static class HandlerInitParam implements Serializable
- {
- private static final long serialVersionUID = -8687875291620457318L;
-
- // The required <handler-name> element
- private String paramName;
- // The required <handler-class> element
- private String paramValue;
-
- public String getParamName()
- {
- return paramName;
- }
-
- public void setParamName(String paramName)
- {
- this.paramName = paramName;
- }
-
- public String getParamValue()
- {
- return paramValue;
- }
-
- public void setParamValue(String paramValue)
- {
- this.paramValue = paramValue;
- }
-
- public String toString()
- {
- return "[name=" + paramName + ",value=" + paramValue +
"]";
- }
- }
-}
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/HandlerMetaDataJAXRPC.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/HandlerMetaDataJAXRPC.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/HandlerMetaDataJAXRPC.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,83 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.metadata;
-
-//$Id:HandlerMetaDataJAXRPC.java 915 2006-09-08 08:40:45Z thomas.diesler(a)jboss.com $
-
-import java.util.HashSet;
-import java.util.Set;
-
-import javax.xml.namespace.QName;
-
-/**
- * The JAXRPC metdata data for a handler element
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 05-May-2006
- */
-public class HandlerMetaDataJAXRPC extends HandlerMetaData
-{
- private static final long serialVersionUID = -5232305815202943509L;
-
- // The optional <soap-role> elements
- private Set<String> soapRoles = new HashSet<String>();
- // The optional <port-name> elements
- private Set<String> portNames = new HashSet<String>();
-
- public HandlerMetaDataJAXRPC(EndpointMetaData epMetaData, HandlerType type)
- {
- super(epMetaData, type);
- }
-
- public void setSoapRoles(Set<String> soapRoles)
- {
- this.soapRoles = soapRoles;
- }
-
- public Set<String> getSoapRoles()
- {
- return soapRoles;
- }
-
- public void setPortNames(Set<String> portNames)
- {
- this.portNames = portNames;
- }
-
- public Set<String> getPortNames()
- {
- return portNames;
- }
-
- public String toString()
- {
- StringBuffer buffer = new StringBuffer("\nHandlerMetaDataJAXRPC:");
- buffer.append("\n type=" + getHandlerType());
- buffer.append("\n name=" + getHandlerName());
- buffer.append("\n class=" + getHandlerClassName());
- buffer.append("\n params=" + getInitParams());
- buffer.append("\n headers=" + getSoapHeaders());
- buffer.append("\n roles=" + getSoapRoles());
- buffer.append("\n ports=" + getPortNames());
- return buffer.toString();
- }
-}
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/MetaDataExtension.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/MetaDataExtension.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/MetaDataExtension.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,45 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.metadata;
-
-// $Id$
-
-/**
- * Operation metaData extension.
- *
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 17-Mar-2006
- */
-public abstract class MetaDataExtension
-{
- private String extensionNameSpace;
-
- public MetaDataExtension(String extensionNameSpace)
- {
- this.extensionNameSpace = extensionNameSpace;
- }
-
- public String getExtensionNameSpace()
- {
- return extensionNameSpace;
- }
-}
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/OperationMetaData.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/OperationMetaData.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/OperationMetaData.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,600 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.metadata;
-
-// $Id$
-
-import java.lang.reflect.Method;
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.jws.soap.SOAPBinding.ParameterStyle;
-import javax.xml.namespace.QName;
-import javax.xml.rpc.ParameterMode;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.WSException;
-import org.jboss.ws.jaxrpc.ParameterWrapping;
-import org.jboss.ws.jaxrpc.Style;
-import org.jboss.ws.jaxrpc.TypeMappingImpl;
-import org.jboss.ws.jaxrpc.Use;
-import org.jboss.ws.metadata.EndpointMetaData.Type;
-import org.jboss.ws.utils.HolderUtils;
-import org.jboss.ws.utils.JavaUtils;
-import org.w3c.dom.Element;
-
-/**
- * An Operation component describes an operation that a given interface supports.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @since 12-May-2004
- */
-public class OperationMetaData extends ExtensibleMetaData
-{
- // provide logging
- private final Logger log = Logger.getLogger(OperationMetaData.class);
-
- // The parent interface
- private EndpointMetaData epMetaData;
-
- private QName qname;
- private QName responseName;
- private String javaName;
- private Method javaMethod;
- private boolean oneWay;
- private String soapAction;
- private List<ParameterMetaData> parameters = new
ArrayList<ParameterMetaData>();
- private List<FaultMetaData> faults = new ArrayList<FaultMetaData>();
- private ParameterMetaData returnParam;
-
- public OperationMetaData(QName qname, String javaName)
- {
- UnifiedMetaData umd = new UnifiedMetaData();
- ServiceMetaData smd = new ServiceMetaData(umd, new
QName("mock-service"));
- ServerEndpointMetaData epmd = new ServerEndpointMetaData(smd, new
QName("mock-endpoint"), Type.JAXRPC);
- initOperationMetaData(epmd, qname, javaName);
- }
-
- public OperationMetaData(EndpointMetaData epMetaData, QName qname, String javaName)
- {
- log.trace("new OperationMetaData: [xmlName=" + qname +
",javaName=" + javaName + "]");
- initOperationMetaData(epMetaData, qname, javaName);
- }
-
- private void initOperationMetaData(EndpointMetaData epMetaData, QName qname, String
javaName)
- {
- this.epMetaData = epMetaData;
- this.qname = qname;
- this.javaName = javaName;
-
- if (qname == null)
- throw new IllegalArgumentException("Invalid null qname argument");
- if (javaName == null)
- throw new IllegalArgumentException("Invalid null javaName argument, for:
" + qname);
-
- String nsURI = qname.getNamespaceURI();
- String localPart = qname.getLocalPart();
- this.responseName = new QName(nsURI, localPart + "Response");
- }
-
- public EndpointMetaData getEndpointMetaData()
- {
- return epMetaData;
- }
-
- public QName getQName()
- {
- return qname;
- }
-
- public QName getResponseName()
- {
- return responseName;
- }
-
- public String getSOAPAction()
- {
- return soapAction;
- }
-
- public void setSOAPAction(String soapAction)
- {
- this.soapAction = soapAction;
- }
-
- public Style getStyle()
- {
- return epMetaData.getStyle();
- }
-
- public Use getUse()
- {
- return epMetaData.getEncodingStyle();
- }
-
- public ParameterStyle getParameterStyle()
- {
- return epMetaData.getParameterStyle();
- }
-
- public boolean isRPCLiteral()
- {
- return getStyle() == Style.RPC && getUse() == Use.LITERAL;
- }
-
- public boolean isRPCEncoded()
- {
- return getStyle() == Style.RPC && getUse() == Use.ENCODED;
- }
-
- public boolean isDocumentBare()
- {
- return getStyle() == Style.DOCUMENT && getParameterStyle() ==
ParameterStyle.BARE;
- }
-
- public boolean isDocumentWrapped()
- {
- return getStyle() == Style.DOCUMENT && getParameterStyle() ==
ParameterStyle.WRAPPED;
- }
-
- public String getJavaName()
- {
- return javaName;
- }
-
- public Method getJavaMethod()
- {
- Method tmpMethod = javaMethod;
- Class seiClass = epMetaData.getServiceEndpointInterface();
- if (tmpMethod == null && seiClass != null)
- {
- for (Method method : seiClass.getMethods())
- {
- if (isJavaMethod(method))
- {
- tmpMethod = method;
-
- UnifiedMetaData wsMetaData =
epMetaData.getServiceMetaData().getUnifiedMetaData();
- if (wsMetaData.isEagerInitialized())
- {
- if (UnifiedMetaData.isFinalRelease() == false)
- log.warn("Loading java method after eager initialization",
new IllegalStateException());
-
- javaMethod = method;
- }
-
- break;
- }
- }
-
- if (tmpMethod == null)
- throw new WSException("Cannot find java method: " + javaName);
- }
- return tmpMethod;
- }
-
- public boolean isJavaMethod(Method method)
- {
- boolean isJavaMethod = method.equals(javaMethod);
- if (isJavaMethod == false)
- {
- String methodName = method.getName();
- Class[] methodTypes = method.getParameterTypes();
- Class returnType = method.getReturnType();
-
- if (javaName.equals(methodName))
- {
- log.trace("Found java method: " + method);
-
- // match document/literal/wrapped
- if (isDocumentWrapped())
- {
- if (ParameterWrapping.matchRequestParameters(this, methodTypes) &&
ParameterWrapping.matchResponseParameters(this, returnType))
- {
- log.debug("Found wrapped java method: " + method);
- isJavaMethod = true;
- }
- }
- else
- {
- // Match the return parameter
- ParameterMetaData returnMetaData = getReturnParameter();
- if (returnMetaData != null)
- {
- if (!matchParameter(returnMetaData, returnType, true) &&
!matchParameter(returnMetaData, returnType, false))
- {
- log.debug("Unmatched return meta data: " + returnType);
- }
- }
- else
- {
- if (returnType != void.class)
- {
- log.debug("Unmatched return meta data: " + returnType);
- }
- }
-
- // compare params by java type name
- if (compareMethodParams(methodTypes, true))
- {
- log.debug("Found best matching java method: " + method);
- isJavaMethod = true;
- }
-
- // compare params by assignability
- else if (compareMethodParams(methodTypes, false))
- {
- log.debug("Found possible matching java method: " + method);
- isJavaMethod = true;
- }
- }
- }
- }
-
- if (log.isTraceEnabled())
- log.trace("Synchronized java method:\n" + method + "\nwith:
" + toString());
-
- return isJavaMethod;
- }
-
- /** Return true if this is a generic message style destination that takes a
org.w3c.dom.Element
- */
- public boolean isMessageEndpoint()
- {
- boolean isMessageEndpoint = false;
- if (parameters.size() == 1)
- {
- ParameterMetaData inParam = parameters.get(0);
- if (JavaUtils.isAssignableFrom(Element.class, inParam.getJavaType()))
- {
- isMessageEndpoint = true;
- }
- }
- return isMessageEndpoint;
- }
-
- private boolean compareMethodParams(Class[] methodParams, boolean matchByTypeName)
- {
- log.trace("Compare method params by type name: " + matchByTypeName);
-
- boolean pass = (parameters.size() == methodParams.length);
- if (pass == false)
- log.trace("Unmatched parameter count: " + parameters.size() +
"!=" + methodParams.length);
-
- for (int i = 0; pass && i < methodParams.length; i++)
- {
- ParameterMetaData paramMetaData = parameters.get(i);
- pass = matchParameter(paramMetaData, methodParams[i], matchByTypeName);
- }
- return pass;
- }
-
- private boolean matchParameter(ParameterMetaData paramMetaData, Class methodParam,
boolean matchByTypeName)
- {
- QName xmlType = paramMetaData.getXmlType();
- String javaType = paramMetaData.getJavaTypeName();
-
- boolean pass = true;
- if (paramMetaData != returnParam && paramMetaData.getMode() !=
ParameterMode.IN)
- {
- if (HolderUtils.isHolderType(methodParam))
- {
- methodParam = HolderUtils.getValueType(methodParam);
- }
- else
- {
- pass = false;
- }
- }
-
- if (pass == true)
- {
- // In case the parameter java type has not been initialized
- // This happens when the UMDM is build from WSDL only (i.e. JAXWS Service)
- TypeMappingImpl typeMapping = epMetaData.getServiceMetaData().getTypeMapping();
- if (javaType == null)
- {
- javaType = methodParam.getName();
- paramMetaData.setJavaTypeName(javaType);
- log.debug("Set parameter java type from method param: " +
javaType);
- }
-
- if (matchByTypeName)
- {
- pass = methodParam.getName().equals(javaType);
- }
- else
- {
- String paramTypeName = methodParam.getName();
- Class paramType = paramMetaData.getJavaType();
- pass = JavaUtils.isAssignableFrom(methodParam, paramType);
-
- if (typeMapping.isRegistered(methodParam, xmlType))
- {
- log.debug("Adjust parameter type from " + paramType.getName() +
" to " + paramTypeName);
- paramMetaData.setJavaTypeName(paramTypeName);
- pass = true;
- }
- }
- }
-
- String name = (matchByTypeName) ? paramMetaData.getJavaTypeName() :
paramMetaData.getJavaType().getName();
- log.trace((pass ? "Matched" : "Unmatched") + " parameter:
" + name + " == " + methodParam.getName());
- return pass;
- }
-
- public boolean isOneWayOperation()
- {
- return oneWay;
- }
-
- public void setOneWayOperation(boolean oneWayOperation)
- {
- this.oneWay = oneWayOperation;
- assertOneWayOperation();
- }
-
- public ParameterMetaData getParameter(QName xmlName)
- {
- ParameterMetaData paramMetaData = null;
- for (int i = 0; paramMetaData == null && i < parameters.size(); i++)
- {
- ParameterMetaData aux = parameters.get(i);
- if (xmlName.equals(aux.getXmlName()))
- paramMetaData = aux;
- }
- return paramMetaData;
- }
-
- /** Get the IN or INOUT parameter list */
- public List<ParameterMetaData> getInputParameters()
- {
- List<ParameterMetaData> retList = new ArrayList<ParameterMetaData>();
- for (ParameterMetaData paramMetaData : parameters)
- {
- ParameterMode mode = paramMetaData.getMode();
- if (mode == ParameterMode.IN || mode == ParameterMode.INOUT)
- retList.add(paramMetaData);
- }
- return retList;
- }
-
- /** Get the OUT or INOUT parameter list */
- public List<ParameterMetaData> getOutputParameters()
- {
- List<ParameterMetaData> retList = new ArrayList<ParameterMetaData>();
- for (ParameterMetaData paramMetaData : parameters)
- {
- ParameterMode mode = paramMetaData.getMode();
- if (mode == ParameterMode.OUT || mode == ParameterMode.INOUT)
- retList.add(paramMetaData);
- }
- return retList;
- }
-
- /** Get the non header parameter list */
- public List<ParameterMetaData> getNonHeaderParameters()
- {
- List<ParameterMetaData> retList = new ArrayList<ParameterMetaData>();
- for (ParameterMetaData paramMetaData : parameters)
- {
- if (paramMetaData.isInHeader() == false)
- retList.add(paramMetaData);
- }
- return retList;
- }
-
- public List<ParameterMetaData> getParameters()
- {
- return new ArrayList<ParameterMetaData>(parameters);
- }
-
- public void addParameter(ParameterMetaData pmd)
- {
- log.trace("addParameter: [xmlName=" + pmd.getXmlName() +
",xmlType=" + pmd.getXmlType() + "]");
- parameters.add(pmd);
- assertOneWayOperation();
- }
-
- public void removeAllParameters()
- {
- parameters.clear();
- }
-
- public ParameterMetaData getReturnParameter()
- {
- return returnParam;
- }
-
- public void setReturnParameter(ParameterMetaData returnParam)
- {
- log.trace("setReturnParameter: " + returnParam);
- returnParam.setMode(ParameterMode.OUT);
- this.returnParam = returnParam;
- assertOneWayOperation();
- }
-
- public List<FaultMetaData> getFaults()
- {
- return new ArrayList<FaultMetaData>(faults);
- }
-
- public FaultMetaData getFault(QName xmlName)
- {
- FaultMetaData faultMetaData = null;
- for (int i = 0; faultMetaData == null && i < faults.size(); i++)
- {
- FaultMetaData aux = faults.get(i);
- if (aux.getXmlName().equals(xmlName))
- faultMetaData = aux;
- }
- return faultMetaData;
- }
-
- public FaultMetaData getFault(Class javaType)
- {
- FaultMetaData faultMetaData = null;
- for (FaultMetaData aux : faults)
- {
- if (aux.getJavaType().equals(javaType))
- {
- faultMetaData = aux;
- break;
- }
- }
- return faultMetaData;
- }
-
- public void addFault(FaultMetaData fault)
- {
- log.trace("addFault: " + fault);
- faults.add(fault);
- assertOneWayOperation();
- }
-
- // A JSR-181 processor is REQUIRED to report an error if an
- // operation marked @Oneway has a return value, declares any checked exceptions or has
any
- // INOUT or OUT parameters.
- private void assertOneWayOperation()
- {
- if (oneWay)
- {
- if (returnParam != null)
- throw new WSException("OneWay operations cannot have a return
parameter");
-
- if (faults.size() > 0)
- throw new WSException("OneWay operations cannot have checked
exceptions");
-
- for (ParameterMetaData paramMetaData : parameters)
- {
- if (paramMetaData.getMode() != ParameterMode.IN)
- throw new WSException("OneWay operations cannot have INOUT or OUT
parameters");
- }
- }
- }
-
- public void assertDocumentBare()
- {
- if (isDocumentBare())
- {
- int in = 0;
- int out = 0;
-
- for (ParameterMetaData paramMetaData : parameters)
- {
- if (paramMetaData.isInHeader())
- continue;
-
- ParameterMode mode = paramMetaData.getMode();
- if (mode != ParameterMode.OUT)
- in++;
- if (mode != ParameterMode.IN)
- out++;
- }
-
- if (returnParam != null && !returnParam.isInHeader())
- out++;
-
- if (!((oneWay && in == 1 && out == 0) || (in == 1 && out
== 1)))
- throw new WSException("The body of a documnet/literal bare message
requires only 1 input and only 1 output (or 0 if oneway). method: " + javaName +
" in: "
- + in + " out: " + out);
- }
- }
-
- public void validate()
- {
- for (ParameterMetaData parameter : parameters)
- parameter.validate();
-
- for (FaultMetaData fault : faults)
- fault.validate();
- }
-
- /**
- * @see UnifiedMetaData#eagerInitialize()
- */
- public void eagerInitialize(List<Method> unsynchronizedMethods)
- {
- // reset java method
- javaMethod = null;
-
- for (ParameterMetaData parameter : parameters)
- parameter.eagerInitialize();
-
- if (returnParam != null)
- returnParam.eagerInitialize();
-
- for (FaultMetaData fault : faults)
- fault.eagerInitialize();
-
- // Method initialization
- for (Method method : unsynchronizedMethods)
- {
- if (isJavaMethod(method))
- {
- javaMethod = method;
- break;
- }
- }
-
- // Report unsynchronized java method
- if (javaMethod == null)
- {
- StringBuilder errMsg = new StringBuilder("Cannot synchronize to any of
these methods:");
- for (Method method : unsynchronizedMethods)
- {
- errMsg.append("\n" + method);
- }
- errMsg.append("\n" + toString());
- throw new IllegalStateException(errMsg.toString());
- }
-
- }
-
- public String toString()
- {
- StringBuilder buffer = new StringBuilder("\nOperationMetaData:");
- buffer.append("\n qname=" + qname);
- buffer.append("\n javaName=" + javaName);
- buffer.append("\n style=" + getStyle() + "/" + getUse());
- if (getStyle() == Style.DOCUMENT)
- {
- buffer.append("/" + getParameterStyle());
- }
- buffer.append("\n oneWay=" + oneWay);
- buffer.append("\n soapAction=" + soapAction);
- for (ParameterMetaData param : parameters)
- {
- buffer.append(param);
- }
- if (returnParam != null)
- {
- buffer.append(returnParam.toString());
- }
- for (FaultMetaData fault : faults)
- {
- buffer.append(fault);
- }
- return buffer.toString();
- }
-}
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/ParameterMetaData.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/ParameterMetaData.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/ParameterMetaData.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,355 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.metadata;
-
-// $Id$
-
-import java.util.ArrayList;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-import java.util.StringTokenizer;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.ParameterMode;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.Constants;
-import org.jboss.ws.WSException;
-import org.jboss.ws.jaxrpc.ParameterWrapping;
-import org.jboss.ws.utils.JavaUtils;
-
-/**
- * A request/response parameter that a given operation supports.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @since 12-May-2005
- */
-public class ParameterMetaData
-{
- // provide logging
- private final Logger log = Logger.getLogger(ParameterMetaData.class);
-
- // The parent operation
- private OperationMetaData opMetaData;
-
- private QName xmlName;
- private QName xmlType;
- private String javaTypeName;
- private Class javaType;
- private ParameterMode mode;
- private Set<String> mimeTypes;
- private boolean inHeader;
- private boolean isSwA;
- private boolean isXOP;
- private List<String> wrappedVariables = new ArrayList<String>();
- private List<String> wrappedTypes = new ArrayList<String>();
- private List<QName> wrappedElementNames = new ArrayList<QName>();
-
- // SOAP-ENC:Array
- private boolean soapArrayParam;
- private QName soapArrayCompType;
-
- private static final List<String> messageTypes = new ArrayList<String>();
- static
- {
- messageTypes.add("javax.xml.soap.SOAPElement");
- messageTypes.add("org.w3c.dom.Element");
- }
-
- public ParameterMetaData(OperationMetaData opMetaData, QName xmlName, QName xmlType,
String javaTypeName)
- {
- this.xmlName = xmlName;
- this.xmlType = xmlType;
- this.opMetaData = opMetaData;
- this.mode = ParameterMode.IN;
- this.javaTypeName = javaTypeName;
-
- if (xmlName == null)
- throw new IllegalArgumentException("Invalid null xmlName argument");
- if (xmlType == null)
- throw new IllegalArgumentException("Invalid null xmlType argument, for:
" + xmlName);
-
- // Remove the prefixes
- if (xmlName.getNamespaceURI().length() > 0)
- this.xmlName = new QName(xmlName.getNamespaceURI(), xmlName.getLocalPart());
-
- if (xmlType.getNamespaceURI().length() > 0)
- this.xmlType = new QName(xmlType.getNamespaceURI(), xmlType.getLocalPart());
-
- // Special case to identify attachments
- if (Constants.NS_ATTACHMENT_MIME_TYPE.equals(xmlType.getNamespaceURI()))
- {
- String mimeType = convertXmlTypeToMimeType(xmlType);
- setMimeTypes(mimeType);
- this.isSwA = true;
- }
- }
-
- public OperationMetaData getOperationMetaData()
- {
- return opMetaData;
- }
-
- public QName getXmlName()
- {
- return xmlName;
- }
-
- public QName getXmlType()
- {
- return xmlType;
- }
-
- public String getJavaTypeName()
- {
- return javaTypeName;
- }
-
-
- public void setJavaTypeName(String typeName)
- {
- // Warn if this is called after eager initialization
- UnifiedMetaData wsMetaData =
opMetaData.getEndpointMetaData().getServiceMetaData().getUnifiedMetaData();
- if (wsMetaData.isEagerInitialized() && UnifiedMetaData.isFinalRelease() ==
false)
- log.warn("Set java type name after eager initialization", new
IllegalStateException());
-
- javaTypeName = typeName;
- javaType = null;
- }
-
- /** Load the java type.
- * It should only be cached during eager initialization.
- */
- public Class getJavaType()
- {
- Class tmpJavaType = javaType;
- if (tmpJavaType == null && javaTypeName != null)
- {
- try
- {
- ClassLoader loader = opMetaData.getEndpointMetaData().getClassLoader();
- tmpJavaType = JavaUtils.loadJavaType(javaTypeName, loader);
-
- UnifiedMetaData wsMetaData =
opMetaData.getEndpointMetaData().getServiceMetaData().getUnifiedMetaData();
- if (wsMetaData.isEagerInitialized())
- {
- // This should not happen, see the warning in setJavaTypeName
- javaType = tmpJavaType;
- }
- }
- catch (ClassNotFoundException ex)
- {
- throw new WSException("Cannot load java type: " + javaTypeName,
ex);
- }
- }
- return tmpJavaType;
- }
-
-
- public ParameterMode getMode()
- {
- return mode;
- }
-
- public void setMode(String mode)
- {
- if("IN".equals(mode))
- setMode(ParameterMode.IN);
- else if("INOUT".equals(mode))
- setMode(ParameterMode.INOUT);
- else if("OUT".equals(mode))
- setMode(ParameterMode.OUT);
- else
- throw new IllegalArgumentException("Invalid mode: " + mode);
- }
-
- public void setMode(ParameterMode mode)
- {
- this.mode = mode;
- }
-
- public Set<String> getMimeTypes()
- {
- return mimeTypes;
- }
-
- public void setMimeTypes(String mimeStr)
- {
- mimeTypes = new HashSet<String>();
- StringTokenizer st = new StringTokenizer(mimeStr, ",");
- while (st.hasMoreTokens())
- mimeTypes.add(st.nextToken().trim());
- }
-
- public boolean isInHeader()
- {
- return inHeader;
- }
-
- public void setInHeader(boolean inHeader)
- {
- this.inHeader = inHeader;
- }
-
- public boolean isSwA()
- {
- return isSwA;
- }
-
- public void setSwA(boolean isSwA)
- {
- this.isSwA = isSwA;
- }
-
- public boolean isXOP()
- {
- return isXOP;
- }
-
- public void setXOP(boolean isXOP)
- {
- this.isXOP = isXOP;
- }
-
- public List<String> getWrappedTypes()
- {
- return wrappedTypes;
- }
-
- public List<String> getWrappedVariables()
- {
- return wrappedVariables;
- }
-
- public List<QName> getWrappedElementNames()
- {
- return wrappedElementNames;
- }
-
- public boolean isSOAPArrayParam()
- {
- return soapArrayParam;
- }
-
- public void setSOAPArrayParam(boolean soapArrayParam)
- {
- this.soapArrayParam = soapArrayParam;
- }
-
- public QName getSOAPArrayCompType()
- {
- return soapArrayCompType;
- }
-
- public void setSOAPArrayCompType(QName xmlType)
- {
- this.soapArrayCompType = xmlType;
- }
-
- public boolean isMessageType()
- {
- return messageTypes.contains(javaTypeName);
- }
-
- public static boolean isMessageType(String javaTypeName)
- {
- return messageTypes.contains(javaTypeName);
- }
-
- /** Converts a proprietary JBossWS attachment xml type to the MIME type that it
represents.
- */
- private String convertXmlTypeToMimeType(QName xmlType)
- {
- StringBuilder mimeName = new StringBuilder(xmlType.getLocalPart());
- int pos = mimeName.indexOf("_");
- if (pos == -1)
- throw new IllegalArgumentException("Invalid mime type: " + xmlType);
-
- mimeName.setCharAt(pos, '/');
- return mimeName.toString();
- }
-
- public void validate()
- {
- // nothing to do
- }
-
- /**
- * @see UnifiedMetaData#eagerInitialize()
- */
- public void eagerInitialize()
- {
- // reset java type
- javaType = null;
-
- TypesMetaData typesMetaData =
getOperationMetaData().getEndpointMetaData().getServiceMetaData().getTypesMetaData();
- if (getOperationMetaData().isDocumentWrapped() && isMessageType() ==
false)
- {
- TypeMappingMetaData tmMetaData =
typesMetaData.getTypeMappingByXMLType(xmlType);
- if (tmMetaData == null)
- ParameterWrapping.generateWrapper(this, true);
- }
-
- javaType = getJavaType();
- if (javaType == null)
- throw new WSException("Cannot load java type: " + javaTypeName);
- }
-
- public String toString()
- {
- boolean isReturn = (opMetaData.getReturnParameter() == this);
- StringBuilder buffer = new StringBuilder("\n" + (isReturn ?
"ReturnMetaData:" : "ParameterMetaData:"));
- buffer.append("\n xmlName=" + getXmlName());
- buffer.append("\n xmlType=" + getXmlType());
- buffer.append("\n javaType=" + getJavaTypeName());
- buffer.append("\n mode=" + getMode());
- buffer.append("\n inHeader=" + isInHeader());
-
- if (soapArrayParam)
- buffer.append("\n soapArrayCompType=" + soapArrayCompType);
-
- if (wrappedVariables != null)
- buffer.append("\n wrappedVariables=" + wrappedVariables);
-
- if (wrappedTypes != null)
- buffer.append("\n wrappedTypes=" + wrappedTypes);
-
- if (wrappedElementNames != null)
- buffer.append("\n wrappedElementNames=" + wrappedElementNames);
-
- if (isSwA())
- {
- buffer.append("\n isSwA=" + isSwA());
- buffer.append("\n mimeTypes=" + getMimeTypes());
- }
-
- if (isXOP())
- {
- buffer.append("\n isXOP=" + isXOP());
- buffer.append("\n mimeTypes=" + getMimeTypes());
- }
-
- return buffer.toString();
- }
-}
\ No newline at end of file
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/ServerEndpointMetaData.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/ServerEndpointMetaData.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/ServerEndpointMetaData.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,265 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.metadata;
-
-// $Id$
-
-import java.net.MalformedURLException;
-import java.net.URL;
-
-import javax.management.ObjectName;
-import javax.xml.namespace.QName;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.WSException;
-import org.jboss.ws.metadata.HandlerMetaData.HandlerType;
-import org.jboss.ws.metadata.config.WSCommonConfig;
-import org.jboss.ws.metadata.config.WSConfigFactory;
-import org.jboss.ws.metadata.config.jaxrpc.WSConfigRootJAXRPC;
-import org.jboss.ws.server.ServiceEndpoint;
-
-/**
- * Client side endpoint meta data.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @since 12-May-2005
- */
-public class ServerEndpointMetaData extends EndpointMetaData
-{
- // provide logging
- private static Logger log = Logger.getLogger(ServerEndpointMetaData.class);
-
- public static final String SEPID_DOMAIN = "jboss.ws";
- public static final String SEPID_PROPERTY_CONTEXT = "context";
- public static final String SEPID_PROPERTY_ENDPOINT = "endpoint";
-
- // The REQUIRED link name
- private String linkName;
- // Legacy JSR-109 port component name
- private String portComponentName;
- // The endpoint implementation bean
- private String implName;
- // The unique service endpointID
- private ObjectName sepID;
- // The HTTP context root
- private String contextRoot;
- // The HTTP virtual hosts
- private String[] virtualHosts;
- // The HTTP url parttern
- private String urlPattern;
- // The bean that registers with the ServiceEndpointManager
- private String managedEndpointBean = ServiceEndpoint.class.getName();
-
- public ServerEndpointMetaData(ServiceMetaData service, QName portName, Type type)
- {
- super(service, portName, type);
- }
-
- public void setConfigName(String configName)
- {
- super.setConfigName(configName);
- endpointConfig = null;
- }
-
- public void setConfigFile(String configFile)
- {
- super.setConfigFile(configFile);
- endpointConfig = null;
- }
-
- public String getLinkName()
- {
- return linkName;
- }
-
- public void setLinkName(String linkName)
- {
- this.linkName = linkName;
- }
-
- public String getPortComponentName()
- {
- return portComponentName;
- }
-
- public void setPortComponentName(String portComponentName)
- {
- this.portComponentName = portComponentName;
- }
-
- public String getServiceEndpointImplName()
- {
- return implName;
- }
-
- public void setServiceEndpointImplName(String endpointImpl)
- {
- this.implName = endpointImpl;
- }
-
- public ObjectName getServiceEndpointID()
- {
- return sepID;
- }
-
- public void setServiceEndpointID(ObjectName endpointID)
- {
- this.sepID = endpointID;
- }
-
- public String getContextRoot()
- {
- return contextRoot;
- }
-
- public void setContextRoot(String contextRoot)
- {
- this.contextRoot = contextRoot;
- }
-
-
- public String[] getVirtualHosts()
- {
- return virtualHosts;
- }
-
- public void setVirtualHosts(String[] virtualHosts)
- {
- this.virtualHosts = virtualHosts;
- }
-
- public String getURLPattern()
- {
- return urlPattern;
- }
-
- public void setURLPattern(String urlPattern)
- {
- this.urlPattern = urlPattern;
- }
-
- public String getManagedEndpointBean()
- {
- return managedEndpointBean;
- }
-
- public void setManagedEndpointBean(String managedEndpointBean)
- {
- this.managedEndpointBean = managedEndpointBean;
- }
-
- @Override
- public WSCommonConfig getEndpointConfig()
- {
- if (endpointConfig == null)
- {
- String configName = getConfigName();
- if (configName == null)
- {
- configName = "Standard Endpoint";
- setConfigName(configName);
- }
-
- String configFile = getConfigFile();
- if (configFile == null)
- {
- configFile = "META-INF/standard-jaxrpc-endpoint-config.xml";
- setConfigFile(configFile);
- }
-
- log.debug("getEndpointConfig: [name=" + configName + ",url="
+ configFile + "]");
-
- URL configURL = null;
- try
- {
- configURL = new URL(configFile);
- }
- catch (MalformedURLException ex)
- {
- // ignore
- }
-
- // Try to get the URL as resource
- if (configURL == null)
- {
- ClassLoader cl = Thread.currentThread().getContextClassLoader();
- configURL = cl.getResource(configFile);
- if (configURL == null)
- throw new WSException("Cannot get resource: " + configFile);
- }
-
- // Get the config root
- Object wsConfig;
- try
- {
- WSConfigFactory factory = WSConfigFactory.newInstance();
- wsConfig = factory.parseWithObjectModelFactory(configURL);
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Exception ex)
- {
- throw new WSException("Cannot parse client config", ex);
- }
-
- // Get the endpoint config
- endpointConfig =
((WSConfigRootJAXRPC)wsConfig).getEndpointConfigByName(configName);
- if (endpointConfig == null)
- throw new WSException("Cannot obtain endpoint config: " +
configName);
- }
- return endpointConfig;
- }
-
- public String toString()
- {
- StringBuilder buffer = new StringBuilder("\nServerEndpointMetaData:");
- buffer.append("\n type=" + getType());
- buffer.append("\n qname=" + getQName());
- buffer.append("\n id=" + getServiceEndpointID().getCanonicalName());
- buffer.append("\n address=" + getEndpointAddress());
- buffer.append("\n binding=" + getBindingId());
- buffer.append("\n linkName=" + getLinkName());
- buffer.append("\n implName=" + getServiceEndpointImplName());
- buffer.append("\n seiName=" + getServiceEndpointInterfaceName());
- buffer.append("\n portComponentName=" + getPortComponentName());
- buffer.append("\n contextRoot=" + getContextRoot());
- buffer.append("\n urlPattern=" + getURLPattern());
- buffer.append("\n configFile=" + getConfigFile());
- buffer.append("\n configName=" + getConfigName());
- buffer.append("\n authMethod=" + getAuthMethod());
- buffer.append("\n transportGuarantee=" + getTransportGuarantee());
- buffer.append("\n properties=" + getProperties());
-
- for (OperationMetaData opMetaData : getOperations())
- {
- buffer.append("\n" + opMetaData);
- }
- for (HandlerMetaData hdlMetaData : getHandlerMetaData(HandlerType.ALL))
- {
- buffer.append("\n" + hdlMetaData);
- }
- return buffer.toString();
- }
-}
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/ServiceMetaData.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/ServiceMetaData.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/ServiceMetaData.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,469 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.metadata;
-
-// $Id$
-
-import java.io.IOException;
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.util.ArrayList;
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Properties;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.encoding.TypeMappingRegistry;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.WSException;
-import org.jboss.ws.jaxrpc.TypeMappingImpl;
-import org.jboss.ws.jaxrpc.TypeMappingRegistryImpl;
-import org.jboss.ws.jaxrpc.Use;
-import org.jboss.ws.jaxrpc.encoding.SOAPArrayDeserializerFactory;
-import org.jboss.ws.jaxrpc.encoding.SOAPArraySerializerFactory;
-import org.jboss.ws.jbossxb.JBossXBDeserializerFactory;
-import org.jboss.ws.jbossxb.JBossXBSerializerFactory;
-import org.jboss.ws.jbossxb.SchemaBindingBuilder;
-import org.jboss.ws.metadata.HandlerMetaData.HandlerType;
-import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
-import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMappingFactory;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
-import org.jboss.ws.metadata.wsdl.WSDLTypes;
-import org.jboss.ws.metadata.wsdl.WSDLUtils;
-import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel;
-import org.jboss.ws.metadata.wsse.WSSecurityConfiguration;
-import org.jboss.ws.utils.JavaUtils;
-import org.jboss.xb.binding.sunday.unmarshalling.SchemaBinding;
-
-/**
- * A Service component describes a set of endpoints.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 12-May-2005
- */
-public class ServiceMetaData
-{
- // provide logging
- private static final Logger log = Logger.getLogger(ServiceMetaData.class);
-
- // The parent meta data.
- private UnifiedMetaData wsMetaData;
-
- // The service endpoints
- private Map<QName, EndpointMetaData> endpoints = new LinkedHashMap<QName,
EndpointMetaData>();
-
- private QName qname;
- private String wsdName;
- private String wsdlFile;
- private String jaxrpcMappingFile;
- private String wsdlPublishLocation;
-
- // The type mapping that is maintained by this service
- private TypesMetaData types;
- private TypeMappingRegistry tmRegistry = new TypeMappingRegistryImpl();
- private SchemaBinding schemaBinding;
-
- // Arbitrary properties given by <call-property>
- private Properties properties;
-
- // derived cached encoding style
- private Use encStyle;
-
- // The security configuration
- private WSSecurityConfiguration securityConfiguration;
-
- public ServiceMetaData(UnifiedMetaData wsMetaData, QName name)
- {
- this.wsMetaData = wsMetaData;
- this.qname = name;
- this.types = new TypesMetaData(this);
- }
-
- public UnifiedMetaData getUnifiedMetaData()
- {
- return wsMetaData;
- }
-
- public void setQName(QName name)
- {
- this.qname = name;
- }
-
- public QName getQName()
- {
- return qname;
- }
-
- public String getWebserviceDescriptionName()
- {
- return wsdName;
- }
-
- public void setWebserviceDescriptionName(String wsdName)
- {
- this.wsdName = wsdName;
- }
-
- public String getWsdlFile()
- {
- return wsdlFile;
- }
-
- public void setWsdlFile(String wsdlFile)
- {
- this.wsdlFile = wsdlFile;
- }
-
- public String getWsdlPublishLocation()
- {
- return wsdlPublishLocation;
- }
-
- public void setWsdlPublishLocation(String wsdlPublishLocation)
- {
- this.wsdlPublishLocation = wsdlPublishLocation;
- }
-
- public Properties getProperties()
- {
- return properties;
- }
-
- public void setProperties(Properties properties)
- {
- this.properties = properties;
- }
-
- public TypesMetaData getTypesMetaData()
- {
- return types;
- }
-
- public List<EndpointMetaData> getEndpoints()
- {
- return new ArrayList<EndpointMetaData>(endpoints.values());
- }
-
- public EndpointMetaData getEndpoint(QName portName)
- {
- return endpoints.get(portName);
- }
-
- public EndpointMetaData getEndpointByServiceEndpointInterface(String seiName)
- {
- EndpointMetaData epMetaData = null;
- for (EndpointMetaData epmd : endpoints.values())
- {
- if (seiName.equals(epmd.getServiceEndpointInterfaceName()))
- {
- if (epMetaData != null)
- {
- // The CTS uses Service.getPort(Class) with multiple endpoints
implementing the same SEI
- log.warn("Multiple possible endpoints implementing SEI: " +
seiName);
- }
- epMetaData = epmd;
- }
- }
- return epMetaData;
- }
-
- public void addEndpoint(EndpointMetaData epMetaData)
- {
- QName portName = epMetaData.getQName();
-
- // This happends when we have multiple port components in sharing the same wsdl
port
- // The EndpointMetaData name is the wsdl port, so we cannot have multiple meta data
for the same port.
- if (endpoints.get(portName) != null)
- throw new WSException("EndpointMetaData name must be unique: " +
portName);
-
- endpoints.put(portName, epMetaData);
- }
-
- public String getJaxrpcMappingFile()
- {
- return jaxrpcMappingFile;
- }
-
- public void setJaxrpcMappingFile(String jaxrpcMappingFile)
- {
- this.jaxrpcMappingFile = jaxrpcMappingFile;
- }
-
- public JavaWsdlMapping getJavaWsdlMapping()
- {
- JavaWsdlMapping javaWsdlMapping =
(JavaWsdlMapping)wsMetaData.getMappingDefinition(jaxrpcMappingFile);
- if (javaWsdlMapping == null && jaxrpcMappingFile != null)
- {
- URL mappingLocation = null;
- try
- {
- mappingLocation = new URL(jaxrpcMappingFile);
- }
- catch (MalformedURLException e)
- {
- // ignore
- }
- if (mappingLocation == null)
- {
- mappingLocation =
wsMetaData.getResourceLoader().getResource(jaxrpcMappingFile);
- }
-
- if (mappingLocation == null)
- throw new IllegalArgumentException("Cannot find jaxrpc-mapping.xml in
deployment: " + jaxrpcMappingFile);
-
- try
- {
- JavaWsdlMappingFactory mappingFactory =
JavaWsdlMappingFactory.newInstance();
- javaWsdlMapping = mappingFactory.parse(mappingLocation);
- wsMetaData.addMappingDefinition(jaxrpcMappingFile, javaWsdlMapping);
- }
- catch (IOException e)
- {
- throw new WSException("Cannot parse jaxrpc-mapping.xml", e);
- }
- }
- return javaWsdlMapping;
- }
-
- /**
- * Get the wsdl definition that corresponds to the wsdl-file element.
- */
- public WSDLDefinitions getWsdlDefinitions()
- {
- WSDLDefinitions wsdlDefinitions =
(WSDLDefinitions)wsMetaData.getWSDLDefinition(wsdlFile);
- if (wsdlDefinitions == null && wsdlFile != null)
- {
- URL wsdlLocation = getWsdlLocation();
- if (wsdlLocation == null)
- throw new IllegalArgumentException("Cannot find wsdl in deployment:
" + wsdlFile);
-
- WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
- wsdlDefinitions = factory.parse(wsdlLocation);
- wsMetaData.addWSDLDefinition(wsdlFile, wsdlDefinitions);
- }
- return wsdlDefinitions;
- }
-
- public URL getWsdlLocation()
- {
- URL wsdlLocation = null;
- if (wsdlFile != null)
- {
- try
- {
- wsdlLocation = new URL(wsdlFile);
- }
- catch (MalformedURLException e)
- {
- // ignore
- }
- if (wsdlLocation == null)
- {
- wsdlLocation = wsMetaData.getResourceLoader().getResource(wsdlFile);
- }
- }
- return wsdlLocation;
- }
-
- public TypeMappingImpl getTypeMapping()
- {
- Use encStyle = getEncodingStyle();
- TypeMappingImpl typeMapping =
(TypeMappingImpl)tmRegistry.getTypeMapping(encStyle.toURI());
- if (typeMapping == null)
- throw new WSException("No type mapping for encoding style: " +
encStyle);
-
- return typeMapping;
- }
-
- public WSSecurityConfiguration getSecurityConfiguration()
- {
- return securityConfiguration;
- }
-
- public void setSecurityConfiguration(WSSecurityConfiguration securityConfiguration)
- {
- this.securityConfiguration = securityConfiguration;
- }
-
- public Use getEncodingStyle()
- {
- if (encStyle == null)
- {
- if (endpoints.size() > 0)
- {
- for (EndpointMetaData epMetaData : endpoints.values())
- {
- if (encStyle == null)
- {
- encStyle = epMetaData.getEncodingStyle();
- }
- else if (encStyle.equals(epMetaData.getEncodingStyle()) == false)
- {
- throw new WSException("Conflicting encoding styles not
supported");
- }
- }
- }
- else
- {
- encStyle = Use.LITERAL;
- }
- }
- return encStyle;
- }
-
- public SchemaBinding getSchemaBinding()
- {
- JavaWsdlMapping wsdlMapping = getJavaWsdlMapping();
- if (schemaBinding == null && getEncodingStyle() == Use.LITERAL &&
wsdlMapping != null)
- {
- JBossXSModel xsModel = types.getSchemaModel();
- SchemaBindingBuilder bindingBuilder = new SchemaBindingBuilder();
- schemaBinding = bindingBuilder.buildSchemaBinding(xsModel, wsdlMapping);
- }
- return schemaBinding;
- }
-
- public void validate()
- {
- // Validate that there is at least one handler configured
- // if we have a security configuration
- if (securityConfiguration != null)
- {
- int handlerCount = 0;
- for (EndpointMetaData epMetaData : endpoints.values())
- {
- handlerCount += epMetaData.getHandlerMetaData(HandlerType.ALL).size();
- }
- if (handlerCount == 0)
- log.warn("WS-Security requires a security handler to be
configured");
- }
-
- // Validate endpoints
- for (EndpointMetaData epMetaData : endpoints.values())
- epMetaData.validate();
- }
-
- /**
- * @see UnifiedMetaData#eagerInitialize()
- */
- public void eagerInitialize()
- {
- // Initialize all wsdl definitions and schema objects
- WSDLDefinitions definitions = getWsdlDefinitions();
- if (definitions != null)
- {
- WSDLTypes types = definitions.getWsdlTypes();
- if (types != null)
- {
- JBossXSModel model = WSDLUtils.getSchemaModel(types);
- ;
- if (model != null)
- model.eagerInitialize();
- }
- }
-
- // Initialize jaxrpc-mapping data
- getJavaWsdlMapping();
-
- // Initialize types
- TypeMappingImpl typeMapping = getTypeMapping();
- for (TypeMappingMetaData tmMetaData : types.getTypeMappings())
- {
- String javaTypeName = tmMetaData.getJavaTypeName();
- QName xmlType = tmMetaData.getXmlType();
- if (xmlType != null)
- {
- List<Class> registeredTypes = typeMapping.getJavaTypes(xmlType);
-
- boolean registered = false;
- for (Class current : registeredTypes)
- {
- if (current.getName().equals(javaTypeName))
- {
- registered = true;
- break;
- }
- }
-
- if (registered == false)
- {
- try
- {
- ClassLoader classLoader = wsMetaData.getClassLoader();
- Class javaType = JavaUtils.loadJavaType(javaTypeName, classLoader);
-
- if (JavaUtils.isPrimitive(javaTypeName))
- javaType = JavaUtils.getWrapperType(javaType);
-
- if (getEncodingStyle() == Use.ENCODED && javaType.isArray())
- {
- typeMapping.register(javaType, xmlType, new
SOAPArraySerializerFactory(), new SOAPArrayDeserializerFactory());
- }
- else
- {
- typeMapping.register(javaType, xmlType, new
JBossXBSerializerFactory(), new JBossXBDeserializerFactory());
- }
- }
- catch (ClassNotFoundException e)
- {
- log.warn("Cannot load class for type: " + xmlType +
"," + javaTypeName);
- }
- }
- }
- }
-
- // Initialize endpoints
- for (EndpointMetaData epMetaData : endpoints.values())
- epMetaData.eagerInitialize();
-
- // Initialize schema binding
- getSchemaBinding();
- }
-
- /** Assert that the given namespace is the WSDL's target namespace */
- public void assertTargetNamespace(String targetNS)
- {
- if (getQName().getNamespaceURI().equals(targetNS) == false)
- throw new WSException("Requested namespace is not WSDL target namespace:
" + targetNS);
- }
-
- public String toString()
- {
- StringBuilder buffer = new StringBuilder("\nServiceMetaData:");
- buffer.append("\n qname=" + qname);
- buffer.append("\n wsdName=" + wsdName);
- buffer.append("\n wsdlFile=" + wsdlFile);
- buffer.append("\n jaxrpcFile=" + jaxrpcMappingFile);
- buffer.append("\n publishLocation=" + wsdlPublishLocation);
- buffer.append("\n properties=" + properties);
- buffer.append("\n" + types);
- buffer.append("\n");
- for (EndpointMetaData epMetaData : endpoints.values())
- {
- buffer.append(epMetaData);
- }
- return buffer.toString();
- }
-}
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/TypeMappingMetaData.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/TypeMappingMetaData.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/TypeMappingMetaData.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,109 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.metadata;
-
-// $Id$
-
-import java.util.Arrays;
-import java.util.List;
-
-import javax.xml.namespace.QName;
-
-/**
- * Type mapping meta data
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 12-May-2005
- */
-public class TypeMappingMetaData
-{
- // The parent meta data.
- private TypesMetaData typesMetaData;
-
- private QName xmlType;
- private String javaTypeName;
- private String qnameScope;
-
- // List of allowed qname scopes
- public static final String QNAME_SCOPE_SIMPLE_TYPE = "simpleType";
- public static final String QNAME_SCOPE_COMPLEX_TYPE = "complexType";
- public static final String QNAME_SCOPE_ELEMENT = "element";
- private static List<String> allowedScopes = Arrays.asList(new String[] {
QNAME_SCOPE_COMPLEX_TYPE, QNAME_SCOPE_SIMPLE_TYPE, QNAME_SCOPE_ELEMENT });
-
- public TypeMappingMetaData(TypesMetaData typesMetaData, QName xmlType, String
javaTypeName)
- {
- if (xmlType == null)
- throw new IllegalArgumentException("Invalid null xmlType");
- if (javaTypeName == null)
- throw new IllegalArgumentException("Invalid null javaTypeName");
-
- this.typesMetaData = typesMetaData;
- this.javaTypeName = javaTypeName;
- this.xmlType = xmlType;
- this.qnameScope = QNAME_SCOPE_COMPLEX_TYPE;
- }
-
- public TypesMetaData getTypesMetaData()
- {
- return typesMetaData;
- }
-
- public String getJavaTypeName()
- {
- return javaTypeName;
- }
-
- public QName getXmlType()
- {
- return xmlType;
- }
-
- public String getQNameScope()
- {
- return qnameScope;
- }
-
- public void setQNameScope(String qnameScope)
- {
- if (allowedScopes.contains(qnameScope) == false)
- throw new IllegalArgumentException("Invalid qname scope: " +
qnameScope);
-
- this.qnameScope = qnameScope;
- }
-
- public int hashCode()
- {
- return toString().hashCode();
- }
-
- public boolean equals(Object obj)
- {
- if (obj instanceof TypeMappingMetaData == false) return false;
- TypeMappingMetaData other = (TypeMappingMetaData)obj;
- return toString().equals(other.toString());
- }
-
- public String toString()
- {
- return "[" + qnameScope + "=" + xmlType +
",javaType=" + javaTypeName + "]";
- }
-}
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/TypesMetaData.java
===================================================================
--- branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/TypesMetaData.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/TypesMetaData.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,193 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.metadata;
-
-// $Id$
-
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.xml.namespace.QName;
-
-import org.apache.xerces.xs.XSSimpleTypeDefinition;
-import org.apache.xerces.xs.XSTypeDefinition;
-import org.jboss.logging.Logger;
-import org.jboss.ws.WSException;
-import org.jboss.ws.jaxrpc.LiteralTypeMapping;
-import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel;
-
-/**
- * Types meta data
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 12-May-2005
- */
-public class TypesMetaData
-{
- // provide logging
- private static final Logger log = Logger.getLogger(TypesMetaData.class);
-
- // The parent meta data.
- private ServiceMetaData serviceMetaData;
- // The list of type meta data
- private List<TypeMappingMetaData> typeList = new
ArrayList<TypeMappingMetaData>();
-
- private JBossXSModel schemaModel;
-
- public TypesMetaData(ServiceMetaData serviceMetaData)
- {
- this.serviceMetaData = serviceMetaData;
- }
-
- public ServiceMetaData getServiceMetaData()
- {
- return serviceMetaData;
- }
-
- public JBossXSModel getSchemaModel()
- {
- return schemaModel;
- }
-
- public void setSchemaModel(JBossXSModel model)
- {
- this.schemaModel = model;
- }
-
- public void addSchemaModel(JBossXSModel model)
- {
- if (this.schemaModel == null)
- {
- this.schemaModel = model;
- }
- else
- {
- this.schemaModel.merge(model);
- }
- }
-
- public List<TypeMappingMetaData> getTypeMappings()
- {
- return new ArrayList<TypeMappingMetaData>(typeList);
- }
-
- public void addTypeMapping(TypeMappingMetaData tmMetaData)
- {
- if (typeList.contains(tmMetaData) == false)
- {
- log.trace("Add type mapping: " + tmMetaData);
- typeList.add(tmMetaData);
- }
- }
-
- public TypeMappingMetaData getTypeMappingByXMLType(QName xmlType)
- {
- TypeMappingMetaData tmMetaData = null;
- for (TypeMappingMetaData aux : typeList)
- {
- boolean isElementScope =
TypeMappingMetaData.QNAME_SCOPE_ELEMENT.equals(aux.getQNameScope());
- if (aux.getXmlType().equals(xmlType) && isElementScope == false)
- {
- if (tmMetaData != null)
- {
- log.error(tmMetaData + "\n" + aux);
- throw new WSException("Ambiguous type mappping for: " +
xmlType);
- }
- tmMetaData = aux;
- }
- }
-
- if (tmMetaData == null && schemaModel != null)
- {
- // Simple types are not neccessary mapped in jaxrpc-mapping.xml, lazily add the
mapping here
- XSTypeDefinition xsType = schemaModel.getTypeDefinition(xmlType.getLocalPart(),
xmlType.getNamespaceURI());
- if (xsType instanceof XSSimpleTypeDefinition)
- {
- XSSimpleTypeDefinition xsSimpleType = (XSSimpleTypeDefinition)xsType;
- String javaTypeName = null;
-
- // <simpleType name="FooStringListType">
- // <list itemType="string"/>
- // </simpleType>
- if (xsSimpleType.getVariety() == XSSimpleTypeDefinition.VARIETY_LIST)
- {
- XSSimpleTypeDefinition itemType = xsSimpleType.getItemType();
- QName xmlBaseType = new QName(itemType.getNamespace(),
itemType.getName());
- javaTypeName = new LiteralTypeMapping().getJavaTypeName(xmlBaseType);
- if (javaTypeName != null)
- {
- javaTypeName += "[]";
- }
- }
-
- // <simpleType name="FooIType">
- // <restriction base="normalizedString">
- // <pattern value="\d{3}-[A-Z0-9]{5}"/>
- // </restriction>
- // </simpleType>
- XSTypeDefinition xsBaseType = xsType.getBaseType();
- while (javaTypeName == null && xsBaseType != null)
- {
- QName xmlBaseType = new QName(xsBaseType.getNamespace(),
xsBaseType.getName());
- javaTypeName = new LiteralTypeMapping().getJavaTypeName(xmlBaseType);
- xsBaseType = xsBaseType.getBaseType();
- }
-
- if (javaTypeName != null)
- {
- tmMetaData = new TypeMappingMetaData(this, xmlType, javaTypeName);
- tmMetaData.setQNameScope(TypeMappingMetaData.QNAME_SCOPE_SIMPLE_TYPE);
- log.debug("Adding a simpleType without jaxrpc-mapping: " +
tmMetaData);
- addTypeMapping(tmMetaData);
- }
- else
- {
- log.warn("Cannot obtain javaTypeName for xmlType: " + xmlType);
- }
- }
- }
-
- return tmMetaData;
- }
-
- public TypeMappingMetaData getTypeMappingByJavaType(String javaTypeName)
- {
- TypeMappingMetaData tmMetaData = null;
- for (TypeMappingMetaData aux : typeList)
- {
- if (aux.getJavaTypeName().equals(javaTypeName))
- tmMetaData = aux;
- }
- return tmMetaData;
- }
-
- public String toString()
- {
- StringBuilder buffer = new StringBuilder("\nTypesMetaData: ");
- for (TypeMappingMetaData tmd : typeList)
- {
- buffer.append("\n " + tmd);
- }
- buffer.append("\n" + (schemaModel != null ? schemaModel.serialize() :
"<schema/>"));
- return buffer.toString();
- }
-}
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/UnifiedMetaData.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/UnifiedMetaData.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/UnifiedMetaData.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,220 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.metadata;
-
-// $Id$
-
-import java.net.URLClassLoader;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.StringTokenizer;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.server.ServiceEndpointManager;
-
-/**
- * The top level meta data.
- *
- * <h4>Thread safety</h4>
- * <p>A <code>UnifiedMetaData</code> instance may be shared accross
threads provided that the following conditions are met:
- * <ol>
- * <li>{@link #eagerInitialize() eagerInitialize()} is called from a single thread
on startup</li>
- * <li>Multi-thread access is limited to read-only calls</li>
- * </ol></p>
- *
- * @author Thomas.Diesler(a)jboss.org
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @since 12-May-2005
- */
-public class UnifiedMetaData
-{
- // provide logging
- private static Logger log = Logger.getLogger(UnifiedMetaData.class);
-
- // The modules resource class loader
- private URLClassLoader resourceLoader;
- // The modules class loader
- private ClassLoader classLoader;
- // The optional security domain
- private String securityDomain;
- // The implementation version
- private static String implementationVersion;
- // True if this is a final release
- private static boolean isFinalRelease;
- // Map<String, WSDLDefinitions> the wsdl-file to the wsdl Document
- // Note the same wsdl can be used in multiple webservice descriptions
- Map<String, WSDLDefinitions> wsdlMap = new HashMap<String,
WSDLDefinitions>();
- // Maps the jaxrpc-mapping-file to {@link JavaWsdlMapping} object
- // Note the same jaxrpc-mapping.xml can be used in multiple webservice descriptions
- Map<String, JavaWsdlMapping> jaxrpcMap = new HashMap<String,
JavaWsdlMapping>();
- // The list of service meta data
- private List<ServiceMetaData> services = new
ArrayList<ServiceMetaData>();
- // Used by eager initialization
- private boolean eagerInitialized;
- // Used by validate
- private boolean validated;
-
- public UnifiedMetaData()
- {
- }
-
- public URLClassLoader getResourceLoader()
- {
- if (resourceLoader == null)
- throw new IllegalStateException ("Resource loader not available");
-
- return resourceLoader;
- }
-
- public void setResourceLoader(URLClassLoader resourceLoader)
- {
- this.resourceLoader = resourceLoader;
- }
-
- public ClassLoader getClassLoader()
- {
- if (classLoader == null)
- throw new IllegalStateException ("Class loader not available");
-
- return classLoader;
- }
-
- public void setClassLoader(ClassLoader classLoader)
- {
- this.classLoader = classLoader;
- }
-
- public String getSecurityDomain()
- {
- return securityDomain;
- }
-
- public void setSecurityDomain(String domain)
- {
- String prefix = "java:/jaas/";
- if (domain != null && domain.startsWith(prefix))
- domain = domain.substring(prefix.length());
-
- this.securityDomain = domain;
- }
-
- public List<ServiceMetaData> getServices()
- {
- return new ArrayList<ServiceMetaData>(services);
- }
-
- public void addService(ServiceMetaData serviceMetaData)
- {
- services.add(serviceMetaData);
- }
-
- public void addWSDLDefinition(String wsdlFile, WSDLDefinitions wsdlDefinitions)
- {
- wsdlMap.put(wsdlFile, wsdlDefinitions);
- }
-
- public WSDLDefinitions getWSDLDefinition(String wsdlFile)
- {
- return wsdlMap.get(wsdlFile);
- }
-
- public void addMappingDefinition(String jaxrpcFile, JavaWsdlMapping javaWsdlMapping)
- {
- jaxrpcMap.put(jaxrpcFile, javaWsdlMapping);
- }
-
- public JavaWsdlMapping getMappingDefinition(String jaxrpcFile)
- {
- return jaxrpcMap.get(jaxrpcFile);
- }
-
- public void validate()
- {
- if (validated == false)
- {
- for (ServiceMetaData service : services)
- {
- service.validate();
- }
- validated = true;
- }
- }
-
- public boolean isEagerInitialized()
- {
- return eagerInitialized;
- }
-
- /**
- * Eagerly initialize all cache values that are normally lazy-loaded. This
- * allows for concurrent read-only access to a
<code>UnifiedMetaData</code>
- * instance. This method, however, must be called from a single thread.
- */
- public void eagerInitialize()
- {
- if (eagerInitialized == false)
- {
- log.debug("Eagerly initialize the meta data model");
- for (ServiceMetaData service : services)
- {
- service.eagerInitialize();
- }
- eagerInitialized = true;
- }
- }
-
- public static String getImplementationVersion()
- {
- if (implementationVersion == null)
- {
- implementationVersion =
ServiceEndpointManager.class.getPackage().getImplementationVersion();
- isFinalRelease = new
StringTokenizer(implementationVersion).nextToken().endsWith(".GA");
- }
- return implementationVersion;
- }
-
- public static boolean isFinalRelease()
- {
- getImplementationVersion();
- return isFinalRelease;
- }
-
- public String toString()
- {
- StringBuilder buffer = new StringBuilder("\nUnifiedMetaData: ");
- buffer.append("\n implementation: " + getImplementationVersion());
- buffer.append("\n securityDomain: " + getSecurityDomain());
- //buffer.append("\n resourceLoader: " + resourceLoader);
- //buffer.append("\n classLoader: " + classLoader);
- buffer.append("\n");
-
- for (ServiceMetaData serviceMetaData : services)
- {
- buffer.append(serviceMetaData);
- }
- return buffer.toString();
- }
-}
\ No newline at end of file
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/config/WSCommonConfig.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/config/WSCommonConfig.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/config/WSCommonConfig.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -25,9 +25,9 @@
import java.util.List;
-import org.jboss.ws.metadata.EndpointMetaData;
-import org.jboss.ws.metadata.HandlerMetaData;
-import org.jboss.ws.metadata.HandlerMetaData.HandlerType;
+import org.jboss.ws.metadata.umdm.EndpointMetaData;
+import org.jboss.ws.metadata.umdm.HandlerMetaData;
+import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
/**
* A common configuration
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/config/WSConfigFactory.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/config/WSConfigFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/config/WSConfigFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -29,9 +29,9 @@
import org.jboss.logging.Logger;
import org.jboss.ws.WSException;
+import org.jboss.ws.core.utils.DOMUtils;
+import org.jboss.ws.core.utils.JBossWSEntityResolver;
import org.jboss.ws.metadata.config.jaxrpc.WSConfigFactoryJAXRPC;
-import org.jboss.ws.utils.DOMUtils;
-import org.jboss.ws.utils.JBossWSEntityResolver;
import org.jboss.xb.binding.JBossXBException;
import org.jboss.xb.binding.Unmarshaller;
import org.jboss.xb.binding.UnmarshallerFactory;
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/config/jaxrpc/WSCommonConfigJAXRPC.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/config/jaxrpc/WSCommonConfigJAXRPC.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/config/jaxrpc/WSCommonConfigJAXRPC.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -24,12 +24,12 @@
import java.util.ArrayList;
import java.util.List;
-import org.jboss.ws.metadata.EndpointMetaData;
-import org.jboss.ws.metadata.HandlerMetaData;
-import org.jboss.ws.metadata.HandlerMetaData.HandlerType;
import org.jboss.ws.metadata.config.WSCommonConfig;
import org.jboss.ws.metadata.j2ee.UnifiedHandlerMetaData;
import org.jboss.ws.metadata.jsr181.HandlerChainMetaData;
+import org.jboss.ws.metadata.umdm.EndpointMetaData;
+import org.jboss.ws.metadata.umdm.HandlerMetaData;
+import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
// $Id$
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/config/jaxrpc/WSConfigFactoryJAXRPC.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/config/jaxrpc/WSConfigFactoryJAXRPC.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/config/jaxrpc/WSConfigFactoryJAXRPC.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -26,10 +26,10 @@
import java.util.List;
import org.jboss.logging.Logger;
-import org.jboss.ws.metadata.HandlerMetaData.HandlerType;
-import org.jboss.ws.metadata.HandlerMetaData.HandlerInitParam;
import org.jboss.ws.metadata.j2ee.UnifiedHandlerMetaData;
import org.jboss.ws.metadata.jsr181.HandlerChainMetaData;
+import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerInitParam;
+import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
import org.jboss.xb.binding.ObjectModelFactory;
import org.jboss.xb.binding.UnmarshallingContext;
import org.xml.sax.Attributes;
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/config/jaxrpc/WSEndpointConfigJAXRPC.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/config/jaxrpc/WSEndpointConfigJAXRPC.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/config/jaxrpc/WSEndpointConfigJAXRPC.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -24,11 +24,11 @@
import java.util.ArrayList;
import java.util.List;
-import org.jboss.ws.metadata.EndpointMetaData;
-import org.jboss.ws.metadata.HandlerMetaData;
-import org.jboss.ws.metadata.HandlerMetaData.HandlerType;
import org.jboss.ws.metadata.j2ee.UnifiedHandlerMetaData;
import org.jboss.ws.metadata.jsr181.HandlerChainMetaData;
+import org.jboss.ws.metadata.umdm.EndpointMetaData;
+import org.jboss.ws.metadata.umdm.HandlerMetaData;
+import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
// $Id$
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/j2ee/UnifiedHandlerMetaData.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/j2ee/UnifiedHandlerMetaData.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/j2ee/UnifiedHandlerMetaData.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -31,11 +31,11 @@
import javax.xml.namespace.QName;
-import org.jboss.ws.metadata.EndpointMetaData;
-import org.jboss.ws.metadata.HandlerMetaDataJAXRPC;
-import org.jboss.ws.metadata.HandlerMetaData.HandlerInitParam;
-import org.jboss.ws.metadata.HandlerMetaData.HandlerType;
import org.jboss.ws.metadata.jsr181.HandlerChainMetaData;
+import org.jboss.ws.metadata.umdm.EndpointMetaData;
+import org.jboss.ws.metadata.umdm.HandlerMetaDataJAXRPC;
+import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerInitParam;
+import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
/**
* The container independent metdata data for a handler element
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/jsr181/HandlerChainFactory.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/jsr181/HandlerChainFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/jsr181/HandlerChainFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -24,9 +24,9 @@
// $Id$
import org.jboss.logging.Logger;
-import org.jboss.ws.metadata.HandlerMetaData.HandlerType;
-import org.jboss.ws.metadata.HandlerMetaData.HandlerInitParam;
import org.jboss.ws.metadata.j2ee.UnifiedHandlerMetaData;
+import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerInitParam;
+import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
import org.jboss.xb.binding.ObjectModelFactory;
import org.jboss.xb.binding.UnmarshallingContext;
import org.xml.sax.Attributes;
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/jsr181/HandlerChainMetaData.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/jsr181/HandlerChainMetaData.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/jsr181/HandlerChainMetaData.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -29,8 +29,8 @@
import javax.xml.namespace.QName;
import org.jboss.logging.Logger;
-import org.jboss.ws.metadata.HandlerMetaData.HandlerType;
import org.jboss.ws.metadata.j2ee.UnifiedHandlerMetaData;
+import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
/**
* XML Binding element for handler-config/handler-chain elements
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/jsr181/HandlerChainsMetaData.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/jsr181/HandlerChainsMetaData.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/jsr181/HandlerChainsMetaData.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -26,7 +26,7 @@
import java.util.ArrayList;
-import org.jboss.ws.metadata.HandlerMetaData.HandlerType;
+import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
/**
* XML Binding root element for JSR-181 HandlerChain
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm (from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ClientEndpointMetaData.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ClientEndpointMetaData.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ClientEndpointMetaData.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,155 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.metadata.umdm;
-
-// $Id$
-
-import java.net.MalformedURLException;
-import java.net.URL;
-
-import javax.xml.namespace.QName;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.WSException;
-import org.jboss.ws.metadata.config.WSConfigFactory;
-import org.jboss.ws.metadata.config.jaxrpc.WSConfigRootJAXRPC;
-import org.jboss.ws.metadata.umdm.EndpointMetaData.Type;
-import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
-
-/**
- * Client side endpoint meta data.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 12-May-2005
- */
-public class ClientEndpointMetaData extends EndpointMetaData
-{
- // provide logging
- private static Logger log = Logger.getLogger(ClientEndpointMetaData.class);
-
- public ClientEndpointMetaData(ServiceMetaData service, QName portName, Type type)
- {
- super(service, portName, type);
- }
-
- public void setConfigName(String configName)
- {
- super.setConfigName(configName);
- endpointConfig = null;
- }
-
- public void setConfigFile(String configFile)
- {
- super.setConfigFile(configFile);
- endpointConfig = null;
- }
-
- @Override
- public Object getEndpointConfig()
- {
- if (endpointConfig == null)
- {
- String configName = getConfigName();
- if (configName == null)
- {
- configName = "Standard Client";
- setConfigName(configName);
- }
-
- String configFile = getConfigFile();
- if (configFile == null)
- {
- configFile = "META-INF/standard-jaxrpc-client-config.xml";
- setConfigFile(configFile);
- }
-
- log.debug("getClientConfig: [name=" + configName + ",url=" +
configFile + "]");
-
- URL configURL = null;
- try
- {
- configURL = new URL(configFile);
- }
- catch (MalformedURLException ex)
- {
- // ignore
- }
-
- // Try to get the URL as resource
- if (configURL == null)
- {
- ClassLoader cl = Thread.currentThread().getContextClassLoader();
- configURL = cl.getResource(configFile);
- if (configURL == null)
- throw new WSException("Cannot get resource: " + configFile);
- }
-
- // Get the config root
- Object wsConfig;
- try
- {
- WSConfigFactory factory = WSConfigFactory.newInstance();
- wsConfig = factory.parseWithObjectModelFactory(configURL);
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Exception ex)
- {
- throw new WSException("Cannot parse client config", ex);
- }
-
- // Get the client config
- endpointConfig =
((WSConfigRootJAXRPC)wsConfig).getClientConfigByName(configName);
- if (endpointConfig == null)
- throw new WSException("Cannot obtain client config: " +
configName);
- }
-
- return endpointConfig;
- }
-
- public String toString()
- {
- StringBuilder buffer = new StringBuilder("\nClientEndpointMetaData:");
- buffer.append("\n type=" + getType());
- buffer.append("\n qname=" + getQName());
- buffer.append("\n address=" + getEndpointAddress());
- buffer.append("\n binding=" + getBindingId());
- buffer.append("\n seiName=" + getServiceEndpointInterfaceName());
- buffer.append("\n configFile=" + getConfigFile());
- buffer.append("\n configName=" + getConfigName());
- buffer.append("\n authMethod=" + getAuthMethod());
- buffer.append("\n transportGuarantee=" + getTransportGuarantee());
- buffer.append("\n properties=" + getProperties());
-
- for (OperationMetaData opMetaData : getOperations())
- {
- buffer.append("\n" + opMetaData);
- }
- for (HandlerMetaData hdlMetaData : getHandlerMetaData(HandlerType.ALL))
- {
- buffer.append("\n" + hdlMetaData);
- }
- return buffer.toString();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ClientEndpointMetaData.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ClientEndpointMetaData.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/EndpointMetaData.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/EndpointMetaData.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/EndpointMetaData.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,485 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.metadata.umdm;
-
-// $Id$
-
-import java.lang.reflect.Method;
-import java.net.URLClassLoader;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Properties;
-
-import javax.jws.soap.SOAPBinding.ParameterStyle;
-import javax.xml.namespace.QName;
-import javax.xml.rpc.ParameterMode;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.CommonSOAPBinding;
-import org.jboss.ws.core.jaxrpc.Style;
-import org.jboss.ws.core.jaxrpc.Use;
-import org.jboss.ws.metadata.config.WSCommonConfig;
-import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
-
-/**
- * A Service component describes a set of endpoints.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 12-May-2005
- */
-public abstract class EndpointMetaData extends ExtensibleMetaData
-{
- // provide logging
- private static Logger log = Logger.getLogger(EndpointMetaData.class);
-
- public enum Type
- {
- JAXRPC, JAXWS
- }
-
- // The parent meta data.
- private ServiceMetaData serviceMetaData;
-
- // The REQUIRED endpoint config
- protected WSCommonConfig endpointConfig;
-
- // The REQUIRED name
- private QName portName;
- // The REQUIRED binding id
- private String bindingId;
- // The REQUIRED config-name
- private String configName;
- // The REQUIRED config-file
- private String configFile;
- // The endpoint address
- private String endpointAddress;
- // The endpoint interface name
- private String seiName;
- // The endpoint interface
- private Class seiClass;
- // The optional authentication method
- private String authMethod;
- // The optional transport guarantee
- private String transportGuarantee;
- // Arbitrary properties given by <call-property>
- private Properties properties;
- // The SOAPBinding style
- private Style style;
- // The SOAPBinding use
- private Use use;
- // The SOAPBinding parameter style
- private ParameterStyle parameterStyle;
- // Whether the endpoint was deployed from annotations
- private Type type;
- // The list of service meta data
- private List<OperationMetaData> operations = new
ArrayList<OperationMetaData>();
- // The optional handlers
- private List<HandlerMetaData> handlers = new
ArrayList<HandlerMetaData>();
- // True if the handlers are initialized
- private boolean handlersInitialized;
- // Maps the java method to the operation meta data
- private Map<Method, OperationMetaData> opMetaDataCache = new HashMap<Method,
OperationMetaData>();
-
- public EndpointMetaData(ServiceMetaData service, QName portName, Type type)
- {
- this.serviceMetaData = service;
- this.portName = portName;
- this.type = type;
-
- // The default binding
- this.bindingId = CommonSOAPBinding.SOAP11HTTP_BINDING;
- }
-
- public ServiceMetaData getServiceMetaData()
- {
- return serviceMetaData;
- }
-
- public QName getQName()
- {
- return portName;
- }
-
- public String getConfigFile()
- {
- return configFile;
- }
-
- public void setConfigFile(String configFile)
- {
- this.configFile = configFile;
- this.endpointConfig = null;
- }
-
- public String getConfigName()
- {
- return configName;
- }
-
- public void setConfigName(String configName)
- {
- this.configName = configName;
- this.endpointConfig = null;
- }
-
- public abstract Object getEndpointConfig();
-
- public String getEndpointAddress()
- {
- return endpointAddress;
- }
-
- public void setEndpointAddress(String endpointAddress)
- {
- this.endpointAddress = endpointAddress;
- }
-
- public String getBindingId()
- {
- return bindingId;
- }
-
- public void setBindingId(String bindingId)
- {
- if (!CommonSOAPBinding.SOAP11HTTP_BINDING.equals(bindingId) &&
!CommonSOAPBinding.SOAP12HTTP_BINDING.equals(bindingId))
- throw new WSException("Unsupported binding: " + bindingId);
- this.bindingId = bindingId;
- }
-
- public String getServiceEndpointInterfaceName()
- {
- return seiName;
- }
-
- public void setServiceEndpointInterfaceName(String seiName)
- {
- this.seiName = seiName;
- this.seiClass = null;
-
- UnifiedMetaData wsMetaData = serviceMetaData.getUnifiedMetaData();
- if (wsMetaData.isEagerInitialized())
- {
- if (UnifiedMetaData.isFinalRelease() == false)
- log.warn("Set SEI name after eager initialization", new
IllegalStateException());
-
- // reinitialize
- initializeInternal();
- }
- }
-
- /** Get the class loader associated with the endpoint meta data */
- public ClassLoader getClassLoader()
- {
- ClassLoader classLoader =
getServiceMetaData().getUnifiedMetaData().getClassLoader();
- return classLoader;
- }
-
- /** Get the resource loader associated with the endpoint meta data */
- public URLClassLoader getResourceLoader()
- {
- URLClassLoader classLoader =
getServiceMetaData().getUnifiedMetaData().getResourceLoader();
- return classLoader;
- }
-
- /**
- * Load the service endpoint interface.
- * It should only be cached during eager initialization.
- */
- public Class getServiceEndpointInterface()
- {
- Class tmpClass = seiClass;
- if (tmpClass == null && seiName != null)
- {
- try
- {
- ClassLoader classLoader = getClassLoader();
- tmpClass = classLoader.loadClass(seiName);
- if (serviceMetaData.getUnifiedMetaData().isEagerInitialized())
- {
- log.warn("Loading SEI after eager initialization");
- seiClass = tmpClass;
- }
- }
- catch (ClassNotFoundException ex)
- {
- throw new WSException("Cannot load service endpoint interface: " +
seiName, ex);
- }
- }
- return tmpClass;
- }
-
- public Use getEncodingStyle()
- {
- if (use == null)
- {
- use = Use.getDefaultUse();
- log.debug("Using default encoding style: " + use);
- }
- return use;
- }
-
- public void setEncodingStyle(Use value)
- {
- if (value != null && use != null && !use.equals(value))
- throw new WSException("Mixed encoding styles not supported");
-
- log.trace("setEncodingStyle: " + value);
- this.use = value;
- }
-
- public Style getStyle()
- {
- if (style == null)
- {
- style = Style.getDefaultStyle();
- log.debug("Using default style: " + style);
- }
- return style;
- }
-
- public void setStyle(Style value)
- {
- if (value != null && style != null && !style.equals(value))
- throw new WSException("Mixed styles not supported");
-
- log.trace("setStyle: " + value);
- this.style = value;
- }
-
- public ParameterStyle getParameterStyle()
- {
- if (parameterStyle == null)
- {
- parameterStyle = ParameterStyle.WRAPPED;
- log.debug("Using default parameter style: " + parameterStyle);
- }
- return parameterStyle;
- }
-
- public void setParameterStyle(ParameterStyle value)
- {
- if (value != null && parameterStyle != null &&
!parameterStyle.equals(value))
- throw new WSException("Mixed SOAP parameter styles not supported");
-
- log.debug("setParameterStyle: " + value);
- this.parameterStyle = value;
- }
-
- public Type getType()
- {
- return type;
- }
-
- public String getAuthMethod()
- {
- return authMethod;
- }
-
- public void setAuthMethod(String authMethod)
- {
- this.authMethod = authMethod;
- }
-
- public String getTransportGuarantee()
- {
- return transportGuarantee;
- }
-
- public void setTransportGuarantee(String transportGuarantee)
- {
- this.transportGuarantee = transportGuarantee;
- }
-
- public Properties getProperties()
- {
- return properties;
- }
-
- public void setProperties(Properties properties)
- {
- this.properties = properties;
- }
-
- public List<OperationMetaData> getOperations()
- {
- return new ArrayList<OperationMetaData>(operations);
- }
-
- public OperationMetaData getOperation(QName xmlName)
- {
- OperationMetaData opMetaData = null;
- for (OperationMetaData auxOperation : operations)
- {
- QName opQName = auxOperation.getQName();
- if (opQName.equals(xmlName))
- {
- if (opMetaData == null)
- {
- opMetaData = auxOperation;
- }
- else
- {
- throw new WSException("Cannot uniquely indetify operation: " +
xmlName);
- }
- }
- }
-
- if (opMetaData == null && getStyle() == Style.DOCUMENT)
- {
- for (OperationMetaData auxOperation : operations)
- {
- ParameterMetaData paramMetaData = null;
- for (ParameterMetaData auxParam : auxOperation.getParameters())
- {
- ParameterMode mode = auxParam.getMode();
- if (auxParam.isInHeader() == false && mode == ParameterMode.IN)
- {
- paramMetaData = auxParam;
- break;
- }
- }
- if (paramMetaData != null &&
paramMetaData.getXmlName().equals(xmlName))
- {
- if (opMetaData == null)
- {
- opMetaData = auxOperation;
- }
- else
- {
- throw new WSException("Cannot uniquely indetify operation: "
+ xmlName);
- }
- }
- }
- }
-
- return opMetaData;
- }
-
- public OperationMetaData getOperation(Method method)
- {
- if (opMetaDataCache.size() == 0)
- {
- // This can happen when the SEI mapping was not found
- log.warn("Access to empty operation meta data cache,
reinitializing");
- initializeInternal();
- }
- OperationMetaData opMetaData = opMetaDataCache.get(method);
- return opMetaData;
- }
-
- public void addOperation(OperationMetaData opMetaData)
- {
- operations.add(opMetaData);
- }
-
- public void clearOperations()
- {
- operations.clear();
- }
-
- public void addHandlers(List<HandlerMetaData> configHandlers)
- {
- handlers.addAll(configHandlers);
- }
-
- public void addHandler(HandlerMetaData handler)
- {
- handlers.add(handler);
- }
-
- public void clearHandlers()
- {
- handlers.clear();
- handlersInitialized = false;
- }
-
- public List<HandlerMetaData> getHandlerMetaData(HandlerType type)
- {
- List<HandlerMetaData> typeHandlers = new ArrayList<HandlerMetaData>();
- for (HandlerMetaData hmd : handlers)
- {
- if (hmd.getHandlerType() == type || type == HandlerType.ALL)
- typeHandlers.add(hmd);
- }
- return typeHandlers;
- }
-
- public boolean isHandlersInitialized()
- {
- return handlersInitialized;
- }
-
- public void setHandlersInitialized(boolean flag)
- {
- this.handlersInitialized = flag;
- }
-
- public void validate()
- {
- for (HandlerMetaData handler : handlers)
- handler.validate();
-
- for (OperationMetaData opMetaData : operations)
- opMetaData.validate();
- }
-
- /**
- * @see UnifiedMetaData#eagerInitialize()
- */
- public void eagerInitialize()
- {
- initializeInternal();
- }
-
- private void initializeInternal()
- {
- // reset sei class
- seiClass = null;
-
- // Initialize handlers
- for (HandlerMetaData handler : handlers)
- handler.eagerInitialize();
-
- // Initialize operations
- seiClass = getServiceEndpointInterface();
- if (seiClass != null)
- {
- List<Method> unsynchronizedMethods = new ArrayList<Method>();
- unsynchronizedMethods.addAll(Arrays.asList(seiClass.getMethods()));
-
- for (OperationMetaData opMetaData : operations)
- {
- opMetaData.eagerInitialize(unsynchronizedMethods);
- Method method = opMetaData.getJavaMethod();
- if (method != null)
- {
- opMetaDataCache.put(method, opMetaData);
- unsynchronizedMethods.remove(method);
- }
- }
- }
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/EndpointMetaData.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/EndpointMetaData.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ExtensibleMetaData.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ExtensibleMetaData.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ExtensibleMetaData.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,29 +0,0 @@
-package org.jboss.ws.metadata.umdm;
-
-import java.util.Map;
-import java.util.HashMap;
-
-
-/**
- * Base class for UMD elements that are extensible.
- *
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 21-Mar-2006
- */
-public abstract class ExtensibleMetaData {
-
- private Map<String, MetaDataExtension> extensions = new HashMap<String,
MetaDataExtension>();
-
- public Map<String, MetaDataExtension> getExtensions() {
- return extensions;
- }
-
- public void addExtension(MetaDataExtension ext) {
- getExtensions().put(ext.getExtensionNameSpace(), ext);
- }
-
- public MetaDataExtension getExtension(String namespace) {
- return getExtensions().get(namespace);
- }
-
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ExtensibleMetaData.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ExtensibleMetaData.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/FaultMetaData.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/FaultMetaData.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/FaultMetaData.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,134 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.metadata.umdm;
-
-// $Id$
-
-import javax.xml.namespace.QName;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.utils.JavaUtils;
-
-/**
- * A Fault component describes a fault that a given operation supports.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @author jason.greene(a)jboss.com
- * @since 12-May-2005
- */
-public class FaultMetaData
-{
- // provide logging
- private final Logger log = Logger.getLogger(FaultMetaData.class);
-
- // The parent operation
- private OperationMetaData opMetaData;
-
- private QName xmlName;
- private QName xmlType;
- private String javaTypeName;
- private Class javaType;
-
- public FaultMetaData(OperationMetaData operation, QName xmlName, QName xmlType, String
javaTypeName)
- {
- if (xmlName == null)
- throw new IllegalArgumentException("Invalid null xmlName argument");
- if (xmlType == null)
- throw new IllegalArgumentException("Invalid null xmlType argument, for:
" + xmlName);
- if (javaTypeName == null)
- throw new IllegalArgumentException("Invalid null javaTypeName argument,
for: " + xmlName);
-
- this.opMetaData = operation;
- this.xmlName = xmlName;
- this.xmlType = xmlType;
- this.javaTypeName = javaTypeName;
- }
-
- public OperationMetaData getOperationMetaData()
- {
- return opMetaData;
- }
-
- public QName getXmlName()
- {
- return xmlName;
- }
-
- public QName getXmlType()
- {
- return xmlType;
- }
-
- public String getJavaTypeName()
- {
- return javaTypeName;
- }
-
- /** Load the java type.
- * It should only be cached during eager initialization.
- */
- public Class getJavaType()
- {
- Class tmpJavaType = javaType;
- if (tmpJavaType == null && javaTypeName != null)
- {
- try
- {
- ClassLoader loader = opMetaData.getEndpointMetaData().getClassLoader();
- tmpJavaType = JavaUtils.loadJavaType(javaTypeName, loader);
-
- if
(opMetaData.getEndpointMetaData().getServiceMetaData().getUnifiedMetaData().isEagerInitialized())
- {
- log.warn("Loading java type after eager initialization");
- javaType = tmpJavaType;
- }
- }
- catch (ClassNotFoundException ex)
- {
- throw new WSException("Cannot load java type: " + javaTypeName,
ex);
- }
- }
- return tmpJavaType;
- }
-
- public void validate()
- {
- // nothing to do
- }
-
- public void eagerInitialize()
- {
- javaType = getJavaType();
- if (javaType == null)
- throw new WSException("Cannot load java type: " + javaTypeName);
- }
-
- public String toString()
- {
- StringBuilder buffer = new StringBuilder("\nFaultMetaData");
- buffer.append("\n xmlName=" + xmlName);
- buffer.append("\n xmlType=" + xmlType);
- buffer.append("\n javaType=" + javaTypeName);
- return buffer.toString();
- }
-}
\ No newline at end of file
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/FaultMetaData.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/FaultMetaData.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/HandlerMetaData.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/HandlerMetaData.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/HandlerMetaData.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,204 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.metadata.umdm;
-
-// $Id:HandlerMetaData.java 915 2006-09-08 08:40:45Z thomas.diesler(a)jboss.com $
-
-import java.io.Serializable;
-import java.util.ArrayList;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-
-import javax.xml.namespace.QName;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.WSException;
-import org.jboss.ws.extensions.security.jaxrpc.WSSecurityHandlerInbound;
-import org.jboss.ws.extensions.security.jaxrpc.WSSecurityHandlerOutbound;
-
-/**
- * The common metdata data for a handler element
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 05-May-2006
- */
-public abstract class HandlerMetaData implements Serializable
-{
- // provide logging
- private static final Logger log = Logger.getLogger(HandlerMetaData.class);
-
- public enum HandlerType
- {
- PRE, ENDPOINT, POST, ALL
- };
-
- private transient EndpointMetaData epMetaData;
-
- // The required <handler-name> element
- private String handlerName;
- // The required <handler-class> element
- private String handlerClassName;
- // The required handler type
- private HandlerType handlerType;
- // The optional <soap-header> elements
- private Set<QName> soapHeaders = new HashSet<QName>();
- // The optional <init-param> elements
- private List<HandlerInitParam> initParams = new
ArrayList<HandlerInitParam>();
- // The cached handler class
- private Class handlerClass;
-
- public HandlerMetaData(EndpointMetaData epMetaData, HandlerType type)
- {
- this.epMetaData = epMetaData;
- this.handlerType = type;
- }
-
- public void setEndpointMetaData(EndpointMetaData epMetaData)
- {
- this.epMetaData = epMetaData;
- }
-
- public EndpointMetaData getEndpointMetaData()
- {
- return epMetaData;
- }
-
- public void setHandlerName(String value)
- {
- this.handlerName = value;
- }
-
- public String getHandlerName()
- {
- return handlerName;
- }
-
- public void setHandlerClassName(String handlerClassName)
- {
- this.handlerClassName = handlerClassName;
- }
-
- public String getHandlerClassName()
- {
- return handlerClassName;
- }
-
- public Class getHandlerClass()
- {
- if (handlerClassName == null)
- throw new IllegalStateException("Handler class name cannot be null");
-
- Class localClass = handlerClass;
- if (localClass == null)
- {
- try
- {
- ClassLoader loader = epMetaData.getClassLoader();
- localClass = loader.loadClass(handlerClassName);
- }
- catch (ClassNotFoundException ex)
- {
- throw new WSException("Cannot load handler: " + handlerClassName,
ex);
- }
- }
- return localClass;
- }
-
- public HandlerType getHandlerType()
- {
- return handlerType;
- }
-
- public void setSoapHeaders(Set<QName> soapHeaders)
- {
- this.soapHeaders = soapHeaders;
- }
-
- public Set<QName> getSoapHeaders()
- {
- return soapHeaders;
- }
-
- public void seiInitParams(List<HandlerInitParam> initParams)
- {
- this.initParams = initParams;
- }
-
- public List<HandlerInitParam> getInitParams()
- {
- return initParams;
- }
-
- public void validate()
- {
- List<String> securityHandlers = new ArrayList<String>();
- securityHandlers.add(WSSecurityHandlerInbound.class.getName());
- securityHandlers.add(WSSecurityHandlerOutbound.class.getName());
-
- if (securityHandlers.contains(handlerClassName))
- {
- if (epMetaData.getServiceMetaData().getSecurityConfiguration() == null)
- log.warn("WS-Security requires security configuration");
- }
- }
-
- public void eagerInitialize()
- {
- handlerClass = getHandlerClass();
- }
-
- public static class HandlerInitParam implements Serializable
- {
- private static final long serialVersionUID = -8687875291620457318L;
-
- // The required <handler-name> element
- private String paramName;
- // The required <handler-class> element
- private String paramValue;
-
- public String getParamName()
- {
- return paramName;
- }
-
- public void setParamName(String paramName)
- {
- this.paramName = paramName;
- }
-
- public String getParamValue()
- {
- return paramValue;
- }
-
- public void setParamValue(String paramValue)
- {
- this.paramValue = paramValue;
- }
-
- public String toString()
- {
- return "[name=" + paramName + ",value=" + paramValue +
"]";
- }
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/HandlerMetaData.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/HandlerMetaData.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/HandlerMetaDataJAXRPC.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/HandlerMetaDataJAXRPC.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/HandlerMetaDataJAXRPC.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,84 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.metadata.umdm;
-
-//$Id:HandlerMetaDataJAXRPC.java 915 2006-09-08 08:40:45Z thomas.diesler(a)jboss.com $
-
-import java.util.HashSet;
-import java.util.Set;
-
-import javax.xml.namespace.QName;
-
-
-/**
- * The JAXRPC metdata data for a handler element
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 05-May-2006
- */
-public class HandlerMetaDataJAXRPC extends HandlerMetaData
-{
- private static final long serialVersionUID = -5232305815202943509L;
-
- // The optional <soap-role> elements
- private Set<String> soapRoles = new HashSet<String>();
- // The optional <port-name> elements
- private Set<String> portNames = new HashSet<String>();
-
- public HandlerMetaDataJAXRPC(EndpointMetaData epMetaData, HandlerType type)
- {
- super(epMetaData, type);
- }
-
- public void setSoapRoles(Set<String> soapRoles)
- {
- this.soapRoles = soapRoles;
- }
-
- public Set<String> getSoapRoles()
- {
- return soapRoles;
- }
-
- public void setPortNames(Set<String> portNames)
- {
- this.portNames = portNames;
- }
-
- public Set<String> getPortNames()
- {
- return portNames;
- }
-
- public String toString()
- {
- StringBuffer buffer = new StringBuffer("\nHandlerMetaDataJAXRPC:");
- buffer.append("\n type=" + getHandlerType());
- buffer.append("\n name=" + getHandlerName());
- buffer.append("\n class=" + getHandlerClassName());
- buffer.append("\n params=" + getInitParams());
- buffer.append("\n headers=" + getSoapHeaders());
- buffer.append("\n roles=" + getSoapRoles());
- buffer.append("\n ports=" + getPortNames());
- return buffer.toString();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/HandlerMetaDataJAXRPC.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/HandlerMetaDataJAXRPC.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/MetaDataExtension.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/MetaDataExtension.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/MetaDataExtension.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,45 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.metadata.umdm;
-
-// $Id$
-
-/**
- * Operation metaData extension.
- *
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 17-Mar-2006
- */
-public abstract class MetaDataExtension
-{
- private String extensionNameSpace;
-
- public MetaDataExtension(String extensionNameSpace)
- {
- this.extensionNameSpace = extensionNameSpace;
- }
-
- public String getExtensionNameSpace()
- {
- return extensionNameSpace;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/MetaDataExtension.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/MetaDataExtension.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/OperationMetaData.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/OperationMetaData.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/OperationMetaData.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,600 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.metadata.umdm;
-
-// $Id$
-
-import java.lang.reflect.Method;
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.jws.soap.SOAPBinding.ParameterStyle;
-import javax.xml.namespace.QName;
-import javax.xml.rpc.ParameterMode;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.jaxrpc.ParameterWrapping;
-import org.jboss.ws.core.jaxrpc.Style;
-import org.jboss.ws.core.jaxrpc.TypeMappingImpl;
-import org.jboss.ws.core.jaxrpc.Use;
-import org.jboss.ws.core.utils.HolderUtils;
-import org.jboss.ws.core.utils.JavaUtils;
-import org.jboss.ws.metadata.umdm.EndpointMetaData.Type;
-import org.w3c.dom.Element;
-
-/**
- * An Operation component describes an operation that a given interface supports.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @since 12-May-2004
- */
-public class OperationMetaData extends ExtensibleMetaData
-{
- // provide logging
- private final Logger log = Logger.getLogger(OperationMetaData.class);
-
- // The parent interface
- private EndpointMetaData epMetaData;
-
- private QName qname;
- private QName responseName;
- private String javaName;
- private Method javaMethod;
- private boolean oneWay;
- private String soapAction;
- private List<ParameterMetaData> parameters = new
ArrayList<ParameterMetaData>();
- private List<FaultMetaData> faults = new ArrayList<FaultMetaData>();
- private ParameterMetaData returnParam;
-
- public OperationMetaData(QName qname, String javaName)
- {
- UnifiedMetaData umd = new UnifiedMetaData();
- ServiceMetaData smd = new ServiceMetaData(umd, new
QName("mock-service"));
- ServerEndpointMetaData epmd = new ServerEndpointMetaData(smd, new
QName("mock-endpoint"), Type.JAXRPC);
- initOperationMetaData(epmd, qname, javaName);
- }
-
- public OperationMetaData(EndpointMetaData epMetaData, QName qname, String javaName)
- {
- log.trace("new OperationMetaData: [xmlName=" + qname +
",javaName=" + javaName + "]");
- initOperationMetaData(epMetaData, qname, javaName);
- }
-
- private void initOperationMetaData(EndpointMetaData epMetaData, QName qname, String
javaName)
- {
- this.epMetaData = epMetaData;
- this.qname = qname;
- this.javaName = javaName;
-
- if (qname == null)
- throw new IllegalArgumentException("Invalid null qname argument");
- if (javaName == null)
- throw new IllegalArgumentException("Invalid null javaName argument, for:
" + qname);
-
- String nsURI = qname.getNamespaceURI();
- String localPart = qname.getLocalPart();
- this.responseName = new QName(nsURI, localPart + "Response");
- }
-
- public EndpointMetaData getEndpointMetaData()
- {
- return epMetaData;
- }
-
- public QName getQName()
- {
- return qname;
- }
-
- public QName getResponseName()
- {
- return responseName;
- }
-
- public String getSOAPAction()
- {
- return soapAction;
- }
-
- public void setSOAPAction(String soapAction)
- {
- this.soapAction = soapAction;
- }
-
- public Style getStyle()
- {
- return epMetaData.getStyle();
- }
-
- public Use getUse()
- {
- return epMetaData.getEncodingStyle();
- }
-
- public ParameterStyle getParameterStyle()
- {
- return epMetaData.getParameterStyle();
- }
-
- public boolean isRPCLiteral()
- {
- return getStyle() == Style.RPC && getUse() == Use.LITERAL;
- }
-
- public boolean isRPCEncoded()
- {
- return getStyle() == Style.RPC && getUse() == Use.ENCODED;
- }
-
- public boolean isDocumentBare()
- {
- return getStyle() == Style.DOCUMENT && getParameterStyle() ==
ParameterStyle.BARE;
- }
-
- public boolean isDocumentWrapped()
- {
- return getStyle() == Style.DOCUMENT && getParameterStyle() ==
ParameterStyle.WRAPPED;
- }
-
- public String getJavaName()
- {
- return javaName;
- }
-
- public Method getJavaMethod()
- {
- Method tmpMethod = javaMethod;
- Class seiClass = epMetaData.getServiceEndpointInterface();
- if (tmpMethod == null && seiClass != null)
- {
- for (Method method : seiClass.getMethods())
- {
- if (isJavaMethod(method))
- {
- tmpMethod = method;
-
- UnifiedMetaData wsMetaData =
epMetaData.getServiceMetaData().getUnifiedMetaData();
- if (wsMetaData.isEagerInitialized())
- {
- if (UnifiedMetaData.isFinalRelease() == false)
- log.warn("Loading java method after eager initialization",
new IllegalStateException());
-
- javaMethod = method;
- }
-
- break;
- }
- }
-
- if (tmpMethod == null)
- throw new WSException("Cannot find java method: " + javaName);
- }
- return tmpMethod;
- }
-
- public boolean isJavaMethod(Method method)
- {
- boolean isJavaMethod = method.equals(javaMethod);
- if (isJavaMethod == false)
- {
- String methodName = method.getName();
- Class[] methodTypes = method.getParameterTypes();
- Class returnType = method.getReturnType();
-
- if (javaName.equals(methodName))
- {
- log.trace("Found java method: " + method);
-
- // match document/literal/wrapped
- if (isDocumentWrapped())
- {
- if (ParameterWrapping.matchRequestParameters(this, methodTypes) &&
ParameterWrapping.matchResponseParameters(this, returnType))
- {
- log.debug("Found wrapped java method: " + method);
- isJavaMethod = true;
- }
- }
- else
- {
- // Match the return parameter
- ParameterMetaData returnMetaData = getReturnParameter();
- if (returnMetaData != null)
- {
- if (!matchParameter(returnMetaData, returnType, true) &&
!matchParameter(returnMetaData, returnType, false))
- {
- log.debug("Unmatched return meta data: " + returnType);
- }
- }
- else
- {
- if (returnType != void.class)
- {
- log.debug("Unmatched return meta data: " + returnType);
- }
- }
-
- // compare params by java type name
- if (compareMethodParams(methodTypes, true))
- {
- log.debug("Found best matching java method: " + method);
- isJavaMethod = true;
- }
-
- // compare params by assignability
- else if (compareMethodParams(methodTypes, false))
- {
- log.debug("Found possible matching java method: " + method);
- isJavaMethod = true;
- }
- }
- }
- }
-
- if (log.isTraceEnabled())
- log.trace("Synchronized java method:\n" + method + "\nwith:
" + toString());
-
- return isJavaMethod;
- }
-
- /** Return true if this is a generic message style destination that takes a
org.w3c.dom.Element
- */
- public boolean isMessageEndpoint()
- {
- boolean isMessageEndpoint = false;
- if (parameters.size() == 1)
- {
- ParameterMetaData inParam = parameters.get(0);
- if (JavaUtils.isAssignableFrom(Element.class, inParam.getJavaType()))
- {
- isMessageEndpoint = true;
- }
- }
- return isMessageEndpoint;
- }
-
- private boolean compareMethodParams(Class[] methodParams, boolean matchByTypeName)
- {
- log.trace("Compare method params by type name: " + matchByTypeName);
-
- boolean pass = (parameters.size() == methodParams.length);
- if (pass == false)
- log.trace("Unmatched parameter count: " + parameters.size() +
"!=" + methodParams.length);
-
- for (int i = 0; pass && i < methodParams.length; i++)
- {
- ParameterMetaData paramMetaData = parameters.get(i);
- pass = matchParameter(paramMetaData, methodParams[i], matchByTypeName);
- }
- return pass;
- }
-
- private boolean matchParameter(ParameterMetaData paramMetaData, Class methodParam,
boolean matchByTypeName)
- {
- QName xmlType = paramMetaData.getXmlType();
- String javaType = paramMetaData.getJavaTypeName();
-
- boolean pass = true;
- if (paramMetaData != returnParam && paramMetaData.getMode() !=
ParameterMode.IN)
- {
- if (HolderUtils.isHolderType(methodParam))
- {
- methodParam = HolderUtils.getValueType(methodParam);
- }
- else
- {
- pass = false;
- }
- }
-
- if (pass == true)
- {
- // In case the parameter java type has not been initialized
- // This happens when the UMDM is build from WSDL only (i.e. JAXWS Service)
- TypeMappingImpl typeMapping = epMetaData.getServiceMetaData().getTypeMapping();
- if (javaType == null)
- {
- javaType = methodParam.getName();
- paramMetaData.setJavaTypeName(javaType);
- log.debug("Set parameter java type from method param: " +
javaType);
- }
-
- if (matchByTypeName)
- {
- pass = methodParam.getName().equals(javaType);
- }
- else
- {
- String paramTypeName = methodParam.getName();
- Class paramType = paramMetaData.getJavaType();
- pass = JavaUtils.isAssignableFrom(methodParam, paramType);
-
- if (typeMapping.isRegistered(methodParam, xmlType))
- {
- log.debug("Adjust parameter type from " + paramType.getName() +
" to " + paramTypeName);
- paramMetaData.setJavaTypeName(paramTypeName);
- pass = true;
- }
- }
- }
-
- String name = (matchByTypeName) ? paramMetaData.getJavaTypeName() :
paramMetaData.getJavaType().getName();
- log.trace((pass ? "Matched" : "Unmatched") + " parameter:
" + name + " == " + methodParam.getName());
- return pass;
- }
-
- public boolean isOneWayOperation()
- {
- return oneWay;
- }
-
- public void setOneWayOperation(boolean oneWayOperation)
- {
- this.oneWay = oneWayOperation;
- assertOneWayOperation();
- }
-
- public ParameterMetaData getParameter(QName xmlName)
- {
- ParameterMetaData paramMetaData = null;
- for (int i = 0; paramMetaData == null && i < parameters.size(); i++)
- {
- ParameterMetaData aux = parameters.get(i);
- if (xmlName.equals(aux.getXmlName()))
- paramMetaData = aux;
- }
- return paramMetaData;
- }
-
- /** Get the IN or INOUT parameter list */
- public List<ParameterMetaData> getInputParameters()
- {
- List<ParameterMetaData> retList = new ArrayList<ParameterMetaData>();
- for (ParameterMetaData paramMetaData : parameters)
- {
- ParameterMode mode = paramMetaData.getMode();
- if (mode == ParameterMode.IN || mode == ParameterMode.INOUT)
- retList.add(paramMetaData);
- }
- return retList;
- }
-
- /** Get the OUT or INOUT parameter list */
- public List<ParameterMetaData> getOutputParameters()
- {
- List<ParameterMetaData> retList = new ArrayList<ParameterMetaData>();
- for (ParameterMetaData paramMetaData : parameters)
- {
- ParameterMode mode = paramMetaData.getMode();
- if (mode == ParameterMode.OUT || mode == ParameterMode.INOUT)
- retList.add(paramMetaData);
- }
- return retList;
- }
-
- /** Get the non header parameter list */
- public List<ParameterMetaData> getNonHeaderParameters()
- {
- List<ParameterMetaData> retList = new ArrayList<ParameterMetaData>();
- for (ParameterMetaData paramMetaData : parameters)
- {
- if (paramMetaData.isInHeader() == false)
- retList.add(paramMetaData);
- }
- return retList;
- }
-
- public List<ParameterMetaData> getParameters()
- {
- return new ArrayList<ParameterMetaData>(parameters);
- }
-
- public void addParameter(ParameterMetaData pmd)
- {
- log.trace("addParameter: [xmlName=" + pmd.getXmlName() +
",xmlType=" + pmd.getXmlType() + "]");
- parameters.add(pmd);
- assertOneWayOperation();
- }
-
- public void removeAllParameters()
- {
- parameters.clear();
- }
-
- public ParameterMetaData getReturnParameter()
- {
- return returnParam;
- }
-
- public void setReturnParameter(ParameterMetaData returnParam)
- {
- log.trace("setReturnParameter: " + returnParam);
- returnParam.setMode(ParameterMode.OUT);
- this.returnParam = returnParam;
- assertOneWayOperation();
- }
-
- public List<FaultMetaData> getFaults()
- {
- return new ArrayList<FaultMetaData>(faults);
- }
-
- public FaultMetaData getFault(QName xmlName)
- {
- FaultMetaData faultMetaData = null;
- for (int i = 0; faultMetaData == null && i < faults.size(); i++)
- {
- FaultMetaData aux = faults.get(i);
- if (aux.getXmlName().equals(xmlName))
- faultMetaData = aux;
- }
- return faultMetaData;
- }
-
- public FaultMetaData getFault(Class javaType)
- {
- FaultMetaData faultMetaData = null;
- for (FaultMetaData aux : faults)
- {
- if (aux.getJavaType().equals(javaType))
- {
- faultMetaData = aux;
- break;
- }
- }
- return faultMetaData;
- }
-
- public void addFault(FaultMetaData fault)
- {
- log.trace("addFault: " + fault);
- faults.add(fault);
- assertOneWayOperation();
- }
-
- // A JSR-181 processor is REQUIRED to report an error if an
- // operation marked @Oneway has a return value, declares any checked exceptions or has
any
- // INOUT or OUT parameters.
- private void assertOneWayOperation()
- {
- if (oneWay)
- {
- if (returnParam != null)
- throw new WSException("OneWay operations cannot have a return
parameter");
-
- if (faults.size() > 0)
- throw new WSException("OneWay operations cannot have checked
exceptions");
-
- for (ParameterMetaData paramMetaData : parameters)
- {
- if (paramMetaData.getMode() != ParameterMode.IN)
- throw new WSException("OneWay operations cannot have INOUT or OUT
parameters");
- }
- }
- }
-
- public void assertDocumentBare()
- {
- if (isDocumentBare())
- {
- int in = 0;
- int out = 0;
-
- for (ParameterMetaData paramMetaData : parameters)
- {
- if (paramMetaData.isInHeader())
- continue;
-
- ParameterMode mode = paramMetaData.getMode();
- if (mode != ParameterMode.OUT)
- in++;
- if (mode != ParameterMode.IN)
- out++;
- }
-
- if (returnParam != null && !returnParam.isInHeader())
- out++;
-
- if (!((oneWay && in == 1 && out == 0) || (in == 1 && out
== 1)))
- throw new WSException("The body of a documnet/literal bare message
requires only 1 input and only 1 output (or 0 if oneway). method: " + javaName +
" in: "
- + in + " out: " + out);
- }
- }
-
- public void validate()
- {
- for (ParameterMetaData parameter : parameters)
- parameter.validate();
-
- for (FaultMetaData fault : faults)
- fault.validate();
- }
-
- /**
- * @see UnifiedMetaData#eagerInitialize()
- */
- public void eagerInitialize(List<Method> unsynchronizedMethods)
- {
- // reset java method
- javaMethod = null;
-
- for (ParameterMetaData parameter : parameters)
- parameter.eagerInitialize();
-
- if (returnParam != null)
- returnParam.eagerInitialize();
-
- for (FaultMetaData fault : faults)
- fault.eagerInitialize();
-
- // Method initialization
- for (Method method : unsynchronizedMethods)
- {
- if (isJavaMethod(method))
- {
- javaMethod = method;
- break;
- }
- }
-
- // Report unsynchronized java method
- if (javaMethod == null)
- {
- StringBuilder errMsg = new StringBuilder("Cannot synchronize to any of
these methods:");
- for (Method method : unsynchronizedMethods)
- {
- errMsg.append("\n" + method);
- }
- errMsg.append("\n" + toString());
- throw new IllegalStateException(errMsg.toString());
- }
-
- }
-
- public String toString()
- {
- StringBuilder buffer = new StringBuilder("\nOperationMetaData:");
- buffer.append("\n qname=" + qname);
- buffer.append("\n javaName=" + javaName);
- buffer.append("\n style=" + getStyle() + "/" + getUse());
- if (getStyle() == Style.DOCUMENT)
- {
- buffer.append("/" + getParameterStyle());
- }
- buffer.append("\n oneWay=" + oneWay);
- buffer.append("\n soapAction=" + soapAction);
- for (ParameterMetaData param : parameters)
- {
- buffer.append(param);
- }
- if (returnParam != null)
- {
- buffer.append(returnParam.toString());
- }
- for (FaultMetaData fault : faults)
- {
- buffer.append(fault);
- }
- return buffer.toString();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/OperationMetaData.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/OperationMetaData.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ParameterMetaData.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ParameterMetaData.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ParameterMetaData.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,355 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.metadata.umdm;
-
-// $Id$
-
-import java.util.ArrayList;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-import java.util.StringTokenizer;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.ParameterMode;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.Constants;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.jaxrpc.ParameterWrapping;
-import org.jboss.ws.core.utils.JavaUtils;
-
-/**
- * A request/response parameter that a given operation supports.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @since 12-May-2005
- */
-public class ParameterMetaData
-{
- // provide logging
- private final Logger log = Logger.getLogger(ParameterMetaData.class);
-
- // The parent operation
- private OperationMetaData opMetaData;
-
- private QName xmlName;
- private QName xmlType;
- private String javaTypeName;
- private Class javaType;
- private ParameterMode mode;
- private Set<String> mimeTypes;
- private boolean inHeader;
- private boolean isSwA;
- private boolean isXOP;
- private List<String> wrappedVariables = new ArrayList<String>();
- private List<String> wrappedTypes = new ArrayList<String>();
- private List<QName> wrappedElementNames = new ArrayList<QName>();
-
- // SOAP-ENC:Array
- private boolean soapArrayParam;
- private QName soapArrayCompType;
-
- private static final List<String> messageTypes = new ArrayList<String>();
- static
- {
- messageTypes.add("javax.xml.soap.SOAPElement");
- messageTypes.add("org.w3c.dom.Element");
- }
-
- public ParameterMetaData(OperationMetaData opMetaData, QName xmlName, QName xmlType,
String javaTypeName)
- {
- this.xmlName = xmlName;
- this.xmlType = xmlType;
- this.opMetaData = opMetaData;
- this.mode = ParameterMode.IN;
- this.javaTypeName = javaTypeName;
-
- if (xmlName == null)
- throw new IllegalArgumentException("Invalid null xmlName argument");
- if (xmlType == null)
- throw new IllegalArgumentException("Invalid null xmlType argument, for:
" + xmlName);
-
- // Remove the prefixes
- if (xmlName.getNamespaceURI().length() > 0)
- this.xmlName = new QName(xmlName.getNamespaceURI(), xmlName.getLocalPart());
-
- if (xmlType.getNamespaceURI().length() > 0)
- this.xmlType = new QName(xmlType.getNamespaceURI(), xmlType.getLocalPart());
-
- // Special case to identify attachments
- if (Constants.NS_ATTACHMENT_MIME_TYPE.equals(xmlType.getNamespaceURI()))
- {
- String mimeType = convertXmlTypeToMimeType(xmlType);
- setMimeTypes(mimeType);
- this.isSwA = true;
- }
- }
-
- public OperationMetaData getOperationMetaData()
- {
- return opMetaData;
- }
-
- public QName getXmlName()
- {
- return xmlName;
- }
-
- public QName getXmlType()
- {
- return xmlType;
- }
-
- public String getJavaTypeName()
- {
- return javaTypeName;
- }
-
-
- public void setJavaTypeName(String typeName)
- {
- // Warn if this is called after eager initialization
- UnifiedMetaData wsMetaData =
opMetaData.getEndpointMetaData().getServiceMetaData().getUnifiedMetaData();
- if (wsMetaData.isEagerInitialized() && UnifiedMetaData.isFinalRelease() ==
false)
- log.warn("Set java type name after eager initialization", new
IllegalStateException());
-
- javaTypeName = typeName;
- javaType = null;
- }
-
- /** Load the java type.
- * It should only be cached during eager initialization.
- */
- public Class getJavaType()
- {
- Class tmpJavaType = javaType;
- if (tmpJavaType == null && javaTypeName != null)
- {
- try
- {
- ClassLoader loader = opMetaData.getEndpointMetaData().getClassLoader();
- tmpJavaType = JavaUtils.loadJavaType(javaTypeName, loader);
-
- UnifiedMetaData wsMetaData =
opMetaData.getEndpointMetaData().getServiceMetaData().getUnifiedMetaData();
- if (wsMetaData.isEagerInitialized())
- {
- // This should not happen, see the warning in setJavaTypeName
- javaType = tmpJavaType;
- }
- }
- catch (ClassNotFoundException ex)
- {
- throw new WSException("Cannot load java type: " + javaTypeName,
ex);
- }
- }
- return tmpJavaType;
- }
-
-
- public ParameterMode getMode()
- {
- return mode;
- }
-
- public void setMode(String mode)
- {
- if("IN".equals(mode))
- setMode(ParameterMode.IN);
- else if("INOUT".equals(mode))
- setMode(ParameterMode.INOUT);
- else if("OUT".equals(mode))
- setMode(ParameterMode.OUT);
- else
- throw new IllegalArgumentException("Invalid mode: " + mode);
- }
-
- public void setMode(ParameterMode mode)
- {
- this.mode = mode;
- }
-
- public Set<String> getMimeTypes()
- {
- return mimeTypes;
- }
-
- public void setMimeTypes(String mimeStr)
- {
- mimeTypes = new HashSet<String>();
- StringTokenizer st = new StringTokenizer(mimeStr, ",");
- while (st.hasMoreTokens())
- mimeTypes.add(st.nextToken().trim());
- }
-
- public boolean isInHeader()
- {
- return inHeader;
- }
-
- public void setInHeader(boolean inHeader)
- {
- this.inHeader = inHeader;
- }
-
- public boolean isSwA()
- {
- return isSwA;
- }
-
- public void setSwA(boolean isSwA)
- {
- this.isSwA = isSwA;
- }
-
- public boolean isXOP()
- {
- return isXOP;
- }
-
- public void setXOP(boolean isXOP)
- {
- this.isXOP = isXOP;
- }
-
- public List<String> getWrappedTypes()
- {
- return wrappedTypes;
- }
-
- public List<String> getWrappedVariables()
- {
- return wrappedVariables;
- }
-
- public List<QName> getWrappedElementNames()
- {
- return wrappedElementNames;
- }
-
- public boolean isSOAPArrayParam()
- {
- return soapArrayParam;
- }
-
- public void setSOAPArrayParam(boolean soapArrayParam)
- {
- this.soapArrayParam = soapArrayParam;
- }
-
- public QName getSOAPArrayCompType()
- {
- return soapArrayCompType;
- }
-
- public void setSOAPArrayCompType(QName xmlType)
- {
- this.soapArrayCompType = xmlType;
- }
-
- public boolean isMessageType()
- {
- return messageTypes.contains(javaTypeName);
- }
-
- public static boolean isMessageType(String javaTypeName)
- {
- return messageTypes.contains(javaTypeName);
- }
-
- /** Converts a proprietary JBossWS attachment xml type to the MIME type that it
represents.
- */
- private String convertXmlTypeToMimeType(QName xmlType)
- {
- StringBuilder mimeName = new StringBuilder(xmlType.getLocalPart());
- int pos = mimeName.indexOf("_");
- if (pos == -1)
- throw new IllegalArgumentException("Invalid mime type: " + xmlType);
-
- mimeName.setCharAt(pos, '/');
- return mimeName.toString();
- }
-
- public void validate()
- {
- // nothing to do
- }
-
- /**
- * @see UnifiedMetaData#eagerInitialize()
- */
- public void eagerInitialize()
- {
- // reset java type
- javaType = null;
-
- TypesMetaData typesMetaData =
getOperationMetaData().getEndpointMetaData().getServiceMetaData().getTypesMetaData();
- if (getOperationMetaData().isDocumentWrapped() && isMessageType() ==
false)
- {
- TypeMappingMetaData tmMetaData =
typesMetaData.getTypeMappingByXMLType(xmlType);
- if (tmMetaData == null)
- ParameterWrapping.generateWrapper(this, true);
- }
-
- javaType = getJavaType();
- if (javaType == null)
- throw new WSException("Cannot load java type: " + javaTypeName);
- }
-
- public String toString()
- {
- boolean isReturn = (opMetaData.getReturnParameter() == this);
- StringBuilder buffer = new StringBuilder("\n" + (isReturn ?
"ReturnMetaData:" : "ParameterMetaData:"));
- buffer.append("\n xmlName=" + getXmlName());
- buffer.append("\n xmlType=" + getXmlType());
- buffer.append("\n javaType=" + getJavaTypeName());
- buffer.append("\n mode=" + getMode());
- buffer.append("\n inHeader=" + isInHeader());
-
- if (soapArrayParam)
- buffer.append("\n soapArrayCompType=" + soapArrayCompType);
-
- if (wrappedVariables != null)
- buffer.append("\n wrappedVariables=" + wrappedVariables);
-
- if (wrappedTypes != null)
- buffer.append("\n wrappedTypes=" + wrappedTypes);
-
- if (wrappedElementNames != null)
- buffer.append("\n wrappedElementNames=" + wrappedElementNames);
-
- if (isSwA())
- {
- buffer.append("\n isSwA=" + isSwA());
- buffer.append("\n mimeTypes=" + getMimeTypes());
- }
-
- if (isXOP())
- {
- buffer.append("\n isXOP=" + isXOP());
- buffer.append("\n mimeTypes=" + getMimeTypes());
- }
-
- return buffer.toString();
- }
-}
\ No newline at end of file
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ParameterMetaData.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ParameterMetaData.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ServerEndpointMetaData.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ServerEndpointMetaData.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ServerEndpointMetaData.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,265 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.metadata.umdm;
-
-// $Id$
-
-import java.net.MalformedURLException;
-import java.net.URL;
-
-import javax.management.ObjectName;
-import javax.xml.namespace.QName;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.server.ServiceEndpoint;
-import org.jboss.ws.metadata.config.WSCommonConfig;
-import org.jboss.ws.metadata.config.WSConfigFactory;
-import org.jboss.ws.metadata.config.jaxrpc.WSConfigRootJAXRPC;
-import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
-
-/**
- * Client side endpoint meta data.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @since 12-May-2005
- */
-public class ServerEndpointMetaData extends EndpointMetaData
-{
- // provide logging
- private static Logger log = Logger.getLogger(ServerEndpointMetaData.class);
-
- public static final String SEPID_DOMAIN = "jboss.ws";
- public static final String SEPID_PROPERTY_CONTEXT = "context";
- public static final String SEPID_PROPERTY_ENDPOINT = "endpoint";
-
- // The REQUIRED link name
- private String linkName;
- // Legacy JSR-109 port component name
- private String portComponentName;
- // The endpoint implementation bean
- private String implName;
- // The unique service endpointID
- private ObjectName sepID;
- // The HTTP context root
- private String contextRoot;
- // The HTTP virtual hosts
- private String[] virtualHosts;
- // The HTTP url parttern
- private String urlPattern;
- // The bean that registers with the ServiceEndpointManager
- private String managedEndpointBean = ServiceEndpoint.class.getName();
-
- public ServerEndpointMetaData(ServiceMetaData service, QName portName, Type type)
- {
- super(service, portName, type);
- }
-
- public void setConfigName(String configName)
- {
- super.setConfigName(configName);
- endpointConfig = null;
- }
-
- public void setConfigFile(String configFile)
- {
- super.setConfigFile(configFile);
- endpointConfig = null;
- }
-
- public String getLinkName()
- {
- return linkName;
- }
-
- public void setLinkName(String linkName)
- {
- this.linkName = linkName;
- }
-
- public String getPortComponentName()
- {
- return portComponentName;
- }
-
- public void setPortComponentName(String portComponentName)
- {
- this.portComponentName = portComponentName;
- }
-
- public String getServiceEndpointImplName()
- {
- return implName;
- }
-
- public void setServiceEndpointImplName(String endpointImpl)
- {
- this.implName = endpointImpl;
- }
-
- public ObjectName getServiceEndpointID()
- {
- return sepID;
- }
-
- public void setServiceEndpointID(ObjectName endpointID)
- {
- this.sepID = endpointID;
- }
-
- public String getContextRoot()
- {
- return contextRoot;
- }
-
- public void setContextRoot(String contextRoot)
- {
- this.contextRoot = contextRoot;
- }
-
-
- public String[] getVirtualHosts()
- {
- return virtualHosts;
- }
-
- public void setVirtualHosts(String[] virtualHosts)
- {
- this.virtualHosts = virtualHosts;
- }
-
- public String getURLPattern()
- {
- return urlPattern;
- }
-
- public void setURLPattern(String urlPattern)
- {
- this.urlPattern = urlPattern;
- }
-
- public String getManagedEndpointBean()
- {
- return managedEndpointBean;
- }
-
- public void setManagedEndpointBean(String managedEndpointBean)
- {
- this.managedEndpointBean = managedEndpointBean;
- }
-
- @Override
- public WSCommonConfig getEndpointConfig()
- {
- if (endpointConfig == null)
- {
- String configName = getConfigName();
- if (configName == null)
- {
- configName = "Standard Endpoint";
- setConfigName(configName);
- }
-
- String configFile = getConfigFile();
- if (configFile == null)
- {
- configFile = "META-INF/standard-jaxrpc-endpoint-config.xml";
- setConfigFile(configFile);
- }
-
- log.debug("getEndpointConfig: [name=" + configName + ",url="
+ configFile + "]");
-
- URL configURL = null;
- try
- {
- configURL = new URL(configFile);
- }
- catch (MalformedURLException ex)
- {
- // ignore
- }
-
- // Try to get the URL as resource
- if (configURL == null)
- {
- ClassLoader cl = Thread.currentThread().getContextClassLoader();
- configURL = cl.getResource(configFile);
- if (configURL == null)
- throw new WSException("Cannot get resource: " + configFile);
- }
-
- // Get the config root
- Object wsConfig;
- try
- {
- WSConfigFactory factory = WSConfigFactory.newInstance();
- wsConfig = factory.parseWithObjectModelFactory(configURL);
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Exception ex)
- {
- throw new WSException("Cannot parse client config", ex);
- }
-
- // Get the endpoint config
- endpointConfig =
((WSConfigRootJAXRPC)wsConfig).getEndpointConfigByName(configName);
- if (endpointConfig == null)
- throw new WSException("Cannot obtain endpoint config: " +
configName);
- }
- return endpointConfig;
- }
-
- public String toString()
- {
- StringBuilder buffer = new StringBuilder("\nServerEndpointMetaData:");
- buffer.append("\n type=" + getType());
- buffer.append("\n qname=" + getQName());
- buffer.append("\n id=" + getServiceEndpointID().getCanonicalName());
- buffer.append("\n address=" + getEndpointAddress());
- buffer.append("\n binding=" + getBindingId());
- buffer.append("\n linkName=" + getLinkName());
- buffer.append("\n implName=" + getServiceEndpointImplName());
- buffer.append("\n seiName=" + getServiceEndpointInterfaceName());
- buffer.append("\n portComponentName=" + getPortComponentName());
- buffer.append("\n contextRoot=" + getContextRoot());
- buffer.append("\n urlPattern=" + getURLPattern());
- buffer.append("\n configFile=" + getConfigFile());
- buffer.append("\n configName=" + getConfigName());
- buffer.append("\n authMethod=" + getAuthMethod());
- buffer.append("\n transportGuarantee=" + getTransportGuarantee());
- buffer.append("\n properties=" + getProperties());
-
- for (OperationMetaData opMetaData : getOperations())
- {
- buffer.append("\n" + opMetaData);
- }
- for (HandlerMetaData hdlMetaData : getHandlerMetaData(HandlerType.ALL))
- {
- buffer.append("\n" + hdlMetaData);
- }
- return buffer.toString();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ServerEndpointMetaData.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ServerEndpointMetaData.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ServiceMetaData.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ServiceMetaData.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ServiceMetaData.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,469 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.metadata.umdm;
-
-// $Id$
-
-import java.io.IOException;
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.util.ArrayList;
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Properties;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.encoding.TypeMappingRegistry;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.jaxrpc.TypeMappingImpl;
-import org.jboss.ws.core.jaxrpc.TypeMappingRegistryImpl;
-import org.jboss.ws.core.jaxrpc.Use;
-import org.jboss.ws.core.jaxrpc.binding.JBossXBDeserializerFactory;
-import org.jboss.ws.core.jaxrpc.binding.JBossXBSerializerFactory;
-import org.jboss.ws.core.jaxrpc.binding.SOAPArrayDeserializerFactory;
-import org.jboss.ws.core.jaxrpc.binding.SOAPArraySerializerFactory;
-import org.jboss.ws.core.jaxrpc.binding.jbossxb.SchemaBindingBuilder;
-import org.jboss.ws.core.utils.JavaUtils;
-import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
-import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMappingFactory;
-import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLTypes;
-import org.jboss.ws.metadata.wsdl.WSDLUtils;
-import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel;
-import org.jboss.ws.metadata.wsse.WSSecurityConfiguration;
-import org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory;
-import org.jboss.xb.binding.sunday.unmarshalling.SchemaBinding;
-
-/**
- * A Service component describes a set of endpoints.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 12-May-2005
- */
-public class ServiceMetaData
-{
- // provide logging
- private static final Logger log = Logger.getLogger(ServiceMetaData.class);
-
- // The parent meta data.
- private UnifiedMetaData wsMetaData;
-
- // The service endpoints
- private Map<QName, EndpointMetaData> endpoints = new LinkedHashMap<QName,
EndpointMetaData>();
-
- private QName qname;
- private String wsdName;
- private String wsdlFile;
- private String jaxrpcMappingFile;
- private String wsdlPublishLocation;
-
- // The type mapping that is maintained by this service
- private TypesMetaData types;
- private TypeMappingRegistry tmRegistry = new TypeMappingRegistryImpl();
- private SchemaBinding schemaBinding;
-
- // Arbitrary properties given by <call-property>
- private Properties properties;
-
- // derived cached encoding style
- private Use encStyle;
-
- // The security configuration
- private WSSecurityConfiguration securityConfiguration;
-
- public ServiceMetaData(UnifiedMetaData wsMetaData, QName name)
- {
- this.wsMetaData = wsMetaData;
- this.qname = name;
- this.types = new TypesMetaData(this);
- }
-
- public UnifiedMetaData getUnifiedMetaData()
- {
- return wsMetaData;
- }
-
- public void setQName(QName name)
- {
- this.qname = name;
- }
-
- public QName getQName()
- {
- return qname;
- }
-
- public String getWebserviceDescriptionName()
- {
- return wsdName;
- }
-
- public void setWebserviceDescriptionName(String wsdName)
- {
- this.wsdName = wsdName;
- }
-
- public String getWsdlFile()
- {
- return wsdlFile;
- }
-
- public void setWsdlFile(String wsdlFile)
- {
- this.wsdlFile = wsdlFile;
- }
-
- public String getWsdlPublishLocation()
- {
- return wsdlPublishLocation;
- }
-
- public void setWsdlPublishLocation(String wsdlPublishLocation)
- {
- this.wsdlPublishLocation = wsdlPublishLocation;
- }
-
- public Properties getProperties()
- {
- return properties;
- }
-
- public void setProperties(Properties properties)
- {
- this.properties = properties;
- }
-
- public TypesMetaData getTypesMetaData()
- {
- return types;
- }
-
- public List<EndpointMetaData> getEndpoints()
- {
- return new ArrayList<EndpointMetaData>(endpoints.values());
- }
-
- public EndpointMetaData getEndpoint(QName portName)
- {
- return endpoints.get(portName);
- }
-
- public EndpointMetaData getEndpointByServiceEndpointInterface(String seiName)
- {
- EndpointMetaData epMetaData = null;
- for (EndpointMetaData epmd : endpoints.values())
- {
- if (seiName.equals(epmd.getServiceEndpointInterfaceName()))
- {
- if (epMetaData != null)
- {
- // The CTS uses Service.getPort(Class) with multiple endpoints
implementing the same SEI
- log.warn("Multiple possible endpoints implementing SEI: " +
seiName);
- }
- epMetaData = epmd;
- }
- }
- return epMetaData;
- }
-
- public void addEndpoint(EndpointMetaData epMetaData)
- {
- QName portName = epMetaData.getQName();
-
- // This happends when we have multiple port components in sharing the same wsdl
port
- // The EndpointMetaData name is the wsdl port, so we cannot have multiple meta data
for the same port.
- if (endpoints.get(portName) != null)
- throw new WSException("EndpointMetaData name must be unique: " +
portName);
-
- endpoints.put(portName, epMetaData);
- }
-
- public String getJaxrpcMappingFile()
- {
- return jaxrpcMappingFile;
- }
-
- public void setJaxrpcMappingFile(String jaxrpcMappingFile)
- {
- this.jaxrpcMappingFile = jaxrpcMappingFile;
- }
-
- public JavaWsdlMapping getJavaWsdlMapping()
- {
- JavaWsdlMapping javaWsdlMapping =
(JavaWsdlMapping)wsMetaData.getMappingDefinition(jaxrpcMappingFile);
- if (javaWsdlMapping == null && jaxrpcMappingFile != null)
- {
- URL mappingLocation = null;
- try
- {
- mappingLocation = new URL(jaxrpcMappingFile);
- }
- catch (MalformedURLException e)
- {
- // ignore
- }
- if (mappingLocation == null)
- {
- mappingLocation =
wsMetaData.getResourceLoader().getResource(jaxrpcMappingFile);
- }
-
- if (mappingLocation == null)
- throw new IllegalArgumentException("Cannot find jaxrpc-mapping.xml in
deployment: " + jaxrpcMappingFile);
-
- try
- {
- JavaWsdlMappingFactory mappingFactory =
JavaWsdlMappingFactory.newInstance();
- javaWsdlMapping = mappingFactory.parse(mappingLocation);
- wsMetaData.addMappingDefinition(jaxrpcMappingFile, javaWsdlMapping);
- }
- catch (IOException e)
- {
- throw new WSException("Cannot parse jaxrpc-mapping.xml", e);
- }
- }
- return javaWsdlMapping;
- }
-
- /**
- * Get the wsdl definition that corresponds to the wsdl-file element.
- */
- public WSDLDefinitions getWsdlDefinitions()
- {
- WSDLDefinitions wsdlDefinitions =
(WSDLDefinitions)wsMetaData.getWSDLDefinition(wsdlFile);
- if (wsdlDefinitions == null && wsdlFile != null)
- {
- URL wsdlLocation = getWsdlLocation();
- if (wsdlLocation == null)
- throw new IllegalArgumentException("Cannot find wsdl in deployment:
" + wsdlFile);
-
- WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
- wsdlDefinitions = factory.parse(wsdlLocation);
- wsMetaData.addWSDLDefinition(wsdlFile, wsdlDefinitions);
- }
- return wsdlDefinitions;
- }
-
- public URL getWsdlLocation()
- {
- URL wsdlLocation = null;
- if (wsdlFile != null)
- {
- try
- {
- wsdlLocation = new URL(wsdlFile);
- }
- catch (MalformedURLException e)
- {
- // ignore
- }
- if (wsdlLocation == null)
- {
- wsdlLocation = wsMetaData.getResourceLoader().getResource(wsdlFile);
- }
- }
- return wsdlLocation;
- }
-
- public TypeMappingImpl getTypeMapping()
- {
- Use encStyle = getEncodingStyle();
- TypeMappingImpl typeMapping =
(TypeMappingImpl)tmRegistry.getTypeMapping(encStyle.toURI());
- if (typeMapping == null)
- throw new WSException("No type mapping for encoding style: " +
encStyle);
-
- return typeMapping;
- }
-
- public WSSecurityConfiguration getSecurityConfiguration()
- {
- return securityConfiguration;
- }
-
- public void setSecurityConfiguration(WSSecurityConfiguration securityConfiguration)
- {
- this.securityConfiguration = securityConfiguration;
- }
-
- public Use getEncodingStyle()
- {
- if (encStyle == null)
- {
- if (endpoints.size() > 0)
- {
- for (EndpointMetaData epMetaData : endpoints.values())
- {
- if (encStyle == null)
- {
- encStyle = epMetaData.getEncodingStyle();
- }
- else if (encStyle.equals(epMetaData.getEncodingStyle()) == false)
- {
- throw new WSException("Conflicting encoding styles not
supported");
- }
- }
- }
- else
- {
- encStyle = Use.LITERAL;
- }
- }
- return encStyle;
- }
-
- public SchemaBinding getSchemaBinding()
- {
- JavaWsdlMapping wsdlMapping = getJavaWsdlMapping();
- if (schemaBinding == null && getEncodingStyle() == Use.LITERAL &&
wsdlMapping != null)
- {
- JBossXSModel xsModel = types.getSchemaModel();
- SchemaBindingBuilder bindingBuilder = new SchemaBindingBuilder();
- schemaBinding = bindingBuilder.buildSchemaBinding(xsModel, wsdlMapping);
- }
- return schemaBinding;
- }
-
- public void validate()
- {
- // Validate that there is at least one handler configured
- // if we have a security configuration
- if (securityConfiguration != null)
- {
- int handlerCount = 0;
- for (EndpointMetaData epMetaData : endpoints.values())
- {
- handlerCount += epMetaData.getHandlerMetaData(HandlerType.ALL).size();
- }
- if (handlerCount == 0)
- log.warn("WS-Security requires a security handler to be
configured");
- }
-
- // Validate endpoints
- for (EndpointMetaData epMetaData : endpoints.values())
- epMetaData.validate();
- }
-
- /**
- * @see UnifiedMetaData#eagerInitialize()
- */
- public void eagerInitialize()
- {
- // Initialize all wsdl definitions and schema objects
- WSDLDefinitions definitions = getWsdlDefinitions();
- if (definitions != null)
- {
- WSDLTypes types = definitions.getWsdlTypes();
- if (types != null)
- {
- JBossXSModel model = WSDLUtils.getSchemaModel(types);
- ;
- if (model != null)
- model.eagerInitialize();
- }
- }
-
- // Initialize jaxrpc-mapping data
- getJavaWsdlMapping();
-
- // Initialize types
- TypeMappingImpl typeMapping = getTypeMapping();
- for (TypeMappingMetaData tmMetaData : types.getTypeMappings())
- {
- String javaTypeName = tmMetaData.getJavaTypeName();
- QName xmlType = tmMetaData.getXmlType();
- if (xmlType != null)
- {
- List<Class> registeredTypes = typeMapping.getJavaTypes(xmlType);
-
- boolean registered = false;
- for (Class current : registeredTypes)
- {
- if (current.getName().equals(javaTypeName))
- {
- registered = true;
- break;
- }
- }
-
- if (registered == false)
- {
- try
- {
- ClassLoader classLoader = wsMetaData.getClassLoader();
- Class javaType = JavaUtils.loadJavaType(javaTypeName, classLoader);
-
- if (JavaUtils.isPrimitive(javaTypeName))
- javaType = JavaUtils.getWrapperType(javaType);
-
- if (getEncodingStyle() == Use.ENCODED && javaType.isArray())
- {
- typeMapping.register(javaType, xmlType, new
SOAPArraySerializerFactory(), new SOAPArrayDeserializerFactory());
- }
- else
- {
- typeMapping.register(javaType, xmlType, new
JBossXBSerializerFactory(), new JBossXBDeserializerFactory());
- }
- }
- catch (ClassNotFoundException e)
- {
- log.warn("Cannot load class for type: " + xmlType +
"," + javaTypeName);
- }
- }
- }
- }
-
- // Initialize endpoints
- for (EndpointMetaData epMetaData : endpoints.values())
- epMetaData.eagerInitialize();
-
- // Initialize schema binding
- getSchemaBinding();
- }
-
- /** Assert that the given namespace is the WSDL's target namespace */
- public void assertTargetNamespace(String targetNS)
- {
- if (getQName().getNamespaceURI().equals(targetNS) == false)
- throw new WSException("Requested namespace is not WSDL target namespace:
" + targetNS);
- }
-
- public String toString()
- {
- StringBuilder buffer = new StringBuilder("\nServiceMetaData:");
- buffer.append("\n qname=" + qname);
- buffer.append("\n wsdName=" + wsdName);
- buffer.append("\n wsdlFile=" + wsdlFile);
- buffer.append("\n jaxrpcFile=" + jaxrpcMappingFile);
- buffer.append("\n publishLocation=" + wsdlPublishLocation);
- buffer.append("\n properties=" + properties);
- buffer.append("\n" + types);
- buffer.append("\n");
- for (EndpointMetaData epMetaData : endpoints.values())
- {
- buffer.append(epMetaData);
- }
- return buffer.toString();
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ServiceMetaData.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/ServiceMetaData.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/TypeMappingMetaData.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/TypeMappingMetaData.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/TypeMappingMetaData.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,110 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.metadata.umdm;
-
-// $Id$
-
-import java.util.Arrays;
-import java.util.List;
-
-import javax.xml.namespace.QName;
-
-
-/**
- * Type mapping meta data
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 12-May-2005
- */
-public class TypeMappingMetaData
-{
- // The parent meta data.
- private TypesMetaData typesMetaData;
-
- private QName xmlType;
- private String javaTypeName;
- private String qnameScope;
-
- // List of allowed qname scopes
- public static final String QNAME_SCOPE_SIMPLE_TYPE = "simpleType";
- public static final String QNAME_SCOPE_COMPLEX_TYPE = "complexType";
- public static final String QNAME_SCOPE_ELEMENT = "element";
- private static List<String> allowedScopes = Arrays.asList(new String[] {
QNAME_SCOPE_COMPLEX_TYPE, QNAME_SCOPE_SIMPLE_TYPE, QNAME_SCOPE_ELEMENT });
-
- public TypeMappingMetaData(TypesMetaData typesMetaData, QName xmlType, String
javaTypeName)
- {
- if (xmlType == null)
- throw new IllegalArgumentException("Invalid null xmlType");
- if (javaTypeName == null)
- throw new IllegalArgumentException("Invalid null javaTypeName");
-
- this.typesMetaData = typesMetaData;
- this.javaTypeName = javaTypeName;
- this.xmlType = xmlType;
- this.qnameScope = QNAME_SCOPE_COMPLEX_TYPE;
- }
-
- public TypesMetaData getTypesMetaData()
- {
- return typesMetaData;
- }
-
- public String getJavaTypeName()
- {
- return javaTypeName;
- }
-
- public QName getXmlType()
- {
- return xmlType;
- }
-
- public String getQNameScope()
- {
- return qnameScope;
- }
-
- public void setQNameScope(String qnameScope)
- {
- if (allowedScopes.contains(qnameScope) == false)
- throw new IllegalArgumentException("Invalid qname scope: " +
qnameScope);
-
- this.qnameScope = qnameScope;
- }
-
- public int hashCode()
- {
- return toString().hashCode();
- }
-
- public boolean equals(Object obj)
- {
- if (obj instanceof TypeMappingMetaData == false) return false;
- TypeMappingMetaData other = (TypeMappingMetaData)obj;
- return toString().equals(other.toString());
- }
-
- public String toString()
- {
- return "[" + qnameScope + "=" + xmlType +
",javaType=" + javaTypeName + "]";
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/TypeMappingMetaData.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/TypeMappingMetaData.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/TypesMetaData.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/TypesMetaData.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/TypesMetaData.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,193 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.metadata.umdm;
-
-// $Id$
-
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.xml.namespace.QName;
-
-import org.apache.xerces.xs.XSSimpleTypeDefinition;
-import org.apache.xerces.xs.XSTypeDefinition;
-import org.jboss.logging.Logger;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.jaxrpc.LiteralTypeMapping;
-import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel;
-
-/**
- * Types meta data
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 12-May-2005
- */
-public class TypesMetaData
-{
- // provide logging
- private static final Logger log = Logger.getLogger(TypesMetaData.class);
-
- // The parent meta data.
- private ServiceMetaData serviceMetaData;
- // The list of type meta data
- private List<TypeMappingMetaData> typeList = new
ArrayList<TypeMappingMetaData>();
-
- private JBossXSModel schemaModel;
-
- public TypesMetaData(ServiceMetaData serviceMetaData)
- {
- this.serviceMetaData = serviceMetaData;
- }
-
- public ServiceMetaData getServiceMetaData()
- {
- return serviceMetaData;
- }
-
- public JBossXSModel getSchemaModel()
- {
- return schemaModel;
- }
-
- public void setSchemaModel(JBossXSModel model)
- {
- this.schemaModel = model;
- }
-
- public void addSchemaModel(JBossXSModel model)
- {
- if (this.schemaModel == null)
- {
- this.schemaModel = model;
- }
- else
- {
- this.schemaModel.merge(model);
- }
- }
-
- public List<TypeMappingMetaData> getTypeMappings()
- {
- return new ArrayList<TypeMappingMetaData>(typeList);
- }
-
- public void addTypeMapping(TypeMappingMetaData tmMetaData)
- {
- if (typeList.contains(tmMetaData) == false)
- {
- log.trace("Add type mapping: " + tmMetaData);
- typeList.add(tmMetaData);
- }
- }
-
- public TypeMappingMetaData getTypeMappingByXMLType(QName xmlType)
- {
- TypeMappingMetaData tmMetaData = null;
- for (TypeMappingMetaData aux : typeList)
- {
- boolean isElementScope =
TypeMappingMetaData.QNAME_SCOPE_ELEMENT.equals(aux.getQNameScope());
- if (aux.getXmlType().equals(xmlType) && isElementScope == false)
- {
- if (tmMetaData != null)
- {
- log.error(tmMetaData + "\n" + aux);
- throw new WSException("Ambiguous type mappping for: " +
xmlType);
- }
- tmMetaData = aux;
- }
- }
-
- if (tmMetaData == null && schemaModel != null)
- {
- // Simple types are not neccessary mapped in jaxrpc-mapping.xml, lazily add the
mapping here
- XSTypeDefinition xsType = schemaModel.getTypeDefinition(xmlType.getLocalPart(),
xmlType.getNamespaceURI());
- if (xsType instanceof XSSimpleTypeDefinition)
- {
- XSSimpleTypeDefinition xsSimpleType = (XSSimpleTypeDefinition)xsType;
- String javaTypeName = null;
-
- // <simpleType name="FooStringListType">
- // <list itemType="string"/>
- // </simpleType>
- if (xsSimpleType.getVariety() == XSSimpleTypeDefinition.VARIETY_LIST)
- {
- XSSimpleTypeDefinition itemType = xsSimpleType.getItemType();
- QName xmlBaseType = new QName(itemType.getNamespace(),
itemType.getName());
- javaTypeName = new LiteralTypeMapping().getJavaTypeName(xmlBaseType);
- if (javaTypeName != null)
- {
- javaTypeName += "[]";
- }
- }
-
- // <simpleType name="FooIType">
- // <restriction base="normalizedString">
- // <pattern value="\d{3}-[A-Z0-9]{5}"/>
- // </restriction>
- // </simpleType>
- XSTypeDefinition xsBaseType = xsType.getBaseType();
- while (javaTypeName == null && xsBaseType != null)
- {
- QName xmlBaseType = new QName(xsBaseType.getNamespace(),
xsBaseType.getName());
- javaTypeName = new LiteralTypeMapping().getJavaTypeName(xmlBaseType);
- xsBaseType = xsBaseType.getBaseType();
- }
-
- if (javaTypeName != null)
- {
- tmMetaData = new TypeMappingMetaData(this, xmlType, javaTypeName);
- tmMetaData.setQNameScope(TypeMappingMetaData.QNAME_SCOPE_SIMPLE_TYPE);
- log.debug("Adding a simpleType without jaxrpc-mapping: " +
tmMetaData);
- addTypeMapping(tmMetaData);
- }
- else
- {
- log.warn("Cannot obtain javaTypeName for xmlType: " + xmlType);
- }
- }
- }
-
- return tmMetaData;
- }
-
- public TypeMappingMetaData getTypeMappingByJavaType(String javaTypeName)
- {
- TypeMappingMetaData tmMetaData = null;
- for (TypeMappingMetaData aux : typeList)
- {
- if (aux.getJavaTypeName().equals(javaTypeName))
- tmMetaData = aux;
- }
- return tmMetaData;
- }
-
- public String toString()
- {
- StringBuilder buffer = new StringBuilder("\nTypesMetaData: ");
- for (TypeMappingMetaData tmd : typeList)
- {
- buffer.append("\n " + tmd);
- }
- buffer.append("\n" + (schemaModel != null ? schemaModel.serialize() :
"<schema/>"));
- return buffer.toString();
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/TypesMetaData.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/TypesMetaData.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/UnifiedMetaData.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/UnifiedMetaData.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/UnifiedMetaData.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,220 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.metadata.umdm;
-
-// $Id$
-
-import java.net.URLClassLoader;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.StringTokenizer;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.core.server.ServiceEndpointManager;
-import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-
-/**
- * The top level meta data.
- *
- * <h4>Thread safety</h4>
- * <p>A <code>UnifiedMetaData</code> instance may be shared accross
threads provided that the following conditions are met:
- * <ol>
- * <li>{@link #eagerInitialize() eagerInitialize()} is called from a single thread
on startup</li>
- * <li>Multi-thread access is limited to read-only calls</li>
- * </ol></p>
- *
- * @author Thomas.Diesler(a)jboss.org
- * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
- * @since 12-May-2005
- */
-public class UnifiedMetaData
-{
- // provide logging
- private static Logger log = Logger.getLogger(UnifiedMetaData.class);
-
- // The modules resource class loader
- private URLClassLoader resourceLoader;
- // The modules class loader
- private ClassLoader classLoader;
- // The optional security domain
- private String securityDomain;
- // The implementation version
- private static String implementationVersion;
- // True if this is a final release
- private static boolean isFinalRelease;
- // Map<String, WSDLDefinitions> the wsdl-file to the wsdl Document
- // Note the same wsdl can be used in multiple webservice descriptions
- Map<String, WSDLDefinitions> wsdlMap = new HashMap<String,
WSDLDefinitions>();
- // Maps the jaxrpc-mapping-file to {@link JavaWsdlMapping} object
- // Note the same jaxrpc-mapping.xml can be used in multiple webservice descriptions
- Map<String, JavaWsdlMapping> jaxrpcMap = new HashMap<String,
JavaWsdlMapping>();
- // The list of service meta data
- private List<ServiceMetaData> services = new
ArrayList<ServiceMetaData>();
- // Used by eager initialization
- private boolean eagerInitialized;
- // Used by validate
- private boolean validated;
-
- public UnifiedMetaData()
- {
- }
-
- public URLClassLoader getResourceLoader()
- {
- if (resourceLoader == null)
- throw new IllegalStateException ("Resource loader not available");
-
- return resourceLoader;
- }
-
- public void setResourceLoader(URLClassLoader resourceLoader)
- {
- this.resourceLoader = resourceLoader;
- }
-
- public ClassLoader getClassLoader()
- {
- if (classLoader == null)
- throw new IllegalStateException ("Class loader not available");
-
- return classLoader;
- }
-
- public void setClassLoader(ClassLoader classLoader)
- {
- this.classLoader = classLoader;
- }
-
- public String getSecurityDomain()
- {
- return securityDomain;
- }
-
- public void setSecurityDomain(String domain)
- {
- String prefix = "java:/jaas/";
- if (domain != null && domain.startsWith(prefix))
- domain = domain.substring(prefix.length());
-
- this.securityDomain = domain;
- }
-
- public List<ServiceMetaData> getServices()
- {
- return new ArrayList<ServiceMetaData>(services);
- }
-
- public void addService(ServiceMetaData serviceMetaData)
- {
- services.add(serviceMetaData);
- }
-
- public void addWSDLDefinition(String wsdlFile, WSDLDefinitions wsdlDefinitions)
- {
- wsdlMap.put(wsdlFile, wsdlDefinitions);
- }
-
- public WSDLDefinitions getWSDLDefinition(String wsdlFile)
- {
- return wsdlMap.get(wsdlFile);
- }
-
- public void addMappingDefinition(String jaxrpcFile, JavaWsdlMapping javaWsdlMapping)
- {
- jaxrpcMap.put(jaxrpcFile, javaWsdlMapping);
- }
-
- public JavaWsdlMapping getMappingDefinition(String jaxrpcFile)
- {
- return jaxrpcMap.get(jaxrpcFile);
- }
-
- public void validate()
- {
- if (validated == false)
- {
- for (ServiceMetaData service : services)
- {
- service.validate();
- }
- validated = true;
- }
- }
-
- public boolean isEagerInitialized()
- {
- return eagerInitialized;
- }
-
- /**
- * Eagerly initialize all cache values that are normally lazy-loaded. This
- * allows for concurrent read-only access to a
<code>UnifiedMetaData</code>
- * instance. This method, however, must be called from a single thread.
- */
- public void eagerInitialize()
- {
- if (eagerInitialized == false)
- {
- log.debug("Eagerly initialize the meta data model");
- for (ServiceMetaData service : services)
- {
- service.eagerInitialize();
- }
- eagerInitialized = true;
- }
- }
-
- public static String getImplementationVersion()
- {
- if (implementationVersion == null)
- {
- implementationVersion =
ServiceEndpointManager.class.getPackage().getImplementationVersion();
- isFinalRelease = new
StringTokenizer(implementationVersion).nextToken().endsWith(".GA");
- }
- return implementationVersion;
- }
-
- public static boolean isFinalRelease()
- {
- getImplementationVersion();
- return isFinalRelease;
- }
-
- public String toString()
- {
- StringBuilder buffer = new StringBuilder("\nUnifiedMetaData: ");
- buffer.append("\n implementation: " + getImplementationVersion());
- buffer.append("\n securityDomain: " + getSecurityDomain());
- //buffer.append("\n resourceLoader: " + resourceLoader);
- //buffer.append("\n classLoader: " + classLoader);
- buffer.append("\n");
-
- for (ServiceMetaData serviceMetaData : services)
- {
- buffer.append(serviceMetaData);
- }
- return buffer.toString();
- }
-}
\ No newline at end of file
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/UnifiedMetaData.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/umdm/UnifiedMetaData.java)
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/webservices (from rev
1605, branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/webservices)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/webservices/PortComponentMetaData.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/webservices/PortComponentMetaData.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/webservices/PortComponentMetaData.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,194 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-// $Id$
-package org.jboss.ws.metadata.webservices;
-
-// $Id$
-
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.xml.namespace.QName;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.metadata.j2ee.UnifiedHandlerMetaData;
-
-/**
- * XML Binding and ws4ee meta-data element for
- * <code>webservices/webservice-description/port-component</code>
- * <p/>
- * A port component is the equivalent of an ordinary Axis service (and
- * as such it constitutes the building blocks for jaxrpc services).
- * <p/>
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 15-April-2004
- */
-public class PortComponentMetaData
-{
- /**
- * The index of the webservice-description in webservices.xml
- */
- public static final String PARAMETER_WEBSERVICE_ID = "webserviceID";
-
- // provide logging
- private static final Logger log = Logger.getLogger(PortComponentMetaData.class);
-
- // The parent <webservice-description> element
- private WebserviceDescriptionMetaData webserviceDescription;
-
- /** The required <port-component-name> element
- * This name bears no relationship to the WSDL port name.
- * This name must be unique amongst all port component names in a module.
- */
- private String portComponentName;
- // The required <wsdl-port> element
- private QName wsdlPort;
- // The required <service-endpoint-interface> element
- private String serviceEndpointInterface;
- // The required <ejb-link> or <servlet-link> in the
<service-impl-bean> element
- private String ejbLink;
- private String servletLink;
- // The optional <handler> elements
- private List<UnifiedHandlerMetaData> handlers = new
ArrayList<UnifiedHandlerMetaData>();
-
- // The HTTP context root
- private String contextRoot;
-
- /** Construct a new PortComponentMetaData for a given WebserviceDescriptionMetaData
- */
- public PortComponentMetaData(WebserviceDescriptionMetaData webserviceDescription)
- {
- this.webserviceDescription = webserviceDescription;
- }
-
- public WebserviceDescriptionMetaData getWebserviceDescription()
- {
- return webserviceDescription;
- }
-
- public String getPortComponentName()
- {
- return portComponentName;
- }
-
- public void setPortComponentName(String portComponentName)
- {
- this.portComponentName = portComponentName;
- }
-
- public QName getWsdlPort()
- {
- return wsdlPort;
- }
-
- public void setWsdlPort(QName wsdlPort)
- {
- if (wsdlPort.getNamespaceURI().length() == 0)
- log.warn("<wsdl-port> element in webservices.xml not namespace
qualified: " + wsdlPort);
-
- this.wsdlPort = wsdlPort;
- }
-
- public String getEjbLink()
- {
- return ejbLink;
- }
-
- public void setEjbLink(String ejbLink)
- {
- this.ejbLink = ejbLink;
- }
-
- public String getServletLink()
- {
- return servletLink;
- }
-
- public void setServletLink(String servletLink)
- {
- this.servletLink = servletLink;
- }
-
- public String getServiceEndpointInterface()
- {
- return serviceEndpointInterface;
- }
-
- public void setServiceEndpointInterface(String serviceEndpointInterface)
- {
- this.serviceEndpointInterface = serviceEndpointInterface;
- }
-
- public void addHandler(UnifiedHandlerMetaData handler)
- {
- handlers.add(handler);
- }
-
- public UnifiedHandlerMetaData[] getHandlers()
- {
- UnifiedHandlerMetaData[] array = new UnifiedHandlerMetaData[handlers.size()];
- handlers.toArray(array);
- return array;
- }
-
- public String getContextRoot()
- {
- return contextRoot;
- }
-
- public void setContextRoot(String contextRoot)
- {
- this.contextRoot = contextRoot;
- }
-
- /**
- * Serialize as a String
- *
- * @return
- */
- public String serialize()
- {
- StringBuilder builder = new StringBuilder("<port-component>
<port-component-name>");
- builder.append(portComponentName +
"</port-component-name><wsdl-port>impl:");
- builder.append(wsdlPort.getLocalPart() +
"</wsdl-port><service-endpoint-interface>");
- builder.append(serviceEndpointInterface);
- builder.append("</service-endpoint-interface>");
- builder.append("<service-impl-bean>");
- if (ejbLink != null)
- {
- builder.append("<ejb-link>");
- builder.append(ejbLink);
- builder.append("</ejb-link>");
-
- }
- else
- {
- builder.append("<servlet-link>");
- builder.append(servletLink);
- builder.append("</servlet-link>");
- }
- builder.append("</service-impl-bean>");
- builder.append("</port-component>");
- return builder.toString();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/webservices/PortComponentMetaData.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/webservices/PortComponentMetaData.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/webservices/WebserviceDescriptionMetaData.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/webservices/WebserviceDescriptionMetaData.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/webservices/WebserviceDescriptionMetaData.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,176 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.metadata.webservices;
-
-// $Id$
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.Map;
-
-import javax.xml.namespace.QName;
-
-import org.jboss.logging.Logger;
-
-/**
- * XML Binding element for <code>webservices/webservice-description</code>
- *
- * @author Thomas.Diesler(a)jboss.org
- * @version $Revision$
- * @since 15-April-2004
- */
-public class WebserviceDescriptionMetaData
-{
- // provide logging
- private static final Logger log =
Logger.getLogger(WebserviceDescriptionMetaData.class);
-
- // The parent <webservices> element
- private WebservicesMetaData webservices;
-
- // The required <webservice-description-name> element
- private String webserviceDescriptionName;
- // The required <wsdl-file> element
- private String wsdlFile;
- // The required <jaxrpc-mapping-file> element
- private String jaxrpcMappingFile;
- // The required <port-component> elements
- private ArrayList<PortComponentMetaData> portComponents = new
ArrayList<PortComponentMetaData>();
-
- public WebserviceDescriptionMetaData(WebservicesMetaData webservices)
- {
- this.webservices = webservices;
- }
-
- public WebservicesMetaData getWebservices()
- {
- return webservices;
- }
-
- public void addPortComponent(PortComponentMetaData portComponent)
- {
- portComponents.add(portComponent);
- }
-
- public PortComponentMetaData[] getPortComponents()
- {
- PortComponentMetaData[] array = new PortComponentMetaData[portComponents.size()];
- portComponents.toArray(array);
- return array;
- }
-
- /**
- * Get the QNames of the port components to be declared
- * in the namespaces
- *
- * @return
- */
- public Collection getPortComponentQNames()
- {
- //TODO:Check if there is just one QName that drives all portcomponents
- //or each port component can have a distinct QName (namespace/prefix)
- //Maintain uniqueness of the QName
- Map map = new HashMap();
- Iterator iter = portComponents.iterator();
- while(iter != null && iter.hasNext())
- {
- PortComponentMetaData pcm = (PortComponentMetaData)iter.next();
- QName qname = pcm.getWsdlPort();
- map.put(qname.getPrefix(),qname);
- }
- return map.values();
- }
-
- /**
- * Lookup a PortComponentMetaData by wsdl-port local part
- *
- * @param name - the wsdl-port local part
- * @return PortComponentMetaData if found, null otherwise
- */
- public PortComponentMetaData getPortComponentByWsdlPort(String name)
- {
- ArrayList pcNames = new ArrayList();
- Iterator it = portComponents.iterator();
- while (it.hasNext())
- {
- PortComponentMetaData pc = (PortComponentMetaData)it.next();
- String wsdlPortName = pc.getWsdlPort().getLocalPart();
- if (wsdlPortName.equals(name))
- {
- return pc;
- }
- pcNames.add(wsdlPortName);
- }
-
- log.error("Cannot get port component name '" + name + "', we
have: " + pcNames);
- return null;
- }
-
- public String getWebserviceDescriptionName()
- {
- return webserviceDescriptionName;
- }
-
- public void setWebserviceDescriptionName(String webserviceDescriptionName)
- {
- this.webserviceDescriptionName = webserviceDescriptionName;
- }
-
- public String getWsdlFile()
- {
- return wsdlFile;
- }
-
- public void setWsdlFile(String wsdlFile)
- {
- this.wsdlFile = wsdlFile;
- }
-
- public String getJaxrpcMappingFile()
- {
- return jaxrpcMappingFile;
- }
-
- public void setJaxrpcMappingFile(String jaxrpcMappingFile)
- {
- this.jaxrpcMappingFile = jaxrpcMappingFile;
- }
-
- /**
- * Serialize as a String
- *
- * @return
- */
- public String serialize()
- {
- StringBuilder buffer = new StringBuilder("<webservice-description>
<webservice-description-name>");
- buffer.append(this.webserviceDescriptionName);
- buffer.append("</webservice-description-name>");
-
buffer.append("<wsdl-file>"+wsdlFile+"</wsdl-file>");
-
buffer.append("<jaxrpc-mapping-file>"+jaxrpcMappingFile+"</jaxrpc-mapping-file>");
- for(PortComponentMetaData pm:portComponents)
- buffer.append(pm.serialize());
- buffer.append("</webservice-description>");
- return buffer.toString();
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/webservices/WebserviceDescriptionMetaData.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/webservices/WebserviceDescriptionMetaData.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/webservices/WebservicesFactory.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/webservices/WebservicesFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/webservices/WebservicesFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,214 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.metadata.webservices;
-
-// $Id$
-
-import java.net.URL;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.metadata.j2ee.UnifiedHandlerMetaData;
-import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerInitParam;
-import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
-import org.jboss.xb.binding.ObjectModelFactory;
-import org.jboss.xb.binding.UnmarshallingContext;
-import org.xml.sax.Attributes;
-
-/**
- * A JBossXB factory for {@link WebservicesMetaData}
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 16-Apr-2004
- */
-public class WebservicesFactory implements ObjectModelFactory
-{
- // provide logging
- private static final Logger log = Logger.getLogger(WebservicesFactory.class);
-
- // The URL to the webservices.xml descriptor
- private URL descriptorURL;
-
- public WebservicesFactory(URL descriptorURL)
- {
- this.descriptorURL = descriptorURL;
- }
-
- /**
- * This method is called on the factory by the object model builder when the parsing
starts.
- *
- * @return the root of the object model.
- */
- public Object newRoot(Object root, UnmarshallingContext navigator, String
namespaceURI, String localName, Attributes attrs)
- {
- WebservicesMetaData webservicesMetaData = new WebservicesMetaData(descriptorURL);
- return webservicesMetaData;
- }
-
- public Object completeRoot(Object root, UnmarshallingContext ctx, String uri, String
name)
- {
- return root;
- }
-
- /**
- * Called when parsing of a new element started.
- */
- public Object newChild(WebservicesMetaData webservices, UnmarshallingContext
navigator, String namespaceURI, String localName, Attributes attrs)
- {
- if ("webservice-description".equals(localName))
- return new WebserviceDescriptionMetaData(webservices);
- else return null;
- }
-
- /**
- * Called when parsing character is complete.
- */
- public void addChild(WebservicesMetaData webservices, WebserviceDescriptionMetaData
webserviceDescription, UnmarshallingContext navigator, String namespaceURI,
- String localName)
- {
- webservices.addWebserviceDescription(webserviceDescription);
- }
-
- /**
- * Called when parsing of a new element started.
- */
- public Object newChild(WebserviceDescriptionMetaData webserviceDescription,
UnmarshallingContext navigator, String namespaceURI, String localName, Attributes attrs)
- {
- if ("port-component".equals(localName))
- return new PortComponentMetaData(webserviceDescription);
- else return null;
- }
-
- /**
- * Called when parsing character is complete.
- */
- public void addChild(WebserviceDescriptionMetaData webserviceDescription,
PortComponentMetaData portComponent, UnmarshallingContext navigator, String namespaceURI,
- String localName)
- {
- webserviceDescription.addPortComponent(portComponent);
- }
-
- /**
- * Called when parsing of a new element started.
- */
- public Object newChild(PortComponentMetaData portComponent, UnmarshallingContext
navigator, String namespaceURI, String localName, Attributes attrs)
- {
- if ("handler".equals(localName))
- return new UnifiedHandlerMetaData(null);
- else return null;
- }
-
- /**
- * Called when parsing character is complete.
- */
- public void addChild(PortComponentMetaData portComponent, UnifiedHandlerMetaData
handler, UnmarshallingContext navigator, String namespaceURI, String localName)
- {
- portComponent.addHandler(handler);
- }
-
- /**
- * Called when parsing of a new element started.
- */
- public Object newChild(UnifiedHandlerMetaData handler, UnmarshallingContext navigator,
String namespaceURI, String localName, Attributes attrs)
- {
- if ("init-param".equals(localName))
- return new HandlerInitParam();
- else return null;
- }
-
- /**
- * Called when parsing character is complete.
- */
- public void addChild(UnifiedHandlerMetaData handler, HandlerInitParam param,
UnmarshallingContext navigator, String namespaceURI, String localName)
- {
- handler.addInitParam(param);
- }
-
- /**
- * Called when a new simple child element with text value was read from the XML
content.
- */
- public void setValue(WebserviceDescriptionMetaData webserviceDescription,
UnmarshallingContext navigator, String namespaceURI, String localName, String value)
- {
- if (log.isTraceEnabled())
- log.trace("WebserviceDescriptionMetaData setValue: nuri=" +
namespaceURI + " localName=" + localName + " value=" + value);
-
- if (localName.equals("webservice-description-name"))
- webserviceDescription.setWebserviceDescriptionName(value);
- else if (localName.equals("wsdl-file"))
- webserviceDescription.setWsdlFile(value);
- else if (localName.equals("jaxrpc-mapping-file"))
- webserviceDescription.setJaxrpcMappingFile(value);
- }
-
- /**
- * Called when a new simple child element with text value was read from the XML
content.
- */
- public void setValue(PortComponentMetaData portComponent, UnmarshallingContext
navigator, String namespaceURI, String localName, String value)
- {
- if (log.isTraceEnabled())
- log.trace("PortComponentMetaData setValue: nuri=" + namespaceURI +
" localName=" + localName + " value=" + value);
-
- if (localName.equals("port-component-name"))
- portComponent.setPortComponentName(value);
- else if (localName.equals("wsdl-port"))
- portComponent.setWsdlPort(navigator.resolveQName(value));
- else if (localName.equals("service-endpoint-interface"))
- portComponent.setServiceEndpointInterface(value);
- else if (localName.equals("ejb-link"))
- portComponent.setEjbLink(value);
- else if (localName.equals("servlet-link"))
- portComponent.setServletLink(value);
- }
-
- /**
- * Called when a new simple child element with text value was read from the XML
content.
- */
- public void setValue(UnifiedHandlerMetaData handler, UnmarshallingContext navigator,
String namespaceURI, String localName, String value)
- {
- if (log.isTraceEnabled())
- log.trace("UnifiedHandlerMetaData setValue: nuri=" + namespaceURI +
" localName=" + localName + " value=" + value);
-
- if (localName.equals("handler-name"))
- handler.setHandlerName(value);
- else if (localName.equals("handler-class"))
- handler.setHandlerClass(value);
- else if (localName.equals("soap-header"))
- handler.addSoapHeader(navigator.resolveQName(value));
- else if (localName.equals("soap-role"))
- handler.addSoapRole(value);
- else if (localName.equals("port-name"))
- handler.addPortName(value);
- }
-
- /**
- * Called when a new simple child element with text value was read from the XML
content.
- */
- public void setValue(HandlerInitParam param, UnmarshallingContext navigator, String
namespaceURI, String localName, String value)
- {
- if (log.isTraceEnabled())
- log.trace("UnifiedInitParamMetaData setValue: nuri=" + namespaceURI +
" localName=" + localName + " value=" + value);
-
- if (localName.equals("param-name"))
- param.setParamName(value);
- else if (localName.equals("param-value"))
- param.setParamValue(value);
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/webservices/WebservicesFactory.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/webservices/WebservicesFactory.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/webservices/WebservicesMetaData.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/webservices/WebservicesMetaData.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/webservices/WebservicesMetaData.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,109 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-// $Id$
-package org.jboss.ws.metadata.webservices;
-
-import java.net.URL;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import javax.xml.namespace.QName;
-
-import org.jboss.ws.Constants;
-
-// $Id$
-
-/**
- * XML Binding root element for <code>webservices.xml</code>
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 15-April-2004
- */
-public class WebservicesMetaData
-{
- // The required <webservice-description> elements
- private ArrayList<WebserviceDescriptionMetaData> webserviceDescriptions = new
ArrayList<WebserviceDescriptionMetaData>();
-
- // The URL to the webservices.xml descriptor
- private URL descriptorURL;
-
- public WebservicesMetaData()
- {
- }
-
- public WebservicesMetaData(URL descriptorURL)
- {
- this.descriptorURL = descriptorURL;
- }
-
- public URL getDescriptorURL()
- {
- return descriptorURL;
- }
-
- public void addWebserviceDescription(WebserviceDescriptionMetaData
webserviceDescription)
- {
- webserviceDescriptions.add(webserviceDescription);
- }
-
- public WebserviceDescriptionMetaData[] getWebserviceDescriptions()
- {
- WebserviceDescriptionMetaData[] array = new
WebserviceDescriptionMetaData[webserviceDescriptions.size()];
- webserviceDescriptions.toArray(array);
- return array;
- }
-
- //Serialize as a String
- public String serialize()
- {
- StringBuilder buffer = new StringBuilder();
- //Construct the webservices.xml definitions
- List qnames = new ArrayList();
- Iterator iter = webserviceDescriptions.iterator();
- while(iter != null && iter.hasNext())
- {
- WebserviceDescriptionMetaData wmd = (WebserviceDescriptionMetaData)iter.next();
- qnames.addAll(wmd.getPortComponentQNames());
- }
- createHeader( buffer,qnames );
- for(WebserviceDescriptionMetaData wm:webserviceDescriptions)
- buffer.append(wm.serialize());
- buffer.append("</webservices>");
- return buffer.toString();
- }
-
- private void createHeader( StringBuilder buf, List qnames)
- {
- buf.append("<webservices
xmlns='http://java.sun.com/xml/ns/j2ee'");
- buf.append("
xmlns:xsi='"+Constants.NS_SCHEMA_XSI+"'");
- //Lets append the port type namespaces
- Iterator iter = qnames.iterator();
- while(iter != null && iter.hasNext())
- {
- QName qn = (QName)iter.next();
- buf.append("
xmlns:").append(qn.getPrefix()).append("='").append(qn.getNamespaceURI()).append("'");
- }
- buf.append("
xsi:schemaLocation='http://java.sun.com/xml/ns/j2ee
http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd'");
- buf.append(" version='1.1' >");
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/webservices/WebservicesMetaData.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/metadata/webservices/WebservicesMetaData.java)
Modified: branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/DOMTypes.java
===================================================================
--- branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/DOMTypes.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/DOMTypes.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -24,7 +24,7 @@
import javax.xml.namespace.QName;
import org.jboss.util.NotImplementedException;
-import org.jboss.ws.utils.DOMWriter;
+import org.jboss.ws.core.utils.DOMWriter;
import org.w3c.dom.Element;
/**
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDL11DefinitionFactory.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDL11DefinitionFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDL11DefinitionFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,100 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.metadata.wsdl;
-
-// $Id: WSDL11DefinitionFactory.java 906 2006-09-06 18:57:40Z thomas.diesler(a)jboss.com $
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.utils.JBossWSEntityResolver;
-import org.xml.sax.EntityResolver;
-import org.xml.sax.InputSource;
-
-import com.ibm.wsdl.xml.WSDLReaderImpl;
-
-import javax.wsdl.Definition;
-import javax.wsdl.WSDLException;
-import javax.wsdl.factory.WSDLFactory;
-import javax.wsdl.xml.WSDLLocator;
-import javax.wsdl.xml.WSDLReader;
-import java.io.IOException;
-import java.io.InputStream;
-import java.net.MalformedURLException;
-import java.net.URL;
-
-/**
- * A factory that creates a WSDL-1.1 <code>Definition</code> from an URL.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 15-April-2004
- */
-public class WSDL11DefinitionFactory
-{
- // provide logging
- private static Logger log = Logger.getLogger(WSDL11DefinitionFactory.class);
-
- // This feature is set by default in wsdl4j, it means the object structore contains
the imported arguments
- public static final String FEATURE_IMPORT_DOCUMENTS =
"javax.wsdl.importDocuments";
- // Set this feature for additional debugging output
- public static final String FEATURE_VERBOSE = "javax.wsdl.verbose";
-
- // The WSDLReader that is used by this factory
- private WSDLReader wsdlReader;
-
- // Hide constructor
- private WSDL11DefinitionFactory() throws WSDLException
- {
- WSDLFactory wsdlFactory = WSDLFactory.newInstance();
- wsdlReader = wsdlFactory.newWSDLReader();
- wsdlReader.setFeature(WSDL11DefinitionFactory.FEATURE_VERBOSE, false);
- }
-
- /** Create a new instance of a wsdl factory */
- public static WSDL11DefinitionFactory newInstance() throws WSDLException
- {
- return new WSDL11DefinitionFactory();
- }
-
- /** Set a feature on the underlying reader */
- public void setFeature(String name, boolean value) throws IllegalArgumentException
- {
- wsdlReader.setFeature(name, value);
- }
-
- /**
- * Read the wsdl document from the given URL
- */
- public Definition parse(URL wsdlLocation) throws WSDLException
- {
- if (wsdlLocation == null)
- throw new IllegalArgumentException("URL cannot be null");
-
- log.trace("parse: " + wsdlLocation.toExternalForm());
-
- EntityResolver entityResolver = new JBossWSEntityResolver();
-
- // Set EntityResolver in patched version of wsdl4j-1.5.2jboss
- ((WSDLReaderImpl)wsdlReader).setEntityResolver(entityResolver);
-
- Definition wsdlDefinition = wsdlReader.readWSDL(new WSDLLocatorImpl(entityResolver,
wsdlLocation));
- return wsdlDefinition;
- }
-}
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDL11Reader.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDL11Reader.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDL11Reader.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,1154 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.metadata.wsdl;
-
-// $Id$
-
-import java.io.File;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-
-import javax.wsdl.Binding;
-import javax.wsdl.BindingInput;
-import javax.wsdl.BindingOperation;
-import javax.wsdl.BindingOutput;
-import javax.wsdl.Definition;
-import javax.wsdl.Fault;
-import javax.wsdl.Import;
-import javax.wsdl.Input;
-import javax.wsdl.Message;
-import javax.wsdl.Operation;
-import javax.wsdl.Output;
-import javax.wsdl.Part;
-import javax.wsdl.Port;
-import javax.wsdl.PortType;
-import javax.wsdl.Service;
-import javax.wsdl.Types;
-import javax.wsdl.extensions.ExtensibilityElement;
-import javax.wsdl.extensions.UnknownExtensibilityElement;
-import javax.wsdl.extensions.mime.MIMEContent;
-import javax.wsdl.extensions.mime.MIMEMultipartRelated;
-import javax.wsdl.extensions.mime.MIMEPart;
-import javax.wsdl.extensions.schema.Schema;
-import javax.wsdl.extensions.soap.SOAPAddress;
-import javax.wsdl.extensions.soap.SOAPBinding;
-import javax.wsdl.extensions.soap.SOAPBody;
-import javax.wsdl.extensions.soap.SOAPHeader;
-import javax.wsdl.extensions.soap.SOAPOperation;
-import javax.xml.namespace.QName;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.utils.DOMUtils;
-import org.jboss.ws.utils.DOMWriter;
-import org.jboss.ws.Constants;
-import org.jboss.ws.WSException;
-import org.jboss.ws.jaxrpc.Style;
-import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel;
-import org.jboss.ws.metadata.wsdl.xsd.SchemaUtils;
-import org.jboss.ws.tools.JavaToXSD;
-import org.w3c.dom.Attr;
-import org.w3c.dom.Element;
-import org.w3c.dom.NamedNodeMap;
-import org.w3c.dom.Node;
-
-/**
- * A helper that translates a WSDL-1.1 object graph into a WSDL-2.0 object graph.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @author Anil.Saldhana(a)jboss.org
- * @since 10-Oct-2004
- */
-public class WSDL11Reader
-{
- // provide logging
- private static final Logger log = Logger.getLogger(WSDL11Reader.class);
-
- private static QName SOAP12_BINDING = new QName(Constants.NS_SOAP12,
"binding");
- private static QName SOAP12_BODY = new QName(Constants.NS_SOAP12, "body");
- private static QName SOAP12_OPERATION = new QName(Constants.NS_SOAP12,
"operation");
- private static QName SOAP12_ADDRESS = new QName(Constants.NS_SOAP12,
"address");
-
- private WSDLDefinitions destWsdl;
-
- // Maps wsdl message parts to their corresponding element names
- private Map<String, QName> messagePartToElementMap = new HashMap<String,
QName>();
-
- // Map of <ns,URL> for schemalocation keyed by namespace
- private Map<String, URL> schemaLocationsMap = new HashMap<String, URL>();
-
- // Temporary files used by this reader.
- private List<File> tempFiles = new ArrayList<File>();
-
- /**
- * Takes a WSDL11 Definition element and converts into
- * our object graph that has been developed for WSDL20
- *
- * @param srcWsdl The src WSDL11 definition
- * @param wsdlLoc The source location, if null we cannot process imports or includes
- */
- public WSDLDefinitions processDefinition(Definition srcWsdl, URL wsdlLoc) throws
IOException
- {
- log.trace("processDefinition: " + wsdlLoc);
-
- destWsdl = new WSDLDefinitions();
- destWsdl.setWsdlTypes(new XSModelTypes());
- destWsdl.setWsdlOneOneDefinition(srcWsdl);
- destWsdl.setWsdlNamespace(Constants.NS_WSDL11);
-
- processNamespaces(srcWsdl);
- processTypes(srcWsdl, wsdlLoc);
- processServices(srcWsdl);
-
- if (getAllDefinedBindings(srcWsdl).size() != destWsdl.getBindings().length)
- processUnreachableBindings(srcWsdl);
-
- cleanupTemporaryFiles();
-
- return destWsdl;
- }
-
- private void cleanupTemporaryFiles()
- {
- for (File current : tempFiles)
- {
- current.delete();
- }
- }
-
- // process all bindings not within service separetly
- private void processUnreachableBindings(Definition srcWsdl)
- {
- log.trace("processUnreachableBindings");
-
- Iterator it = getAllDefinedBindings(srcWsdl).values().iterator();
- while (it.hasNext())
- {
- Binding srcBinding = (Binding)it.next();
- QName srcQName = srcBinding.getQName();
-
- WSDLBinding destBinding = destWsdl.getBinding(new NCName(srcQName));
- if (destBinding == null)
- {
- processBinding(srcWsdl, srcBinding);
- }
- }
- }
-
- private void processNamespaces(Definition srcWsdl)
- {
- String targetNS = srcWsdl.getTargetNamespace();
- destWsdl.setTargetNamespace(targetNS);
-
- // Copy wsdl namespaces
- Map nsMap = srcWsdl.getNamespaces();
- Iterator iter = nsMap.entrySet().iterator();
- while (iter.hasNext())
- {
- Map.Entry entry = (Map.Entry)iter.next();
- String prefix = (String)entry.getKey();
- String nsURI = (String)entry.getValue();
- destWsdl.registerNamespaceURI(nsURI, prefix);
- }
- }
-
- private void processTypes(Definition srcWsdl, URL wsdlLoc) throws IOException
- {
- log.trace("BEGIN processTypes: " + wsdlLoc);
-
- WSDLTypes destTypes = destWsdl.getWsdlTypes();
-
- Types srcTypes = srcWsdl.getTypes();
- if (srcTypes != null && srcTypes.getExtensibilityElements().size() > 0)
- {
- List extElements = srcTypes.getExtensibilityElements();
- int len = extElements.size();
-
- for (int i = 0; i < len; i++)
- {
- ExtensibilityElement extElement = (ExtensibilityElement)extElements.get(i);
-
- Element domElement;
- if (extElement instanceof Schema)
- {
- domElement = ((Schema)extElement).getElement();
- }
- else if (extElement instanceof UnknownExtensibilityElement)
- {
- domElement = ((UnknownExtensibilityElement)extElement).getElement();
- }
- else
- {
- throw new WSException("Unsupported extensibility element: " +
extElement);
- }
-
- Element domElementClone = (Element)domElement.cloneNode(true);
- copyParentNamespaceDeclarations(domElementClone, domElement);
-
- String localname = domElementClone.getLocalName();
- try
- {
- if ("import".equals(localname))
- {
- processSchemaImport(destTypes, wsdlLoc, domElementClone);
- }
- else if ("schema".equals(localname))
- {
- processSchemaInclude(destTypes, wsdlLoc, domElementClone);
- }
- else
- {
- throw new IllegalArgumentException("Unsuported schema element:
" + localname);
- }
- }
- catch (IOException e)
- {
- throw new WSException("Cannot extract schema definition", e);
- }
- }
-
- if (len > 0)
- {
- JavaToXSD jxsd = new JavaToXSD();
- JBossXSModel xsmodel = jxsd.parseSchema(schemaLocationsMap);
- WSDLUtils.addSchemaModel(destTypes, destWsdl.getTargetNamespace(), xsmodel);
- }
- }
- else
- {
- log.trace("Empty wsdl types element, processing imports");
- Iterator it = srcWsdl.getImports().values().iterator();
- while (it.hasNext())
- {
- List<Import> srcImports = (List<Import>)it.next();
- for (Import srcImport : srcImports)
- {
- Definition impDefinition = srcImport.getDefinition();
- String impLoc = impDefinition.getDocumentBaseURI();
- processTypes(impDefinition, new URL(impLoc));
- }
- }
- }
-
- log.trace("END processTypes: " + wsdlLoc + "\n" + destTypes);
- }
-
- private void copyParentNamespaceDeclarations(Element destElement, Element srcElement)
- {
- Node parent = srcElement.getParentNode();
- while (parent != null)
- {
- if (parent.hasAttributes())
- {
- NamedNodeMap attributes = parent.getAttributes();
- for (int i = 0; i < attributes.getLength(); i++)
- {
- Attr attr = (Attr)attributes.item(i);
- String name = attr.getName();
- String value = attr.getValue();
- if (name.startsWith("xmlns:") &&
destElement.hasAttribute(name) == false)
- destElement.setAttribute(name, value);
- }
- }
- parent = parent.getParentNode();
- }
- }
-
- private void processSchemaImport(WSDLTypes types, URL wsdlLoc, Element importEl)
throws IOException
- {
- if (wsdlLoc == null)
- throw new IllegalArgumentException("Cannot process import, parent location
not set");
-
- log.trace("processSchemaImport: " + wsdlLoc);
-
- String location = getOptionalAttribute(importEl, "schemaLocation");
- if (location == null)
- throw new IllegalArgumentException("schemaLocation is null for
xsd:import");
-
- URL locationURL = getLocationURL(wsdlLoc, location);
- Element rootElement = DOMUtils.parse(locationURL.openStream());
- URL newloc = processSchemaInclude(types, locationURL, rootElement);
- if (newloc != null)
- importEl.setAttribute("schemaLocation", newloc.toExternalForm());
- }
-
- private URL processSchemaInclude(WSDLTypes types, URL wsdlLoc, Element schemaEl)
throws IOException
- {
- if (wsdlLoc == null)
- throw new IllegalArgumentException("Cannot process iclude, parent location
not set");
-
- File tmpFile = null;
- if (wsdlLoc == null)
- throw new IllegalArgumentException("Cannot process include, parent location
not set");
-
- log.trace("processSchemaInclude: " + wsdlLoc);
-
- String schemaPrefix = schemaEl.getPrefix();
-
- String importTag = (schemaPrefix == null) ? "import" : schemaPrefix +
":import";
- Element importElement =
schemaEl.getOwnerDocument().createElementNS(Constants.NS_SCHEMA_XSD, importTag);
- importElement.setAttribute("namespace", Constants.URI_SOAP11_ENC);
- schemaEl.insertBefore(importElement, DOMUtils.getFirstChildElement(schemaEl));
-
- // Handle schema includes
- Iterator it = DOMUtils.getChildElements(schemaEl, new
QName(Constants.NS_SCHEMA_XSD, "include"));
- while (it.hasNext())
- {
- Element includeEl = (Element)it.next();
- String location = getOptionalAttribute(includeEl, "schemaLocation");
- if (location == null)
- throw new IllegalArgumentException("schemaLocation is null for
xsd:include");
-
- URL locationURL = getLocationURL(wsdlLoc, location);
- Element rootElement = DOMUtils.parse(locationURL.openStream());
- URL newloc = processSchemaInclude(types, locationURL, rootElement);
- if (newloc != null)
- includeEl.setAttribute("schemaLocation", newloc.toExternalForm());
- }
-
- String targetNS = getOptionalAttribute(schemaEl, "targetNamespace");
- if (targetNS != null)
- {
- log.trace("processSchemaInclude: [targetNS=" + targetNS +
",parentURL=" + wsdlLoc + "]");
-
- tmpFile = SchemaUtils.getSchemaTempFile(targetNS);
- tempFiles.add(tmpFile);
-
- FileWriter fwrite = new FileWriter(tmpFile);
- new DOMWriter(fwrite).setPrettyprint(true).print(schemaEl);
- fwrite.close();
-
- schemaLocationsMap.put(targetNS, tmpFile.toURL());
- }
-
- // schema elements that have no target namespace are skipped
- //
- // <xsd:schema>
- // <xsd:import
namespace="http://org.jboss.webservice/example/types"
schemaLocation="Hello.xsd"/>
- // <xsd:import
namespace="http://org.jboss.webservice/example/types/arrays/org/jboss/test/webservice/admindevel"
schemaLocation="subdir/HelloArr.xsd"/>
- // </xsd:schema>
- if (targetNS == null)
- {
- log.trace("Schema element without target namespace in: " + wsdlLoc);
- }
-
- handleSchemaImports(schemaEl, wsdlLoc);
-
- return tmpFile != null ? tmpFile.toURL() : null;
- }
-
- private void handleSchemaImports(Element schemaEl, URL wsdlLoc) throws
MalformedURLException
- {
- if (wsdlLoc == null)
- throw new IllegalArgumentException("Cannot process import, parent location
not set");
-
- Iterator it = DOMUtils.getChildElements(schemaEl, new
QName(Constants.NS_SCHEMA_XSD, "import"));
- while (it.hasNext())
- {
- Element includeEl = (Element)it.next();
- String schemaLocation = getOptionalAttribute(includeEl,
"schemaLocation");
- String namespace = getOptionalAttribute(includeEl, "namespace");
-
- log.trace("handleSchemaImport: [namespace=" + namespace +
",schemaLocation=" + schemaLocation + "]");
-
- // Skip, let the entity resolver resolve these
- if (namespace != null && schemaLocation != null)
- {
- URL currLoc = getLocationURL(wsdlLoc, schemaLocation);
- schemaLocationsMap.put(namespace, currLoc);
- }
- else
- {
- log.trace("Skip schema import: [namespace=" + namespace +
",schemaLocation=" + schemaLocation + "]");
- }
- }
- }
-
- private URL getLocationURL(URL parentURL, String location) throws
MalformedURLException
- {
- log.trace("getLocationURL: [location=" + location + ",parent="
+ parentURL + "]");
-
- URL locationURL = null;
- try
- {
- locationURL = new URL(location);
- }
- catch (MalformedURLException e)
- {
- // ignore malformed URL
- }
-
- if (locationURL == null)
- {
- String parentProtocol = parentURL.getProtocol();
- if (parentProtocol.equals("file") &&
!location.startsWith("/"))
- {
- String path = parentURL.toExternalForm();
- path = path.substring(0, path.lastIndexOf("/"));
- locationURL = new URL(path + "/" + location);
- }
- else if (parentProtocol.startsWith("http") &&
location.startsWith("/"))
- {
- String path = parentProtocol + "://" + parentURL.getHost() +
":" + parentURL.getPort();
- locationURL = new URL(path + location);
- }
- else if (parentProtocol.equals("jar") &&
!location.startsWith("/"))
- {
- String path = parentURL.toExternalForm();
- path = path.substring(0, path.lastIndexOf("/"));
- locationURL = new URL(path + "/" + location);
- }
- else
- {
- throw new WSException("Unsupported schemaLocation: " + location);
- }
- }
-
- log.trace("Modified schemaLocation: " + locationURL);
- return locationURL;
- }
-
- private void processPortType(Definition srcWsdl, PortType srcPortType)
- {
- log.trace("processPortType: " + srcPortType.getQName());
-
- QName qname = srcPortType.getQName();
- NCName ncName = new NCName(qname);
- if (destWsdl.getInterface(ncName) == null)
- {
- WSDLInterface destInterface = new WSDLInterface(destWsdl);
- destInterface.setName(ncName);
- destInterface.setQName(qname);
-
- // eventing extensions
- QName eventSourceProp =
(QName)srcPortType.getExtensionAttribute(Constants.WSDL_ATTRIBUTE_WSE_EVENTSOURCE);
- if (eventSourceProp != null &&
eventSourceProp.getLocalPart().equals(Boolean.TRUE.toString()))
- {
- destInterface.addProperty(new
WSDLProperty(Constants.WSDL_PROPERTY_EVENTSOURCE, eventSourceProp.getLocalPart()));
- }
-
- destWsdl.addInterface(destInterface);
-
- processPortTypeOperations(srcWsdl, destInterface, srcPortType);
- }
- }
-
- private void processPortTypeOperations(Definition srcWsdl, WSDLInterface
destInterface, PortType srcPortType)
- {
- Iterator itOperations = srcPortType.getOperations().iterator();
- while (itOperations.hasNext())
- {
- Operation srcOperation = (Operation)itOperations.next();
-
- WSDLInterfaceOperation destOperation = new
WSDLInterfaceOperation(destInterface);
- destOperation.setName(new NCName(srcOperation.getName()));
-
- processOperationInput(srcWsdl, srcOperation, destOperation, srcPortType);
- processOperationOutput(srcWsdl, srcOperation, destOperation, srcPortType);
- processOperationFaults(srcOperation, destOperation, destInterface);
-
- destInterface.addOperation(destOperation);
- }
- }
-
- private void processOperationInput(Definition srcWsdl, Operation srcOperation,
WSDLInterfaceOperation destOperation, PortType srcPortType)
- {
- Input srcInput = srcOperation.getInput();
- if (srcInput != null)
- {
- Message srcMessage = srcInput.getMessage();
- log.trace("processOperationInput: " + srcMessage.getQName());
-
- QName wsaAction =
(QName)srcInput.getExtensionAttribute(Constants.WSDL_ATTRIBUTE_WSA_ACTION);
- if (wsaAction != null)
- destOperation.addProperty(new WSDLProperty(Constants.WSDL_PROPERTY_ACTION_IN,
wsaAction.getLocalPart()));
-
- List paramOrder = srcOperation.getParameterOrdering();
- Iterator itMessageParts = srcMessage.getOrderedParts(paramOrder).iterator();
- while (itMessageParts.hasNext())
- {
- WSDLInterfaceOperationInput destInput = new
WSDLInterfaceOperationInput(destOperation);
-
- Part srcPart = (Part)itMessageParts.next();
- QName elementName = messagePartToElementName(srcWsdl, srcPortType,
srcOperation, srcMessage, srcPart);
- destInput.setElement(elementName);
-
- //Lets remember the Message name
- destInput.addProperty(new WSDLProperty(Constants.WSDL_PROPERTY_MESSAGE_NAME,
srcMessage.getQName().getLocalPart()));
- destOperation.addProperty(new
WSDLProperty(Constants.WSDL_PROPERTY_MESSAGE_NAME_IN,
srcMessage.getQName().getLocalPart()));
-
- // Remember the original part name
- WSDLProperty wsdlProperty = new
WSDLProperty(Constants.WSDL_PROPERTY_PART_NAME, srcPart.getName());
- destInput.addProperty(wsdlProperty);
-
- // If the Part references a type rather than an element
- // we transport the xmlType as property
- QName xmlType = srcPart.getTypeName();
- if (xmlType != null)
- {
- xmlType = destWsdl.registerQName(xmlType);
- String value = xmlType.getPrefix() + ":" +
xmlType.getLocalPart();
- wsdlProperty = new WSDLProperty(Constants.WSDL_PROPERTY_RPC_XMLTYPE,
value);
- destInput.addProperty(wsdlProperty);
- }
-
- destOperation.addInput(destInput);
- }
- }
- }
-
- private void processOperationOutput(Definition srcWsdl, Operation srcOperation,
WSDLInterfaceOperation destOperation, PortType srcPortType)
- {
- Output srcOutput = srcOperation.getOutput();
- if (srcOutput != null)
- {
- Message srcMessage = srcOutput.getMessage();
- log.trace("processOperationOutput: " + srcMessage.getQName());
-
- destOperation.setPattern(Constants.WSDL20_PATTERN_IN_OUT);
- QName wsaAction =
(QName)srcOutput.getExtensionAttribute(Constants.WSDL_ATTRIBUTE_WSA_ACTION);
- if (wsaAction != null)
- destOperation.addProperty(new
WSDLProperty(Constants.WSDL_PROPERTY_ACTION_OUT, wsaAction.getLocalPart()));
-
- Iterator itMessageParts = srcMessage.getOrderedParts(null).iterator();
- while (itMessageParts.hasNext())
- {
- WSDLInterfaceOperationOutput destOutput = new
WSDLInterfaceOperationOutput(destOperation);
-
- Part srcPart = (Part)itMessageParts.next();
- QName elementName = messagePartToElementName(srcWsdl, srcPortType,
srcOperation, srcMessage, srcPart);
- destOutput.setElement(elementName);
-
- //Lets remember the Message name
- destOutput.addProperty(new WSDLProperty(Constants.WSDL_PROPERTY_MESSAGE_NAME,
srcMessage.getQName().getLocalPart()));
- destOperation.addProperty(new
WSDLProperty(Constants.WSDL_PROPERTY_MESSAGE_NAME_OUT,
srcMessage.getQName().getLocalPart()));
-
- // Remember the original part name
- WSDLProperty wsdlProperty = new
WSDLProperty(Constants.WSDL_PROPERTY_PART_NAME, srcPart.getName());
- destOutput.addProperty(wsdlProperty);
-
- // If the Part references a type rather than an element
- // we transport the xmlType as property
- QName xmlType = srcPart.getTypeName();
- if (xmlType != null)
- {
- xmlType = destWsdl.registerQName(xmlType);
- String value = xmlType.getPrefix() + ":" +
xmlType.getLocalPart();
- wsdlProperty = new WSDLProperty(Constants.WSDL_PROPERTY_RPC_XMLTYPE,
value);
- destOutput.addProperty(wsdlProperty);
- }
-
- destOperation.addOutput(destOutput);
- }
- }
- else
- {
- destOperation.setPattern(Constants.WSDL20_PATTERN_IN_ONLY);
- }
- }
-
- private void processOperationFaults(Operation srcOperation, WSDLInterfaceOperation
destOperation, WSDLInterface destInterface)
- {
-
- Map faults = srcOperation.getFaults();
- Iterator itFaults = faults.values().iterator();
- while (itFaults.hasNext())
- {
- Fault srcFault = (Fault)itFaults.next();
- processOperationFault(destOperation, destInterface, srcFault);
- }
- }
-
- private void processOperationFault(WSDLInterfaceOperation destOperation, WSDLInterface
destInterface, Fault srcFault)
- {
- String faultName = srcFault.getName();
- log.trace("processOperationFault: " + faultName);
-
- WSDLInterfaceFault destFault = new WSDLInterfaceFault(destInterface);
- NCName ncName = new NCName(faultName);
- destFault.setName(ncName);
-
- Message message = srcFault.getMessage();
- QName messageName = message.getQName();
-
- Map partsMap = message.getParts();
- if (partsMap.size() != 1)
- throw new WSException("Unsupported number of fault parts in message "
+ messageName);
-
- Part part = (Part)partsMap.values().iterator().next();
- QName xmlName = part.getElementName();
- QName xmlType = part.getTypeName();
-
- destFault.setXmlType(xmlType);
- if (xmlName != null)
- {
- destFault.setXmlName(xmlName);
- }
- else
- {
- destFault.setXmlName(messageName);
- log.warn("Unsupported fault message part in message: " +
messageName);
- }
-
- WSDLInterfaceFault prevFault = destInterface.getFault(ncName);
- if (prevFault != null && prevFault.getName().equals(ncName) == false)
- throw new WSException("Fault name must be unique: " + faultName);
-
- // Add the fault to the interface
- destInterface.addFault(destFault);
-
- // Add the fault refererence to the operation
- WSDLInterfaceOperationOutfault opOutFault = new
WSDLInterfaceOperationOutfault(destOperation);
- opOutFault.setRef(new QName(destWsdl.getTargetNamespace(), faultName));
- destOperation.addOutfault(opOutFault);
- }
-
- /** Translate the message part name into an XML element name.
- */
- private QName messagePartToElementName(Definition srcWsdl, PortType srcPortType,
Operation srcOperation, Message srcMessage, Part srcPart)
- {
- // <part name="param" element="tns:SomeType" />
- QName xmlName = srcPart.getElementName();
- if (xmlName != null)
- xmlName = destWsdl.registerQName(xmlName);
-
- // <part name="param" type="xsd:string" />
- if (xmlName == null)
- {
- // Use the part name as fallback
- xmlName = new QName(srcPart.getName());
-
- // The binding may define a different xmlName for this message part (i.e. in
case of header parts)
- // The rest of this implementation tries to discover that binding.
-
- // Find the binding for this portType
- Binding srcBinding = null;
- Iterator itBindings = getAllDefinedBindings(srcWsdl).values().iterator();
- while (srcBinding == null && itBindings.hasNext())
- {
- Binding binding = (Binding)itBindings.next();
- if (binding.getPortType().equals(srcPortType))
- srcBinding = binding;
- }
-
- if (srcBinding == null)
- throw new WSException("Cannot find binding for: " +
srcPortType.getQName());
-
- String srcOperationName = srcOperation.getName();
- BindingOperation srcBindingOperation =
srcBinding.getBindingOperation(srcOperationName, null, null);
- if (srcBindingOperation == null)
- throw new WSException("Cannot find binding operation for: " +
srcOperationName);
-
- // Scan the binding input for a <soap:header> for this message part
- BindingInput srcBindingInput = srcBindingOperation.getBindingInput();
- if (srcBindingInput != null)
- {
- Iterator itExt = srcBindingInput.getExtensibilityElements().iterator();
- while (itExt.hasNext())
- {
- ExtensibilityElement extEl = (ExtensibilityElement)itExt.next();
- if (extEl instanceof SOAPHeader)
- {
- SOAPHeader header = (SOAPHeader)extEl;
- QName messageQName = header.getMessage();
- String partName = header.getPart();
- if (messageQName.equals(srcMessage.getQName()) &&
partName.equals(srcPart.getName()))
- {
- String namespaceURI = header.getNamespaceURI();
- if (namespaceURI != null)
- {
- xmlName = new QName(namespaceURI, partName);
- xmlName = destWsdl.registerQName(xmlName);
- }
- }
- }
- }
- }
-
- // Scan the binding output for a <soap:header> for this message part
- BindingOutput srcBindingOutput = srcBindingOperation.getBindingOutput();
- if (srcBindingOutput != null)
- {
- Iterator itExt = srcBindingOutput.getExtensibilityElements().iterator();
- while (itExt.hasNext())
- {
- ExtensibilityElement extEl = (ExtensibilityElement)itExt.next();
- if (extEl instanceof SOAPHeader)
- {
- SOAPHeader header = (SOAPHeader)extEl;
- QName messageQName = header.getMessage();
- String partName = header.getPart();
- if (messageQName.equals(srcMessage.getQName()) &&
partName.equals(srcPart.getName()))
- {
- String namespaceURI = header.getNamespaceURI();
- if (namespaceURI != null)
- {
- xmlName = new QName(namespaceURI, partName);
- xmlName = destWsdl.registerQName(xmlName);
- }
- }
- }
- }
- }
- }
-
- // cache the element name for processing of the bindings
- String key = srcMessage.getQName() + "->" + srcPart.getName();
- messagePartToElementMap.put(key, xmlName);
-
- return xmlName;
- }
-
- private void processBinding(Definition srcWsdl, Binding srcBinding)
- {
- QName srcBindingQName = srcBinding.getQName();
- log.trace("processBinding: " + srcBindingQName);
-
- NCName ncName = new NCName(srcBindingQName);
- if (destWsdl.getBinding(ncName) == null)
- {
- PortType srcPortType = srcBinding.getPortType();
- if (srcPortType == null)
- throw new WSException("Cannot find port type for binding: " +
ncName);
-
- processPortType(srcWsdl, srcPortType);
-
- WSDLBinding destBinding = new WSDLBinding(destWsdl);
- destBinding.setQName(srcBindingQName);
- destBinding.setName(ncName);
- destBinding.setInterfaceName(srcPortType.getQName());
-
- String bindingStyle = Style.getDefaultStyle().toString();
- List<ExtensibilityElement> extList =
srcBinding.getExtensibilityElements();
- for (ExtensibilityElement extElement : extList)
- {
- QName elementType = extElement.getElementType();
- if (extElement instanceof SOAPBinding)
- {
- destBinding.setType(Constants.NS_SOAP11);
- SOAPBinding soapBinding = (SOAPBinding)extElement;
- bindingStyle = soapBinding.getStyle();
- }
- else if (SOAP12_BINDING.equals(elementType))
- {
- destBinding.setType(Constants.NS_SOAP12);
- Element domElement =
((UnknownExtensibilityElement)extElement).getElement();
- bindingStyle = getOptionalAttribute(domElement, "style");
- }
- }
- destWsdl.addBinding(destBinding);
- processBindingOperations(destBinding, srcBinding, bindingStyle);
- }
- }
-
- private Map getAllDefinedBindings(Definition srcWsdl)
- {
- Map<QName, Binding> retMap = new LinkedHashMap<QName, Binding>();
- Map srcBindings = srcWsdl.getBindings();
- Iterator itBinding = srcBindings.values().iterator();
- while (itBinding.hasNext())
- {
- Binding srcBinding = (Binding)itBinding.next();
- retMap.put(srcBinding.getQName(), srcBinding);
- }
-
- // Bindings not available when pulled in through <wsdl:import>
- //
http://sourceforge.net/tracker/index.php?func=detail&aid=1240323&...
- Iterator itService = srcWsdl.getServices().values().iterator();
- while (itService.hasNext())
- {
- Service srcService = (Service)itService.next();
- Iterator itPort = srcService.getPorts().values().iterator();
- while (itPort.hasNext())
- {
- Port srcPort = (Port)itPort.next();
- Binding srcBinding = srcPort.getBinding();
- retMap.put(srcBinding.getQName(), srcBinding);
- }
- }
- return retMap;
- }
-
- private void processBindingOperations(WSDLBinding destBinding, Binding srcBinding,
String bindingStyle)
- {
- Iterator it = srcBinding.getBindingOperations().iterator();
- while (it.hasNext())
- {
- BindingOperation srcBindingOperation = (BindingOperation)it.next();
- processBindingOperation(destBinding, bindingStyle, srcBindingOperation);
- }
- }
-
- private void processBindingOperation(WSDLBinding destBinding, String bindingStyle,
BindingOperation srcBindingOperation)
- {
- String srcBindingName = srcBindingOperation.getName();
- log.trace("processBindingOperation: " + srcBindingName);
-
- WSDLInterface destInterface = destBinding.getInterface();
- String namespaceURI = destInterface.getQName().getNamespaceURI();
-
- WSDLBindingOperation destBindingOperation = new WSDLBindingOperation(destBinding);
- QName refQName = new QName(namespaceURI, srcBindingName);
- destBindingOperation.setRef(refQName);
- destBinding.addOperation(destBindingOperation);
-
- String opName = srcBindingName;
- WSDLInterfaceOperation destIntfOperation = destInterface.getOperation(new
NCName(opName));
-
- // Process soap:operation@soapAction, soap:operation@style
- String operationStyle = null;
- List<ExtensibilityElement> extList =
srcBindingOperation.getExtensibilityElements();
- for (ExtensibilityElement extElement : extList)
- {
- QName elementType = extElement.getElementType();
- if (extElement instanceof SOAPOperation)
- {
- SOAPOperation soapOp = (SOAPOperation)extElement;
- destBindingOperation.setSOAPAction(soapOp.getSoapActionURI());
- operationStyle = soapOp.getStyle();
- }
- else if (SOAP12_OPERATION.equals(elementType))
- {
- Element domElement = ((UnknownExtensibilityElement)extElement).getElement();
- operationStyle = getOptionalAttribute(domElement, "style");
- destBindingOperation.setSOAPAction(getOptionalAttribute(domElement,
"soapAction"));
- }
- }
- destIntfOperation.setStyle(operationStyle != null ? operationStyle :
bindingStyle);
-
- BindingInput srcBindingInput = srcBindingOperation.getBindingInput();
- if (srcBindingInput != null)
- {
- processBindingInput(destBindingOperation, destIntfOperation, srcBindingInput);
- }
-
- BindingOutput srcBindingOutput = srcBindingOperation.getBindingOutput();
- if (srcBindingOutput != null)
- {
- processBindingOutput(destBindingOperation, destIntfOperation,
srcBindingOutput);
- }
- }
-
- private void processBindingInput(WSDLBindingOperation destBindingOperation,
WSDLInterfaceOperation destIntfOperation, BindingInput srcBindingInput)
- {
- log.trace("processBindingInput");
-
- QName soap11Body = new QName(Constants.NS_SOAP11, "body");
- List<ExtensibilityElement> extList =
srcBindingInput.getExtensibilityElements();
- for (ExtensibilityElement extElement : extList)
- {
- QName elementType = extElement.getElementType();
- if (soap11Body.equals(elementType) || SOAP12_BODY.equals(elementType))
- {
- processEncodingStyle(extElement, destBindingOperation);
- }
- else if (extElement instanceof SOAPHeader)
- {
- SOAPHeader header = (SOAPHeader)extElement;
- QName messageQName = header.getMessage();
- String partName = header.getPart();
-
- // get cached element name for processing of the bindings
- String key = messageQName + "->" + partName;
- QName elementName = (QName)messagePartToElementMap.get(key);
- if (elementName != null)
- {
- WSDLInterfaceOperationInput destIntfInput =
destIntfOperation.getInput(elementName);
- if (destIntfInput == null)
- throw new WSException("Cannot find interface input for element:
" + elementName);
-
- WSDLProperty wsdlProperty = new
WSDLProperty(Constants.WSDL_PROPERTY_APPLICATION_DATA, false, null, null);
- destIntfInput.addProperty(wsdlProperty);
- }
- }
- else if (extElement instanceof MIMEMultipartRelated)
- {
- MIMEMultipartRelated related = (MIMEMultipartRelated)extElement;
- Iterator i = related.getMIMEParts().iterator();
- while (i.hasNext())
- {
- MIMEPart part = (MIMEPart)i.next();
- Iterator j = part.getExtensibilityElements().iterator();
- String name = null;
- String types = null;
-
- while (j.hasNext())
- {
- ExtensibilityElement inner = (ExtensibilityElement)j.next();
- if (inner instanceof MIMEContent)
- {
- MIMEContent content = (MIMEContent)inner;
- name = content.getPart();
- if (types == null)
- {
- types = content.getType();
- }
- else
- {
- types += "," + content.getType();
- }
- }
- }
-
- // Found content types in this part
- if (name != null)
- {
- // A mime part must be defined as <part type="">
- QName elementName = new QName(name);
- WSDLInterfaceOperationInput destIntfInput =
destIntfOperation.getInput(elementName);
- if (destIntfInput == null)
- throw new WSException("Cannot find interface input for element:
" + elementName);
-
- WSDLProperty wsdlProperty = new
WSDLProperty(Constants.WSDL_PROPERTY_WSDL11_MIME_TYPE, false, types, null);
- destIntfInput.addProperty(wsdlProperty);
- }
- }
- }
- }
- }
-
- private void processBindingOutput(WSDLBindingOperation destBindingOperation,
WSDLInterfaceOperation destIntfOperation, BindingOutput srcBindingOutput)
- {
- log.trace("processBindingOutput");
-
- List<ExtensibilityElement> extList =
srcBindingOutput.getExtensibilityElements();
- for (ExtensibilityElement extElement : extList)
- {
- QName elementType = extElement.getElementType();
- if (extElement instanceof SOAPBody || SOAP12_BODY.equals(elementType))
- {
- processEncodingStyle(extElement, destBindingOperation);
- }
- else if (extElement instanceof SOAPHeader)
- {
- SOAPHeader header = (SOAPHeader)extElement;
- QName messageQName = header.getMessage();
- String partName = header.getPart();
-
- // get cached element name for processing of the bindings
- String key = messageQName + "->" + partName;
- QName elementName = (QName)messagePartToElementMap.get(key);
- if (elementName != null)
- {
- WSDLInterfaceOperationOutput destIntfOutput =
destIntfOperation.getOutput(elementName);
- if (destIntfOutput == null)
- throw new WSException("Cannot find interface output for element:
" + elementName);
-
- WSDLProperty wsdlProperty = new
WSDLProperty(Constants.WSDL_PROPERTY_APPLICATION_DATA, false, null, null);
- destIntfOutput.addProperty(wsdlProperty);
- }
- }
- else if (extElement instanceof MIMEMultipartRelated)
- {
- MIMEMultipartRelated related = (MIMEMultipartRelated)extElement;
- Iterator i = related.getMIMEParts().iterator();
- while (i.hasNext())
- {
- MIMEPart part = (MIMEPart)i.next();
- Iterator j = part.getExtensibilityElements().iterator();
- String name = null;
- String types = null;
-
- while (j.hasNext())
- {
- ExtensibilityElement inner = (ExtensibilityElement)j.next();
- if (inner instanceof MIMEContent)
- {
- MIMEContent content = (MIMEContent)inner;
- name = content.getPart();
- if (types == null)
- {
- types = content.getType();
- }
- else
- {
- types += "," + content.getType();
- }
- }
- }
-
- // Found content types in this part
- if (name != null)
- {
- // A mime part must be defined as <part type="">
- QName elementName = new QName(name);
- WSDLInterfaceOperationOutput destIntfOutput =
destIntfOperation.getOutput(elementName);
- if (destIntfOutput == null)
- throw new WSException("Cannot find interface output for
element: " + elementName);
-
- WSDLProperty wsdlProperty = new
WSDLProperty(Constants.WSDL_PROPERTY_WSDL11_MIME_TYPE, false, types, null);
- destIntfOutput.addProperty(wsdlProperty);
- }
- }
- }
- }
- }
-
- private void processEncodingStyle(ExtensibilityElement extElement,
WSDLBindingOperation destBindingOperation)
- {
- log.trace("processEncodingStyle");
-
- String encStyle = null;
- QName elementType = extElement.getElementType();
- if (extElement instanceof SOAPBody)
- {
- SOAPBody body = (SOAPBody)extElement;
- List encStyleList = body.getEncodingStyles();
- if (encStyleList != null)
- {
- if (encStyleList.size() > 1)
- log.warn("Multiple encoding styles not supported: " +
encStyleList);
-
- if (encStyleList.size() > 0)
- {
- encStyle = (String)encStyleList.get(0);
- }
- }
- }
- else if (SOAP12_BODY.equals(elementType))
- {
- Element domElement = ((UnknownExtensibilityElement)extElement).getElement();
- encStyle = getOptionalAttribute(domElement, "encodingStyle");
- }
-
- if (encStyle != null)
- {
- String setStyle = destBindingOperation.getEncodingStyle();
- if (encStyle.equals(setStyle) == false)
- log.warn("Encoding style '" + encStyle + "' not
supported for: " + destBindingOperation.getRef());
-
- destBindingOperation.setEncodingStyle(encStyle);
- }
- }
-
- private void processServices(Definition srcWsdl)
- {
- log.trace("BEGIN processServices: " + srcWsdl.getDocumentBaseURI());
-
- if (srcWsdl.getServices().size() > 0)
- {
- Iterator it = srcWsdl.getServices().values().iterator();
- while (it.hasNext())
- {
- Service srcService = (Service)it.next();
- QName qname = srcService.getQName();
- WSDLService destService = new WSDLService(destWsdl);
- destService.setName(new NCName(qname));
- destService.setQName(qname);
- destWsdl.addService(destService);
- processPorts(srcWsdl, destService, srcService);
- }
- }
- else
- {
- log.trace("Empty wsdl services, processing imports");
- Iterator it = srcWsdl.getImports().values().iterator();
- while (it.hasNext())
- {
- List<Import> srcImports = (List<Import>)it.next();
- for (Import srcImport : srcImports)
- {
- Definition importDefinition = srcImport.getDefinition();
- processServices(importDefinition);
- }
- }
- }
-
- log.trace("END processServices: " + srcWsdl.getDocumentBaseURI());
- }
-
- private void processPorts(Definition srcWsdl, WSDLService destService, Service
srcService)
- {
- Iterator it = srcService.getPorts().values().iterator();
- while (it.hasNext())
- {
- Port srcPort = (Port)it.next();
- processPort(srcWsdl, destService, srcPort);
- }
- }
-
- private void processPort(Definition srcWsdl, WSDLService destService, Port srcPort)
- {
- log.trace("processPort: " + srcPort.getName());
-
- Binding srcBinding = srcPort.getBinding();
-
- WSDLEndpoint destEndpoint = new WSDLEndpoint(destService);
- destEndpoint.setName(new NCName(srcPort.getName()));
- destEndpoint.setBinding(srcBinding.getQName());
- destEndpoint.setQName(new QName(srcWsdl.getTargetNamespace(), srcPort.getName()));
- destEndpoint.setAddress(getSOAPAddress(srcPort));
- destService.addEndpoint(destEndpoint);
-
- processBinding(srcWsdl, srcBinding);
- }
-
- /** Get the endpoint address from the ports extensible element
- */
- private String getSOAPAddress(Port srcPort)
- {
- String soapAddress = "dummy";
-
- Iterator it = srcPort.getExtensibilityElements().iterator();
- while (it.hasNext())
- {
- ExtensibilityElement extElement = (ExtensibilityElement)it.next();
- QName elementType = extElement.getElementType();
-
- if (extElement instanceof SOAPAddress)
- {
- SOAPAddress addr = (SOAPAddress)extElement;
- soapAddress = addr.getLocationURI();
- break;
- }
- else if (SOAP12_ADDRESS.equals(elementType))
- {
- Element domElement = ((UnknownExtensibilityElement)extElement).getElement();
- soapAddress = getOptionalAttribute(domElement, "location");
- break;
- }
- else if ("address".equals(elementType.getLocalPart()))
- {
- log.warn("Unprocessed extension element: " + elementType);
- }
- }
-
- if (soapAddress == null)
- throw new WSException("Cannot obtain SOAP address");
-
- return soapAddress;
- }
-
- private String getOptionalAttribute(Element domElement, String attrName)
- {
- String attrValue = domElement.getAttribute(attrName);
- return (attrValue.length() > 0 ? attrValue : null);
- }
-}
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDL11Writer.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDL11Writer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDL11Writer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,558 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.metadata.wsdl;
-
-import java.io.IOException;
-import java.io.Writer;
-import java.util.Arrays;
-import java.util.HashSet;
-import java.util.Set;
-
-import javax.wsdl.Definition;
-import javax.wsdl.WSDLException;
-import javax.wsdl.factory.WSDLFactory;
-import javax.xml.namespace.QName;
-
-import org.jboss.ws.utils.DOMUtils;
-import org.jboss.ws.utils.DOMWriter;
-import org.jboss.ws.Constants;
-import org.jboss.ws.WSException;
-import org.w3c.dom.Element;
-
-/**
- * A WSDL Writer that writes a WSDL 1.1 file. It works off
- * of the WSDL20 Object Graph.
- * @author <mailto:Anil.Saldhana@jboss.org>Anil Saldhana
- */
-public class WSDL11Writer extends WSDLWriter
-{
- //Used Internally
- private String wsdlStyle = Constants.RPC_LITERAL;
-
- // Used to prevent duplicates
- private HashSet<String> writtenFaultMessages = new HashSet<String>();
-
- /** Use WSDLDefinitions.writeWSDL instead. */
- public WSDL11Writer(WSDLDefinitions wsdl)
- {
- super(wsdl);
- }
-
- public void write(Writer writer) throws IOException
- {
- write(writer, null);
- }
-
- public void write(Writer writer, String charset) throws IOException
- {
- // Write out the wsdl-1.1 represention (only path to obtain is from WSDL11Reader)
- if (wsdl.getWsdlOneOneDefinition() != null)
- {
- Definition wsdlDefinition = wsdl.getWsdlOneOneDefinition();
- try
- {
- WSDLFactory wsdlFactory = WSDLFactory.newInstance();
- javax.wsdl.xml.WSDLWriter wsdlWriter = wsdlFactory.newWSDLWriter();
- wsdlWriter.writeWSDL(wsdlDefinition, writer);
- }
- catch (WSDLException e)
- {
- this.logException(e);
- throw new IOException(e.toString());
- }
- }
- else
- {
- StringBuilder buffer = new StringBuilder();
-
- //Detect the WSDL Style early
- wsdlStyle = utils.getWSDLStyle(wsdl);
-
- writtenFaultMessages.clear();
-
- appendDefinitions(buffer);
- appendTypes(buffer);
- appendMessages(buffer);
- appendPortTypes(buffer);
- appendBindings(buffer);
- appendServices(buffer);
-
- buffer.append("</definitions>");
- Element element = DOMUtils.parse(buffer.toString());
-
- if (charset != null)
- writer.write("<?xml version=\"1.0\" encoding=\""
+ charset + "\"?>\n");
- new DOMWriter(writer).setPrettyprint(true).print(element);
- }
- }
-
- protected void appendMessages(StringBuilder buffer)
- {
- WSDLInterface[] interfaces = wsdl.getInterfaces();
- int len = interfaces != null ? interfaces.length : 0;
- for (int i = 0; i < len; i++)
- {
- WSDLInterface intf = interfaces[i];
- WSDLInterfaceOperation[] operations = intf.getSortedOperations();
- int lenOps = operations.length;
- for (int j = 0; j < lenOps; j++)
- {
- appendMessage(buffer, operations[j]);
- appendMessagesForExceptions(buffer, operations[j]);
- }//end for
- }//end for
- }
-
- private void appendMessage(StringBuilder buffer, WSDLInterfaceOperation operation)
- {
- String opname = operation.getName().toString();
- //Determine the style of the wsdl
- if (Constants.URI_STYLE_RPC.equals(operation.getStyle()) == false)
- wsdlStyle = Constants.DOCUMENT_LITERAL; //Not RPC/Literal
-
- String interfaceName = operation.getWsdlInterface().getName().toString();
- buffer.append("<message name='" + interfaceName + "_" +
opname + "' >");
- WSDLInterfaceOperationInput[] inputs = operation.getInputs();
- int lenin = inputs.length;
- for (int i = 0; i < lenin; i++)
- {
- WSDLInterfaceOperationInput input = inputs[i];
- appendInputParts(buffer, input, i);
- }
-
- buffer.append("</message>");
-
- //Now the return type
- WSDLInterfaceOperationOutput[] outputs = operation.getOutputs();
- int lenout = outputs != null ? outputs.length : 0;
-
- if (Constants.WSDL20_PATTERN_IN_ONLY.equals(operation.getPattern()))
- return;
-
- buffer.append("<message name='" + interfaceName + "_" +
opname + "Response' >");
- if (lenout > 0)
- {
- //Since the outputs have been obtained from a linkedhashmap
- //they will be in the order of insertion i.e. in case of
- //holders, the holder types will be inserted first. So let
- //us iterate in the reverse order
- String str = "";
- for (int i = 0; i < lenout; i++)
- {
- WSDLInterfaceOperationOutput out = outputs[i];
- str += appendOutputParts(out, i);
- }
- buffer.append(str);
- }//end if
- buffer.append("</message>");
- }
-
- private void appendMessagesForExceptions(StringBuilder buffer, WSDLInterfaceOperation
operation)
- {
- //Get the outfaults
- WSDLInterfaceOperationOutfault[] faults = operation.getOutfaults();
- int len = faults != null ? faults.length : 0;
-
- for (int i = 0; i < len; i++)
- {
- WSDLInterfaceOperationOutfault fault = faults[i];
- QName xmlName = fault.getRef();
- String exceptionName = xmlName.getLocalPart();
- if (writtenFaultMessages.contains(exceptionName))
- continue;
-
- buffer.append("<message name='" + exceptionName + "'
>");
- String prefix = wsdl.getPrefix(xmlName.getNamespaceURI());
- String xmlNameStr = prefix + ":" + xmlName.getLocalPart();
- buffer.append("<part name='" + exceptionName + "'
element='" + xmlNameStr + "' />");
- buffer.append("</message>");
-
- writtenFaultMessages.add(exceptionName);
- }
- }
-
- private void appendInputParts(StringBuilder buffer, WSDLInterfaceOperationInput input,
int index)
- {
- boolean header = input.getProperty(Constants.WSDL_PROPERTY_APPLICATION_DATA) !=
null;
- if (wsdlStyle.equals(Constants.RPC_LITERAL) && !header)
- {
- QName el = input.getElement();
- QName xmlType = input.getXMLType();
- String prefix = wsdl.getPrefix(xmlType.getNamespaceURI() );
- buffer.append("<part name='" + el.getLocalPart() +
"'");
- buffer.append(" type='" + prefix + ":" +
xmlType.getLocalPart() + "'>");
- buffer.append("</part>");
- }
- //Doc-literal case
- else
- {
- //TODO:Handle this better later
- //In the case of doc/lit, the input element will give the partname
- QName elm = input.getElement();
- buffer.append("<part name='").append(header ?
elm.getLocalPart() : "parameters").append("'");
- String part = wsdl.getPrefix(elm.getNamespaceURI()) + ":" +
elm.getLocalPart();
- buffer.append(" element='" + part + "'>");
- buffer.append("</part>");
- }
- }
-
- private String appendOutputParts(WSDLInterfaceOperationOutput out, int index)
- {
- boolean header = out.getProperty(Constants.WSDL_PROPERTY_APPLICATION_DATA) !=
null;
- StringBuilder buf = new StringBuilder("");
- if (wsdlStyle.equals(Constants.RPC_LITERAL) && !header)
- {
- //Get the XMLName
- QName xmlName = out.getElement();
- QName xmlType = out.getXMLType();
- String prefix = wsdl.getPrefix(xmlType.getNamespaceURI() );
-
- buf.append("<part name='" + xmlName.getLocalPart() +
"'");
- buf.append(" type='" + prefix + ":" +
xmlType.getLocalPart() + "'>");
- buf.append("</part>");
- }
- else
- {
- QName elm = out.getElement();
- buf.append("<part name='").append(header ? elm.getLocalPart() :
Constants.DEFAULT_RPC_RETURN_NAME).append("'");
- String value = wsdl.getPrefix(elm.getNamespaceURI()) + ":" +
elm.getLocalPart();
- //String value = this.getXMLTypeFromWSDLProperty(out);
- buf.append(" element='" + value + "'>");
- buf.append("</part>");
- }
- return buf.toString();
- }
-
- protected void appendInterfaces(StringBuilder buffer)
- {
- }
-
- protected void appendPortTypes(StringBuilder buffer)
- {
- WSDLInterface[] intfs = wsdl.getInterfaces();
- for (int i = 0; i < intfs.length; i++)
- {
- WSDLInterface intf = intfs[i];
- if (i == 0)
- buffer.append("<portType name='" + intf.getName() +
"'>");
- appendPortOperations(buffer, intf);
- }
- buffer.append("</portType>");
- }
-
- protected void appendPortOperations(StringBuilder buffer, WSDLInterface intf)
- {
- String targetPrefix = wsdl.getTargetPrefix();
- WSDLInterfaceOperation[] operations = intf.getSortedOperations();
- for (int i = 0; i < operations.length; i++)
- {
- WSDLInterfaceOperation operation = operations[i];
- WSDLInterfaceOperationInput[] inputs = operation.getInputs();
- WSDLInterfaceOperationOutput[] outputs = operation.getOutputs();
- buffer.append("<operation name='" +
operation.getName().toString() + "'");
-
- if (wsdlStyle.equals(Constants.RPC_LITERAL))
- {
- StringBuilder order = new StringBuilder();
- Set<QName> inParameters = new HashSet<QName>();
- for (int j = 0; j < inputs.length; j++)
- {
- WSDLInterfaceOperationInput input = inputs[j];
- if (order.length() > 0)
- order.append(" ");
- QName el = input.getElement();
- order.append(el.getLocalPart());
- inParameters.add(el);
- }
-
- for (int j = 0; j < outputs.length; j++)
- {
- WSDLInterfaceOperationOutput output = outputs[j];
- // The return value is ommitted as a hint to other parameter based binding
layers.
- // Also, INOUT parameters need to only appear once
- if (output.getProperty(Constants.WSDL_PROPERTY_RETURN_PART) == null)
- {
- QName el = output.getElement();
- if (! inParameters.contains(el))
- {
- if (order.length() > 0)
- order.append(" ");
- order.append(el.getLocalPart());
- }
- }
- }
-
- if (order.length() > 0)
- buffer.append("
parameterOrder='").append(order.toString()).append("'");
- }
-
- buffer.append(">"); //End operation element
-
- String opname = operation.getName().toString();
- String interfaceName = operation.getWsdlInterface().getName().toString();
- String msgEl = targetPrefix + ":" + interfaceName + "_" +
opname;
-
- buffer.append("<input message='" + msgEl +
"'>").append("</input>");
-
- if (! Constants.WSDL20_PATTERN_IN_ONLY.equals(operation.getPattern()))
- {
- buffer.append("<output message='" + msgEl +
"Response'>");
- buffer.append("</output>");
- }
-
- //Append the Faults
- WSDLInterfaceOperationOutfault[] faults = operation.getOutfaults();
- //WSDLInterfaceFault[] faults = intf.getFaults();
- int lenf = faults != null ? faults.length : 0;
- for (int k = 0; k < lenf; k++)
- {
- //WSDLInterfaceFault flt = faults[k];
- WSDLInterfaceOperationOutfault flt = faults[k];
- QName elt = flt.getRef();
-
- String targetNS = wsdl.getTargetNamespace();
- //Writing the fault, the prefix should always be the one for wsdl target
namespace
- elt = new QName(targetNS, elt.getLocalPart(), wsdl.getPrefix(targetNS));
- //Remove Fault or Error appended to the name
- String cleanname = utils.chop(utils.chop(elt.getLocalPart(),
"Error"), "Fault");
-
- String n = "name='" + cleanname + "'";
-
- String cleanref = utils.chop(utils.getFormattedString(elt),
"Error");
- buffer.append("<fault message='" + cleanref + "'
" + n + ">");
- buffer.append("</fault>");
- }
-
- buffer.append("</operation>");
- }
- }
-
- protected void appendBindings(StringBuilder buffer)
- {
- WSDLBinding[] bindings = wsdl.getBindings();
- for (int i = 0; i < bindings.length; i++)
- {
- WSDLBinding binding = bindings[i];
- buffer.append("<binding name='" + binding.getName() +
"' type='" + getQNameRef(binding.getInterfaceName()) +
"'>");
- //TODO:Need to derive the WSDLStyle from the Style attribute of
InterfaceOperation
- if (wsdlStyle == null)
- throw new IllegalArgumentException("WSDL Style is null (should be rpc or
document");
- String style = "rpc";
- if (wsdlStyle.equals(Constants.DOCUMENT_LITERAL))
- style = "document";
- buffer.append("<" + soapPrefix + ":binding
transport='http://schemas.xmlsoap.org/soap/http' style='" + style +
"'/>");
- appendBindingOperations(buffer, binding);
- buffer.append("</binding>");
- }
- }
-
- private boolean isHeaderInput(WSDLBindingOperationInput input)
- {
- WSDLBindingOperation operation = input.getWsdlBindingOperation();
- WSDLBinding binding = operation.getWsdlBinding();
- WSDLInterface wsdlInterface = binding.getInterface();
- if (wsdlInterface == null)
- return false;
-
- WSDLInterfaceOperation interfaceOperation = wsdlInterface.getOperation(new
NCName(operation.getRef().getLocalPart()));
- if (interfaceOperation == null)
- return false;
-
- WSDLInterfaceOperationInput interfaceInput =
interfaceOperation.getInputByPartName(input.getMessageLabel().toString());
- if (interfaceInput == null)
- return false;
-
- if (interfaceInput.getProperty(Constants.WSDL_PROPERTY_APPLICATION_DATA) == null)
- return false;
- else
- return true;
- }
-
- private boolean isHeaderOutput(WSDLBindingOperationOutput output)
- {
- WSDLBindingOperation operation = output.getWsdlBindingOperation();
- WSDLBinding binding = operation.getWsdlBinding();
- WSDLInterface wsdlInterface = binding.getInterface();
- if (wsdlInterface == null)
- return false;
-
- WSDLInterfaceOperation interfaceOperation = wsdlInterface.getOperation(new
NCName(operation.getRef().getLocalPart()));
- if (interfaceOperation == null)
- return false;
-
- WSDLInterfaceOperationOutput interfaceOutput =
interfaceOperation.getOutputByPartName(output.getMessageLabel().toString());
- if (interfaceOutput == null)
- return false;
-
- if (interfaceOutput.getProperty(Constants.WSDL_PROPERTY_APPLICATION_DATA) == null)
- return false;
- else
- return true;
- }
-
- protected void appendBindingOperations(StringBuilder buffer, WSDLBinding binding)
- {
- WSDLBindingOperation[] operations = binding.getOperations();
- Arrays.sort(operations);
-
- String tns = wsdl.getTargetNamespace();
- for (int i = 0; i < operations.length; i++)
- {
- WSDLBindingOperation operation = operations[i];
- String interfaceName =
operation.getWsdlBinding().getInterfaceName().getLocalPart();
-
- buffer.append("<operation name='" +
operation.getRef().getLocalPart() + "'>");
- String soapAction = (operation.getSOAPAction() != null ?
operation.getSOAPAction() : "");
- buffer.append("<" + soapPrefix + ":operation
soapAction=\"" + soapAction + "\"/>");
- buffer.append("<input>");
-
- StringBuilder bodyParts = new StringBuilder();
- boolean hasHeader = false;
- WSDLBindingOperationInput[] inputs = operation.getInputs();
- for (int j = 0; j < inputs.length; j++)
- {
- WSDLBindingOperationInput input = inputs[j];
- if (isHeaderInput(input))
- {
- String messageName = interfaceName + "_" +
input.getWsdlBindingOperation().getRef().getLocalPart();
- buffer.append("<" + soapPrefix + ":header
use='literal' message='tns:" + messageName + "' part='"
+ input.getMessageLabel() + "'/>");
- hasHeader = true;
- }
- else
- {
- if (bodyParts.length() > 0)
- bodyParts.append(" ");
- bodyParts.append(input.getMessageLabel());
- }
- }
-
- buffer.append("<" + soapPrefix + ":body
use='literal'");
- if (hasHeader)
- buffer.append("
parts='").append(bodyParts.toString()).append("'");
- if (wsdlStyle != Constants.DOCUMENT_LITERAL)
- buffer.append(" namespace='" + tns + "'");
- buffer.append("/>");
-
- buffer.append("</input>");
-
- if (!
Constants.WSDL20_PATTERN_IN_ONLY.equals(getBindingOperationPattern(operation)))
- {
- buffer.append("<output>");
- bodyParts = new StringBuilder();
- hasHeader = false;
- WSDLBindingOperationOutput[] outputs = operation.getOutputs();
- for (int j = 0; j < outputs.length; j++)
- {
- WSDLBindingOperationOutput output = outputs[j];
- if (isHeaderOutput(output))
- {
- String messageName = interfaceName + "_" +
output.getWsdlBindingOperation().getRef().getLocalPart() + "Response";
-
- buffer.append("<" + soapPrefix + ":header
use='literal' message='tns:" + messageName + "' part='"
+ output.getMessageLabel() + "'/>");
- hasHeader = true;
- }
- else
- {
- if (bodyParts.length() > 0)
- bodyParts.append(" ");
- bodyParts.append(output.getMessageLabel());
- }
- }
-
- buffer.append("<" + soapPrefix + ":body
use='literal'");
- if (hasHeader)
- buffer.append("
parts='").append(bodyParts.toString()).append("'");
- if (wsdlStyle != Constants.DOCUMENT_LITERAL)
- buffer.append(" namespace='" + tns + "'");
- buffer.append("/>");
-
- buffer.append("</output>");
- }
-
- //Append faults
- QName intfname = operation.getWsdlBinding().getInterfaceName();
- WSDLInterface intf = wsdl.getInterface(new NCName(intfname.getLocalPart()));
- if (intf == null)
- throw new WSException("WSDL Interface should not be null");
- WSDLInterfaceOperation interfaceOperation = intf.getOperation(new
NCName(operation.getRef().getLocalPart()));
- WSDLInterfaceOperationOutfault[] faults = interfaceOperation.getOutfaults();
- int lenf = faults != null ? faults.length : 0;
- for (int k = 0; k < lenf; k++)
- {
- WSDLInterfaceOperationOutfault flt = faults[k];
- //Remove Fault or Error appended to the name
- String cleanname = utils.chop(utils.chop(flt.getRef().getLocalPart(),
"Error"), "Fault");
- String n = "name='" + cleanname + "'";
-
- //String cleanref = utils.chop(utils.getFormattedString(elt),
"Error");
- buffer.append("<fault " + n + ">");
- buffer.append("<" + soapPrefix + ":fault " + n +
" use='literal' />");
- buffer.append("</fault>");
- }
-
- buffer.append("</operation>");
- }
- }
-
- private String getBindingOperationPattern(WSDLBindingOperation operation)
- {
- WSDLBinding binding = operation.getWsdlBinding();
- String pattern = binding.getInterface().getOperation(new
NCName(operation.getRef().getLocalPart())).getPattern();
-
- return pattern;
- }
-
- protected void appendServices(StringBuilder buffer)
- {
- WSDLService[] services = wsdl.getServices();
- int len = services.length;
- for (int i = 0; i < len; i++)
- {
-
- WSDLService service = services[i];
- buffer.append("<service name='" + service.getName() +
"'>");
- WSDLEndpoint[] endpoints = service.getEndpoints();
- int lenend = endpoints.length;
- for (int j = 0; j < lenend; j++)
- {
- WSDLEndpoint endpoint = endpoints[j];
- appendServicePort(buffer, endpoint);
- }
-
- buffer.append("</service>");
- }
- }
-
- protected void appendServicePort(StringBuilder buffer, WSDLEndpoint endpoint)
- {
- String name = endpoint.getName().toString();
- QName endpointBinding = endpoint.getBinding();
- String prefix = endpointBinding.getPrefix();
- if (prefix == null || prefix == "")
- prefix = wsdl.getTargetPrefix();
- String ebname = prefix + ":" + endpointBinding.getLocalPart();
- buffer.append("<port name='" + name + "'
binding='" + ebname + "'>");
- buffer.append("<" + soapPrefix + ":address location='" +
endpoint.getAddress() + "'/>");
- buffer.append("</port>");
- }
-
-}
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDL20Reader.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDL20Reader.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDL20Reader.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,557 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.metadata.wsdl;
-
-// $Id$
-
-import java.io.File;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.Iterator;
-
-import javax.wsdl.xml.WSDLLocator;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.Constants;
-import org.jboss.ws.WSException;
-import org.jboss.ws.metadata.wsdl.xsd.SchemaUtils;
-import org.jboss.xb.binding.ObjectModelFactory;
-import org.jboss.xb.binding.Unmarshaller;
-import org.jboss.xb.binding.UnmarshallerFactory;
-import org.jboss.xb.binding.UnmarshallingContext;
-import org.xml.sax.Attributes;
-import org.xml.sax.InputSource;
-
-/**
- * A factory that creates a WSDL <code>Definition</code> from an URL.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @author Anil.Saldhana(a)jboss.org
- * @since 10-Oct-2004
- */
-public class WSDL20Reader implements ObjectModelFactory
-{
- // provide logging
- private static final Logger log = Logger.getLogger(WSDL20Reader.class);
-
- private WSDLLocator locator = null;
-
- public WSDLDefinitions readWSDL(WSDLLocator wsdlLocator) throws WSDLException,
IOException
- {
- locator = wsdlLocator;
-
- String wsdlURI = wsdlLocator.getBaseURI();
- InputSource inputSource = wsdlLocator.getBaseInputSource();
- if (inputSource == null)
- throw new WSException("Cannot obtain WSDL input source for: " +
wsdlURI);
-
- InputStream is = inputSource.getByteStream();
- try
- {
- Unmarshaller unmarshaller =
UnmarshallerFactory.newInstance().newUnmarshaller();
- unmarshaller.setNamespaceAware(true);
- unmarshaller.setValidation(true);
-
- WSDLDefinitions wsdl = new WSDLDefinitions();
- wsdl.setWsdlNamespace(Constants.NS_WSDL20);
-
- unmarshaller.unmarshal(is, this, wsdl);
- return wsdl;
- }
- catch (RuntimeException re)
- {
- throw re;
- }
- catch (Exception e)
- {
- throw new WSDLException("Cannot unmarshal: " + wsdlURI, e);
- }
- finally
- {
- is.close();
- }
- }
-
- public void setFeature(String name, boolean value)
- {
- }
-
- /**
- * This method is called by the object model factory and returns the root of the
object graph.
- */
- public Object newRoot(Object root, UnmarshallingContext navigator, String
namespaceURI, String localName, Attributes attrs)
- {
- /**
- * WSDL2.0 Assertions (
http://www.w3.org/TR/wsdl20-primer)
- * The value of the WSDL target namespace MUST be an absolute URI.
- */
- WSDLDefinitions wsdl = null;
-
- StringBuilder buf = null;
-
- if (root instanceof WSDLDefinitions)
- {
- wsdl = (WSDLDefinitions)root;
-
- String targetNamespace = attrs.getValue("targetNamespace");
- boolean abs = (targetNamespace.startsWith("http"));
- if (targetNamespace == null || abs == false)
- throw new RuntimeException("WSDL 2.0 Assertion: targetNamespace must be
an absolute uri");
-
- wsdl.setWsdlNamespace(Constants.NS_WSDL20);
- wsdl.setTargetNamespace(targetNamespace);
-
- Iterator uris = navigator.getNamespaceURIs();
- while (uris.hasNext())
- {
- String namespace = (String)uris.next();
- String prefix = navigator.getNamespaceContext().getPrefix(namespace);
- if (prefix.length() > 0)
- wsdl.registerNamespaceURI(namespace, prefix);
- }
- return wsdl;
- }
- else if (root instanceof WSDLTypes)
- {
- wsdl = ((WSDLTypes)root).getWsdlDefinitions();
- if ("import".equalsIgnoreCase(localName))
- {
- importTypes(wsdl, attrs);
- return null;
- }
- if ("schema".equalsIgnoreCase(localName))
- {
- //Included Schema - wsdl 2.0
- //We will start writing whatever the parser has obtained
- buf = new StringBuilder("<schema ");
- Iterator uris = navigator.getNamespaceURIs();
- String targetNS = attrs.getValue("targetNamespace");
- buf.append(" targetNamespace='" + targetNS +
"'");
- while (uris.hasNext())
- {
- String namespace = (String)uris.next();
- Iterator iter = navigator.getNamespaceContext().getPrefixes(namespace);
- if (namespace.equals(Constants.NS_WSDL20))
- continue;
- if (iter == null)
- buf.append(" xmlns='" + namespace + "'");
- else
- {
- while (iter.hasNext())
- {
- String prefix = (String)iter.next();
- if (prefix.length() == 0)
- buf.append(" xmlns='" + namespace +
"'");
- else buf.append(" xmlns:" + prefix + "='" +
namespace + "'");
- }
- }
- }
- buf.append(">");
- return buf;
- }
- }
- else if (root instanceof StringBuilder)
- {
- return newChild((StringBuilder)root, navigator, namespaceURI, localName,
attrs);
- }
- else
- {
- throw new IllegalArgumentException("Invalid root for namespace: " +
namespaceURI);
- }
-
- return null;
- }
-
- /**
- * This method is called by the object model factory and returns the root of the
object graph.
- */
- public Object newChild(WSDLTypes types, UnmarshallingContext navigator, String
namespaceURI, String localName, Attributes attrs)
- {
- /**
- * WSDL2.0 Assertions (
http://www.w3.org/TR/wsdl20-primer)
- * The value of the WSDL target namespace MUST be an absolute URI.
- */
- WSDLDefinitions wsdl = types.getWsdlDefinitions();
-
- StringBuilder buf = null;
- if ("import".equalsIgnoreCase(localName))
- {
- importTypes(wsdl, attrs);
- return null;
- }
- if ("schema".equalsIgnoreCase(localName))
- {
- //Included Schema - wsdl 2.0
- //We will start writing whatever the parser has obtained
- buf = new StringBuilder("<schema ");
- Iterator uris = navigator.getNamespaceURIs();
- String targetNS = attrs.getValue("targetNamespace");
- buf.append(" targetNamespace='" + targetNS + "'");
- while (uris.hasNext())
- {
- String namespace = (String)uris.next();
- Iterator iter = navigator.getNamespaceContext().getPrefixes(namespace);
- if (namespace.equals(Constants.NS_WSDL20))
- continue;
- if (iter == null)
- buf.append(" xmlns='" + namespace + "'");
- else
- {
- while (iter.hasNext())
- {
- String prefix = (String)iter.next();
- if (prefix.length() == 0)
- buf.append(" xmlns='" + namespace +
"'");
- else buf.append(" xmlns:" + prefix + "='" +
namespace + "'");
- }
- }
- }
- buf.append(">");
- return buf;
- }
-
- return null;
- }
-
- /**
- * The JBossXB has completed the parsing of the WSDL 2.0 document
- * @param root
- * @param ctx
- * @param uri
- * @param name
- * @return
- */
- public Object completeRoot(Object root, UnmarshallingContext ctx, String uri, String
name)
- {
- return root;
- }
-
- /**
- * Used in the parsing of the included XML Schema in WSDL 2.0
- * @param buf
- * @param navigator
- * @param namespaceURI
- * @param localName
- * @param attrs
- * @return
- */
- public Object newChild(StringBuilder buf, UnmarshallingContext navigator, String
namespaceURI, String localName, Attributes attrs)
- {
- int len = attrs.getLength();
- buf.append("<" + localName);
- for (int i = 0; i < len; i++)
- {
- String val = attrs.getValue(i);
- String attrname = attrs.getLocalName(i);
- buf.append(" " + attrname + "='" + val +
"'");
- }
- buf.append(">");
- return buf;
- }
-
- /**
- * Used in the parsing of the included XML Schema in WSDL 2.0
- * We have reached the end of an xml element.
- * @param buf
- * @param navigator
- * @param namespaceURI
- * @param localName
- * @return
- */
- public Object addChild(StringBuilder buf, StringBuilder buf1, UnmarshallingContext
navigator, String namespaceURI, String localName) throws WSDLException
- {
- buf.append("</" + localName + ">");
- return buf;
-
- }
-
- /**
- * Used in the parsing of the included XML Schema in WSDL 2.0
- * We have parsed the schema completely. Write it into a file and update WSDLTypes
(schemaLocation)
- * @param types
- * @param buf
- * @param navigator
- * @param namespaceURI
- * @param localName
- * @return
- * @throws WSDLException
- */
- public Object addChild(WSDLTypes types, StringBuilder buf, UnmarshallingContext
navigator, String namespaceURI, String localName) throws WSDLException
- {
- buf.append("</schema>");
- String targetNS = types.getWsdlDefinitions().getTargetNamespace();
- try
- {
- File file = SchemaUtils.getSchemaTempFile(targetNS);
- file.deleteOnExit();
- FileWriter fwrite = new FileWriter(file);
- fwrite.write(buf.toString());
- fwrite.flush();
- fwrite.close();
- }
- catch (IOException e)
- {
- String msg = "Cannot extract schema definition for target namespace: "
+ targetNS;
- log.error(msg, e);
- throw new WSException(msg);
- }
- return types;
- }
-
- /**
- * Parsing the WSDL 2.0 document
- * @param wsdl20
- * @param navigator
- * @param namespaceURI
- * @param localName
- * @param attrs
- * @return
- * @throws WSDLException
- */
- public Object newChild(WSDLDefinitions wsdl20, UnmarshallingContext navigator, String
namespaceURI, String localName, Attributes attrs) throws WSDLException
- {
- /**
- * WSDL 20 Assertions
- * Each interface must be given a name that is unique within the set of interfaces
defined in this WSDL target NS
- * Interface names are tokens that must not contain a space or colon
(":")
- */
- String defaultNamespace = wsdl20.getWsdlNamespace();
- if (Constants.NS_WSDL20.equals(defaultNamespace))
- {
- if ("types".equals(localName))
- {
- WSDLTypes wsdlTypes = new XSModelTypes();
- wsdl20.setWsdlTypes(wsdlTypes);
- return wsdlTypes;
- }
- else if ("interface".equals(localName))
- {
- WSDLInterface wsdlInterface = new WSDLInterface(wsdl20);
- String name = attrs.getValue("name");
- if (name == null)
- throw new RuntimeException("Interface name should not be
null");
- if (name.indexOf(" ") > -1 || name.indexOf(":") >
-1)
- throw new RuntimeException("WSDL 2.0 Assertion:Interface names are
tokens " + "that must not contain a space or colon");
-
- NCName ncname = new NCName(name);
- if (wsdl20.getInterface(ncname) != null)
- throw new RuntimeException("WSDL 2.0 Assertion:Each interface must be
given a name that is "
- + "unique within the set of interfaces defined in this WSDL
target namespace");
-
- wsdlInterface.setName(ncname);
- wsdl20.addInterface(wsdlInterface);
-
- return wsdlInterface;
- }
- else if ("binding".equals(localName))
- {
- /**
- * WSDL 2.0 Assertion: Each name must be unique among all bindings in this
WSDL target namespace
- */
- String name = attrs.getValue("name");
- NCName ncname = new NCName(name);
- if (wsdl20.getBinding(ncname) != null)
- throw new RuntimeException("WSDL 2.0 Assertion:Each name must be
unique among " + "all bindings in this WSDL target namespace");
- WSDLBinding wsdlBinding = new WSDLBinding(wsdl20);
- wsdlBinding.setName(ncname);
- wsdl20.addBinding(wsdlBinding);
-
- return wsdlBinding;
- }
- else if ("service".equals(localName))
- {
- WSDLService wsdlService = new WSDLService(wsdl20);
- wsdlService.setName(new NCName(attrs.getValue("name")));
- wsdl20.addService(wsdlService);
-
wsdlService.setInterfaceName(navigator.resolveQName(attrs.getValue("interface")));
- return wsdlService;
- }
- else log.warn("Unrecogized child element: " + localName);
- }
- else throw new WSDLException("Invalid default namespace: " +
defaultNamespace);
-
- return null;
- }
-
- /**
- * Parsing the WSDL 2.0 document
- * @param wsdlInterface
- * @param navigator
- * @param namespaceURI
- * @param localName
- * @param attrs
- * @return
- */
- public Object newChild(WSDLInterface wsdlInterface, UnmarshallingContext navigator,
String namespaceURI, String localName, Attributes attrs)
- {
- /**
- * WSDL .0 Assertion: Operation names must also be unique within an interface
- */
- if ("operation".equals(localName))
- {
- String name = attrs.getValue("name");
- if (name == null)
- throw new RuntimeException("Operation name must not be null");
- NCName ncname = new NCName(name);
- if (wsdlInterface.containsInterfaceOperation(ncname))
- throw new RuntimeException("WSDL 2.0 Assertion:Each operation must be
given a name that is "
- + "unique within an interface defined in this WSDL target
namespace");
- WSDLInterfaceOperation wsdlOperation = new
WSDLInterfaceOperation(wsdlInterface);
- wsdlOperation.setName(ncname);
- wsdlInterface.addOperation(wsdlOperation);
- return wsdlOperation;
- }
-
- log.warn("Unrecogized child element: " + localName);
- return null;
- }
-
- /**
- * Parsing the WSDL 2.0 document
- * @param wsdlOperation
- * @param navigator
- * @param namespaceURI
- * @param localName
- * @param attrs
- * @return
- */
- public Object newChild(WSDLInterfaceOperation wsdlOperation, UnmarshallingContext
navigator, String namespaceURI, String localName, Attributes attrs)
- {
- if ("input".equals(localName))
- {
- WSDLInterfaceOperationInput wsdlInterfaceOperationInput = new
WSDLInterfaceOperationInput(wsdlOperation);
-
wsdlInterfaceOperationInput.setElement(navigator.resolveQName(attrs.getValue("element")));
- wsdlInterfaceOperationInput.setMessageLabel(new
NCName(attrs.getValue("messageLabel")));
- wsdlOperation.addInput(wsdlInterfaceOperationInput);
- return wsdlInterfaceOperationInput;
- }
- else if ("output".equals(localName))
- {
- WSDLInterfaceOperationOutput output = new
WSDLInterfaceOperationOutput(wsdlOperation);
- output.setElement(navigator.resolveQName(attrs.getValue("element")));
- output.setMessageLabel(new NCName(attrs.getValue("messageLabel")));
- wsdlOperation.addOutput(output);
- return output;
- }
- else if ("outfault".equals(localName))
- {
- WSDLInterfaceOperationOutfault fault = new
WSDLInterfaceOperationOutfault(wsdlOperation);
- String messageLabel = attrs.getValue("messageLabel");
- fault.setRef(navigator.resolveQName(attrs.getValue("ref")));
- if (messageLabel != null)
- fault.setMessageLabel(new NCName(messageLabel));
- wsdlOperation.addOutfault(fault);
- return wsdlOperation;
- }
-
- log.warn("Unrecogized child element: " + localName);
- return null;
- }
-
- /**
- * Parsing the WSDL 2.0 document
- * @param wsdlBinding
- * @param navigator
- * @param namespaceURI
- * @param localName
- * @param attrs
- * @return
- */
- public Object newChild(WSDLBinding wsdlBinding, UnmarshallingContext navigator, String
namespaceURI, String localName, Attributes attrs)
- {
- if ("operation".equals(localName))
- {
- WSDLBindingOperation wsdlBindingOperation = new
WSDLBindingOperation(wsdlBinding);
-
wsdlBindingOperation.setRef(navigator.resolveQName(attrs.getValue("ref")));
- wsdlBinding.addOperation(wsdlBindingOperation);
- return wsdlBindingOperation;
- }
-
- log.warn("Unrecogized child element: " + localName);
- return null;
- }
-
- /**
- * Parsing the WSDL 2.0 document
- * @param wsdlBindingOperation
- * @param navigator
- * @param namespaceURI
- * @param localName
- * @param attrs
- * @return
- */
- public Object newChild(WSDLBindingOperation wsdlBindingOperation, UnmarshallingContext
navigator, String namespaceURI, String localName, Attributes attrs)
- {
- if ("input".equals(localName))
- {
- WSDLBindingOperationInput wsdlBindingOperationInput = new
WSDLBindingOperationInput(wsdlBindingOperation);
- wsdlBindingOperationInput.setMessageLabel(new
NCName(attrs.getValue("messageLabel")));
- wsdlBindingOperation.addInput(wsdlBindingOperationInput);
- return wsdlBindingOperationInput;
- }
- if ("output".equals(localName))
- {
- WSDLBindingOperationOutput wsdlBindingOperationOutput = new
WSDLBindingOperationOutput(wsdlBindingOperation);
- wsdlBindingOperationOutput.setMessageLabel(new
NCName(attrs.getValue("messageLabel")));
- wsdlBindingOperation.addOutput(wsdlBindingOperationOutput);
- return wsdlBindingOperationOutput;
- }
-
- log.warn("Unrecogized child element: " + localName);
- return null;
- }
-
- /**
- * Parsing the WSDL 2.0 document
- * @param wsdlService
- * @param navigator
- * @param namespaceURI
- * @param localName
- * @param attrs
- * @return
- */
- public Object newChild(WSDLService wsdlService, UnmarshallingContext navigator, String
namespaceURI, String localName, Attributes attrs)
- {
- if ("endpoint".equals(localName))
- {
- WSDLEndpoint wsdlEndpoint = new WSDLEndpoint(wsdlService);
- wsdlEndpoint.setName(new NCName(attrs.getValue("name")));
-
wsdlEndpoint.setBinding(navigator.resolveQName(attrs.getValue("binding")));
- wsdlService.addEndpoint(wsdlEndpoint);
- return wsdlEndpoint;
- }
-
- log.warn("Unrecogized child element: " + localName);
- return null;
- }
-
- /**
- * Method that deals with importing schema
- * @param wsdl
- * @param attrs
- */
- private void importTypes(WSDLDefinitions wsdl, Attributes attrs)
- {
- // [TODO]
- }
-}
\ No newline at end of file
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDL20Writer.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDL20Writer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDL20Writer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,200 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.metadata.wsdl;
-
-// $Id$
-
-import org.jboss.logging.Logger;
-
-/**
- * A WSDL writer that writes out a WSDL-2.0 compliant wsdl.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @author Anil.Saldhana(a)jboss.org
- * @since 10-Oct-2004
- */
-public class WSDL20Writer extends WSDLWriter
-{
- // provide logging
- protected static final Logger log = Logger.getLogger(WSDL20Writer.class);
-
- protected WSDLUtils utils = WSDLUtils.getInstance();
-
- /** Use WSDLDefinitions.writeWSDL instead. */
- public WSDL20Writer(WSDLDefinitions wsdl)
- {
- super(wsdl);
- }
-
-
- protected void appendInterfaces(StringBuilder buffer)
- {
- WSDLInterface[] interfaces = wsdl.getInterfaces();
- for (int i = 0; i < interfaces.length; i++)
- {
- WSDLInterface intf = interfaces[i];
- buffer.append("<interface name='" + intf.getName() +
"'>");
- appendInterfaceFaults(buffer, intf);
- appendInterfaceOperations(buffer, intf);
- buffer.append("</interface>");
- }
- }
-
- private void appendInterfaceFaults(StringBuilder buffer, WSDLInterface intf)
- {
- WSDLInterfaceFault[] faults = intf.getFaults();
- for (int i = 0; i < faults.length; i++)
- {
- WSDLInterfaceFault fault = faults[i];
- buffer.append("<fault name='" + fault.getName() +
"'");
- buffer.append(" element='" + getQNameRef(fault.getXmlName()) +
"'>");
- if (fault.getDocumentation() != null)
- {
- buffer.append(fault.getDocumentation());
- }
- buffer.append("</fault>");
- }
- }
-
- private void appendInterfaceOperations(StringBuilder buffer, WSDLInterface intf)
- {
- WSDLInterfaceOperation[] operations = intf.getOperations();
- for (int i = 0; i < operations.length; i++)
- {
- WSDLInterfaceOperation operation = operations[i];
- buffer.append("<operation name='" + operation.getName() +
"'>");
-
- WSDLInterfaceOperationInput[] inputs = operation.getInputs();
- for (int j = 0; j < inputs.length; j++)
- {
- WSDLInterfaceOperationInput ip = inputs[j];
- buffer.append("<input element='" +
getQNameRef(ip.getElement()) + "'");
- if (ip.getMessageLabel() != null)
- {
- buffer.append(" messageLabel='" + ip.getMessageLabel() +
"'");
- }
- buffer.append(">");
- appendProperties(buffer, ip.getProperties());
- buffer.append("</input>");
- }
-
- WSDLInterfaceOperationOutput[] outputs = operation.getOutputs();
- for (int j = 0; j < outputs.length; j++)
- {
- WSDLInterfaceOperationOutput op = outputs[j];
- buffer.append("<output element='" +
getQNameRef(op.getElement()) + "'");
- if (op.getMessageLabel() != null)
- {
- buffer.append(" messageLabel='" + op.getMessageLabel() +
"'");
- }
- buffer.append(">");
- appendProperties(buffer, op.getProperties());
- buffer.append("</output>");
- }
-
- WSDLInterfaceOperationOutfault[] outfaults = operation.getOutfaults();
- for (int j = 0; j < outfaults.length; j++)
- {
- WSDLInterfaceOperationOutfault outfault = outfaults[j];
- buffer.append("<outfault ref='" +
getQNameRef(outfault.getRef()) + "'>");
- if (outfault.getMessageLabel() != null)
- {
- buffer.append(" messageLabel='" + outfault.getMessageLabel()
+ "'");
- }
- buffer.append("</outfault>");
- }
- buffer.append("</operation>");
- }
- }
-
- private void appendProperties(StringBuilder buffer, WSDLProperty[] wsdlProperties)
- {
- for (int i = 0; i < wsdlProperties.length; i++)
- {
- WSDLProperty wsdlProperty = wsdlProperties[i];
- String uri = wsdlProperty.getURI();
- String value = wsdlProperty.getValue();
- buffer.append("<property uri='" + uri + "'>" +
(value != null ? "<value>" + value + "</value>" :
"") + "</property>");
- }
- }
-
- protected void appendBindings(StringBuilder buffer)
- {
- WSDLBinding[] bindings = wsdl.getBindings();
- for (int i = 0; i < bindings.length; i++)
- {
- WSDLBinding binding = bindings[i];
- buffer.append("<binding name='" + binding.getName() +
"'");
- if (binding.getInterfaceName() != null)
- {
- buffer.append(" interface='" +
getQNameRef(binding.getInterfaceName()) + "'");
- }
- buffer.append(">");
- appendBindingOperations(buffer, binding);
- buffer.append("</binding>");
- }
- }
-
- protected void appendBindingOperations(StringBuilder buffer, WSDLBinding binding)
- {
- WSDLBindingOperation[] operations = binding.getOperations();
- for (int i = 0; i < operations.length; i++)
- {
- WSDLBindingOperation operation = operations[i];
- buffer.append("<operation ref='" +
getQNameRef(operation.getRef()) + "'>");
- buffer.append("</operation>");
- }
- }
-
- protected void appendServices(StringBuilder buffer)
- {
- WSDLService[] services = wsdl.getServices();
- for (int i = 0; i < services.length; i++)
- {
- WSDLService service = services[i];
- buffer.append("<service name='" + service.getName() +
"'");
- if (service.getInterfaceName() != null)
- {
- buffer.append(" interface='" +
getQNameRef(service.getInterfaceName()) + "'");
- }
- buffer.append(">");
-
- WSDLEndpoint[] endpoints = service.getEndpoints();
- for (int j = 0; j < endpoints.length; j++)
- {
- WSDLEndpoint endpoint = endpoints[j];
- buffer.append("<endpoint name='" + endpoint.getName() +
"'");
- if (endpoint.getBinding() != null)
- {
- buffer.append(" binding='" +
getQNameRef(endpoint.getBinding()) + "'");
- }
- if (endpoint.getAddress() != null)
- {
- buffer.append(" address='" + endpoint.getAddress() +
"'");
- }
- buffer.append("></endpoint>");
- }
-
- buffer.append("</service>");
- }
- }
-}
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDLDefinitions.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDLDefinitions.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDLDefinitions.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -23,9 +23,7 @@
// $Id$
-import java.io.IOException;
import java.io.Serializable;
-import java.io.Writer;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedHashMap;
@@ -37,7 +35,6 @@
import org.jboss.logging.Logger;
import org.jboss.ws.Constants;
-import org.jboss.ws.WSException;
import org.jboss.xb.binding.NamespaceRegistry;
import org.w3c.dom.Document;
@@ -298,23 +295,4 @@
if(pre != null && pre.equals(prefix))
namespaces.removePrefixMapping(prefix);
}
-
- /** Write the wsdl definition to the given writer, clients should not care about the
wsdl version. */
- public void write(Writer writer, String charset) throws IOException
- {
- if (Constants.NS_WSDL11.equals(wsdlNamespace))
- {
- WSDL11Writer wsdl11Writer = new WSDL11Writer(this);
- wsdl11Writer.write(writer, charset);
- }
- else if (Constants.NS_WSDL20.equals(wsdlNamespace))
- {
- WSDL20Writer wsdl20Writer = new WSDL20Writer(this);
- wsdl20Writer.write(writer);
- }
- else
- {
- throw new WSException("Unsupported wsdl version: " + wsdlNamespace);
- }
- }
}
\ No newline at end of file
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDLDefinitionsFactory.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDLDefinitionsFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDLDefinitionsFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,210 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.metadata.wsdl;
-
-// $Id$
-
-import java.io.InputStream;
-import java.io.StringWriter;
-import java.net.URL;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.Map;
-
-import javax.wsdl.Definition;
-import javax.wsdl.factory.WSDLFactory;
-import javax.wsdl.xml.WSDLReader;
-import javax.xml.parsers.DocumentBuilder;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.utils.DOMUtils;
-import org.jboss.ws.Constants;
-import org.jboss.ws.utils.JBossWSEntityResolver;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-import org.xml.sax.EntityResolver;
-
-import com.ibm.wsdl.xml.WSDLReaderImpl;
-
-/**
- * A factory that creates a <code>WSDLDefinitions</code> object from an URL.
- *
- * This implementations deals with different WSDL versions so that clients of this
- * factory do need to know about WSDL version specifics. The Java object view of the
- * WSDL document (WSDLDefinitions) is modeled on WSDL-2.0
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 10-Oct-2004
- */
-public class WSDLDefinitionsFactory
-{
- // provide logging
- private static final Logger log = Logger.getLogger(WSDLDefinitionsFactory.class);
-
- // This feature is set by default in wsdl4j, it means the object structure contains
the imported arguments
- public static final String FEATURE_IMPORT_DOCUMENTS =
"javax.wsdl.importDocuments";
- // Set this feature for additional debugging output
- public static final String FEATURE_VERBOSE = "javax.wsdl.verbose";
-
- // The WSDL reader features
- private Map features = new HashMap();
-
- // Hide constructor
- private WSDLDefinitionsFactory()
- {
- }
-
- /**
- * Create a new instance of a wsdl factory
- */
- public static WSDLDefinitionsFactory newInstance()
- {
- return new WSDLDefinitionsFactory();
- }
-
- /**
- * Set a feature on the underlying reader
- */
- public void setFeature(String name, boolean value) throws IllegalArgumentException
- {
- features.put(name, new Boolean(value));
- }
-
- /**
- * Read the wsdl document from the given URL
- */
- public WSDLDefinitions parse(URL wsdlLocation) throws WSDLException
- {
- if (wsdlLocation == null)
- throw new IllegalArgumentException("URL cannot be null");
-
- log.trace("parse: " + wsdlLocation.toExternalForm());
-
- EntityResolver entityResolver = new JBossWSEntityResolver();
- WSDLDefinitions wsdlDefinitions = null;
- try
- {
- Document wsdlDoc = getDocument(wsdlLocation);
- String defaultNamespace = getDefaultNamespace(wsdlDoc);
- if (Constants.NS_WSDL20.equals(defaultNamespace))
- {
- WSDL20Reader wsdlReader = new WSDL20Reader();
-
- // Setup reader features
- Iterator it = features.entrySet().iterator();
- while (it.hasNext())
- {
- Map.Entry entry = (Map.Entry)it.next();
- String key = (String)entry.getKey();
- Boolean flag = (Boolean)entry.getValue();
- wsdlReader.setFeature(key, flag.booleanValue());
- }
-
- wsdlDefinitions = wsdlReader.readWSDL(new WSDLLocatorImpl(entityResolver,
wsdlLocation));
- wsdlDefinitions.setWsdlDocument(wsdlDoc);
- }
- else if (Constants.NS_WSDL11.equals(defaultNamespace))
- {
- WSDLFactory wsdlFactory = WSDLFactory.newInstance();
- WSDLReader wsdlReader = wsdlFactory.newWSDLReader();
- wsdlReader.setFeature("javax.wsdl.verbose", false);
-
- // Setup reader features
- Iterator it = features.entrySet().iterator();
- while (it.hasNext())
- {
- Map.Entry entry = (Map.Entry)it.next();
- String key = (String)entry.getKey();
- Boolean flag = (Boolean)entry.getValue();
- wsdlReader.setFeature(key, flag.booleanValue());
- }
-
- // Set EntityResolver in patched version of wsdl4j-1.5.2jboss
- ((WSDLReaderImpl)wsdlReader).setEntityResolver(entityResolver);
-
- Definition definition = wsdlReader.readWSDL(new
WSDLLocatorImpl(entityResolver, wsdlLocation));
- wsdlDefinitions = new WSDL11Reader().processDefinition(definition,
wsdlLocation);
- wsdlDefinitions.setWsdlDocument(wsdlDoc);
- }
- else
- throw new WSDLException("Invalid default namespace: " +
defaultNamespace);
-
- if (log.isTraceEnabled())
- {
- StringWriter stwr = new StringWriter();
- WSDL20Writer wsdl20Writer = new WSDL20Writer(wsdlDefinitions);
- wsdl20Writer.write(stwr);
- log.trace("\n" + stwr.toString());
- }
- }
- catch (WSDLException e)
- {
- throw e;
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Exception e)
- {
- throw new WSDLException(e);
- }
-
- return wsdlDefinitions;
- }
-
- /** Get the WSDL document.
- */
- private Document getDocument(URL wsdlLocation) throws WSDLException
- {
- try
- {
- InputStream wsdlInputStream = wsdlLocation.openStream();
- try
- {
- DocumentBuilder builder = DOMUtils.getDocumentBuilder();
- return builder.parse(wsdlInputStream);
- }
- finally
- {
- wsdlInputStream.close();
- }
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Exception e)
- {
- throw new WSDLException(e);
- }
- }
-
- /** Get the default namespace for the given WSDL
- */
- private String getDefaultNamespace(Document wsdlDoc) throws WSDLException
- {
- Element root = wsdlDoc.getDocumentElement();
- String defaultNamespace = root.getNamespaceURI();
- return defaultNamespace;
- }
-}
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDLLocatorImpl.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDLLocatorImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDLLocatorImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,159 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.metadata.wsdl;
-
-// $Id$
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.net.MalformedURLException;
-import java.net.URL;
-
-import javax.wsdl.xml.WSDLLocator;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.WSException;
-import org.xml.sax.EntityResolver;
-import org.xml.sax.InputSource;
-
-/* A WSDLLocator that can handle wsdl imports
- */
-class WSDLLocatorImpl implements WSDLLocator
-{
- // provide logging
- private static final Logger log = Logger.getLogger(WSDLDefinitionsFactory.class);
-
- private EntityResolver entityResolver;
- private URL wsdlURL;
- private String latestImportURI;
-
- public WSDLLocatorImpl(EntityResolver entityResolver, URL wsdlFile)
- {
- if (wsdlFile == null)
- throw new IllegalArgumentException("WSDL file argument cannot be
null");
-
- this.entityResolver = entityResolver;
- this.wsdlURL = wsdlFile;
- }
-
- public InputSource getBaseInputSource()
- {
- log.trace("getBaseInputSource [wsdlUrl=" + wsdlURL + "]");
- try
- {
- InputStream is = wsdlURL.openStream();
- if (is == null)
- throw new IllegalArgumentException("Cannot obtain wsdl from [" +
wsdlURL + "]");
-
- return new InputSource(is);
- }
- catch (IOException e)
- {
- throw new RuntimeException("Cannot access wsdl from [" + wsdlURL +
"], " + e.getMessage());
- }
- }
-
- public String getBaseURI()
- {
- return wsdlURL.toExternalForm();
- }
-
- public InputSource getImportInputSource(String parent, String resource)
- {
- log.trace("getImportInputSource [parent=" + parent +
",resource=" + resource + "]");
-
- URL parentURL = null;
- try
- {
- parentURL = new URL(parent);
- }
- catch (MalformedURLException e)
- {
- log.error("Not a valid URL: " + parent);
- return null;
- }
-
- String wsdlImport = null;
- String external = parentURL.toExternalForm();
-
- // An external URL
- if (resource.startsWith("http://") ||
resource.startsWith("https://"))
- {
- wsdlImport = resource;
- }
-
- // Absolute path
- else if (resource.startsWith("/"))
- {
- String beforePath = external.substring(0,
external.indexOf(parentURL.getPath()));
- wsdlImport = beforePath + resource;
- }
-
- // A relative path
- else
- {
- String parentDir = external.substring(0, external.lastIndexOf("/"));
-
- // remove references to current dir
- while (resource.startsWith("./"))
- resource = resource.substring(2);
-
- // remove references to parentdir
- while (resource.startsWith("../"))
- {
- parentDir = parentDir.substring(0, parentDir.lastIndexOf("/"));
- resource = resource.substring(3);
- }
-
- wsdlImport = parentDir + "/" + resource;
- }
-
- try
- {
- log.trace("Trying to resolve: " + wsdlImport);
- InputSource inputSource = entityResolver.resolveEntity(wsdlImport, wsdlImport);
- if (inputSource != null)
- {
- latestImportURI = wsdlImport;
- }
- else
- {
- throw new IllegalArgumentException("Cannot resolve imported resource:
" + wsdlImport);
- }
-
- return inputSource;
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Exception e)
- {
- throw new WSException("Cannot access imported wsdl [" + wsdlImport +
"], " + e.getMessage());
- }
- }
-
- public String getLatestImportURI()
- {
- return latestImportURI;
- }
-}
Modified: branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDLUtils.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDLUtils.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDLUtils.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -71,9 +71,9 @@
import org.apache.xerces.xs.XSTypeDefinition;
import org.jboss.ws.Constants;
import org.jboss.ws.WSException;
-import org.jboss.ws.jaxrpc.ParameterWrapping;
+import org.jboss.ws.core.jaxrpc.ParameterWrapping;
+import org.jboss.ws.core.utils.HolderUtils;
import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel;
-import org.jboss.ws.utils.HolderUtils;
import org.jboss.xb.binding.Util;
/**
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDLWriter.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDLWriter.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDLWriter.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,179 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.metadata.wsdl;
-
-// $Id$
-
-import java.io.IOException;
-import java.io.Writer;
-import java.util.Iterator;
-
-import javax.xml.namespace.QName;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.utils.DOMUtils;
-import org.jboss.ws.utils.DOMWriter;
-import org.jboss.ws.Constants;
-import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel;
-import org.w3c.dom.Element;
-
-/**
- * A helper that writes out a WSDL definition
- *
- * @author Thomas.Diesler(a)jboss.org
- * @author Anil.Saldhana(a)jboss.org
- * @since 10-Oct-2004
- */
-public abstract class WSDLWriter
-{
- // provide logging
- protected static final Logger log = Logger.getLogger(WSDLWriter.class);
-
- protected WSDLDefinitions wsdl;
- protected WSDLUtils utils = WSDLUtils.getInstance();
-
- // The soap prefix
- protected String soapPrefix = "soap";
-
- /**
- * Include or import WSDL Types
- */
- protected boolean includeSchemaInWSDL = true;
-
- /** Use WSDLDefinitions.writeWSDL instead. */
- protected WSDLWriter(WSDLDefinitions wsdl)
- {
- if (wsdl == null)
- throw new IllegalArgumentException("WSDL definitions is NULL");
-
- this.wsdl = wsdl;
- }
-
- public void write(Writer writer) throws IOException
- {
- StringBuilder buffer = new StringBuilder();
- buffer.append(Constants.XML_HEADER);
-
- appendDefinitions(buffer);
- appendTypes(buffer);
- appendInterfaces(buffer);
- appendBindings(buffer);
- appendServices(buffer);
-
- buffer.append("</definitions>");
-
- Element element = DOMUtils.parse(buffer.toString());
- new DOMWriter(writer).setPrettyprint(true).print(element);
- }
-
- protected void appendDefinitions(StringBuilder buffer)
- {
- buffer.append("<definitions");
- //Append service name as done by wscompile, if there is just one
- WSDLService[] services = wsdl.getServices();
- if (services != null && services.length == 1)
- {
- WSDLService ser = services[0];
- buffer.append(" name='" + ser.getName() + "'");
- }
- buffer.append(" targetNamespace='" + wsdl.getTargetNamespace() +
"'");
- buffer.append(" xmlns='" + wsdl.getWsdlNamespace() +
"'");
- Iterator it = wsdl.getRegisteredNamespaceURIs();
- while (it.hasNext())
- {
- String namespaceURI = (String)it.next();
- String prefix = wsdl.getPrefix(namespaceURI);
- if (prefix.length() > 0)
- {
- buffer.append(" xmlns:" + prefix + "='" +
namespaceURI + "'");
- if (Constants.PREFIX_SOAP11.equals(prefix) ||
Constants.PREFIX_SOAP12.equals(prefix))
- soapPrefix = prefix;
- }
- }
- buffer.append(">");
- }
-
- protected void appendTypes(StringBuilder buffer)
- {
- buffer.append("<types>");
- JBossXSModel xsM = WSDLUtils.getSchemaModel(wsdl.getWsdlTypes());
- String schema = xsM.serialize();
- buffer.append(schema);
- buffer.append("</types>");
- }
-
- protected abstract void appendInterfaces(StringBuilder buffer);
-
- protected abstract void appendBindings(StringBuilder buffer);
-
- protected abstract void appendServices(StringBuilder buffer);
-
- /** Get a prefixed name of form prefix:localPart */
- protected String getQNameRef(QName qname)
- {
- String retStr = qname.getLocalPart();
-
- String prefix = qname.getPrefix();
- String nsURI = qname.getNamespaceURI();
- if (prefix.length() == 0 && nsURI.length() > 0)
- {
- qname = wsdl.registerQName(qname);
- prefix = qname.getPrefix();
- }
-
- if (prefix.length() > 0)
- retStr = prefix + ":" + retStr;
-
- return retStr;
- }
-
- public WSDLDefinitions getWsdl()
- {
- return wsdl;
- }
-
- public void setWsdl(WSDLDefinitions wsdl)
- {
- this.wsdl = wsdl;
- }
-
- public boolean isIncludeTypesInWSDL()
- {
- return includeSchemaInWSDL;
- }
-
- public void logException(Exception e)
- {
- if (log.isTraceEnabled())
- {
- log.trace(e);
- }
- }
-
- public void logMessage(String msg)
- {
- if (log.isTraceEnabled())
- {
- log.trace(msg);
- }
- }
-}
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/xmlschema/JBossXSModel.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/xmlschema/JBossXSModel.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/xmlschema/JBossXSModel.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -54,8 +54,8 @@
import org.apache.xerces.xs.XSTerm;
import org.apache.xerces.xs.XSTypeDefinition;
import org.jboss.logging.Logger;
-import org.jboss.ws.utils.DOMUtils;
-import org.jboss.ws.utils.DOMWriter;
+import org.jboss.ws.core.utils.DOMUtils;
+import org.jboss.ws.core.utils.DOMWriter;
import org.jboss.ws.Constants;
import org.jboss.ws.WSException;
import org.jboss.xb.binding.NamespaceRegistry;
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/xmlschema/WSSchemaUtils.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/xmlschema/WSSchemaUtils.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/xmlschema/WSSchemaUtils.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -47,8 +47,8 @@
import org.apache.xerces.xs.XSTypeDefinition;
import org.jboss.ws.Constants;
import org.jboss.ws.WSException;
+import org.jboss.ws.core.utils.DOMWriter;
import org.jboss.ws.metadata.wsdl.xsd.SchemaUtils;
-import org.jboss.ws.utils.DOMWriter;
import org.jboss.xb.binding.NamespaceRegistry;
/**
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/xsd/SchemaUtils.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/xsd/SchemaUtils.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/xsd/SchemaUtils.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -49,14 +49,14 @@
import org.apache.xerces.xs.XSTypeDefinition;
import org.jboss.ws.Constants;
import org.jboss.ws.WSException;
+import org.jboss.ws.core.server.ServerConfig;
+import org.jboss.ws.core.server.ServerConfigFactory;
import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSComplexTypeDefinition;
import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSElementDeclaration;
import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSErrorHandler;
import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSSimpleTypeDefinition;
import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSStringList;
import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSTypeDefinition;
-import org.jboss.ws.server.ServerConfig;
-import org.jboss.ws.server.ServerConfigFactory;
/**
* Util class that deals with XML Schema
Modified: branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/JavaToWSDL.java
===================================================================
--- branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/JavaToWSDL.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/JavaToWSDL.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -34,14 +34,15 @@
import org.jboss.logging.Logger;
import org.jboss.ws.Constants;
import org.jboss.ws.WSException;
-import org.jboss.ws.jaxrpc.Style;
-import org.jboss.ws.metadata.UnifiedMetaData;
+import org.jboss.ws.core.jaxrpc.Style;
+import org.jboss.ws.core.utils.DOMUtils;
+import org.jboss.ws.core.utils.DOMWriter;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
+import org.jboss.ws.metadata.umdm.UnifiedMetaData;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
import org.jboss.ws.tools.Configuration.OperationConfig;
import org.jboss.ws.tools.metadata.ToolsUnifiedMetaDataBuilder;
-import org.jboss.ws.utils.DOMUtils;
-import org.jboss.ws.utils.DOMWriter;
+import org.jboss.ws.tools.wsdl.WSDLWriter;
import org.w3c.dom.Element;
/**
@@ -339,7 +340,7 @@
// Debug the generated wsdl
StringWriter sw = new StringWriter();
- wsdlDefinitions.write(sw, Constants.DEFAULT_XML_CHARSET);
+ new WSDLWriter(wsdlDefinitions).write(sw, Constants.DEFAULT_XML_CHARSET);
log.debug("Generated WSDL:\n" + sw.toString());
// Debug the generated mapping file
Modified: branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/JavaToWSDL11.java
===================================================================
--- branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/JavaToWSDL11.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/JavaToWSDL11.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -31,13 +31,13 @@
import org.jboss.logging.Logger;
import org.jboss.ws.Constants;
import org.jboss.ws.WSException;
-import org.jboss.ws.metadata.EndpointMetaData;
-import org.jboss.ws.metadata.FaultMetaData;
-import org.jboss.ws.metadata.OperationMetaData;
-import org.jboss.ws.metadata.ParameterMetaData;
-import org.jboss.ws.metadata.ServiceMetaData;
-import org.jboss.ws.metadata.UnifiedMetaData;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
+import org.jboss.ws.metadata.umdm.EndpointMetaData;
+import org.jboss.ws.metadata.umdm.FaultMetaData;
+import org.jboss.ws.metadata.umdm.OperationMetaData;
+import org.jboss.ws.metadata.umdm.ParameterMetaData;
+import org.jboss.ws.metadata.umdm.ServiceMetaData;
+import org.jboss.ws.metadata.umdm.UnifiedMetaData;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
import org.jboss.ws.metadata.wsdl.WSDLUtils;
import org.jboss.ws.metadata.wsdl.XSModelTypes;
Modified: branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/JavaToXSD.java
===================================================================
--- branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/JavaToXSD.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/JavaToXSD.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -35,6 +35,7 @@
import org.apache.xerces.xs.XSModel;
import org.jboss.logging.Logger;
import org.jboss.ws.WSException;
+import org.jboss.ws.core.utils.JBossWSEntityResolver;
import org.jboss.ws.metadata.wsdl.WSDLUtils;
import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSEntityResolver;
import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSErrorHandler;
@@ -45,7 +46,6 @@
import org.jboss.ws.tools.helpers.JavaToXSDHelper;
import org.jboss.ws.tools.interfaces.JavaToXSDIntf;
import org.jboss.ws.tools.interfaces.SchemaCreatorIntf;
-import org.jboss.ws.utils.JBossWSEntityResolver;
import org.jboss.xb.binding.sunday.unmarshalling.LSInputAdaptor;
import org.jboss.xb.binding.sunday.unmarshalling.SchemaBinding;
import org.jboss.xb.binding.sunday.unmarshalling.SchemaBindingResolver;
Modified: branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/ToolsUtils.java
===================================================================
--- branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/ToolsUtils.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/ToolsUtils.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -45,12 +45,12 @@
import org.jboss.logging.Logger;
import org.jboss.ws.Constants;
import org.jboss.ws.WSException;
-import org.jboss.ws.jaxrpc.LiteralTypeMapping;
-import org.jboss.ws.jaxrpc.encoding.SimpleDeserializerFactory;
-import org.jboss.ws.jaxrpc.encoding.SimpleSerializerFactory;
+import org.jboss.ws.core.jaxrpc.LiteralTypeMapping;
+import org.jboss.ws.core.jaxrpc.binding.SimpleDeserializerFactory;
+import org.jboss.ws.core.jaxrpc.binding.SimpleSerializerFactory;
+import org.jboss.ws.core.utils.JavaUtils;
import org.jboss.ws.metadata.wsdl.WSDLUtils;
import org.jboss.ws.metadata.wsdl.xsd.SchemaUtils;
-import org.jboss.ws.utils.JavaUtils;
/**
* Util class for the JBossWS Tools project
Modified: branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/WSDLToJava.java
===================================================================
--- branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/WSDLToJava.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/WSDLToJava.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -43,10 +43,10 @@
import org.apache.xerces.xs.XSTypeDefinition;
import org.jboss.ws.Constants;
import org.jboss.ws.WSException;
-import org.jboss.ws.jaxrpc.LiteralTypeMapping;
+import org.jboss.ws.core.jaxrpc.LiteralTypeMapping;
+import org.jboss.ws.core.utils.JavaUtils;
import org.jboss.ws.metadata.wsdl.NCName;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
import org.jboss.ws.metadata.wsdl.WSDLException;
import org.jboss.ws.metadata.wsdl.WSDLInterface;
import org.jboss.ws.metadata.wsdl.WSDLInterfaceFault;
@@ -58,7 +58,7 @@
import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel;
import org.jboss.ws.metadata.wsdl.xsd.SchemaUtils;
import org.jboss.ws.tools.interfaces.WSDLToJavaIntf;
-import org.jboss.ws.utils.JavaUtils;
+import org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory;
import org.w3c.dom.Element;
/**
Modified: branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/WSDotXMLCreator.java
===================================================================
--- branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/WSDotXMLCreator.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/WSDotXMLCreator.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -31,12 +31,12 @@
import org.jboss.logging.Logger;
import org.jboss.ws.WSException;
-import org.jboss.ws.metadata.jsr109.PortComponentMetaData;
-import org.jboss.ws.metadata.jsr109.WebserviceDescriptionMetaData;
-import org.jboss.ws.metadata.jsr109.WebservicesMetaData;
+import org.jboss.ws.core.utils.DOMUtils;
+import org.jboss.ws.core.utils.DOMWriter;
+import org.jboss.ws.metadata.webservices.PortComponentMetaData;
+import org.jboss.ws.metadata.webservices.WebserviceDescriptionMetaData;
+import org.jboss.ws.metadata.webservices.WebservicesMetaData;
import org.jboss.ws.tools.interfaces.WSDotXMLCreatorIntf;
-import org.jboss.ws.utils.DOMUtils;
-import org.jboss.ws.utils.DOMWriter;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
Modified: branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/XSDToJava.java
===================================================================
--- branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/XSDToJava.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/XSDToJava.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -34,7 +34,7 @@
import org.apache.xerces.xs.XSSimpleTypeDefinition;
import org.apache.xerces.xs.XSTypeDefinition;
import org.jboss.ws.Constants;
-import org.jboss.ws.jaxrpc.LiteralTypeMapping;
+import org.jboss.ws.core.jaxrpc.LiteralTypeMapping;
import org.jboss.ws.metadata.wsdl.WSDLUtils;
import org.jboss.ws.metadata.wsdl.xsd.SchemaUtils;
import org.jboss.ws.tools.interfaces.XSDToJavaIntf;
Modified: branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/XSDTypeToJava.java
===================================================================
--- branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/XSDTypeToJava.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/XSDTypeToJava.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -49,10 +49,10 @@
import org.apache.xerces.xs.XSWildcard;
import org.jboss.ws.Constants;
import org.jboss.ws.WSException;
-import org.jboss.ws.jaxrpc.LiteralTypeMapping;
+import org.jboss.ws.core.jaxrpc.LiteralTypeMapping;
+import org.jboss.ws.core.utils.JavaUtils;
import org.jboss.ws.metadata.wsdl.WSDLUtils;
import org.jboss.ws.metadata.wsdl.xsd.SchemaUtils;
-import org.jboss.ws.utils.JavaUtils;
/** Class that converts a XSD Type into Java class
* @author <mailto:Anil.Saldhana@jboss.org>Anil Saldhana
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/helpers/JavaToWSDLHelper.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/helpers/JavaToWSDLHelper.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/helpers/JavaToWSDLHelper.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -40,13 +40,10 @@
import org.apache.xerces.xs.XSTypeDefinition;
import org.jboss.ws.Constants;
import org.jboss.ws.WSException;
-import org.jboss.ws.common.CommonSOAPBinding;
-import org.jboss.ws.jaxrpc.LiteralTypeMapping;
-import org.jboss.ws.jaxrpc.Style;
-import org.jboss.ws.metadata.EndpointMetaData;
-import org.jboss.ws.metadata.FaultMetaData;
-import org.jboss.ws.metadata.OperationMetaData;
-import org.jboss.ws.metadata.ParameterMetaData;
+import org.jboss.ws.core.CommonSOAPBinding;
+import org.jboss.ws.core.jaxrpc.LiteralTypeMapping;
+import org.jboss.ws.core.jaxrpc.Style;
+import org.jboss.ws.core.utils.JavaUtils;
import org.jboss.ws.metadata.jaxrpcmapping.ExceptionMapping;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
import org.jboss.ws.metadata.jaxrpcmapping.JavaXmlTypeMapping;
@@ -59,6 +56,10 @@
import org.jboss.ws.metadata.jaxrpcmapping.VariableMapping;
import org.jboss.ws.metadata.jaxrpcmapping.WsdlMessageMapping;
import org.jboss.ws.metadata.jaxrpcmapping.WsdlReturnValueMapping;
+import org.jboss.ws.metadata.umdm.EndpointMetaData;
+import org.jboss.ws.metadata.umdm.FaultMetaData;
+import org.jboss.ws.metadata.umdm.OperationMetaData;
+import org.jboss.ws.metadata.umdm.ParameterMetaData;
import org.jboss.ws.metadata.wsdl.NCName;
import org.jboss.ws.metadata.wsdl.WSDLBinding;
import org.jboss.ws.metadata.wsdl.WSDLBindingFault;
@@ -84,7 +85,6 @@
import org.jboss.ws.tools.JavaToXSD;
import org.jboss.ws.tools.interfaces.JavaToXSDIntf;
import org.jboss.ws.tools.interfaces.SchemaCreatorIntf;
-import org.jboss.ws.utils.JavaUtils;
/**
* Java To WSDL Helper which uses UnifiedMetaData
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/helpers/MappingFileGeneratorHelper.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/helpers/MappingFileGeneratorHelper.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/helpers/MappingFileGeneratorHelper.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -41,7 +41,8 @@
import org.jboss.logging.Logger;
import org.jboss.ws.Constants;
import org.jboss.ws.WSException;
-import org.jboss.ws.jaxrpc.LiteralTypeMapping;
+import org.jboss.ws.core.jaxrpc.LiteralTypeMapping;
+import org.jboss.ws.core.utils.JavaUtils;
import org.jboss.ws.metadata.jaxrpcmapping.ExceptionMapping;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
import org.jboss.ws.metadata.jaxrpcmapping.JavaXmlTypeMapping;
@@ -73,7 +74,6 @@
import org.jboss.ws.tools.ToolsUtils;
import org.jboss.ws.tools.WSToolsConstants;
import org.jboss.ws.tools.mapping.MappingFileGenerator;
-import org.jboss.ws.utils.JavaUtils;
import org.w3c.dom.Element;
/**
Modified: branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/helpers/ToolsHelper.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/helpers/ToolsHelper.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/helpers/ToolsHelper.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -38,15 +38,19 @@
import org.jboss.logging.Logger;
import org.jboss.ws.Constants;
import org.jboss.ws.WSException;
-import org.jboss.ws.jaxrpc.LiteralTypeMapping;
-import org.jboss.ws.jaxrpc.Style;
-import org.jboss.ws.metadata.EndpointMetaData;
-import org.jboss.ws.metadata.OperationMetaData;
-import org.jboss.ws.metadata.ParameterMetaData;
-import org.jboss.ws.metadata.ServiceMetaData;
-import org.jboss.ws.metadata.UnifiedMetaData;
+import org.jboss.ws.core.jaxrpc.LiteralTypeMapping;
+import org.jboss.ws.core.jaxrpc.Style;
+import org.jboss.ws.core.utils.DOMUtils;
+import org.jboss.ws.core.utils.DOMWriter;
+import org.jboss.ws.core.utils.IOUtils;
+import org.jboss.ws.core.utils.JavaUtils;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
import org.jboss.ws.metadata.jaxrpcmapping.JavaXmlTypeMapping;
+import org.jboss.ws.metadata.umdm.EndpointMetaData;
+import org.jboss.ws.metadata.umdm.OperationMetaData;
+import org.jboss.ws.metadata.umdm.ParameterMetaData;
+import org.jboss.ws.metadata.umdm.ServiceMetaData;
+import org.jboss.ws.metadata.umdm.UnifiedMetaData;
import org.jboss.ws.metadata.wsdl.NCName;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
import org.jboss.ws.metadata.wsdl.WSDLService;
@@ -63,10 +67,7 @@
import org.jboss.ws.tools.client.ServiceCreator;
import org.jboss.ws.tools.interfaces.WSDotXMLCreatorIntf;
import org.jboss.ws.tools.mapping.MappingFileGenerator;
-import org.jboss.ws.utils.DOMUtils;
-import org.jboss.ws.utils.DOMWriter;
-import org.jboss.ws.utils.IOUtils;
-import org.jboss.ws.utils.JavaUtils;
+import org.jboss.ws.tools.wsdl.WSDLWriter;
/**
* Helper class used by the command line tool "jbossws"
@@ -124,7 +125,7 @@
String wsdlPath = outDir + "/wsdl/" + j2wc.serviceName +
".wsdl";
//Generate the WSDL
Writer fw = IOUtils.getCharsetFileWriter(new File(wsdlPath),
Constants.DEFAULT_XML_CHARSET);
- wsdl.write(fw, Constants.DEFAULT_XML_CHARSET);
+ new WSDLWriter(wsdl).write(fw, Constants.DEFAULT_XML_CHARSET);
fw.close();
//Generate the Mapping File
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/interfaces/SchemaCreatorIntf.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/interfaces/SchemaCreatorIntf.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/interfaces/SchemaCreatorIntf.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -26,7 +26,7 @@
import javax.xml.namespace.QName;
-import org.jboss.ws.jaxrpc.LiteralTypeMapping;
+import org.jboss.ws.core.jaxrpc.LiteralTypeMapping;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel;
import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSTypeDefinition;
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/interfaces/WSDLToJavaIntf.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/interfaces/WSDLToJavaIntf.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/interfaces/WSDLToJavaIntf.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -26,7 +26,7 @@
import java.net.URL;
import java.util.Map;
-import org.jboss.ws.jaxrpc.LiteralTypeMapping;
+import org.jboss.ws.core.jaxrpc.LiteralTypeMapping;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
import org.jboss.ws.metadata.wsdl.WSDLException;
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/interfaces/XSDToJavaIntf.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/interfaces/XSDToJavaIntf.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/interfaces/XSDToJavaIntf.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -25,7 +25,7 @@
import java.io.IOException;
import org.apache.xerces.xs.XSModel;
-import org.jboss.ws.jaxrpc.LiteralTypeMapping;
+import org.jboss.ws.core.jaxrpc.LiteralTypeMapping;
/**
* Defines the contract for all Schema Types to Java Types converters
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/mapping/MappingFileGenerator.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/mapping/MappingFileGenerator.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/mapping/MappingFileGenerator.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -32,7 +32,7 @@
import org.apache.xerces.xs.XSSimpleTypeDefinition;
import org.apache.xerces.xs.XSTypeDefinition;
import org.jboss.ws.Constants;
-import org.jboss.ws.jaxrpc.LiteralTypeMapping;
+import org.jboss.ws.core.jaxrpc.LiteralTypeMapping;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
import org.jboss.ws.metadata.jaxrpcmapping.MethodParamPartsMapping;
import org.jboss.ws.metadata.jaxrpcmapping.ServiceEndpointInterfaceMapping;
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/metadata/ReflectiveMetaDataBuilder.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/metadata/ReflectiveMetaDataBuilder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/metadata/ReflectiveMetaDataBuilder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -34,15 +34,15 @@
import org.jboss.ws.Constants;
import org.jboss.ws.WSException;
-import org.jboss.ws.jaxrpc.ParameterWrapping;
-import org.jboss.ws.metadata.FaultMetaData;
-import org.jboss.ws.metadata.OperationMetaData;
-import org.jboss.ws.metadata.ParameterMetaData;
+import org.jboss.ws.core.jaxrpc.ParameterWrapping;
+import org.jboss.ws.core.utils.HolderUtils;
+import org.jboss.ws.core.utils.JavaUtils;
+import org.jboss.ws.metadata.umdm.FaultMetaData;
+import org.jboss.ws.metadata.umdm.OperationMetaData;
+import org.jboss.ws.metadata.umdm.ParameterMetaData;
import org.jboss.ws.metadata.wsdl.WSDLUtils;
import org.jboss.ws.tools.ToolsUtils;
import org.jboss.ws.tools.Configuration.OperationConfig;
-import org.jboss.ws.utils.HolderUtils;
-import org.jboss.ws.utils.JavaUtils;
/**
* Builds the Tools Endpoint Meta Data using Java Reflection
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/metadata/ToolsAnnotationMetaDataBuilder.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/metadata/ToolsAnnotationMetaDataBuilder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/metadata/ToolsAnnotationMetaDataBuilder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -36,10 +36,10 @@
import javax.xml.rpc.holders.Holder;
import org.jboss.ws.WSException;
-import org.jboss.ws.jaxrpc.Style;
-import org.jboss.ws.metadata.FaultMetaData;
-import org.jboss.ws.metadata.OperationMetaData;
-import org.jboss.ws.metadata.ParameterMetaData;
+import org.jboss.ws.core.jaxrpc.Style;
+import org.jboss.ws.metadata.umdm.FaultMetaData;
+import org.jboss.ws.metadata.umdm.OperationMetaData;
+import org.jboss.ws.metadata.umdm.ParameterMetaData;
import org.jboss.ws.metadata.wsdl.WSDLUtils;
import org.jboss.ws.tools.ToolsUtils;
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/metadata/ToolsEndpointMetaData.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/metadata/ToolsEndpointMetaData.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/metadata/ToolsEndpointMetaData.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -26,8 +26,8 @@
import javax.xml.namespace.QName;
import org.jboss.util.NotImplementedException;
-import org.jboss.ws.metadata.EndpointMetaData;
-import org.jboss.ws.metadata.ServiceMetaData;
+import org.jboss.ws.metadata.umdm.EndpointMetaData;
+import org.jboss.ws.metadata.umdm.ServiceMetaData;
/**
* Tools Endpoint Metadata
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/metadata/ToolsUnifiedMetaDataBuilder.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/metadata/ToolsUnifiedMetaDataBuilder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/metadata/ToolsUnifiedMetaDataBuilder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -32,9 +32,9 @@
import org.jboss.logging.Logger;
import org.jboss.ws.WSException;
-import org.jboss.ws.jaxrpc.Style;
-import org.jboss.ws.metadata.ServiceMetaData;
-import org.jboss.ws.metadata.UnifiedMetaData;
+import org.jboss.ws.core.jaxrpc.Style;
+import org.jboss.ws.metadata.umdm.ServiceMetaData;
+import org.jboss.ws.metadata.umdm.UnifiedMetaData;
import org.jboss.ws.metadata.wsdl.WSDLUtils;
import org.jboss.ws.tools.Configuration.OperationConfig;
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/schema/SchemaTypeCreator.java
===================================================================
---
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/schema/SchemaTypeCreator.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/schema/SchemaTypeCreator.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -53,8 +53,8 @@
import org.jboss.logging.Logger;
import org.jboss.ws.Constants;
import org.jboss.ws.WSException;
-import org.jboss.ws.jaxrpc.LiteralTypeMapping;
-import org.jboss.ws.jaxrpc.ParameterWrapping;
+import org.jboss.ws.core.jaxrpc.LiteralTypeMapping;
+import org.jboss.ws.core.jaxrpc.ParameterWrapping;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
import org.jboss.ws.metadata.jaxrpcmapping.JavaXmlTypeMapping;
import org.jboss.ws.metadata.jaxrpcmapping.PackageMapping;
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl (from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDL11DefinitionFactory.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDL11DefinitionFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDL11DefinitionFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,100 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.tools.wsdl;
-
-// $Id: WSDL11DefinitionFactory.java 906 2006-09-06 18:57:40Z thomas.diesler(a)jboss.com $
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.core.utils.JBossWSEntityResolver;
-import org.xml.sax.EntityResolver;
-import org.xml.sax.InputSource;
-
-import com.ibm.wsdl.xml.WSDLReaderImpl;
-
-import javax.wsdl.Definition;
-import javax.wsdl.WSDLException;
-import javax.wsdl.factory.WSDLFactory;
-import javax.wsdl.xml.WSDLLocator;
-import javax.wsdl.xml.WSDLReader;
-import java.io.IOException;
-import java.io.InputStream;
-import java.net.MalformedURLException;
-import java.net.URL;
-
-/**
- * A factory that creates a WSDL-1.1 <code>Definition</code> from an URL.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 15-April-2004
- */
-public class WSDL11DefinitionFactory
-{
- // provide logging
- private static Logger log = Logger.getLogger(WSDL11DefinitionFactory.class);
-
- // This feature is set by default in wsdl4j, it means the object structore contains
the imported arguments
- public static final String FEATURE_IMPORT_DOCUMENTS =
"javax.wsdl.importDocuments";
- // Set this feature for additional debugging output
- public static final String FEATURE_VERBOSE = "javax.wsdl.verbose";
-
- // The WSDLReader that is used by this factory
- private WSDLReader wsdlReader;
-
- // Hide constructor
- private WSDL11DefinitionFactory() throws WSDLException
- {
- WSDLFactory wsdlFactory = WSDLFactory.newInstance();
- wsdlReader = wsdlFactory.newWSDLReader();
- wsdlReader.setFeature(WSDL11DefinitionFactory.FEATURE_VERBOSE, false);
- }
-
- /** Create a new instance of a wsdl factory */
- public static WSDL11DefinitionFactory newInstance() throws WSDLException
- {
- return new WSDL11DefinitionFactory();
- }
-
- /** Set a feature on the underlying reader */
- public void setFeature(String name, boolean value) throws IllegalArgumentException
- {
- wsdlReader.setFeature(name, value);
- }
-
- /**
- * Read the wsdl document from the given URL
- */
- public Definition parse(URL wsdlLocation) throws WSDLException
- {
- if (wsdlLocation == null)
- throw new IllegalArgumentException("URL cannot be null");
-
- log.trace("parse: " + wsdlLocation.toExternalForm());
-
- EntityResolver entityResolver = new JBossWSEntityResolver();
-
- // Set EntityResolver in patched version of wsdl4j-1.5.2jboss
- ((WSDLReaderImpl)wsdlReader).setEntityResolver(entityResolver);
-
- Definition wsdlDefinition = wsdlReader.readWSDL(new WSDLLocatorImpl(entityResolver,
wsdlLocation));
- return wsdlDefinition;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDL11DefinitionFactory.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDL11DefinitionFactory.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Reader.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Reader.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Reader.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,1170 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.tools.wsdl;
-
-// $Id$
-
-import java.io.File;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-
-import javax.wsdl.Binding;
-import javax.wsdl.BindingInput;
-import javax.wsdl.BindingOperation;
-import javax.wsdl.BindingOutput;
-import javax.wsdl.Definition;
-import javax.wsdl.Fault;
-import javax.wsdl.Import;
-import javax.wsdl.Input;
-import javax.wsdl.Message;
-import javax.wsdl.Operation;
-import javax.wsdl.Output;
-import javax.wsdl.Part;
-import javax.wsdl.Port;
-import javax.wsdl.PortType;
-import javax.wsdl.Service;
-import javax.wsdl.Types;
-import javax.wsdl.extensions.ExtensibilityElement;
-import javax.wsdl.extensions.UnknownExtensibilityElement;
-import javax.wsdl.extensions.mime.MIMEContent;
-import javax.wsdl.extensions.mime.MIMEMultipartRelated;
-import javax.wsdl.extensions.mime.MIMEPart;
-import javax.wsdl.extensions.schema.Schema;
-import javax.wsdl.extensions.soap.SOAPAddress;
-import javax.wsdl.extensions.soap.SOAPBinding;
-import javax.wsdl.extensions.soap.SOAPBody;
-import javax.wsdl.extensions.soap.SOAPHeader;
-import javax.wsdl.extensions.soap.SOAPOperation;
-import javax.xml.namespace.QName;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.Constants;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.jaxrpc.Style;
-import org.jboss.ws.core.utils.DOMUtils;
-import org.jboss.ws.core.utils.DOMWriter;
-import org.jboss.ws.metadata.wsdl.NCName;
-import org.jboss.ws.metadata.wsdl.WSDLBinding;
-import org.jboss.ws.metadata.wsdl.WSDLBindingOperation;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLEndpoint;
-import org.jboss.ws.metadata.wsdl.WSDLInterface;
-import org.jboss.ws.metadata.wsdl.WSDLInterfaceFault;
-import org.jboss.ws.metadata.wsdl.WSDLInterfaceOperation;
-import org.jboss.ws.metadata.wsdl.WSDLInterfaceOperationInput;
-import org.jboss.ws.metadata.wsdl.WSDLInterfaceOperationOutfault;
-import org.jboss.ws.metadata.wsdl.WSDLInterfaceOperationOutput;
-import org.jboss.ws.metadata.wsdl.WSDLProperty;
-import org.jboss.ws.metadata.wsdl.WSDLService;
-import org.jboss.ws.metadata.wsdl.WSDLTypes;
-import org.jboss.ws.metadata.wsdl.WSDLUtils;
-import org.jboss.ws.metadata.wsdl.XSModelTypes;
-import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel;
-import org.jboss.ws.metadata.wsdl.xsd.SchemaUtils;
-import org.jboss.ws.tools.JavaToXSD;
-import org.w3c.dom.Attr;
-import org.w3c.dom.Element;
-import org.w3c.dom.NamedNodeMap;
-import org.w3c.dom.Node;
-
-/**
- * A helper that translates a WSDL-1.1 object graph into a WSDL-2.0 object graph.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @author Anil.Saldhana(a)jboss.org
- * @since 10-Oct-2004
- */
-public class WSDL11Reader
-{
- // provide logging
- private static final Logger log = Logger.getLogger(WSDL11Reader.class);
-
- private static QName SOAP12_BINDING = new QName(Constants.NS_SOAP12,
"binding");
- private static QName SOAP12_BODY = new QName(Constants.NS_SOAP12, "body");
- private static QName SOAP12_OPERATION = new QName(Constants.NS_SOAP12,
"operation");
- private static QName SOAP12_ADDRESS = new QName(Constants.NS_SOAP12,
"address");
-
- private WSDLDefinitions destWsdl;
-
- // Maps wsdl message parts to their corresponding element names
- private Map<String, QName> messagePartToElementMap = new HashMap<String,
QName>();
-
- // Map of <ns,URL> for schemalocation keyed by namespace
- private Map<String, URL> schemaLocationsMap = new HashMap<String, URL>();
-
- // Temporary files used by this reader.
- private List<File> tempFiles = new ArrayList<File>();
-
- /**
- * Takes a WSDL11 Definition element and converts into
- * our object graph that has been developed for WSDL20
- *
- * @param srcWsdl The src WSDL11 definition
- * @param wsdlLoc The source location, if null we cannot process imports or includes
- */
- public WSDLDefinitions processDefinition(Definition srcWsdl, URL wsdlLoc) throws
IOException
- {
- log.trace("processDefinition: " + wsdlLoc);
-
- destWsdl = new WSDLDefinitions();
- destWsdl.setWsdlTypes(new XSModelTypes());
- destWsdl.setWsdlOneOneDefinition(srcWsdl);
- destWsdl.setWsdlNamespace(Constants.NS_WSDL11);
-
- processNamespaces(srcWsdl);
- processTypes(srcWsdl, wsdlLoc);
- processServices(srcWsdl);
-
- if (getAllDefinedBindings(srcWsdl).size() != destWsdl.getBindings().length)
- processUnreachableBindings(srcWsdl);
-
- cleanupTemporaryFiles();
-
- return destWsdl;
- }
-
- private void cleanupTemporaryFiles()
- {
- for (File current : tempFiles)
- {
- current.delete();
- }
- }
-
- // process all bindings not within service separetly
- private void processUnreachableBindings(Definition srcWsdl)
- {
- log.trace("processUnreachableBindings");
-
- Iterator it = getAllDefinedBindings(srcWsdl).values().iterator();
- while (it.hasNext())
- {
- Binding srcBinding = (Binding)it.next();
- QName srcQName = srcBinding.getQName();
-
- WSDLBinding destBinding = destWsdl.getBinding(new NCName(srcQName));
- if (destBinding == null)
- {
- processBinding(srcWsdl, srcBinding);
- }
- }
- }
-
- private void processNamespaces(Definition srcWsdl)
- {
- String targetNS = srcWsdl.getTargetNamespace();
- destWsdl.setTargetNamespace(targetNS);
-
- // Copy wsdl namespaces
- Map nsMap = srcWsdl.getNamespaces();
- Iterator iter = nsMap.entrySet().iterator();
- while (iter.hasNext())
- {
- Map.Entry entry = (Map.Entry)iter.next();
- String prefix = (String)entry.getKey();
- String nsURI = (String)entry.getValue();
- destWsdl.registerNamespaceURI(nsURI, prefix);
- }
- }
-
- private void processTypes(Definition srcWsdl, URL wsdlLoc) throws IOException
- {
- log.trace("BEGIN processTypes: " + wsdlLoc);
-
- WSDLTypes destTypes = destWsdl.getWsdlTypes();
-
- Types srcTypes = srcWsdl.getTypes();
- if (srcTypes != null && srcTypes.getExtensibilityElements().size() > 0)
- {
- List extElements = srcTypes.getExtensibilityElements();
- int len = extElements.size();
-
- for (int i = 0; i < len; i++)
- {
- ExtensibilityElement extElement = (ExtensibilityElement)extElements.get(i);
-
- Element domElement;
- if (extElement instanceof Schema)
- {
- domElement = ((Schema)extElement).getElement();
- }
- else if (extElement instanceof UnknownExtensibilityElement)
- {
- domElement = ((UnknownExtensibilityElement)extElement).getElement();
- }
- else
- {
- throw new WSException("Unsupported extensibility element: " +
extElement);
- }
-
- Element domElementClone = (Element)domElement.cloneNode(true);
- copyParentNamespaceDeclarations(domElementClone, domElement);
-
- String localname = domElementClone.getLocalName();
- try
- {
- if ("import".equals(localname))
- {
- processSchemaImport(destTypes, wsdlLoc, domElementClone);
- }
- else if ("schema".equals(localname))
- {
- processSchemaInclude(destTypes, wsdlLoc, domElementClone);
- }
- else
- {
- throw new IllegalArgumentException("Unsuported schema element:
" + localname);
- }
- }
- catch (IOException e)
- {
- throw new WSException("Cannot extract schema definition", e);
- }
- }
-
- if (len > 0)
- {
- JavaToXSD jxsd = new JavaToXSD();
- JBossXSModel xsmodel = jxsd.parseSchema(schemaLocationsMap);
- WSDLUtils.addSchemaModel(destTypes, destWsdl.getTargetNamespace(), xsmodel);
- }
- }
- else
- {
- log.trace("Empty wsdl types element, processing imports");
- Iterator it = srcWsdl.getImports().values().iterator();
- while (it.hasNext())
- {
- List<Import> srcImports = (List<Import>)it.next();
- for (Import srcImport : srcImports)
- {
- Definition impDefinition = srcImport.getDefinition();
- String impLoc = impDefinition.getDocumentBaseURI();
- processTypes(impDefinition, new URL(impLoc));
- }
- }
- }
-
- log.trace("END processTypes: " + wsdlLoc + "\n" + destTypes);
- }
-
- private void copyParentNamespaceDeclarations(Element destElement, Element srcElement)
- {
- Node parent = srcElement.getParentNode();
- while (parent != null)
- {
- if (parent.hasAttributes())
- {
- NamedNodeMap attributes = parent.getAttributes();
- for (int i = 0; i < attributes.getLength(); i++)
- {
- Attr attr = (Attr)attributes.item(i);
- String name = attr.getName();
- String value = attr.getValue();
- if (name.startsWith("xmlns:") &&
destElement.hasAttribute(name) == false)
- destElement.setAttribute(name, value);
- }
- }
- parent = parent.getParentNode();
- }
- }
-
- private void processSchemaImport(WSDLTypes types, URL wsdlLoc, Element importEl)
throws IOException
- {
- if (wsdlLoc == null)
- throw new IllegalArgumentException("Cannot process import, parent location
not set");
-
- log.trace("processSchemaImport: " + wsdlLoc);
-
- String location = getOptionalAttribute(importEl, "schemaLocation");
- if (location == null)
- throw new IllegalArgumentException("schemaLocation is null for
xsd:import");
-
- URL locationURL = getLocationURL(wsdlLoc, location);
- Element rootElement = DOMUtils.parse(locationURL.openStream());
- URL newloc = processSchemaInclude(types, locationURL, rootElement);
- if (newloc != null)
- importEl.setAttribute("schemaLocation", newloc.toExternalForm());
- }
-
- private URL processSchemaInclude(WSDLTypes types, URL wsdlLoc, Element schemaEl)
throws IOException
- {
- if (wsdlLoc == null)
- throw new IllegalArgumentException("Cannot process iclude, parent location
not set");
-
- File tmpFile = null;
- if (wsdlLoc == null)
- throw new IllegalArgumentException("Cannot process include, parent location
not set");
-
- log.trace("processSchemaInclude: " + wsdlLoc);
-
- String schemaPrefix = schemaEl.getPrefix();
-
- String importTag = (schemaPrefix == null) ? "import" : schemaPrefix +
":import";
- Element importElement =
schemaEl.getOwnerDocument().createElementNS(Constants.NS_SCHEMA_XSD, importTag);
- importElement.setAttribute("namespace", Constants.URI_SOAP11_ENC);
- schemaEl.insertBefore(importElement, DOMUtils.getFirstChildElement(schemaEl));
-
- // Handle schema includes
- Iterator it = DOMUtils.getChildElements(schemaEl, new
QName(Constants.NS_SCHEMA_XSD, "include"));
- while (it.hasNext())
- {
- Element includeEl = (Element)it.next();
- String location = getOptionalAttribute(includeEl, "schemaLocation");
- if (location == null)
- throw new IllegalArgumentException("schemaLocation is null for
xsd:include");
-
- URL locationURL = getLocationURL(wsdlLoc, location);
- Element rootElement = DOMUtils.parse(locationURL.openStream());
- URL newloc = processSchemaInclude(types, locationURL, rootElement);
- if (newloc != null)
- includeEl.setAttribute("schemaLocation", newloc.toExternalForm());
- }
-
- String targetNS = getOptionalAttribute(schemaEl, "targetNamespace");
- if (targetNS != null)
- {
- log.trace("processSchemaInclude: [targetNS=" + targetNS +
",parentURL=" + wsdlLoc + "]");
-
- tmpFile = SchemaUtils.getSchemaTempFile(targetNS);
- tempFiles.add(tmpFile);
-
- FileWriter fwrite = new FileWriter(tmpFile);
- new DOMWriter(fwrite).setPrettyprint(true).print(schemaEl);
- fwrite.close();
-
- schemaLocationsMap.put(targetNS, tmpFile.toURL());
- }
-
- // schema elements that have no target namespace are skipped
- //
- // <xsd:schema>
- // <xsd:import
namespace="http://org.jboss.webservice/example/types"
schemaLocation="Hello.xsd"/>
- // <xsd:import
namespace="http://org.jboss.webservice/example/types/arrays/org/jboss/test/webservice/admindevel"
schemaLocation="subdir/HelloArr.xsd"/>
- // </xsd:schema>
- if (targetNS == null)
- {
- log.trace("Schema element without target namespace in: " + wsdlLoc);
- }
-
- handleSchemaImports(schemaEl, wsdlLoc);
-
- return tmpFile != null ? tmpFile.toURL() : null;
- }
-
- private void handleSchemaImports(Element schemaEl, URL wsdlLoc) throws
MalformedURLException
- {
- if (wsdlLoc == null)
- throw new IllegalArgumentException("Cannot process import, parent location
not set");
-
- Iterator it = DOMUtils.getChildElements(schemaEl, new
QName(Constants.NS_SCHEMA_XSD, "import"));
- while (it.hasNext())
- {
- Element includeEl = (Element)it.next();
- String schemaLocation = getOptionalAttribute(includeEl,
"schemaLocation");
- String namespace = getOptionalAttribute(includeEl, "namespace");
-
- log.trace("handleSchemaImport: [namespace=" + namespace +
",schemaLocation=" + schemaLocation + "]");
-
- // Skip, let the entity resolver resolve these
- if (namespace != null && schemaLocation != null)
- {
- URL currLoc = getLocationURL(wsdlLoc, schemaLocation);
- schemaLocationsMap.put(namespace, currLoc);
- }
- else
- {
- log.trace("Skip schema import: [namespace=" + namespace +
",schemaLocation=" + schemaLocation + "]");
- }
- }
- }
-
- private URL getLocationURL(URL parentURL, String location) throws
MalformedURLException
- {
- log.trace("getLocationURL: [location=" + location + ",parent="
+ parentURL + "]");
-
- URL locationURL = null;
- try
- {
- locationURL = new URL(location);
- }
- catch (MalformedURLException e)
- {
- // ignore malformed URL
- }
-
- if (locationURL == null)
- {
- String parentProtocol = parentURL.getProtocol();
- if (parentProtocol.equals("file") &&
!location.startsWith("/"))
- {
- String path = parentURL.toExternalForm();
- path = path.substring(0, path.lastIndexOf("/"));
- locationURL = new URL(path + "/" + location);
- }
- else if (parentProtocol.startsWith("http") &&
location.startsWith("/"))
- {
- String path = parentProtocol + "://" + parentURL.getHost() +
":" + parentURL.getPort();
- locationURL = new URL(path + location);
- }
- else if (parentProtocol.equals("jar") &&
!location.startsWith("/"))
- {
- String path = parentURL.toExternalForm();
- path = path.substring(0, path.lastIndexOf("/"));
- locationURL = new URL(path + "/" + location);
- }
- else
- {
- throw new WSException("Unsupported schemaLocation: " + location);
- }
- }
-
- log.trace("Modified schemaLocation: " + locationURL);
- return locationURL;
- }
-
- private void processPortType(Definition srcWsdl, PortType srcPortType)
- {
- log.trace("processPortType: " + srcPortType.getQName());
-
- QName qname = srcPortType.getQName();
- NCName ncName = new NCName(qname);
- if (destWsdl.getInterface(ncName) == null)
- {
- WSDLInterface destInterface = new WSDLInterface(destWsdl);
- destInterface.setName(ncName);
- destInterface.setQName(qname);
-
- // eventing extensions
- QName eventSourceProp =
(QName)srcPortType.getExtensionAttribute(Constants.WSDL_ATTRIBUTE_WSE_EVENTSOURCE);
- if (eventSourceProp != null &&
eventSourceProp.getLocalPart().equals(Boolean.TRUE.toString()))
- {
- destInterface.addProperty(new
WSDLProperty(Constants.WSDL_PROPERTY_EVENTSOURCE, eventSourceProp.getLocalPart()));
- }
-
- destWsdl.addInterface(destInterface);
-
- processPortTypeOperations(srcWsdl, destInterface, srcPortType);
- }
- }
-
- private void processPortTypeOperations(Definition srcWsdl, WSDLInterface
destInterface, PortType srcPortType)
- {
- Iterator itOperations = srcPortType.getOperations().iterator();
- while (itOperations.hasNext())
- {
- Operation srcOperation = (Operation)itOperations.next();
-
- WSDLInterfaceOperation destOperation = new
WSDLInterfaceOperation(destInterface);
- destOperation.setName(new NCName(srcOperation.getName()));
-
- processOperationInput(srcWsdl, srcOperation, destOperation, srcPortType);
- processOperationOutput(srcWsdl, srcOperation, destOperation, srcPortType);
- processOperationFaults(srcOperation, destOperation, destInterface);
-
- destInterface.addOperation(destOperation);
- }
- }
-
- private void processOperationInput(Definition srcWsdl, Operation srcOperation,
WSDLInterfaceOperation destOperation, PortType srcPortType)
- {
- Input srcInput = srcOperation.getInput();
- if (srcInput != null)
- {
- Message srcMessage = srcInput.getMessage();
- log.trace("processOperationInput: " + srcMessage.getQName());
-
- QName wsaAction =
(QName)srcInput.getExtensionAttribute(Constants.WSDL_ATTRIBUTE_WSA_ACTION);
- if (wsaAction != null)
- destOperation.addProperty(new WSDLProperty(Constants.WSDL_PROPERTY_ACTION_IN,
wsaAction.getLocalPart()));
-
- List paramOrder = srcOperation.getParameterOrdering();
- Iterator itMessageParts = srcMessage.getOrderedParts(paramOrder).iterator();
- while (itMessageParts.hasNext())
- {
- WSDLInterfaceOperationInput destInput = new
WSDLInterfaceOperationInput(destOperation);
-
- Part srcPart = (Part)itMessageParts.next();
- QName elementName = messagePartToElementName(srcWsdl, srcPortType,
srcOperation, srcMessage, srcPart);
- destInput.setElement(elementName);
-
- //Lets remember the Message name
- destInput.addProperty(new WSDLProperty(Constants.WSDL_PROPERTY_MESSAGE_NAME,
srcMessage.getQName().getLocalPart()));
- destOperation.addProperty(new
WSDLProperty(Constants.WSDL_PROPERTY_MESSAGE_NAME_IN,
srcMessage.getQName().getLocalPart()));
-
- // Remember the original part name
- WSDLProperty wsdlProperty = new
WSDLProperty(Constants.WSDL_PROPERTY_PART_NAME, srcPart.getName());
- destInput.addProperty(wsdlProperty);
-
- // If the Part references a type rather than an element
- // we transport the xmlType as property
- QName xmlType = srcPart.getTypeName();
- if (xmlType != null)
- {
- xmlType = destWsdl.registerQName(xmlType);
- String value = xmlType.getPrefix() + ":" +
xmlType.getLocalPart();
- wsdlProperty = new WSDLProperty(Constants.WSDL_PROPERTY_RPC_XMLTYPE,
value);
- destInput.addProperty(wsdlProperty);
- }
-
- destOperation.addInput(destInput);
- }
- }
- }
-
- private void processOperationOutput(Definition srcWsdl, Operation srcOperation,
WSDLInterfaceOperation destOperation, PortType srcPortType)
- {
- Output srcOutput = srcOperation.getOutput();
- if (srcOutput != null)
- {
- Message srcMessage = srcOutput.getMessage();
- log.trace("processOperationOutput: " + srcMessage.getQName());
-
- destOperation.setPattern(Constants.WSDL20_PATTERN_IN_OUT);
- QName wsaAction =
(QName)srcOutput.getExtensionAttribute(Constants.WSDL_ATTRIBUTE_WSA_ACTION);
- if (wsaAction != null)
- destOperation.addProperty(new
WSDLProperty(Constants.WSDL_PROPERTY_ACTION_OUT, wsaAction.getLocalPart()));
-
- Iterator itMessageParts = srcMessage.getOrderedParts(null).iterator();
- while (itMessageParts.hasNext())
- {
- WSDLInterfaceOperationOutput destOutput = new
WSDLInterfaceOperationOutput(destOperation);
-
- Part srcPart = (Part)itMessageParts.next();
- QName elementName = messagePartToElementName(srcWsdl, srcPortType,
srcOperation, srcMessage, srcPart);
- destOutput.setElement(elementName);
-
- //Lets remember the Message name
- destOutput.addProperty(new WSDLProperty(Constants.WSDL_PROPERTY_MESSAGE_NAME,
srcMessage.getQName().getLocalPart()));
- destOperation.addProperty(new
WSDLProperty(Constants.WSDL_PROPERTY_MESSAGE_NAME_OUT,
srcMessage.getQName().getLocalPart()));
-
- // Remember the original part name
- WSDLProperty wsdlProperty = new
WSDLProperty(Constants.WSDL_PROPERTY_PART_NAME, srcPart.getName());
- destOutput.addProperty(wsdlProperty);
-
- // If the Part references a type rather than an element
- // we transport the xmlType as property
- QName xmlType = srcPart.getTypeName();
- if (xmlType != null)
- {
- xmlType = destWsdl.registerQName(xmlType);
- String value = xmlType.getPrefix() + ":" +
xmlType.getLocalPart();
- wsdlProperty = new WSDLProperty(Constants.WSDL_PROPERTY_RPC_XMLTYPE,
value);
- destOutput.addProperty(wsdlProperty);
- }
-
- destOperation.addOutput(destOutput);
- }
- }
- else
- {
- destOperation.setPattern(Constants.WSDL20_PATTERN_IN_ONLY);
- }
- }
-
- private void processOperationFaults(Operation srcOperation, WSDLInterfaceOperation
destOperation, WSDLInterface destInterface)
- {
-
- Map faults = srcOperation.getFaults();
- Iterator itFaults = faults.values().iterator();
- while (itFaults.hasNext())
- {
- Fault srcFault = (Fault)itFaults.next();
- processOperationFault(destOperation, destInterface, srcFault);
- }
- }
-
- private void processOperationFault(WSDLInterfaceOperation destOperation, WSDLInterface
destInterface, Fault srcFault)
- {
- String faultName = srcFault.getName();
- log.trace("processOperationFault: " + faultName);
-
- WSDLInterfaceFault destFault = new WSDLInterfaceFault(destInterface);
- NCName ncName = new NCName(faultName);
- destFault.setName(ncName);
-
- Message message = srcFault.getMessage();
- QName messageName = message.getQName();
-
- Map partsMap = message.getParts();
- if (partsMap.size() != 1)
- throw new WSException("Unsupported number of fault parts in message "
+ messageName);
-
- Part part = (Part)partsMap.values().iterator().next();
- QName xmlName = part.getElementName();
- QName xmlType = part.getTypeName();
-
- destFault.setXmlType(xmlType);
- if (xmlName != null)
- {
- destFault.setXmlName(xmlName);
- }
- else
- {
- destFault.setXmlName(messageName);
- log.warn("Unsupported fault message part in message: " +
messageName);
- }
-
- WSDLInterfaceFault prevFault = destInterface.getFault(ncName);
- if (prevFault != null && prevFault.getName().equals(ncName) == false)
- throw new WSException("Fault name must be unique: " + faultName);
-
- // Add the fault to the interface
- destInterface.addFault(destFault);
-
- // Add the fault refererence to the operation
- WSDLInterfaceOperationOutfault opOutFault = new
WSDLInterfaceOperationOutfault(destOperation);
- opOutFault.setRef(new QName(destWsdl.getTargetNamespace(), faultName));
- destOperation.addOutfault(opOutFault);
- }
-
- /** Translate the message part name into an XML element name.
- */
- private QName messagePartToElementName(Definition srcWsdl, PortType srcPortType,
Operation srcOperation, Message srcMessage, Part srcPart)
- {
- // <part name="param" element="tns:SomeType" />
- QName xmlName = srcPart.getElementName();
- if (xmlName != null)
- xmlName = destWsdl.registerQName(xmlName);
-
- // <part name="param" type="xsd:string" />
- if (xmlName == null)
- {
- // Use the part name as fallback
- xmlName = new QName(srcPart.getName());
-
- // The binding may define a different xmlName for this message part (i.e. in
case of header parts)
- // The rest of this implementation tries to discover that binding.
-
- // Find the binding for this portType
- Binding srcBinding = null;
- Iterator itBindings = getAllDefinedBindings(srcWsdl).values().iterator();
- while (srcBinding == null && itBindings.hasNext())
- {
- Binding binding = (Binding)itBindings.next();
- if (binding.getPortType().equals(srcPortType))
- srcBinding = binding;
- }
-
- if (srcBinding == null)
- throw new WSException("Cannot find binding for: " +
srcPortType.getQName());
-
- String srcOperationName = srcOperation.getName();
- BindingOperation srcBindingOperation =
srcBinding.getBindingOperation(srcOperationName, null, null);
- if (srcBindingOperation == null)
- throw new WSException("Cannot find binding operation for: " +
srcOperationName);
-
- // Scan the binding input for a <soap:header> for this message part
- BindingInput srcBindingInput = srcBindingOperation.getBindingInput();
- if (srcBindingInput != null)
- {
- Iterator itExt = srcBindingInput.getExtensibilityElements().iterator();
- while (itExt.hasNext())
- {
- ExtensibilityElement extEl = (ExtensibilityElement)itExt.next();
- if (extEl instanceof SOAPHeader)
- {
- SOAPHeader header = (SOAPHeader)extEl;
- QName messageQName = header.getMessage();
- String partName = header.getPart();
- if (messageQName.equals(srcMessage.getQName()) &&
partName.equals(srcPart.getName()))
- {
- String namespaceURI = header.getNamespaceURI();
- if (namespaceURI != null)
- {
- xmlName = new QName(namespaceURI, partName);
- xmlName = destWsdl.registerQName(xmlName);
- }
- }
- }
- }
- }
-
- // Scan the binding output for a <soap:header> for this message part
- BindingOutput srcBindingOutput = srcBindingOperation.getBindingOutput();
- if (srcBindingOutput != null)
- {
- Iterator itExt = srcBindingOutput.getExtensibilityElements().iterator();
- while (itExt.hasNext())
- {
- ExtensibilityElement extEl = (ExtensibilityElement)itExt.next();
- if (extEl instanceof SOAPHeader)
- {
- SOAPHeader header = (SOAPHeader)extEl;
- QName messageQName = header.getMessage();
- String partName = header.getPart();
- if (messageQName.equals(srcMessage.getQName()) &&
partName.equals(srcPart.getName()))
- {
- String namespaceURI = header.getNamespaceURI();
- if (namespaceURI != null)
- {
- xmlName = new QName(namespaceURI, partName);
- xmlName = destWsdl.registerQName(xmlName);
- }
- }
- }
- }
- }
- }
-
- // cache the element name for processing of the bindings
- String key = srcMessage.getQName() + "->" + srcPart.getName();
- messagePartToElementMap.put(key, xmlName);
-
- return xmlName;
- }
-
- private void processBinding(Definition srcWsdl, Binding srcBinding)
- {
- QName srcBindingQName = srcBinding.getQName();
- log.trace("processBinding: " + srcBindingQName);
-
- NCName ncName = new NCName(srcBindingQName);
- if (destWsdl.getBinding(ncName) == null)
- {
- PortType srcPortType = srcBinding.getPortType();
- if (srcPortType == null)
- throw new WSException("Cannot find port type for binding: " +
ncName);
-
- processPortType(srcWsdl, srcPortType);
-
- WSDLBinding destBinding = new WSDLBinding(destWsdl);
- destBinding.setQName(srcBindingQName);
- destBinding.setName(ncName);
- destBinding.setInterfaceName(srcPortType.getQName());
-
- String bindingStyle = Style.getDefaultStyle().toString();
- List<ExtensibilityElement> extList =
srcBinding.getExtensibilityElements();
- for (ExtensibilityElement extElement : extList)
- {
- QName elementType = extElement.getElementType();
- if (extElement instanceof SOAPBinding)
- {
- destBinding.setType(Constants.NS_SOAP11);
- SOAPBinding soapBinding = (SOAPBinding)extElement;
- bindingStyle = soapBinding.getStyle();
- }
- else if (SOAP12_BINDING.equals(elementType))
- {
- destBinding.setType(Constants.NS_SOAP12);
- Element domElement =
((UnknownExtensibilityElement)extElement).getElement();
- bindingStyle = getOptionalAttribute(domElement, "style");
- }
- }
- destWsdl.addBinding(destBinding);
- processBindingOperations(destBinding, srcBinding, bindingStyle);
- }
- }
-
- private Map getAllDefinedBindings(Definition srcWsdl)
- {
- Map<QName, Binding> retMap = new LinkedHashMap<QName, Binding>();
- Map srcBindings = srcWsdl.getBindings();
- Iterator itBinding = srcBindings.values().iterator();
- while (itBinding.hasNext())
- {
- Binding srcBinding = (Binding)itBinding.next();
- retMap.put(srcBinding.getQName(), srcBinding);
- }
-
- // Bindings not available when pulled in through <wsdl:import>
- //
http://sourceforge.net/tracker/index.php?func=detail&aid=1240323&...
- Iterator itService = srcWsdl.getServices().values().iterator();
- while (itService.hasNext())
- {
- Service srcService = (Service)itService.next();
- Iterator itPort = srcService.getPorts().values().iterator();
- while (itPort.hasNext())
- {
- Port srcPort = (Port)itPort.next();
- Binding srcBinding = srcPort.getBinding();
- retMap.put(srcBinding.getQName(), srcBinding);
- }
- }
- return retMap;
- }
-
- private void processBindingOperations(WSDLBinding destBinding, Binding srcBinding,
String bindingStyle)
- {
- Iterator it = srcBinding.getBindingOperations().iterator();
- while (it.hasNext())
- {
- BindingOperation srcBindingOperation = (BindingOperation)it.next();
- processBindingOperation(destBinding, bindingStyle, srcBindingOperation);
- }
- }
-
- private void processBindingOperation(WSDLBinding destBinding, String bindingStyle,
BindingOperation srcBindingOperation)
- {
- String srcBindingName = srcBindingOperation.getName();
- log.trace("processBindingOperation: " + srcBindingName);
-
- WSDLInterface destInterface = destBinding.getInterface();
- String namespaceURI = destInterface.getQName().getNamespaceURI();
-
- WSDLBindingOperation destBindingOperation = new WSDLBindingOperation(destBinding);
- QName refQName = new QName(namespaceURI, srcBindingName);
- destBindingOperation.setRef(refQName);
- destBinding.addOperation(destBindingOperation);
-
- String opName = srcBindingName;
- WSDLInterfaceOperation destIntfOperation = destInterface.getOperation(new
NCName(opName));
-
- // Process soap:operation@soapAction, soap:operation@style
- String operationStyle = null;
- List<ExtensibilityElement> extList =
srcBindingOperation.getExtensibilityElements();
- for (ExtensibilityElement extElement : extList)
- {
- QName elementType = extElement.getElementType();
- if (extElement instanceof SOAPOperation)
- {
- SOAPOperation soapOp = (SOAPOperation)extElement;
- destBindingOperation.setSOAPAction(soapOp.getSoapActionURI());
- operationStyle = soapOp.getStyle();
- }
- else if (SOAP12_OPERATION.equals(elementType))
- {
- Element domElement = ((UnknownExtensibilityElement)extElement).getElement();
- operationStyle = getOptionalAttribute(domElement, "style");
- destBindingOperation.setSOAPAction(getOptionalAttribute(domElement,
"soapAction"));
- }
- }
- destIntfOperation.setStyle(operationStyle != null ? operationStyle :
bindingStyle);
-
- BindingInput srcBindingInput = srcBindingOperation.getBindingInput();
- if (srcBindingInput != null)
- {
- processBindingInput(destBindingOperation, destIntfOperation, srcBindingInput);
- }
-
- BindingOutput srcBindingOutput = srcBindingOperation.getBindingOutput();
- if (srcBindingOutput != null)
- {
- processBindingOutput(destBindingOperation, destIntfOperation,
srcBindingOutput);
- }
- }
-
- private void processBindingInput(WSDLBindingOperation destBindingOperation,
WSDLInterfaceOperation destIntfOperation, BindingInput srcBindingInput)
- {
- log.trace("processBindingInput");
-
- QName soap11Body = new QName(Constants.NS_SOAP11, "body");
- List<ExtensibilityElement> extList =
srcBindingInput.getExtensibilityElements();
- for (ExtensibilityElement extElement : extList)
- {
- QName elementType = extElement.getElementType();
- if (soap11Body.equals(elementType) || SOAP12_BODY.equals(elementType))
- {
- processEncodingStyle(extElement, destBindingOperation);
- }
- else if (extElement instanceof SOAPHeader)
- {
- SOAPHeader header = (SOAPHeader)extElement;
- QName messageQName = header.getMessage();
- String partName = header.getPart();
-
- // get cached element name for processing of the bindings
- String key = messageQName + "->" + partName;
- QName elementName = (QName)messagePartToElementMap.get(key);
- if (elementName != null)
- {
- WSDLInterfaceOperationInput destIntfInput =
destIntfOperation.getInput(elementName);
- if (destIntfInput == null)
- throw new WSException("Cannot find interface input for element:
" + elementName);
-
- WSDLProperty wsdlProperty = new
WSDLProperty(Constants.WSDL_PROPERTY_APPLICATION_DATA, false, null, null);
- destIntfInput.addProperty(wsdlProperty);
- }
- }
- else if (extElement instanceof MIMEMultipartRelated)
- {
- MIMEMultipartRelated related = (MIMEMultipartRelated)extElement;
- Iterator i = related.getMIMEParts().iterator();
- while (i.hasNext())
- {
- MIMEPart part = (MIMEPart)i.next();
- Iterator j = part.getExtensibilityElements().iterator();
- String name = null;
- String types = null;
-
- while (j.hasNext())
- {
- ExtensibilityElement inner = (ExtensibilityElement)j.next();
- if (inner instanceof MIMEContent)
- {
- MIMEContent content = (MIMEContent)inner;
- name = content.getPart();
- if (types == null)
- {
- types = content.getType();
- }
- else
- {
- types += "," + content.getType();
- }
- }
- }
-
- // Found content types in this part
- if (name != null)
- {
- // A mime part must be defined as <part type="">
- QName elementName = new QName(name);
- WSDLInterfaceOperationInput destIntfInput =
destIntfOperation.getInput(elementName);
- if (destIntfInput == null)
- throw new WSException("Cannot find interface input for element:
" + elementName);
-
- WSDLProperty wsdlProperty = new
WSDLProperty(Constants.WSDL_PROPERTY_WSDL11_MIME_TYPE, false, types, null);
- destIntfInput.addProperty(wsdlProperty);
- }
- }
- }
- }
- }
-
- private void processBindingOutput(WSDLBindingOperation destBindingOperation,
WSDLInterfaceOperation destIntfOperation, BindingOutput srcBindingOutput)
- {
- log.trace("processBindingOutput");
-
- List<ExtensibilityElement> extList =
srcBindingOutput.getExtensibilityElements();
- for (ExtensibilityElement extElement : extList)
- {
- QName elementType = extElement.getElementType();
- if (extElement instanceof SOAPBody || SOAP12_BODY.equals(elementType))
- {
- processEncodingStyle(extElement, destBindingOperation);
- }
- else if (extElement instanceof SOAPHeader)
- {
- SOAPHeader header = (SOAPHeader)extElement;
- QName messageQName = header.getMessage();
- String partName = header.getPart();
-
- // get cached element name for processing of the bindings
- String key = messageQName + "->" + partName;
- QName elementName = (QName)messagePartToElementMap.get(key);
- if (elementName != null)
- {
- WSDLInterfaceOperationOutput destIntfOutput =
destIntfOperation.getOutput(elementName);
- if (destIntfOutput == null)
- throw new WSException("Cannot find interface output for element:
" + elementName);
-
- WSDLProperty wsdlProperty = new
WSDLProperty(Constants.WSDL_PROPERTY_APPLICATION_DATA, false, null, null);
- destIntfOutput.addProperty(wsdlProperty);
- }
- }
- else if (extElement instanceof MIMEMultipartRelated)
- {
- MIMEMultipartRelated related = (MIMEMultipartRelated)extElement;
- Iterator i = related.getMIMEParts().iterator();
- while (i.hasNext())
- {
- MIMEPart part = (MIMEPart)i.next();
- Iterator j = part.getExtensibilityElements().iterator();
- String name = null;
- String types = null;
-
- while (j.hasNext())
- {
- ExtensibilityElement inner = (ExtensibilityElement)j.next();
- if (inner instanceof MIMEContent)
- {
- MIMEContent content = (MIMEContent)inner;
- name = content.getPart();
- if (types == null)
- {
- types = content.getType();
- }
- else
- {
- types += "," + content.getType();
- }
- }
- }
-
- // Found content types in this part
- if (name != null)
- {
- // A mime part must be defined as <part type="">
- QName elementName = new QName(name);
- WSDLInterfaceOperationOutput destIntfOutput =
destIntfOperation.getOutput(elementName);
- if (destIntfOutput == null)
- throw new WSException("Cannot find interface output for
element: " + elementName);
-
- WSDLProperty wsdlProperty = new
WSDLProperty(Constants.WSDL_PROPERTY_WSDL11_MIME_TYPE, false, types, null);
- destIntfOutput.addProperty(wsdlProperty);
- }
- }
- }
- }
- }
-
- private void processEncodingStyle(ExtensibilityElement extElement,
WSDLBindingOperation destBindingOperation)
- {
- log.trace("processEncodingStyle");
-
- String encStyle = null;
- QName elementType = extElement.getElementType();
- if (extElement instanceof SOAPBody)
- {
- SOAPBody body = (SOAPBody)extElement;
- List encStyleList = body.getEncodingStyles();
- if (encStyleList != null)
- {
- if (encStyleList.size() > 1)
- log.warn("Multiple encoding styles not supported: " +
encStyleList);
-
- if (encStyleList.size() > 0)
- {
- encStyle = (String)encStyleList.get(0);
- }
- }
- }
- else if (SOAP12_BODY.equals(elementType))
- {
- Element domElement = ((UnknownExtensibilityElement)extElement).getElement();
- encStyle = getOptionalAttribute(domElement, "encodingStyle");
- }
-
- if (encStyle != null)
- {
- String setStyle = destBindingOperation.getEncodingStyle();
- if (encStyle.equals(setStyle) == false)
- log.warn("Encoding style '" + encStyle + "' not
supported for: " + destBindingOperation.getRef());
-
- destBindingOperation.setEncodingStyle(encStyle);
- }
- }
-
- private void processServices(Definition srcWsdl)
- {
- log.trace("BEGIN processServices: " + srcWsdl.getDocumentBaseURI());
-
- if (srcWsdl.getServices().size() > 0)
- {
- Iterator it = srcWsdl.getServices().values().iterator();
- while (it.hasNext())
- {
- Service srcService = (Service)it.next();
- QName qname = srcService.getQName();
- WSDLService destService = new WSDLService(destWsdl);
- destService.setName(new NCName(qname));
- destService.setQName(qname);
- destWsdl.addService(destService);
- processPorts(srcWsdl, destService, srcService);
- }
- }
- else
- {
- log.trace("Empty wsdl services, processing imports");
- Iterator it = srcWsdl.getImports().values().iterator();
- while (it.hasNext())
- {
- List<Import> srcImports = (List<Import>)it.next();
- for (Import srcImport : srcImports)
- {
- Definition importDefinition = srcImport.getDefinition();
- processServices(importDefinition);
- }
- }
- }
-
- log.trace("END processServices: " + srcWsdl.getDocumentBaseURI());
- }
-
- private void processPorts(Definition srcWsdl, WSDLService destService, Service
srcService)
- {
- Iterator it = srcService.getPorts().values().iterator();
- while (it.hasNext())
- {
- Port srcPort = (Port)it.next();
- processPort(srcWsdl, destService, srcPort);
- }
- }
-
- private void processPort(Definition srcWsdl, WSDLService destService, Port srcPort)
- {
- log.trace("processPort: " + srcPort.getName());
-
- Binding srcBinding = srcPort.getBinding();
-
- WSDLEndpoint destEndpoint = new WSDLEndpoint(destService);
- destEndpoint.setName(new NCName(srcPort.getName()));
- destEndpoint.setBinding(srcBinding.getQName());
- destEndpoint.setQName(new QName(srcWsdl.getTargetNamespace(), srcPort.getName()));
- destEndpoint.setAddress(getSOAPAddress(srcPort));
- destService.addEndpoint(destEndpoint);
-
- processBinding(srcWsdl, srcBinding);
- }
-
- /** Get the endpoint address from the ports extensible element
- */
- private String getSOAPAddress(Port srcPort)
- {
- String soapAddress = "dummy";
-
- Iterator it = srcPort.getExtensibilityElements().iterator();
- while (it.hasNext())
- {
- ExtensibilityElement extElement = (ExtensibilityElement)it.next();
- QName elementType = extElement.getElementType();
-
- if (extElement instanceof SOAPAddress)
- {
- SOAPAddress addr = (SOAPAddress)extElement;
- soapAddress = addr.getLocationURI();
- break;
- }
- else if (SOAP12_ADDRESS.equals(elementType))
- {
- Element domElement = ((UnknownExtensibilityElement)extElement).getElement();
- soapAddress = getOptionalAttribute(domElement, "location");
- break;
- }
- else if ("address".equals(elementType.getLocalPart()))
- {
- log.warn("Unprocessed extension element: " + elementType);
- }
- }
-
- if (soapAddress == null)
- throw new WSException("Cannot obtain SOAP address");
-
- return soapAddress;
- }
-
- private String getOptionalAttribute(Element domElement, String attrName)
- {
- String attrValue = domElement.getAttribute(attrName);
- return (attrValue.length() > 0 ? attrValue : null);
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Reader.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Reader.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Writer.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Writer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Writer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,571 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.tools.wsdl;
-
-import java.io.IOException;
-import java.io.Writer;
-import java.util.Arrays;
-import java.util.HashSet;
-import java.util.Set;
-
-import javax.wsdl.Definition;
-import javax.wsdl.WSDLException;
-import javax.wsdl.factory.WSDLFactory;
-import javax.xml.namespace.QName;
-
-import org.jboss.ws.core.utils.DOMUtils;
-import org.jboss.ws.core.utils.DOMWriter;
-import org.jboss.ws.metadata.wsdl.NCName;
-import org.jboss.ws.metadata.wsdl.WSDLBinding;
-import org.jboss.ws.metadata.wsdl.WSDLBindingOperation;
-import org.jboss.ws.metadata.wsdl.WSDLBindingOperationInput;
-import org.jboss.ws.metadata.wsdl.WSDLBindingOperationOutput;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLEndpoint;
-import org.jboss.ws.metadata.wsdl.WSDLInterface;
-import org.jboss.ws.metadata.wsdl.WSDLInterfaceOperation;
-import org.jboss.ws.metadata.wsdl.WSDLInterfaceOperationInput;
-import org.jboss.ws.metadata.wsdl.WSDLInterfaceOperationOutfault;
-import org.jboss.ws.metadata.wsdl.WSDLInterfaceOperationOutput;
-import org.jboss.ws.metadata.wsdl.WSDLService;
-import org.jboss.ws.Constants;
-import org.jboss.ws.WSException;
-import org.w3c.dom.Element;
-
-/**
- * A WSDL Writer that writes a WSDL 1.1 file. It works off
- * of the WSDL20 Object Graph.
- * @author <mailto:Anil.Saldhana@jboss.org>Anil Saldhana
- */
-public class WSDL11Writer extends WSDLWriter
-{
- //Used Internally
- private String wsdlStyle = Constants.RPC_LITERAL;
-
- // Used to prevent duplicates
- private HashSet<String> writtenFaultMessages = new HashSet<String>();
-
- /** Use WSDLDefinitions.writeWSDL instead. */
- public WSDL11Writer(WSDLDefinitions wsdl)
- {
- super(wsdl);
- }
-
- public void write(Writer writer) throws IOException
- {
- write(writer, null);
- }
-
- public void write(Writer writer, String charset) throws IOException
- {
- // Write out the wsdl-1.1 represention (only path to obtain is from WSDL11Reader)
- if (wsdl.getWsdlOneOneDefinition() != null)
- {
- Definition wsdlDefinition = wsdl.getWsdlOneOneDefinition();
- try
- {
- WSDLFactory wsdlFactory = WSDLFactory.newInstance();
- javax.wsdl.xml.WSDLWriter wsdlWriter = wsdlFactory.newWSDLWriter();
- wsdlWriter.writeWSDL(wsdlDefinition, writer);
- }
- catch (WSDLException e)
- {
- this.logException(e);
- throw new IOException(e.toString());
- }
- }
- else
- {
- StringBuilder buffer = new StringBuilder();
-
- //Detect the WSDL Style early
- wsdlStyle = utils.getWSDLStyle(wsdl);
-
- writtenFaultMessages.clear();
-
- appendDefinitions(buffer);
- appendTypes(buffer);
- appendMessages(buffer);
- appendPortTypes(buffer);
- appendBindings(buffer);
- appendServices(buffer);
-
- buffer.append("</definitions>");
- Element element = DOMUtils.parse(buffer.toString());
-
- if (charset != null)
- writer.write("<?xml version=\"1.0\" encoding=\""
+ charset + "\"?>\n");
- new DOMWriter(writer).setPrettyprint(true).print(element);
- }
- }
-
- protected void appendMessages(StringBuilder buffer)
- {
- WSDLInterface[] interfaces = wsdl.getInterfaces();
- int len = interfaces != null ? interfaces.length : 0;
- for (int i = 0; i < len; i++)
- {
- WSDLInterface intf = interfaces[i];
- WSDLInterfaceOperation[] operations = intf.getSortedOperations();
- int lenOps = operations.length;
- for (int j = 0; j < lenOps; j++)
- {
- appendMessage(buffer, operations[j]);
- appendMessagesForExceptions(buffer, operations[j]);
- }//end for
- }//end for
- }
-
- private void appendMessage(StringBuilder buffer, WSDLInterfaceOperation operation)
- {
- String opname = operation.getName().toString();
- //Determine the style of the wsdl
- if (Constants.URI_STYLE_RPC.equals(operation.getStyle()) == false)
- wsdlStyle = Constants.DOCUMENT_LITERAL; //Not RPC/Literal
-
- String interfaceName = operation.getWsdlInterface().getName().toString();
- buffer.append("<message name='" + interfaceName + "_" +
opname + "' >");
- WSDLInterfaceOperationInput[] inputs = operation.getInputs();
- int lenin = inputs.length;
- for (int i = 0; i < lenin; i++)
- {
- WSDLInterfaceOperationInput input = inputs[i];
- appendInputParts(buffer, input, i);
- }
-
- buffer.append("</message>");
-
- //Now the return type
- WSDLInterfaceOperationOutput[] outputs = operation.getOutputs();
- int lenout = outputs != null ? outputs.length : 0;
-
- if (Constants.WSDL20_PATTERN_IN_ONLY.equals(operation.getPattern()))
- return;
-
- buffer.append("<message name='" + interfaceName + "_" +
opname + "Response' >");
- if (lenout > 0)
- {
- //Since the outputs have been obtained from a linkedhashmap
- //they will be in the order of insertion i.e. in case of
- //holders, the holder types will be inserted first. So let
- //us iterate in the reverse order
- String str = "";
- for (int i = 0; i < lenout; i++)
- {
- WSDLInterfaceOperationOutput out = outputs[i];
- str += appendOutputParts(out, i);
- }
- buffer.append(str);
- }//end if
- buffer.append("</message>");
- }
-
- private void appendMessagesForExceptions(StringBuilder buffer, WSDLInterfaceOperation
operation)
- {
- //Get the outfaults
- WSDLInterfaceOperationOutfault[] faults = operation.getOutfaults();
- int len = faults != null ? faults.length : 0;
-
- for (int i = 0; i < len; i++)
- {
- WSDLInterfaceOperationOutfault fault = faults[i];
- QName xmlName = fault.getRef();
- String exceptionName = xmlName.getLocalPart();
- if (writtenFaultMessages.contains(exceptionName))
- continue;
-
- buffer.append("<message name='" + exceptionName + "'
>");
- String prefix = wsdl.getPrefix(xmlName.getNamespaceURI());
- String xmlNameStr = prefix + ":" + xmlName.getLocalPart();
- buffer.append("<part name='" + exceptionName + "'
element='" + xmlNameStr + "' />");
- buffer.append("</message>");
-
- writtenFaultMessages.add(exceptionName);
- }
- }
-
- private void appendInputParts(StringBuilder buffer, WSDLInterfaceOperationInput input,
int index)
- {
- boolean header = input.getProperty(Constants.WSDL_PROPERTY_APPLICATION_DATA) !=
null;
- if (wsdlStyle.equals(Constants.RPC_LITERAL) && !header)
- {
- QName el = input.getElement();
- QName xmlType = input.getXMLType();
- String prefix = wsdl.getPrefix(xmlType.getNamespaceURI() );
- buffer.append("<part name='" + el.getLocalPart() +
"'");
- buffer.append(" type='" + prefix + ":" +
xmlType.getLocalPart() + "'>");
- buffer.append("</part>");
- }
- //Doc-literal case
- else
- {
- //TODO:Handle this better later
- //In the case of doc/lit, the input element will give the partname
- QName elm = input.getElement();
- buffer.append("<part name='").append(header ?
elm.getLocalPart() : "parameters").append("'");
- String part = wsdl.getPrefix(elm.getNamespaceURI()) + ":" +
elm.getLocalPart();
- buffer.append(" element='" + part + "'>");
- buffer.append("</part>");
- }
- }
-
- private String appendOutputParts(WSDLInterfaceOperationOutput out, int index)
- {
- boolean header = out.getProperty(Constants.WSDL_PROPERTY_APPLICATION_DATA) !=
null;
- StringBuilder buf = new StringBuilder("");
- if (wsdlStyle.equals(Constants.RPC_LITERAL) && !header)
- {
- //Get the XMLName
- QName xmlName = out.getElement();
- QName xmlType = out.getXMLType();
- String prefix = wsdl.getPrefix(xmlType.getNamespaceURI() );
-
- buf.append("<part name='" + xmlName.getLocalPart() +
"'");
- buf.append(" type='" + prefix + ":" +
xmlType.getLocalPart() + "'>");
- buf.append("</part>");
- }
- else
- {
- QName elm = out.getElement();
- buf.append("<part name='").append(header ? elm.getLocalPart() :
Constants.DEFAULT_RPC_RETURN_NAME).append("'");
- String value = wsdl.getPrefix(elm.getNamespaceURI()) + ":" +
elm.getLocalPart();
- //String value = this.getXMLTypeFromWSDLProperty(out);
- buf.append(" element='" + value + "'>");
- buf.append("</part>");
- }
- return buf.toString();
- }
-
- protected void appendInterfaces(StringBuilder buffer)
- {
- }
-
- protected void appendPortTypes(StringBuilder buffer)
- {
- WSDLInterface[] intfs = wsdl.getInterfaces();
- for (int i = 0; i < intfs.length; i++)
- {
- WSDLInterface intf = intfs[i];
- if (i == 0)
- buffer.append("<portType name='" + intf.getName() +
"'>");
- appendPortOperations(buffer, intf);
- }
- buffer.append("</portType>");
- }
-
- protected void appendPortOperations(StringBuilder buffer, WSDLInterface intf)
- {
- String targetPrefix = wsdl.getTargetPrefix();
- WSDLInterfaceOperation[] operations = intf.getSortedOperations();
- for (int i = 0; i < operations.length; i++)
- {
- WSDLInterfaceOperation operation = operations[i];
- WSDLInterfaceOperationInput[] inputs = operation.getInputs();
- WSDLInterfaceOperationOutput[] outputs = operation.getOutputs();
- buffer.append("<operation name='" +
operation.getName().toString() + "'");
-
- if (wsdlStyle.equals(Constants.RPC_LITERAL))
- {
- StringBuilder order = new StringBuilder();
- Set<QName> inParameters = new HashSet<QName>();
- for (int j = 0; j < inputs.length; j++)
- {
- WSDLInterfaceOperationInput input = inputs[j];
- if (order.length() > 0)
- order.append(" ");
- QName el = input.getElement();
- order.append(el.getLocalPart());
- inParameters.add(el);
- }
-
- for (int j = 0; j < outputs.length; j++)
- {
- WSDLInterfaceOperationOutput output = outputs[j];
- // The return value is ommitted as a hint to other parameter based binding
layers.
- // Also, INOUT parameters need to only appear once
- if (output.getProperty(Constants.WSDL_PROPERTY_RETURN_PART) == null)
- {
- QName el = output.getElement();
- if (! inParameters.contains(el))
- {
- if (order.length() > 0)
- order.append(" ");
- order.append(el.getLocalPart());
- }
- }
- }
-
- if (order.length() > 0)
- buffer.append("
parameterOrder='").append(order.toString()).append("'");
- }
-
- buffer.append(">"); //End operation element
-
- String opname = operation.getName().toString();
- String interfaceName = operation.getWsdlInterface().getName().toString();
- String msgEl = targetPrefix + ":" + interfaceName + "_" +
opname;
-
- buffer.append("<input message='" + msgEl +
"'>").append("</input>");
-
- if (! Constants.WSDL20_PATTERN_IN_ONLY.equals(operation.getPattern()))
- {
- buffer.append("<output message='" + msgEl +
"Response'>");
- buffer.append("</output>");
- }
-
- //Append the Faults
- WSDLInterfaceOperationOutfault[] faults = operation.getOutfaults();
- //WSDLInterfaceFault[] faults = intf.getFaults();
- int lenf = faults != null ? faults.length : 0;
- for (int k = 0; k < lenf; k++)
- {
- //WSDLInterfaceFault flt = faults[k];
- WSDLInterfaceOperationOutfault flt = faults[k];
- QName elt = flt.getRef();
-
- String targetNS = wsdl.getTargetNamespace();
- //Writing the fault, the prefix should always be the one for wsdl target
namespace
- elt = new QName(targetNS, elt.getLocalPart(), wsdl.getPrefix(targetNS));
- //Remove Fault or Error appended to the name
- String cleanname = utils.chop(utils.chop(elt.getLocalPart(),
"Error"), "Fault");
-
- String n = "name='" + cleanname + "'";
-
- String cleanref = utils.chop(utils.getFormattedString(elt),
"Error");
- buffer.append("<fault message='" + cleanref + "'
" + n + ">");
- buffer.append("</fault>");
- }
-
- buffer.append("</operation>");
- }
- }
-
- protected void appendBindings(StringBuilder buffer)
- {
- WSDLBinding[] bindings = wsdl.getBindings();
- for (int i = 0; i < bindings.length; i++)
- {
- WSDLBinding binding = bindings[i];
- buffer.append("<binding name='" + binding.getName() +
"' type='" + getQNameRef(binding.getInterfaceName()) +
"'>");
- //TODO:Need to derive the WSDLStyle from the Style attribute of
InterfaceOperation
- if (wsdlStyle == null)
- throw new IllegalArgumentException("WSDL Style is null (should be rpc or
document");
- String style = "rpc";
- if (wsdlStyle.equals(Constants.DOCUMENT_LITERAL))
- style = "document";
- buffer.append("<" + soapPrefix + ":binding
transport='http://schemas.xmlsoap.org/soap/http' style='" + style +
"'/>");
- appendBindingOperations(buffer, binding);
- buffer.append("</binding>");
- }
- }
-
- private boolean isHeaderInput(WSDLBindingOperationInput input)
- {
- WSDLBindingOperation operation = input.getWsdlBindingOperation();
- WSDLBinding binding = operation.getWsdlBinding();
- WSDLInterface wsdlInterface = binding.getInterface();
- if (wsdlInterface == null)
- return false;
-
- WSDLInterfaceOperation interfaceOperation = wsdlInterface.getOperation(new
NCName(operation.getRef().getLocalPart()));
- if (interfaceOperation == null)
- return false;
-
- WSDLInterfaceOperationInput interfaceInput =
interfaceOperation.getInputByPartName(input.getMessageLabel().toString());
- if (interfaceInput == null)
- return false;
-
- if (interfaceInput.getProperty(Constants.WSDL_PROPERTY_APPLICATION_DATA) == null)
- return false;
- else
- return true;
- }
-
- private boolean isHeaderOutput(WSDLBindingOperationOutput output)
- {
- WSDLBindingOperation operation = output.getWsdlBindingOperation();
- WSDLBinding binding = operation.getWsdlBinding();
- WSDLInterface wsdlInterface = binding.getInterface();
- if (wsdlInterface == null)
- return false;
-
- WSDLInterfaceOperation interfaceOperation = wsdlInterface.getOperation(new
NCName(operation.getRef().getLocalPart()));
- if (interfaceOperation == null)
- return false;
-
- WSDLInterfaceOperationOutput interfaceOutput =
interfaceOperation.getOutputByPartName(output.getMessageLabel().toString());
- if (interfaceOutput == null)
- return false;
-
- if (interfaceOutput.getProperty(Constants.WSDL_PROPERTY_APPLICATION_DATA) == null)
- return false;
- else
- return true;
- }
-
- protected void appendBindingOperations(StringBuilder buffer, WSDLBinding binding)
- {
- WSDLBindingOperation[] operations = binding.getOperations();
- Arrays.sort(operations);
-
- String tns = wsdl.getTargetNamespace();
- for (int i = 0; i < operations.length; i++)
- {
- WSDLBindingOperation operation = operations[i];
- String interfaceName =
operation.getWsdlBinding().getInterfaceName().getLocalPart();
-
- buffer.append("<operation name='" +
operation.getRef().getLocalPart() + "'>");
- String soapAction = (operation.getSOAPAction() != null ?
operation.getSOAPAction() : "");
- buffer.append("<" + soapPrefix + ":operation
soapAction=\"" + soapAction + "\"/>");
- buffer.append("<input>");
-
- StringBuilder bodyParts = new StringBuilder();
- boolean hasHeader = false;
- WSDLBindingOperationInput[] inputs = operation.getInputs();
- for (int j = 0; j < inputs.length; j++)
- {
- WSDLBindingOperationInput input = inputs[j];
- if (isHeaderInput(input))
- {
- String messageName = interfaceName + "_" +
input.getWsdlBindingOperation().getRef().getLocalPart();
- buffer.append("<" + soapPrefix + ":header
use='literal' message='tns:" + messageName + "' part='"
+ input.getMessageLabel() + "'/>");
- hasHeader = true;
- }
- else
- {
- if (bodyParts.length() > 0)
- bodyParts.append(" ");
- bodyParts.append(input.getMessageLabel());
- }
- }
-
- buffer.append("<" + soapPrefix + ":body
use='literal'");
- if (hasHeader)
- buffer.append("
parts='").append(bodyParts.toString()).append("'");
- if (wsdlStyle != Constants.DOCUMENT_LITERAL)
- buffer.append(" namespace='" + tns + "'");
- buffer.append("/>");
-
- buffer.append("</input>");
-
- if (!
Constants.WSDL20_PATTERN_IN_ONLY.equals(getBindingOperationPattern(operation)))
- {
- buffer.append("<output>");
- bodyParts = new StringBuilder();
- hasHeader = false;
- WSDLBindingOperationOutput[] outputs = operation.getOutputs();
- for (int j = 0; j < outputs.length; j++)
- {
- WSDLBindingOperationOutput output = outputs[j];
- if (isHeaderOutput(output))
- {
- String messageName = interfaceName + "_" +
output.getWsdlBindingOperation().getRef().getLocalPart() + "Response";
-
- buffer.append("<" + soapPrefix + ":header
use='literal' message='tns:" + messageName + "' part='"
+ output.getMessageLabel() + "'/>");
- hasHeader = true;
- }
- else
- {
- if (bodyParts.length() > 0)
- bodyParts.append(" ");
- bodyParts.append(output.getMessageLabel());
- }
- }
-
- buffer.append("<" + soapPrefix + ":body
use='literal'");
- if (hasHeader)
- buffer.append("
parts='").append(bodyParts.toString()).append("'");
- if (wsdlStyle != Constants.DOCUMENT_LITERAL)
- buffer.append(" namespace='" + tns + "'");
- buffer.append("/>");
-
- buffer.append("</output>");
- }
-
- //Append faults
- QName intfname = operation.getWsdlBinding().getInterfaceName();
- WSDLInterface intf = wsdl.getInterface(new NCName(intfname.getLocalPart()));
- if (intf == null)
- throw new WSException("WSDL Interface should not be null");
- WSDLInterfaceOperation interfaceOperation = intf.getOperation(new
NCName(operation.getRef().getLocalPart()));
- WSDLInterfaceOperationOutfault[] faults = interfaceOperation.getOutfaults();
- int lenf = faults != null ? faults.length : 0;
- for (int k = 0; k < lenf; k++)
- {
- WSDLInterfaceOperationOutfault flt = faults[k];
- //Remove Fault or Error appended to the name
- String cleanname = utils.chop(utils.chop(flt.getRef().getLocalPart(),
"Error"), "Fault");
- String n = "name='" + cleanname + "'";
-
- //String cleanref = utils.chop(utils.getFormattedString(elt),
"Error");
- buffer.append("<fault " + n + ">");
- buffer.append("<" + soapPrefix + ":fault " + n +
" use='literal' />");
- buffer.append("</fault>");
- }
-
- buffer.append("</operation>");
- }
- }
-
- private String getBindingOperationPattern(WSDLBindingOperation operation)
- {
- WSDLBinding binding = operation.getWsdlBinding();
- String pattern = binding.getInterface().getOperation(new
NCName(operation.getRef().getLocalPart())).getPattern();
-
- return pattern;
- }
-
- protected void appendServices(StringBuilder buffer)
- {
- WSDLService[] services = wsdl.getServices();
- int len = services.length;
- for (int i = 0; i < len; i++)
- {
-
- WSDLService service = services[i];
- buffer.append("<service name='" + service.getName() +
"'>");
- WSDLEndpoint[] endpoints = service.getEndpoints();
- int lenend = endpoints.length;
- for (int j = 0; j < lenend; j++)
- {
- WSDLEndpoint endpoint = endpoints[j];
- appendServicePort(buffer, endpoint);
- }
-
- buffer.append("</service>");
- }
- }
-
- protected void appendServicePort(StringBuilder buffer, WSDLEndpoint endpoint)
- {
- String name = endpoint.getName().toString();
- QName endpointBinding = endpoint.getBinding();
- String prefix = endpointBinding.getPrefix();
- if (prefix == null || prefix == "")
- prefix = wsdl.getTargetPrefix();
- String ebname = prefix + ":" + endpointBinding.getLocalPart();
- buffer.append("<port name='" + name + "'
binding='" + ebname + "'>");
- buffer.append("<" + soapPrefix + ":address location='" +
endpoint.getAddress() + "'/>");
- buffer.append("</port>");
- }
-
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Writer.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Writer.java)
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDLDefinitionsFactory.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDLDefinitionsFactory.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDLDefinitionsFactory.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,195 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.tools.wsdl;
-
-// $Id$
-
-import java.io.InputStream;
-import java.io.StringWriter;
-import java.net.URL;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.Map;
-
-import javax.wsdl.Definition;
-import javax.wsdl.factory.WSDLFactory;
-import javax.wsdl.xml.WSDLReader;
-import javax.xml.parsers.DocumentBuilder;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.core.utils.DOMUtils;
-import org.jboss.ws.core.utils.JBossWSEntityResolver;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLException;
-import org.jboss.ws.Constants;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-import org.xml.sax.EntityResolver;
-
-import com.ibm.wsdl.xml.WSDLReaderImpl;
-
-/**
- * A factory that creates a <code>WSDLDefinitions</code> object from an URL.
- *
- * This implementations deals with different WSDL versions so that clients of this
- * factory do need to know about WSDL version specifics. The Java object view of the
- * WSDL document (WSDLDefinitions) is modeled on WSDL-2.0
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 10-Oct-2004
- */
-public class WSDLDefinitionsFactory
-{
- // provide logging
- private static final Logger log = Logger.getLogger(WSDLDefinitionsFactory.class);
-
- // This feature is set by default in wsdl4j, it means the object structure contains
the imported arguments
- public static final String FEATURE_IMPORT_DOCUMENTS =
"javax.wsdl.importDocuments";
- // Set this feature for additional debugging output
- public static final String FEATURE_VERBOSE = "javax.wsdl.verbose";
-
- // The WSDL reader features
- private Map features = new HashMap();
-
- // Hide constructor
- private WSDLDefinitionsFactory()
- {
- }
-
- /**
- * Create a new instance of a wsdl factory
- */
- public static WSDLDefinitionsFactory newInstance()
- {
- return new WSDLDefinitionsFactory();
- }
-
- /**
- * Set a feature on the underlying reader
- */
- public void setFeature(String name, boolean value) throws IllegalArgumentException
- {
- features.put(name, new Boolean(value));
- }
-
- /**
- * Read the wsdl document from the given URL
- */
- public WSDLDefinitions parse(URL wsdlLocation) throws WSDLException
- {
- if (wsdlLocation == null)
- throw new IllegalArgumentException("URL cannot be null");
-
- log.trace("parse: " + wsdlLocation.toExternalForm());
-
- EntityResolver entityResolver = new JBossWSEntityResolver();
- WSDLDefinitions wsdlDefinitions = null;
- try
- {
- Document wsdlDoc = getDocument(wsdlLocation);
- String defaultNamespace = getDefaultNamespace(wsdlDoc);
- if (Constants.NS_WSDL11.equals(defaultNamespace))
- {
- WSDLFactory wsdlFactory = WSDLFactory.newInstance();
- WSDLReader wsdlReader = wsdlFactory.newWSDLReader();
- wsdlReader.setFeature("javax.wsdl.verbose", false);
-
- // Setup reader features
- Iterator it = features.entrySet().iterator();
- while (it.hasNext())
- {
- Map.Entry entry = (Map.Entry)it.next();
- String key = (String)entry.getKey();
- Boolean flag = (Boolean)entry.getValue();
- wsdlReader.setFeature(key, flag.booleanValue());
- }
-
- // Set EntityResolver in patched version of wsdl4j-1.5.2jboss
- ((WSDLReaderImpl)wsdlReader).setEntityResolver(entityResolver);
-
- Definition definition = wsdlReader.readWSDL(new
WSDLLocatorImpl(entityResolver, wsdlLocation));
- wsdlDefinitions = new WSDL11Reader().processDefinition(definition,
wsdlLocation);
- wsdlDefinitions.setWsdlDocument(wsdlDoc);
- }
- else
- throw new WSDLException("Invalid default namespace: " +
defaultNamespace);
-
- if (log.isTraceEnabled())
- {
- StringWriter stwr = new StringWriter();
- WSDLWriter wsdlWriter = new WSDLWriter(wsdlDefinitions);
- wsdlWriter.write(stwr);
- log.trace("\n" + stwr.toString());
- }
- }
- catch (WSDLException e)
- {
- throw e;
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Exception e)
- {
- throw new WSDLException(e);
- }
-
- return wsdlDefinitions;
- }
-
- /** Get the WSDL document.
- */
- private Document getDocument(URL wsdlLocation) throws WSDLException
- {
- try
- {
- InputStream wsdlInputStream = wsdlLocation.openStream();
- try
- {
- DocumentBuilder builder = DOMUtils.getDocumentBuilder();
- return builder.parse(wsdlInputStream);
- }
- finally
- {
- wsdlInputStream.close();
- }
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Exception e)
- {
- throw new WSDLException(e);
- }
- }
-
- /** Get the default namespace for the given WSDL
- */
- private String getDefaultNamespace(Document wsdlDoc) throws WSDLException
- {
- Element root = wsdlDoc.getDocumentElement();
- String defaultNamespace = root.getNamespaceURI();
- return defaultNamespace;
- }
-}
Copied:
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDLDefinitionsFactory.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDLDefinitionsFactory.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDLLocatorImpl.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDLLocatorImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDLLocatorImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,159 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.tools.wsdl;
-
-// $Id$
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.net.MalformedURLException;
-import java.net.URL;
-
-import javax.wsdl.xml.WSDLLocator;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.WSException;
-import org.xml.sax.EntityResolver;
-import org.xml.sax.InputSource;
-
-/* A WSDLLocator that can handle wsdl imports
- */
-class WSDLLocatorImpl implements WSDLLocator
-{
- // provide logging
- private static final Logger log = Logger.getLogger(WSDLDefinitionsFactory.class);
-
- private EntityResolver entityResolver;
- private URL wsdlURL;
- private String latestImportURI;
-
- public WSDLLocatorImpl(EntityResolver entityResolver, URL wsdlFile)
- {
- if (wsdlFile == null)
- throw new IllegalArgumentException("WSDL file argument cannot be
null");
-
- this.entityResolver = entityResolver;
- this.wsdlURL = wsdlFile;
- }
-
- public InputSource getBaseInputSource()
- {
- log.trace("getBaseInputSource [wsdlUrl=" + wsdlURL + "]");
- try
- {
- InputStream is = wsdlURL.openStream();
- if (is == null)
- throw new IllegalArgumentException("Cannot obtain wsdl from [" +
wsdlURL + "]");
-
- return new InputSource(is);
- }
- catch (IOException e)
- {
- throw new RuntimeException("Cannot access wsdl from [" + wsdlURL +
"], " + e.getMessage());
- }
- }
-
- public String getBaseURI()
- {
- return wsdlURL.toExternalForm();
- }
-
- public InputSource getImportInputSource(String parent, String resource)
- {
- log.trace("getImportInputSource [parent=" + parent +
",resource=" + resource + "]");
-
- URL parentURL = null;
- try
- {
- parentURL = new URL(parent);
- }
- catch (MalformedURLException e)
- {
- log.error("Not a valid URL: " + parent);
- return null;
- }
-
- String wsdlImport = null;
- String external = parentURL.toExternalForm();
-
- // An external URL
- if (resource.startsWith("http://") ||
resource.startsWith("https://"))
- {
- wsdlImport = resource;
- }
-
- // Absolute path
- else if (resource.startsWith("/"))
- {
- String beforePath = external.substring(0,
external.indexOf(parentURL.getPath()));
- wsdlImport = beforePath + resource;
- }
-
- // A relative path
- else
- {
- String parentDir = external.substring(0, external.lastIndexOf("/"));
-
- // remove references to current dir
- while (resource.startsWith("./"))
- resource = resource.substring(2);
-
- // remove references to parentdir
- while (resource.startsWith("../"))
- {
- parentDir = parentDir.substring(0, parentDir.lastIndexOf("/"));
- resource = resource.substring(3);
- }
-
- wsdlImport = parentDir + "/" + resource;
- }
-
- try
- {
- log.trace("Trying to resolve: " + wsdlImport);
- InputSource inputSource = entityResolver.resolveEntity(wsdlImport, wsdlImport);
- if (inputSource != null)
- {
- latestImportURI = wsdlImport;
- }
- else
- {
- throw new IllegalArgumentException("Cannot resolve imported resource:
" + wsdlImport);
- }
-
- return inputSource;
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Exception e)
- {
- throw new WSException("Cannot access imported wsdl [" + wsdlImport +
"], " + e.getMessage());
- }
- }
-
- public String getLatestImportURI()
- {
- return latestImportURI;
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDLLocatorImpl.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDLLocatorImpl.java)
Deleted: branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDLWriter.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDLWriter.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDLWriter.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,209 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software 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
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.ws.tools.wsdl;
-
-// $Id$
-
-import java.io.IOException;
-import java.io.Writer;
-import java.util.Iterator;
-
-import javax.xml.namespace.QName;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.Constants;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.utils.DOMUtils;
-import org.jboss.ws.core.utils.DOMWriter;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLService;
-import org.jboss.ws.metadata.wsdl.WSDLUtils;
-import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel;
-import org.w3c.dom.Element;
-
-/**
- * A helper that writes out a WSDL definition
- *
- * @author Thomas.Diesler(a)jboss.org
- * @author Anil.Saldhana(a)jboss.org
- * @since 10-Oct-2004
- */
-public class WSDLWriter
-{
- // provide logging
- protected static final Logger log = Logger.getLogger(WSDLWriter.class);
-
- protected WSDLDefinitions wsdl;
- protected WSDLUtils utils = WSDLUtils.getInstance();
-
- // The soap prefix
- protected String soapPrefix = "soap";
-
- /**
- * Include or import WSDL Types
- */
- protected boolean includeSchemaInWSDL = true;
-
- /** Use WSDLDefinitions.writeWSDL instead. */
- public WSDLWriter(WSDLDefinitions wsdl)
- {
- if (wsdl == null)
- throw new IllegalArgumentException("WSDL definitions is NULL");
-
- this.wsdl = wsdl;
- }
-
- /** Write the wsdl definition to the given writer, clients should not care about the
wsdl version. */
- public void write(Writer writer, String charset) throws IOException
- {
- write(writer, charset, null);
- }
-
- public void write(Writer writer, String charset, WSDLWriterResolver resolver) throws
IOException
- {
- String wsdlNamespace = wsdl.getWsdlNamespace();
- if (Constants.NS_WSDL11.equals(wsdlNamespace))
- {
- WSDL11Writer wsdl11Writer = new WSDL11Writer(wsdl);
- wsdl11Writer.write(writer, charset, resolver);
- }
- else
- {
- throw new WSException("Unsupported wsdl version: " + wsdlNamespace);
- }
- }
-
- public void write(Writer writer) throws IOException
- {
- StringBuilder buffer = new StringBuilder();
- buffer.append(Constants.XML_HEADER);
-
- appendDefinitions(buffer);
- appendTypes(buffer);
- appendInterfaces(buffer);
- appendBindings(buffer);
- appendServices(buffer);
-
- buffer.append("</definitions>");
-
- Element element = DOMUtils.parse(buffer.toString());
- new DOMWriter(writer).setPrettyprint(true).print(element);
- }
-
- protected void appendDefinitions(StringBuilder buffer)
- {
- buffer.append("<definitions");
- //Append service name as done by wscompile, if there is just one
- WSDLService[] services = wsdl.getServices();
- if (services != null && services.length == 1)
- {
- WSDLService ser = services[0];
- buffer.append(" name='" + ser.getName() + "'");
- }
- buffer.append(" targetNamespace='" + wsdl.getTargetNamespace() +
"'");
- buffer.append(" xmlns='" + wsdl.getWsdlNamespace() +
"'");
- Iterator it = wsdl.getRegisteredNamespaceURIs();
- while (it.hasNext())
- {
- String namespaceURI = (String)it.next();
- String prefix = wsdl.getPrefix(namespaceURI);
- if (prefix.length() > 0)
- {
- buffer.append(" xmlns:" + prefix + "='" +
namespaceURI + "'");
- if (Constants.PREFIX_SOAP11.equals(prefix) ||
Constants.PREFIX_SOAP12.equals(prefix))
- soapPrefix = prefix;
- }
- }
- buffer.append(">");
- }
-
- protected void appendTypes(StringBuilder buffer)
- {
- buffer.append("<types>");
- JBossXSModel xsM = WSDLUtils.getSchemaModel(wsdl.getWsdlTypes());
- String schema = xsM.serialize();
- buffer.append(schema);
- buffer.append("</types>");
- }
-
- protected void appendInterfaces(StringBuilder buffer)
- {
- }
-
- protected void appendBindings(StringBuilder buffer)
- {
- }
-
- protected void appendServices(StringBuilder buffer)
- {
- }
-
- /** Get a prefixed name of form prefix:localPart */
- protected String getQNameRef(QName qname)
- {
- String retStr = qname.getLocalPart();
-
- String prefix = qname.getPrefix();
- String nsURI = qname.getNamespaceURI();
- if (prefix.length() == 0 && nsURI.length() > 0)
- {
- qname = wsdl.registerQName(qname);
- prefix = qname.getPrefix();
- }
-
- if (prefix.length() > 0)
- retStr = prefix + ":" + retStr;
-
- return retStr;
- }
-
- public WSDLDefinitions getWsdl()
- {
- return wsdl;
- }
-
- public void setWsdl(WSDLDefinitions wsdl)
- {
- this.wsdl = wsdl;
- }
-
- public boolean isIncludeTypesInWSDL()
- {
- return includeSchemaInWSDL;
- }
-
- public void logException(Exception e)
- {
- if (log.isTraceEnabled())
- {
- log.trace(e);
- }
- }
-
- public void logMessage(String msg)
- {
- if (log.isTraceEnabled())
- {
- log.trace(msg);
- }
- }
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDLWriter.java (from
rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDLWriter.java)
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDLWriter.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDLWriter.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -0,0 +1,204 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software 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
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+*/
+package org.jboss.ws.tools.wsdl;
+
+// $Id$
+
+import java.io.IOException;
+import java.io.Writer;
+import java.util.Iterator;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.logging.Logger;
+import org.jboss.ws.Constants;
+import org.jboss.ws.WSException;
+import org.jboss.ws.core.utils.DOMUtils;
+import org.jboss.ws.core.utils.DOMWriter;
+import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
+import org.jboss.ws.metadata.wsdl.WSDLService;
+import org.jboss.ws.metadata.wsdl.WSDLUtils;
+import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel;
+import org.w3c.dom.Element;
+
+/**
+ * A helper that writes out a WSDL definition
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @author Anil.Saldhana(a)jboss.org
+ * @since 10-Oct-2004
+ */
+public class WSDLWriter
+{
+ // provide logging
+ protected static final Logger log = Logger.getLogger(WSDLWriter.class);
+
+ protected WSDLDefinitions wsdl;
+ protected WSDLUtils utils = WSDLUtils.getInstance();
+
+ // The soap prefix
+ protected String soapPrefix = "soap";
+
+ /**
+ * Include or import WSDL Types
+ */
+ protected boolean includeSchemaInWSDL = true;
+
+ /** Use WSDLDefinitions.writeWSDL instead. */
+ public WSDLWriter(WSDLDefinitions wsdl)
+ {
+ if (wsdl == null)
+ throw new IllegalArgumentException("WSDL definitions is NULL");
+
+ this.wsdl = wsdl;
+ }
+
+ /** Write the wsdl definition to the given writer, clients should not care about the
wsdl version. */
+ public void write(Writer writer, String charset) throws IOException
+ {
+ String wsdlNamespace = wsdl.getWsdlNamespace();
+ if (Constants.NS_WSDL11.equals(wsdlNamespace))
+ {
+ WSDL11Writer wsdl11Writer = new WSDL11Writer(wsdl);
+ wsdl11Writer.write(writer, charset);
+ }
+ else
+ {
+ throw new WSException("Unsupported wsdl version: " + wsdlNamespace);
+ }
+ }
+
+ public void write(Writer writer) throws IOException
+ {
+ StringBuilder buffer = new StringBuilder();
+ buffer.append(Constants.XML_HEADER);
+
+ appendDefinitions(buffer);
+ appendTypes(buffer);
+ appendInterfaces(buffer);
+ appendBindings(buffer);
+ appendServices(buffer);
+
+ buffer.append("</definitions>");
+
+ Element element = DOMUtils.parse(buffer.toString());
+ new DOMWriter(writer).setPrettyprint(true).print(element);
+ }
+
+ protected void appendDefinitions(StringBuilder buffer)
+ {
+ buffer.append("<definitions");
+ //Append service name as done by wscompile, if there is just one
+ WSDLService[] services = wsdl.getServices();
+ if (services != null && services.length == 1)
+ {
+ WSDLService ser = services[0];
+ buffer.append(" name='" + ser.getName() + "'");
+ }
+ buffer.append(" targetNamespace='" + wsdl.getTargetNamespace() +
"'");
+ buffer.append(" xmlns='" + wsdl.getWsdlNamespace() +
"'");
+ Iterator it = wsdl.getRegisteredNamespaceURIs();
+ while (it.hasNext())
+ {
+ String namespaceURI = (String)it.next();
+ String prefix = wsdl.getPrefix(namespaceURI);
+ if (prefix.length() > 0)
+ {
+ buffer.append(" xmlns:" + prefix + "='" +
namespaceURI + "'");
+ if (Constants.PREFIX_SOAP11.equals(prefix) ||
Constants.PREFIX_SOAP12.equals(prefix))
+ soapPrefix = prefix;
+ }
+ }
+ buffer.append(">");
+ }
+
+ protected void appendTypes(StringBuilder buffer)
+ {
+ buffer.append("<types>");
+ JBossXSModel xsM = WSDLUtils.getSchemaModel(wsdl.getWsdlTypes());
+ String schema = xsM.serialize();
+ buffer.append(schema);
+ buffer.append("</types>");
+ }
+
+ protected void appendInterfaces(StringBuilder buffer)
+ {
+ }
+
+ protected void appendBindings(StringBuilder buffer)
+ {
+ }
+
+ protected void appendServices(StringBuilder buffer)
+ {
+ }
+
+ /** Get a prefixed name of form prefix:localPart */
+ protected String getQNameRef(QName qname)
+ {
+ String retStr = qname.getLocalPart();
+
+ String prefix = qname.getPrefix();
+ String nsURI = qname.getNamespaceURI();
+ if (prefix.length() == 0 && nsURI.length() > 0)
+ {
+ qname = wsdl.registerQName(qname);
+ prefix = qname.getPrefix();
+ }
+
+ if (prefix.length() > 0)
+ retStr = prefix + ":" + retStr;
+
+ return retStr;
+ }
+
+ public WSDLDefinitions getWsdl()
+ {
+ return wsdl;
+ }
+
+ public void setWsdl(WSDLDefinitions wsdl)
+ {
+ this.wsdl = wsdl;
+ }
+
+ public boolean isIncludeTypesInWSDL()
+ {
+ return includeSchemaInWSDL;
+ }
+
+ public void logException(Exception e)
+ {
+ if (log.isTraceEnabled())
+ {
+ log.trace(e);
+ }
+ }
+
+ public void logMessage(String msg)
+ {
+ if (log.isTraceEnabled())
+ {
+ log.trace(msg);
+ }
+ }
+}
Deleted:
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDLWriterResolver.java
===================================================================
---
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDLWriterResolver.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDLWriterResolver.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,43 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.tools.wsdl;
-
-// $Id$
-
-import java.io.IOException;
-import java.io.Writer;
-
-/**
- * A helper that writes out a WSDL definition
- *
- * @author Thomas.Diesler(a)jboss.org
- * @author Anil.Saldhana(a)jboss.org
- * @since 10-Oct-2004
- */
-public abstract class WSDLWriterResolver
-{
- public String actualFile;
- public String charset;
- public Writer writer;
-
- public abstract WSDLWriterResolver resolve(String suggestedFile) throws IOException;
-}
Copied: branches/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDLWriterResolver.java
(from rev 1605,
branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/tools/wsdl/WSDLWriterResolver.java)
Modified: branches/jbossws-1.0/src/main/resources/jbossws.beans/META-INF/jboss-beans.xml
===================================================================
---
branches/jbossws-1.0/src/main/resources/jbossws.beans/META-INF/jboss-beans.xml 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/resources/jbossws.beans/META-INF/jboss-beans.xml 2006-12-07
13:30:48 UTC (rev 1606)
@@ -4,7 +4,7 @@
xsi:schemaLocation="urn:jboss:bean-deployer bean-deployer_1_0.xsd"
xmlns="urn:jboss:bean-deployer">
- <bean name="ServiceEndpointManager"
class="org.jboss.ws.server.ServiceEndpointManager">
+ <bean name="ServiceEndpointManager"
class="org.jboss.ws.core.server.ServiceEndpointManager">
<!--
The WSDL, that is a required deployment artifact for an endpoint, has a
<soap:address>
element which points to the location of the endpoint. JBoss supports rewriting of
that SOAP address.
@@ -24,31 +24,31 @@
<property name="alwaysModifySOAPAddress">true</property>
- <property
name="serviceEndpointInvokerJSE">org.jboss.ws.server.ServiceEndpointInvokerJSE</property>
- <property
name="serviceEndpointInvokerEJB21">org.jboss.ws.integration.jboss.ServiceEndpointInvokerEJB21</property>
- <property
name="serviceEndpointInvokerEJB3">org.jboss.ws.integration.jboss.ServiceEndpointInvokerEJB3</property>
- <property
name="serviceEndpointInvokerMDB">org.jboss.ws.integration.jboss.ServiceEndpointInvokerMDB</property>
+ <property
name="serviceEndpointInvokerJSE">org.jboss.ws.core.server.ServiceEndpointInvokerJSE</property>
+ <property
name="serviceEndpointInvokerEJB21">org.jboss.ws.integration.jboss42.ServiceEndpointInvokerEJB21</property>
+ <property
name="serviceEndpointInvokerEJB3">org.jboss.ws.integration.jboss42.ServiceEndpointInvokerEJB3</property>
+ <property
name="serviceEndpointInvokerMDB">org.jboss.ws.integration.jboss42.ServiceEndpointInvokerMDB</property>
</bean>
<bean name="ServiceEndpointDeployer"
class="org.jboss.ws.deployment.ServiceEndpointDeployer">
<property name="serviceEndpointManager"><inject
bean="ServiceEndpointManager"/></property>
</bean>
- <bean name="ServiceEndpointPublisher"
class="org.jboss.ws.integration.jboss.JBossServiceEndpointPublisher">
+ <bean name="ServiceEndpointPublisher"
class="org.jboss.ws.integration.jboss42.JBossServiceEndpointPublisher">
<property name="serviceEndpointDeployer"><inject
bean="ServiceEndpointDeployer"/></property>
- <property
name="serviceEndpointServlet">org.jboss.ws.integration.jboss.JBossServiceEndpointServlet</property>
+ <property
name="serviceEndpointServlet">org.jboss.ws.integration.jboss42.JBossServiceEndpointServlet</property>
</bean>
- <bean name="JMSMessageDispatcher"
class="org.jboss.ws.integration.jboss.jms.JMSMessageDispatcher"/>
+ <bean name="JMSMessageDispatcher"
class="org.jboss.ws.integration.jboss42.jms.JMSMessageDispatcher"/>
<!-- A subscription manager for WS-Eventing -->
- <bean name="SubscriptionManager"
class="org.jboss.ws.eventing.mgmt.SubscriptionManager">
+ <bean name="SubscriptionManager"
class="org.jboss.ws.extensions.eventing.mgmt.SubscriptionManager">
<property name="maxLeaseTimeMins">10</property>
<property name="defaultLeaseTimeMins">5</property>
</bean>
- <bean name="ServerConfig"
class="org.jboss.ws.integration.jboss.ServerConfigImpl"/>
+ <bean name="ServerConfig"
class="org.jboss.ws.integration.jboss42.ServerConfigImpl"/>
- <bean name="KernelLocator"
class="org.jboss.ws.server.KernelLocator"/>
+ <bean name="KernelLocator"
class="org.jboss.ws.core.server.KernelLocator"/>
</deployment>
Modified: branches/jbossws-1.0/src/main/resources/jbossws.sar/META-INF/jboss-service.xml
===================================================================
---
branches/jbossws-1.0/src/main/resources/jbossws.sar/META-INF/jboss-service.xml 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/resources/jbossws.sar/META-INF/jboss-service.xml 2006-12-07
13:30:48 UTC (rev 1606)
@@ -7,14 +7,14 @@
<!--
A deployer service for WS clients.
-->
- <mbean name="jboss.ws:service=WebServiceClientDeployer"
code="org.jboss.ws.integration.jboss.WebServiceClientDeployer">
+ <mbean name="jboss.ws:service=WebServiceClientDeployer"
code="org.jboss.ws.integration.jboss42.WebServiceClientDeployer">
<depends>jboss:service=Naming</depends>
</mbean>
<!--
A deployer service for JSE endpoints.
-->
- <mbean name="jboss.ws:service=WebServiceDeployerJSE"
code="org.jboss.ws.integration.jboss.DeployerInterceptorJSE">
+ <mbean name="jboss.ws:service=WebServiceDeployerJSE"
code="org.jboss.ws.integration.jboss42.DeployerInterceptorJSE">
<depends-list optional-attribute-name="Interceptables">
<depends-list-element>jboss.web:service=WebServer</depends-list-element>
</depends-list>
@@ -23,7 +23,7 @@
<!--
A deployer service for EJB2.1 endpoints.
-->
- <mbean name="jboss.ws:service=DeployerInterceptorEJB21"
code="org.jboss.ws.integration.jboss.DeployerInterceptorEJB21">
+ <mbean name="jboss.ws:service=DeployerInterceptorEJB21"
code="org.jboss.ws.integration.jboss42.DeployerInterceptorEJB21">
<depends-list optional-attribute-name="Interceptables">
<depends-list-element>jboss.ejb:service=EJBDeployer</depends-list-element>
</depends-list>
@@ -32,7 +32,7 @@
<!--
A deployer service for EJB3 endpoints.
-->
- <mbean name="jboss.ws:service=DeployerInterceptorEJB3"
code="org.jboss.ws.integration.jboss.DeployerInterceptorEJB3">
+ <mbean name="jboss.ws:service=DeployerInterceptorEJB3"
code="org.jboss.ws.integration.jboss42.DeployerInterceptorEJB3">
<depends-list optional-attribute-name="Interceptables">
<depends-list-element>jboss.ejb3:service=EJB3Deployer</depends-list-element>
</depends-list>
@@ -41,7 +41,7 @@
<!--
A deployer service for JSE endpoints that are nested in service archives (sar).
-->
- <mbean name="jboss.ws:service=DeployerInterceptorNestedJSE"
code="org.jboss.ws.integration.jboss.DeployerInterceptorNestedJSE">
+ <mbean name="jboss.ws:service=DeployerInterceptorNestedJSE"
code="org.jboss.ws.integration.jboss42.DeployerInterceptorNestedJSE">
<depends optional-attribute-name="MainDeployer"
proxy-type="attribute">jboss.system:service=MainDeployer</depends>
<depends>jboss.ws:service=WebServiceDeployerJSE</depends>
</mbean>
Modified:
branches/jbossws-1.0/src/main/resources/jbossws.sar/META-INF/standard-jaxrpc-client-config.xml
===================================================================
---
branches/jbossws-1.0/src/main/resources/jbossws.sar/META-INF/standard-jaxrpc-client-config.xml 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/resources/jbossws.sar/META-INF/standard-jaxrpc-client-config.xml 2006-12-07
13:30:48 UTC (rev 1606)
@@ -15,7 +15,7 @@
<handler-chain-name>MTOM handler</handler-chain-name>
<handler>
<j2ee:handler-name>DisableMTOMHandler</j2ee:handler-name>
-
<j2ee:handler-class>org.jboss.ws.xop.DisableMTOMHandler</j2ee:handler-class>
+
<j2ee:handler-class>org.jboss.ws.extensions.xop.DisableMTOMHandler</j2ee:handler-class>
</handler>
</post-handler-chain>
</client-config>
@@ -26,7 +26,7 @@
<handler-chain-name>WSAddressing Handlers</handler-chain-name>
<handler>
<j2ee:handler-name>WSAddressingClientHandler</j2ee:handler-name>
-
<j2ee:handler-class>org.jboss.ws.addressing.jaxrpc.WSAddressingClientHandler</j2ee:handler-class>
+
<j2ee:handler-class>org.jboss.ws.extensions.addressing.jaxrpc.WSAddressingClientHandler</j2ee:handler-class>
</handler>
</post-handler-chain>
</client-config>
@@ -37,7 +37,7 @@
<handler-chain-name>WSSecurity Handlers</handler-chain-name>
<handler>
<j2ee:handler-name>WSSecurityHandlerOutbound</j2ee:handler-name>
-
<j2ee:handler-class>org.jboss.ws.wsse.jaxrpc.WSSecurityHandlerOutbound</j2ee:handler-class>
+
<j2ee:handler-class>org.jboss.ws.extensions.security.jaxrpc.WSSecurityHandlerOutbound</j2ee:handler-class>
</handler>
</post-handler-chain>
</client-config>
Modified:
branches/jbossws-1.0/src/main/resources/jbossws.sar/META-INF/standard-jaxrpc-endpoint-config.xml
===================================================================
---
branches/jbossws-1.0/src/main/resources/jbossws.sar/META-INF/standard-jaxrpc-endpoint-config.xml 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/resources/jbossws.sar/META-INF/standard-jaxrpc-endpoint-config.xml 2006-12-07
13:30:48 UTC (rev 1606)
@@ -15,7 +15,7 @@
<handler-chain-name>MTOM handlers</handler-chain-name>
<handler>
<j2ee:handler-name>DisableMTOMHandler</j2ee:handler-name>
-
<j2ee:handler-class>org.jboss.ws.xop.DisableMTOMHandler</j2ee:handler-class>
+
<j2ee:handler-class>org.jboss.ws.extensions.xop.DisableMTOMHandler</j2ee:handler-class>
</handler>
</pre-handler-chain>
</endpoint-config>
@@ -26,7 +26,7 @@
<handler-chain-name>WSAddressing Handlers</handler-chain-name>
<handler>
<j2ee:handler-name>WSAddressing Handler</j2ee:handler-name>
-
<j2ee:handler-class>org.jboss.ws.addressing.jaxrpc.WSAddressingServerHandler</j2ee:handler-class>
+
<j2ee:handler-class>org.jboss.ws.extensions.addressing.jaxrpc.WSAddressingServerHandler</j2ee:handler-class>
</handler>
</pre-handler-chain>
</endpoint-config>
@@ -37,7 +37,7 @@
<handler-chain-name>WSSecurity Handlers</handler-chain-name>
<handler>
<j2ee:handler-name>WSSecurityHandlerInbound</j2ee:handler-name>
-
<j2ee:handler-class>org.jboss.ws.wsse.jaxrpc.WSSecurityHandlerInbound</j2ee:handler-class>
+
<j2ee:handler-class>org.jboss.ws.extensions.security.jaxrpc.WSSecurityHandlerInbound</j2ee:handler-class>
</handler>
</pre-handler-chain>
</endpoint-config>
Modified: branches/jbossws-1.0/src/main/resources/jbossws.war/JBoss/WEB-INF/web.xml
===================================================================
--- branches/jbossws-1.0/src/main/resources/jbossws.war/JBoss/WEB-INF/web.xml 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/main/resources/jbossws.war/JBoss/WEB-INF/web.xml 2006-12-07
13:30:48 UTC (rev 1606)
@@ -14,12 +14,12 @@
<servlet>
<servlet-name>ContextServlet</servlet-name>
-
<servlet-class>org.jboss.ws.integration.jboss.JBossContextServlet</servlet-class>
+
<servlet-class>org.jboss.ws.integration.jboss42.JBossContextServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>PortComponentLinkServlet</servlet-name>
-
<servlet-class>org.jboss.ws.integration.jboss.PortComponentLinkServlet</servlet-class>
+
<servlet-class>org.jboss.ws.integration.jboss42.PortComponentLinkServlet</servlet-class>
</servlet>
<!-- now the mappings -->
Modified:
branches/jbossws-1.0/src/main/resources/jbossws.war/Tomcat/META-INF/jboss-beans.xml
===================================================================
---
branches/jbossws-1.0/src/main/resources/jbossws.war/Tomcat/META-INF/jboss-beans.xml 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/resources/jbossws.war/Tomcat/META-INF/jboss-beans.xml 2006-12-07
13:30:48 UTC (rev 1606)
@@ -4,7 +4,7 @@
xsi:schemaLocation="urn:jboss:bean-deployer bean-deployer_1_0.xsd"
xmlns="urn:jboss:bean-deployer">
- <bean name="ServiceEndpointManager"
class="org.jboss.ws.server.ServiceEndpointManager">
+ <bean name="ServiceEndpointManager"
class="org.jboss.ws.core.server.ServiceEndpointManager">
<!--
The WSDL, that is a required deployment artifact for an endpoint, has a
<soap:address>
element which points to the location of the endpoint. JBossWS supports rewriting of
that SOAP address.
@@ -16,7 +16,7 @@
<property name="webServiceHost">localhost</property>
<property name="webServiceSecurePort">8443</property>
<property name="webServicePort">8080</property>
- <property
name="serviceEndpointInvokerJSE">org.jboss.ws.server.ServiceEndpointInvokerJSE</property>
+ <property
name="serviceEndpointInvokerJSE">org.jboss.ws.core.server.ServiceEndpointInvokerJSE</property>
</bean>
<bean name="ServiceEndpointDeployer"
class="org.jboss.ws.deployment.ServiceEndpointDeployer">
@@ -34,10 +34,10 @@
<!--
A subscription manager for WS-Eventing
-->
- <bean name="SubscriptionManager"
class="org.jboss.ws.eventing.mgmt.SubscriptionManager"/>
+ <bean name="SubscriptionManager"
class="org.jboss.ws.extensions.eventing.mgmt.SubscriptionManager"/>
<bean name="ServerConfig"
class="org.jboss.ws.integration.tomcat.ServerConfigImpl"/>
- <bean name="KernelLocator"
class="org.jboss.ws.server.KernelLocator"/>
+ <bean name="KernelLocator"
class="org.jboss.ws.core.server.KernelLocator"/>
</deployment>
Modified:
branches/jbossws-1.0/src/main/resources/jbossws14.sar/META-INF/jboss-service.xml
===================================================================
---
branches/jbossws-1.0/src/main/resources/jbossws14.sar/META-INF/jboss-service.xml 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/main/resources/jbossws14.sar/META-INF/jboss-service.xml 2006-12-07
13:30:48 UTC (rev 1606)
@@ -7,14 +7,14 @@
<!--
A deployer service for WS clients.
-->
- <mbean name="jboss.ws:service=WebServiceClientDeployer"
code="org.jboss.ws.integration.jboss.WebServiceClientDeployer">
+ <mbean name="jboss.ws:service=WebServiceClientDeployer"
code="org.jboss.ws.integration.jboss42.WebServiceClientDeployer">
<depends>jboss:service=Naming</depends>
</mbean>
<!--
A deployer service for JSE endpoints.
-->
- <mbean name="jboss.ws:service=WebServiceDeployerJSE"
code="org.jboss.ws.integration.jboss.DeployerInterceptorJSE">
+ <mbean name="jboss.ws:service=WebServiceDeployerJSE"
code="org.jboss.ws.integration.jboss42.DeployerInterceptorJSE">
<depends-list optional-attribute-name="Interceptables">
<depends-list-element>jboss.web:service=WebServer</depends-list-element>
</depends-list>
@@ -23,7 +23,7 @@
<!--
A deployer service for EJB2.1 endpoints.
-->
- <mbean name="jboss.ws:service=DeployerInterceptorEJB21"
code="org.jboss.ws.integration.jboss.DeployerInterceptorEJB21">
+ <mbean name="jboss.ws:service=DeployerInterceptorEJB21"
code="org.jboss.ws.integration.jboss42.DeployerInterceptorEJB21">
<depends-list optional-attribute-name="Interceptables">
<depends-list-element>jboss.ejb:service=EJBDeployer</depends-list-element>
</depends-list>
@@ -31,7 +31,7 @@
<!--
A deployer service for EJB3 endpoints.
- <mbean name="jboss.ws:service=DeployerInterceptorEJB3"
code="org.jboss.ws.integration.jboss.DeployerInterceptorEJB3">
+ <mbean name="jboss.ws:service=DeployerInterceptorEJB3"
code="org.jboss.ws.integration.jboss42.DeployerInterceptorEJB3">
<depends-list optional-attribute-name="Interceptables">
<depends-list-element>jboss.ejb3:service=EJB3Deployer</depends-list-element>
</depends-list>
@@ -41,7 +41,7 @@
<!--
A deployer service for JSE endpoints that are nested in service archives (sar).
-->
- <mbean name="jboss.ws:service=DeployerInterceptorNestedJSE"
code="org.jboss.ws.integration.jboss.DeployerInterceptorNestedJSE">
+ <mbean name="jboss.ws:service=DeployerInterceptorNestedJSE"
code="org.jboss.ws.integration.jboss42.DeployerInterceptorNestedJSE">
<depends optional-attribute-name="MainDeployer"
proxy-type="attribute">jboss.system:service=MainDeployer</depends>
<depends>jboss.ws:service=WebServiceDeployerJSE</depends>
</mbean>
Modified: branches/jbossws-1.0/src/test/build.xml
===================================================================
--- branches/jbossws-1.0/src/test/build.xml 2006-12-07 12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/test/build.xml 2006-12-07 13:30:48 UTC (rev 1606)
@@ -150,6 +150,8 @@
<!-- The jbossws client classpath -->
<path id="jbossws.client.classpath">
<pathelement location="${build.lib.dir}/${jbossws.client.jar}"/>
+ <pathelement location="${build.lib.dir}/jboss-jaxrpc.jar"/>
+ <pathelement location="${build.lib.dir}/jboss-saaj.jar"/>
<pathelement location="${jboss.client}/activation.jar"/>
<pathelement location="${jboss.client}/commons-logging.jar"/>
<pathelement location="${jboss.client}/javassist.jar"/>
Modified: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/JBossWSTest.java
===================================================================
--- branches/jbossws-1.0/src/test/java/org/jboss/test/ws/JBossWSTest.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/test/java/org/jboss/test/ws/JBossWSTest.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -34,7 +34,7 @@
import junit.framework.TestCase;
import org.jboss.logging.Logger;
-import org.jboss.ws.utils.DOMWriter;
+import org.jboss.ws.core.utils.DOMWriter;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
Modified: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/JBossWSTestSetup.java
===================================================================
--- branches/jbossws-1.0/src/test/java/org/jboss/test/ws/JBossWSTestSetup.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/test/java/org/jboss/test/ws/JBossWSTestSetup.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -21,15 +21,15 @@
*/
package org.jboss.test.ws;
+import java.net.URL;
+import java.net.URLClassLoader;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.StringTokenizer;
+
import junit.extensions.TestSetup;
import junit.framework.TestSuite;
-import java.util.StringTokenizer;
-import java.util.List;
-import java.util.ArrayList;
-import java.net.URLClassLoader;
-import java.net.URL;
-
/**
* A test setup that deploys/undeploys archives
*
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/binding/SOAPBindingTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/binding/SOAPBindingTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/binding/SOAPBindingTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -36,19 +36,19 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.ws.Constants;
-import org.jboss.ws.binding.EndpointInvocation;
-import org.jboss.ws.binding.UnboundHeader;
-import org.jboss.ws.common.CommonBinding;
-import org.jboss.ws.common.CommonBindingProvider;
-import org.jboss.ws.common.CommonMessageContext;
-import org.jboss.ws.common.CommonSOAPBinding;
-import org.jboss.ws.jaxrpc.CallImpl;
-import org.jboss.ws.jaxrpc.handler.SOAPMessageContextJAXRPC;
-import org.jboss.ws.metadata.OperationMetaData;
-import org.jboss.ws.metadata.ParameterMetaData;
-import org.jboss.ws.soap.MessageContextAssociation;
-import org.jboss.ws.soap.MessageFactoryImpl;
-import org.jboss.ws.utils.DOMUtils;
+import org.jboss.ws.core.CommonBinding;
+import org.jboss.ws.core.CommonBindingProvider;
+import org.jboss.ws.core.CommonMessageContext;
+import org.jboss.ws.core.CommonSOAPBinding;
+import org.jboss.ws.core.EndpointInvocation;
+import org.jboss.ws.core.jaxrpc.CallImpl;
+import org.jboss.ws.core.jaxrpc.handler.SOAPMessageContextJAXRPC;
+import org.jboss.ws.core.soap.MessageContextAssociation;
+import org.jboss.ws.core.soap.MessageFactoryImpl;
+import org.jboss.ws.core.soap.UnboundHeader;
+import org.jboss.ws.core.utils.DOMUtils;
+import org.jboss.ws.metadata.umdm.OperationMetaData;
+import org.jboss.ws.metadata.umdm.ParameterMetaData;
/**
* Test the SOAPBindingProvider
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/config/WSConfigTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/config/WSConfigTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/config/WSConfigTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -71,6 +71,6 @@
assertEquals(1, preChain.getHandlers().size());
UnifiedHandlerMetaData h1 = (UnifiedHandlerMetaData)preChain.getHandlers().get(0);
assertEquals("WSSecurityHandlerInbound", h1.getHandlerName());
- assertEquals("org.jboss.ws.wsse.jaxrpc.WSSecurityHandlerInbound",
h1.getHandlerClass());
+
assertEquals("org.jboss.ws.extensions.security.jaxrpc.WSSecurityHandlerInbound",
h1.getHandlerClass());
}
}
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/SerializerDeserializerTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/SerializerDeserializerTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/SerializerDeserializerTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -32,14 +32,14 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.ws.Constants;
-import org.jboss.ws.binding.DeserializerSupport;
-import org.jboss.ws.binding.SerializationContext;
-import org.jboss.ws.binding.SerializerSupport;
-import org.jboss.ws.jaxrpc.SerializationContextJAXRPC;
-import org.jboss.ws.jaxrpc.TypeMappingImpl;
-import org.jboss.ws.jaxrpc.TypeMappingRegistryImpl;
-import org.jboss.ws.jaxrpc.encoding.DeserializerFactoryBase;
-import org.jboss.ws.jaxrpc.encoding.SerializerFactoryBase;
+import org.jboss.ws.core.jaxrpc.SerializationContextJAXRPC;
+import org.jboss.ws.core.jaxrpc.TypeMappingImpl;
+import org.jboss.ws.core.jaxrpc.TypeMappingRegistryImpl;
+import org.jboss.ws.core.jaxrpc.binding.DeserializerFactoryBase;
+import org.jboss.ws.core.jaxrpc.binding.DeserializerSupport;
+import org.jboss.ws.core.jaxrpc.binding.SerializationContext;
+import org.jboss.ws.core.jaxrpc.binding.SerializerFactoryBase;
+import org.jboss.ws.core.jaxrpc.binding.SerializerSupport;
import org.jboss.xb.binding.NamespaceRegistry;
/**
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/array/BigDecimalArrayMarshallerTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/array/BigDecimalArrayMarshallerTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/array/BigDecimalArrayMarshallerTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -28,10 +28,10 @@
import org.apache.xerces.xs.XSModel;
import org.jboss.test.ws.tools.WSToolsTest;
-import org.jboss.ws.jbossxb.JBossXBConstants;
-import org.jboss.ws.jbossxb.JBossXBMarshallerImpl;
+import org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBConstants;
+import org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBMarshallerImpl;
+import org.jboss.ws.core.utils.DOMUtils;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
-import org.jboss.ws.utils.DOMUtils;
/**
* Test the JAXB marshalling of array types
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/array/BigDecimalArrayUnmarshallerTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/array/BigDecimalArrayUnmarshallerTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/array/BigDecimalArrayUnmarshallerTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -28,10 +28,10 @@
import org.apache.xerces.xs.XSModel;
import org.jboss.test.ws.tools.WSToolsTest;
-import org.jboss.ws.jbossxb.JBossXBConstants;
-import org.jboss.ws.jbossxb.JBossXBUnmarshallerImpl;
+import org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBConstants;
+import org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBUnmarshallerImpl;
+import org.jboss.ws.core.utils.DOMUtils;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
-import org.jboss.ws.utils.DOMUtils;
/**
* Test the JAXB marshalling of array types
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/array/CalendarArrayMarshallerTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/array/CalendarArrayMarshallerTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/array/CalendarArrayMarshallerTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -30,10 +30,10 @@
import org.apache.xerces.xs.XSModel;
import org.jboss.test.ws.tools.WSToolsTest;
-import org.jboss.ws.jbossxb.JBossXBConstants;
-import org.jboss.ws.jbossxb.JBossXBMarshallerImpl;
+import org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBConstants;
+import org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBMarshallerImpl;
+import org.jboss.ws.core.utils.DOMUtils;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
-import org.jboss.ws.utils.DOMUtils;
/**
* Test the JAXB marshalling of array types
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/array/CalendarArrayUnmarshallerTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/array/CalendarArrayUnmarshallerTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/array/CalendarArrayUnmarshallerTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -30,10 +30,10 @@
import org.apache.xerces.xs.XSModel;
import org.jboss.test.ws.tools.WSToolsTest;
-import org.jboss.ws.jbossxb.JBossXBConstants;
-import org.jboss.ws.jbossxb.JBossXBUnmarshallerImpl;
+import org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBConstants;
+import org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBUnmarshallerImpl;
+import org.jboss.ws.core.utils.DOMUtils;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
-import org.jboss.ws.utils.DOMUtils;
/**
* Test the JAXB marshalling of array types
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/array/QNameArrayMarshallerTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/array/QNameArrayMarshallerTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/array/QNameArrayMarshallerTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -27,10 +27,10 @@
import org.apache.xerces.xs.XSModel;
import org.jboss.test.ws.tools.WSToolsTest;
-import org.jboss.ws.jbossxb.JBossXBConstants;
-import org.jboss.ws.jbossxb.JBossXBMarshallerImpl;
+import org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBConstants;
+import org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBMarshallerImpl;
+import org.jboss.ws.core.utils.DOMUtils;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
-import org.jboss.ws.utils.DOMUtils;
/**
* Test the JAXB marshalling of array types
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/array/QNameArrayUnmarshallerTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/array/QNameArrayUnmarshallerTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/array/QNameArrayUnmarshallerTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -27,10 +27,10 @@
import org.apache.xerces.xs.XSModel;
import org.jboss.test.ws.tools.WSToolsTest;
-import org.jboss.ws.jbossxb.JBossXBConstants;
-import org.jboss.ws.jbossxb.JBossXBUnmarshallerImpl;
+import org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBConstants;
+import org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBUnmarshallerImpl;
+import org.jboss.ws.core.utils.DOMUtils;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
-import org.jboss.ws.utils.DOMUtils;
/**
* Test the JAXB marshalling of array types
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/complex/ComplexTypeMarshallerTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/complex/ComplexTypeMarshallerTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/complex/ComplexTypeMarshallerTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -30,11 +30,11 @@
import org.apache.xerces.xs.XSModel;
import org.jboss.test.ws.tools.WSToolsTest;
-import org.jboss.ws.jbossxb.JBossXBConstants;
-import org.jboss.ws.jbossxb.JBossXBMarshallerImpl;
+import org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBConstants;
+import org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBMarshallerImpl;
+import org.jboss.ws.core.utils.DOMUtils;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMappingFactory;
-import org.jboss.ws.utils.DOMUtils;
/**
* Test the JAXB marshalling of complex types
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/complex/ComplexTypeUnmarshallerTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/complex/ComplexTypeUnmarshallerTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/complex/ComplexTypeUnmarshallerTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -30,8 +30,8 @@
import org.apache.xerces.xs.XSModel;
import org.jboss.test.ws.tools.WSToolsTest;
-import org.jboss.ws.jbossxb.JBossXBConstants;
-import org.jboss.ws.jbossxb.JBossXBUnmarshallerImpl;
+import org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBConstants;
+import org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBUnmarshallerImpl;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMappingFactory;
import org.jboss.ws.tools.JavaToXSD;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/docstyle/DocumentStyleMarshallerTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/docstyle/DocumentStyleMarshallerTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/docstyle/DocumentStyleMarshallerTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -30,11 +30,11 @@
import org.apache.xerces.xs.XSModel;
import org.jboss.test.ws.tools.WSToolsTest;
-import org.jboss.ws.jbossxb.JBossXBConstants;
-import org.jboss.ws.jbossxb.JBossXBMarshallerImpl;
+import org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBConstants;
+import org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBMarshallerImpl;
+import org.jboss.ws.core.utils.DOMUtils;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMappingFactory;
-import org.jboss.ws.utils.DOMUtils;
/**
* Test the JAXB marshalling of complex types
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/docstyle/DocumentStyleUnmarshallerTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/docstyle/DocumentStyleUnmarshallerTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/docstyle/DocumentStyleUnmarshallerTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -29,8 +29,8 @@
import org.apache.xerces.xs.XSModel;
import org.jboss.test.ws.tools.WSToolsTest;
-import org.jboss.ws.jbossxb.JBossXBConstants;
-import org.jboss.ws.jbossxb.JBossXBUnmarshallerImpl;
+import org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBConstants;
+import org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBUnmarshallerImpl;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMappingFactory;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/simple/SimpleUserTypeMarshallerTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/simple/SimpleUserTypeMarshallerTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/simple/SimpleUserTypeMarshallerTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -27,11 +27,11 @@
import org.apache.xerces.xs.XSModel;
import org.jboss.test.ws.tools.WSToolsTest;
-import org.jboss.ws.jbossxb.JBossXBConstants;
-import org.jboss.ws.jbossxb.JBossXBMarshallerImpl;
+import org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBConstants;
+import org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBMarshallerImpl;
+import org.jboss.ws.core.utils.DOMUtils;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
import org.jboss.ws.metadata.jaxrpcmapping.PackageMapping;
-import org.jboss.ws.utils.DOMUtils;
/**
* Test the JAXB marshalling of a SimpleUserType
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/simple/SimpleUserTypeUnmarshallerTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/simple/SimpleUserTypeUnmarshallerTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/jbossxb/simple/SimpleUserTypeUnmarshallerTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -27,11 +27,11 @@
import org.apache.xerces.xs.XSModel;
import org.jboss.test.ws.tools.WSToolsTest;
-import org.jboss.ws.jbossxb.JBossXBConstants;
-import org.jboss.ws.jbossxb.JBossXBUnmarshallerImpl;
+import org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBConstants;
+import org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBUnmarshallerImpl;
+import org.jboss.ws.core.utils.DOMUtils;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
import org.jboss.ws.metadata.jaxrpcmapping.PackageMapping;
-import org.jboss.ws.utils.DOMUtils;
/**
* Test the JAXB unmarshalling of a SimpleUserType
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/MessageFactoryTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/MessageFactoryTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/MessageFactoryTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -31,8 +31,8 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.ws.Constants;
-import org.jboss.ws.soap.MessageFactoryImpl;
-import org.jboss.ws.utils.DOMUtils;
+import org.jboss.ws.core.soap.MessageFactoryImpl;
+import org.jboss.ws.core.utils.DOMUtils;
import org.w3c.dom.Element;
/**
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/SOAPConnectionTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/SOAPConnectionTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/SOAPConnectionTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -38,7 +38,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.soap.SOAPBodyElementRpc;
+import org.jboss.ws.core.soap.SOAPBodyElementRpc;
/** Test call on a SOAPConnection
*
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/SOAPContentElementTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/SOAPContentElementTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/SOAPContentElementTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -33,8 +33,8 @@
import javax.xml.soap.Text;
import org.jboss.test.ws.JBossWSTest;
-import org.jboss.ws.soap.NameImpl;
-import org.jboss.ws.soap.SOAPContentElement;
+import org.jboss.ws.core.soap.NameImpl;
+import org.jboss.ws.core.soap.SOAPContentElement;
/**
* Test the SOAPContentElement
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/SOAPEnvelopeTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/SOAPEnvelopeTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/SOAPEnvelopeTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -32,8 +32,8 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.ws.Constants;
-import org.jboss.ws.soap.MessageFactoryImpl;
-import org.jboss.ws.utils.DOMUtils;
+import org.jboss.ws.core.soap.MessageFactoryImpl;
+import org.jboss.ws.core.utils.DOMUtils;
import org.w3c.dom.Element;
/**
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/SOAPFactoryTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/SOAPFactoryTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/SOAPFactoryTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -39,7 +39,7 @@
public void testSOAPFactoryCreation() throws Exception
{
SOAPFactory factory = SOAPFactory.newInstance();
- assertEquals(org.jboss.ws.soap.SOAPFactoryImpl.class, factory.getClass());
+ assertEquals(org.jboss.ws.core.soap.SOAPFactoryImpl.class, factory.getClass());
}
public void testCreateDetail() throws Exception
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/SOAPFaultTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/SOAPFaultTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/SOAPFaultTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -37,8 +37,8 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.ws.Constants;
-import org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper;
-import org.jboss.ws.utils.DOMUtils;
+import org.jboss.ws.core.jaxrpc.SOAPFaultExceptionHelper;
+import org.jboss.ws.core.utils.DOMUtils;
/**
* Test the SOAPFault
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/SOAPHeaderElementTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/SOAPHeaderElementTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/SOAPHeaderElementTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -32,9 +32,9 @@
import javax.xml.soap.SOAPMessage;
import org.jboss.test.ws.JBossWSTest;
-import org.jboss.ws.soap.MessageFactoryImpl;
-import org.jboss.ws.soap.NameImpl;
-import org.jboss.ws.utils.DOMUtils;
+import org.jboss.ws.core.soap.MessageFactoryImpl;
+import org.jboss.ws.core.soap.NameImpl;
+import org.jboss.ws.core.utils.DOMUtils;
/**
* Test the SOAPHeaderElement
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/SOAPHeaderTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/SOAPHeaderTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/SOAPHeaderTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -34,9 +34,9 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.ws.Constants;
-import org.jboss.ws.soap.MessageFactoryImpl;
-import org.jboss.ws.soap.NameImpl;
-import org.jboss.ws.utils.DOMUtils;
+import org.jboss.ws.core.soap.MessageFactoryImpl;
+import org.jboss.ws.core.soap.NameImpl;
+import org.jboss.ws.core.utils.DOMUtils;
/**
* Test the SOAPHeader
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/attachment/GenericAttachmentTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/attachment/GenericAttachmentTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/soap/attachment/GenericAttachmentTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -41,16 +41,16 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.ws.Constants;
-import org.jboss.ws.binding.EndpointInvocation;
-import org.jboss.ws.common.CommonBinding;
-import org.jboss.ws.common.CommonBindingProvider;
-import org.jboss.ws.common.CommonSOAPBinding;
-import org.jboss.ws.jaxrpc.CallImpl;
-import org.jboss.ws.jaxrpc.handler.SOAPMessageContextJAXRPC;
-import org.jboss.ws.metadata.OperationMetaData;
-import org.jboss.ws.soap.MessageContextAssociation;
-import org.jboss.ws.soap.MessageFactoryImpl;
-import org.jboss.ws.soap.attachment.MimeConstants;
+import org.jboss.ws.core.CommonBinding;
+import org.jboss.ws.core.CommonBindingProvider;
+import org.jboss.ws.core.CommonSOAPBinding;
+import org.jboss.ws.core.EndpointInvocation;
+import org.jboss.ws.core.jaxrpc.CallImpl;
+import org.jboss.ws.core.jaxrpc.handler.SOAPMessageContextJAXRPC;
+import org.jboss.ws.core.soap.MessageContextAssociation;
+import org.jboss.ws.core.soap.MessageFactoryImpl;
+import org.jboss.ws.core.soap.attachment.MimeConstants;
+import org.jboss.ws.metadata.umdm.OperationMetaData;
/**
* TODO
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/utils/DOMWriterTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/utils/DOMWriterTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/utils/DOMWriterTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -30,7 +30,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.util.xml.DOMUtils;
-import org.jboss.ws.utils.DOMWriter;
+import org.jboss.ws.core.utils.DOMWriter;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/utils/JavaUtilsTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/utils/JavaUtilsTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/utils/JavaUtilsTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -23,7 +23,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.tools.jbws_161.custom.HelloObj;
-import org.jboss.ws.utils.JavaUtils;
+import org.jboss.ws.core.utils.JavaUtils;
/**
* Test the JavaUtils
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/wsdl11/MicrosoftGeneratedWSDLTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/wsdl11/MicrosoftGeneratedWSDLTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/wsdl11/MicrosoftGeneratedWSDLTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -25,9 +25,9 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
import org.jboss.ws.metadata.wsdl.WSDLTypes;
import org.jboss.ws.metadata.wsdl.WSDLUtils;
+import org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory;
/**
* Tests WSDL11Reader ability to parse WSDL Files
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/wsdl11/MultiSchemaTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/wsdl11/MultiSchemaTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/wsdl11/MultiSchemaTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -25,9 +25,9 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
import org.jboss.ws.metadata.wsdl.WSDLTypes;
import org.jboss.ws.metadata.wsdl.WSDLUtils;
+import org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory;
/**
* Test the XSModel, and how it handles multiple schemas
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/wsdl11/SimpleFileImportTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/wsdl11/SimpleFileImportTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/wsdl11/SimpleFileImportTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -31,7 +31,7 @@
import org.jboss.net.protocol.URLStreamHandlerFactory;
import org.jboss.test.ws.JBossWSTest;
-import org.jboss.ws.metadata.wsdl.WSDL11DefinitionFactory;
+import org.jboss.ws.tools.wsdl.WSDL11DefinitionFactory;
/**
* Test a wsdl import functionality.
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/wsdl11/WSDL11TestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/wsdl11/WSDL11TestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/wsdl11/WSDL11TestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -27,10 +27,9 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.ws.Constants;
-import org.jboss.ws.eventing.EventingConstants;
+import org.jboss.ws.extensions.eventing.EventingConstants;
import org.jboss.ws.metadata.wsdl.NCName;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
import org.jboss.ws.metadata.wsdl.WSDLEndpoint;
import org.jboss.ws.metadata.wsdl.WSDLInterface;
import org.jboss.ws.metadata.wsdl.WSDLInterfaceOperation;
@@ -39,6 +38,7 @@
import org.jboss.ws.metadata.wsdl.WSDLService;
import org.jboss.ws.metadata.wsdl.WSDLTypes;
import org.jboss.ws.metadata.wsdl.WSDLUtils;
+import org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory;
/**
* Test the unmarshalling of wsdl-1.1 into the unified wsdl structure
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/wsdl11/WSDLTypesTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/wsdl11/WSDLTypesTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/wsdl11/WSDLTypesTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -26,9 +26,9 @@
import org.apache.xerces.xs.XSTypeDefinition;
import org.jboss.test.ws.JBossWSTest;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
import org.jboss.ws.metadata.wsdl.WSDLUtils;
import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel;
+import org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory;
/**
* The WSDL may contain or import XSD schema definitions.
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/wsdl11/WSDLWithAnonTypesTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/wsdl11/WSDLWithAnonTypesTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/common/wsdl11/WSDLWithAnonTypesTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -32,10 +32,10 @@
import org.apache.xerces.xs.XSTerm;
import org.apache.xerces.xs.XSTypeDefinition;
import org.jboss.test.ws.tools.WSToolsTest;
+import org.jboss.ws.core.utils.DOMUtils;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
import org.jboss.ws.metadata.wsdl.WSDLUtils;
import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel;
-import org.jboss.ws.utils.DOMUtils;
import org.w3c.dom.Element;
/**
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/ClientScenario.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/ClientScenario.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/ClientScenario.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -22,8 +22,8 @@
package org.jboss.test.ws.interop.microsoft;
import java.net.URL;
+import java.util.HashMap;
import java.util.Map;
-import java.util.HashMap;
/**
* A particular interop test scenario.
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsa10/AddressingTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsa10/AddressingTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsa10/AddressingTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -6,7 +6,7 @@
import org.jboss.test.ws.interop.microsoft.ClientScenario;
import org.jboss.test.ws.interop.microsoft.InteropConfigFactory;
import org.jboss.ws.utils.DOMUtils;
-import org.jboss.ws.addressing.AddressingClientUtil;
+import org.jboss.ws.extensions.addressing.AddressingClientUtil;
import org.jboss.ws.jaxrpc.StubExt;
import org.w3c.dom.Element;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsa10/Echo2_Stub.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsa10/Echo2_Stub.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsa10/Echo2_Stub.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,29 +5,16 @@
package org.jboss.test.ws.interop.microsoft.addressing.wsa10;
-import com.sun.xml.rpc.server.http.MessageContextProperties;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.soap.streaming.*;
-import com.sun.xml.rpc.soap.message.*;
-import com.sun.xml.rpc.soap.SOAPVersion;
-import com.sun.xml.rpc.soap.SOAPEncodingConstants;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
-import javax.xml.namespace.QName;
import java.rmi.RemoteException;
-import java.util.Iterator;
-import java.lang.reflect.*;
-import java.lang.Class;
-import com.sun.xml.rpc.client.SenderException;
-import com.sun.xml.rpc.client.*;
-import com.sun.xml.rpc.client.http.*;
-import javax.xml.rpc.handler.*;
+
+import javax.xml.namespace.QName;
import javax.xml.rpc.JAXRPCException;
-import javax.xml.rpc.soap.SOAPFaultException;
+import javax.xml.rpc.handler.HandlerChain;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class Echo2_Stub
extends com.sun.xml.rpc.client.StubBase
implements org.jboss.test.ws.interop.microsoft.addressing.wsa10.Echo2 {
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsa10/Echo4_Stub.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsa10/Echo4_Stub.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsa10/Echo4_Stub.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,29 +5,16 @@
package org.jboss.test.ws.interop.microsoft.addressing.wsa10;
-import com.sun.xml.rpc.server.http.MessageContextProperties;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.soap.streaming.*;
-import com.sun.xml.rpc.soap.message.*;
-import com.sun.xml.rpc.soap.SOAPVersion;
-import com.sun.xml.rpc.soap.SOAPEncodingConstants;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
-import javax.xml.namespace.QName;
import java.rmi.RemoteException;
-import java.util.Iterator;
-import java.lang.reflect.*;
-import java.lang.Class;
-import com.sun.xml.rpc.client.SenderException;
-import com.sun.xml.rpc.client.*;
-import com.sun.xml.rpc.client.http.*;
-import javax.xml.rpc.handler.*;
+
+import javax.xml.namespace.QName;
import javax.xml.rpc.JAXRPCException;
-import javax.xml.rpc.soap.SOAPFaultException;
+import javax.xml.rpc.handler.HandlerChain;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class Echo4_Stub
extends com.sun.xml.rpc.client.StubBase
implements org.jboss.test.ws.interop.microsoft.addressing.wsa10.Echo4 {
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsa10/Echo_Stub.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsa10/Echo_Stub.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsa10/Echo_Stub.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,29 +5,16 @@
package org.jboss.test.ws.interop.microsoft.addressing.wsa10;
-import com.sun.xml.rpc.server.http.MessageContextProperties;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.soap.streaming.*;
-import com.sun.xml.rpc.soap.message.*;
-import com.sun.xml.rpc.soap.SOAPVersion;
-import com.sun.xml.rpc.soap.SOAPEncodingConstants;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
-import javax.xml.namespace.QName;
import java.rmi.RemoteException;
-import java.util.Iterator;
-import java.lang.reflect.*;
-import java.lang.Class;
-import com.sun.xml.rpc.client.SenderException;
-import com.sun.xml.rpc.client.*;
-import com.sun.xml.rpc.client.http.*;
-import javax.xml.rpc.handler.*;
+
+import javax.xml.namespace.QName;
import javax.xml.rpc.JAXRPCException;
-import javax.xml.rpc.soap.SOAPFaultException;
+import javax.xml.rpc.handler.HandlerChain;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class Echo_Stub
extends com.sun.xml.rpc.client.StubBase
implements org.jboss.test.ws.interop.microsoft.addressing.wsa10.Echo {
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsa10/Notify_Stub.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsa10/Notify_Stub.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsa10/Notify_Stub.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,29 +5,16 @@
package org.jboss.test.ws.interop.microsoft.addressing.wsa10;
-import com.sun.xml.rpc.server.http.MessageContextProperties;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.soap.streaming.*;
-import com.sun.xml.rpc.soap.message.*;
-import com.sun.xml.rpc.soap.SOAPVersion;
-import com.sun.xml.rpc.soap.SOAPEncodingConstants;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
-import javax.xml.namespace.QName;
import java.rmi.RemoteException;
-import java.util.Iterator;
-import java.lang.reflect.*;
-import java.lang.Class;
-import com.sun.xml.rpc.client.SenderException;
-import com.sun.xml.rpc.client.*;
-import com.sun.xml.rpc.client.http.*;
-import javax.xml.rpc.handler.*;
+
+import javax.xml.namespace.QName;
import javax.xml.rpc.JAXRPCException;
-import javax.xml.rpc.soap.SOAPFaultException;
+import javax.xml.rpc.handler.HandlerChain;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class Notify_Stub
extends com.sun.xml.rpc.client.StubBase
implements org.jboss.test.ws.interop.microsoft.addressing.wsa10.Notify {
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsa10/WSAddressingCR.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsa10/WSAddressingCR.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsa10/WSAddressingCR.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,7 +5,7 @@
package org.jboss.test.ws.interop.microsoft.addressing.wsa10;
-import javax.xml.rpc.*;
+import javax.xml.rpc.ServiceException;
public interface WSAddressingCR extends javax.xml.rpc.Service {
public org.jboss.test.ws.interop.microsoft.addressing.wsa10.Notify
getCustomBinding_Notify() throws ServiceException;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsa10/WSAddressingCR_Impl.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsa10/WSAddressingCR_Impl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsa10/WSAddressingCR_Impl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,16 +5,8 @@
package org.jboss.test.ws.interop.microsoft.addressing.wsa10;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.client.ServiceExceptionImpl;
-import com.sun.xml.rpc.util.exception.*;
-import com.sun.xml.rpc.soap.SOAPVersion;
-import com.sun.xml.rpc.client.HandlerChainImpl;
-import javax.xml.rpc.*;
-import javax.xml.rpc.encoding.*;
-import javax.xml.rpc.handler.HandlerChain;
-import javax.xml.rpc.handler.HandlerInfo;
import javax.xml.namespace.QName;
+import javax.xml.rpc.JAXRPCException;
public class WSAddressingCR_Impl extends com.sun.xml.rpc.client.BasicService implements
WSAddressingCR {
private static final QName serviceName = new
QName("http://tempuri.org/",
"WSAddressingCR");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsaTestService/ConstraintHandler.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsaTestService/ConstraintHandler.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsaTestService/ConstraintHandler.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,19 +1,18 @@
package org.jboss.test.ws.interop.microsoft.addressing.wsaTestService;
-import org.jboss.logging.Logger;
+import java.util.Iterator;
+import javax.xml.namespace.QName;
import javax.xml.rpc.handler.GenericHandler;
import javax.xml.rpc.handler.MessageContext;
import javax.xml.rpc.handler.soap.SOAPMessageContext;
import javax.xml.rpc.soap.SOAPFaultException;
-import javax.xml.namespace.QName;
-import javax.xml.ws.addressing.soap.SOAPAddressingProperties;
-import javax.xml.ws.addressing.JAXWSAConstants;
-import javax.xml.soap.SOAPMessage;
import javax.xml.soap.SOAPException;
import javax.xml.soap.SOAPHeaderElement;
-import java.util.Iterator;
+import javax.xml.soap.SOAPMessage;
+import org.jboss.logging.Logger;
+
/**
* See
http://jira.jboss.org/jira/browse/JBWS-734
*
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsaTestService/WsaTestService.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsaTestService/WsaTestService.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/addressing/wsaTestService/WsaTestService.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,7 +5,7 @@
package org.jboss.test.ws.interop.microsoft.addressing.wsaTestService;
-import javax.xml.rpc.*;
+import javax.xml.rpc.ServiceException;
public interface WsaTestService extends javax.xml.rpc.Service {
public org.jboss.test.ws.interop.microsoft.addressing.wsaTestService.WsaTestPortType
getWsaTestPort() throws ServiceException;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/MTOMTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/MTOMTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/MTOMTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -21,21 +21,22 @@
*/
package org.jboss.test.ws.interop.microsoft.mtom.utf8;
+import javax.naming.InitialContext;
+import javax.xml.rpc.Service;
+import javax.xml.rpc.Stub;
+
import junit.framework.Test;
+
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
import org.jboss.test.ws.interop.microsoft.ClientScenario;
import org.jboss.test.ws.interop.microsoft.InteropConfigFactory;
-import javax.naming.InitialContext;
-import javax.xml.rpc.Service;
-import javax.xml.rpc.Stub;
-
/**
*
* MTOM test scenarios cover essential combinations of MTOM encoding applied to
* different data structures, character encodings and WS-Security.
- * Scenarios 3.1 � 3.5 cover optimizing binary data in various parts of a message.
+ * Scenarios 3.1 � 3.5 cover optimizing binary data in various parts of a message.
* Scenario 3.6 exercises UTF-16 encoding together with MTOM.
* Scenario 3.7 and 3.8 exercise composition of MTOM with Security.
*
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/SecureMTOMTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/SecureMTOMTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/SecureMTOMTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -21,16 +21,17 @@
*/
package org.jboss.test.ws.interop.microsoft.mtom.utf8;
+import javax.naming.InitialContext;
+import javax.xml.rpc.Service;
+import javax.xml.rpc.Stub;
+
import junit.framework.Test;
+
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
import org.jboss.test.ws.interop.microsoft.ClientScenario;
import org.jboss.test.ws.interop.microsoft.InteropConfigFactory;
-import javax.naming.InitialContext;
-import javax.xml.rpc.Service;
-import javax.xml.rpc.Stub;
-
/**
* Scenario 3.7 and 3.8 exercise composition of MTOM with Security.
*
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/TestService.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/TestService.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/TestService.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -21,13 +21,13 @@
*/
package org.jboss.test.ws.interop.microsoft.mtom.utf8;
+import java.io.UnsupportedEncodingException;
import java.rmi.RemoteException;
-import java.io.UnsupportedEncodingException;
/**
* MTOM test scenarios cover essential combinations of MTOM encoding applied to
* different data structures, character encodings and WS-Security.
- * Scenarios 3.1 � 3.5 cover optimizing binary data in various parts of a message.
+ * Scenarios 3.1 � 3.5 cover optimizing binary data in various parts of a message.
* Scenario 3.6 exercises UTF-16 encoding together with MTOM.
* Scenario 3.7 and 3.8 exercise composition of MTOM with Security.
*
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/PingService10Sign.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/PingService10Sign.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/PingService10Sign.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,7 +5,7 @@
package org.jboss.test.ws.interop.microsoft.security.wsse10;
-import javax.xml.rpc.*;
+import javax.xml.rpc.ServiceException;
public interface PingService10Sign extends javax.xml.rpc.Service {
public org.jboss.test.ws.interop.microsoft.security.wsse10.IPingServiceSign
getMutualCertificate10Sign_IPingServiceSign() throws ServiceException;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/SignTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/SignTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/SignTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -21,16 +21,17 @@
*/
package org.jboss.test.ws.interop.microsoft.security.wsse10;
+import javax.naming.InitialContext;
+import javax.xml.rpc.Service;
+import javax.xml.rpc.Stub;
+
import junit.framework.Test;
+
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
import org.jboss.test.ws.interop.microsoft.ClientScenario;
import org.jboss.test.ws.interop.microsoft.InteropConfigFactory;
-import javax.naming.InitialContext;
-import javax.xml.rpc.Service;
-import javax.xml.rpc.Stub;
-
/**
* @author Heiko Braun, <heiko(a)openj.net>
* @since 07-Mar-2006
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/EncryptTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/EncryptTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/EncryptTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -21,16 +21,17 @@
*/
package org.jboss.test.ws.interop.microsoft.security.wsse10Encrypt;
+import javax.naming.InitialContext;
+import javax.xml.rpc.Service;
+import javax.xml.rpc.Stub;
+
import junit.framework.Test;
+
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
import org.jboss.test.ws.interop.microsoft.ClientScenario;
import org.jboss.test.ws.interop.microsoft.InteropConfigFactory;
-import javax.naming.InitialContext;
-import javax.xml.rpc.Service;
-import javax.xml.rpc.Stub;
-
/**
* @author Heiko Braun <heiko.braun(a)jboss.com>
* @version $Id$
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/PingService10.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/PingService10.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/PingService10.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,7 +5,7 @@
package org.jboss.test.ws.interop.microsoft.security.wsse10Encrypt;
-import javax.xml.rpc.*;
+import javax.xml.rpc.ServiceException;
public interface PingService10 extends javax.xml.rpc.Service {
public org.jboss.test.ws.interop.microsoft.security.wsse10Encrypt.IPingService
getMutualCertificate10SignEncrypt_IPingService() throws ServiceException;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitB/BaseDataTypesDocLitBService.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitB/BaseDataTypesDocLitBService.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitB/BaseDataTypesDocLitBService.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,7 +5,7 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitB;
-import javax.xml.rpc.*;
+import javax.xml.rpc.ServiceException;
public interface BaseDataTypesDocLitBService extends javax.xml.rpc.Service {
public
org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitB.IBaseDataTypesDocLitB
getBasicHttpBinding_IBaseDataTypesDocLitB() throws ServiceException;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitB/BaseDataTypesDocLitBService_Impl.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitB/BaseDataTypesDocLitBService_Impl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitB/BaseDataTypesDocLitBService_Impl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,16 +5,8 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitB;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.client.ServiceExceptionImpl;
-import com.sun.xml.rpc.util.exception.*;
-import com.sun.xml.rpc.soap.SOAPVersion;
-import com.sun.xml.rpc.client.HandlerChainImpl;
-import javax.xml.rpc.*;
-import javax.xml.rpc.encoding.*;
-import javax.xml.rpc.handler.HandlerChain;
-import javax.xml.rpc.handler.HandlerInfo;
import javax.xml.namespace.QName;
+import javax.xml.rpc.JAXRPCException;
public class BaseDataTypesDocLitBService_Impl extends com.sun.xml.rpc.client.BasicService
implements BaseDataTypesDocLitBService {
private static final QName serviceName = new
QName("http://tempuri.org/",
"BaseDataTypesDocLitBService");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitB/BaseDataTypesDocLitBTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitB/BaseDataTypesDocLitBTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitB/BaseDataTypesDocLitBTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,15 +1,16 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitB;
+import javax.naming.InitialContext;
+import javax.xml.rpc.Service;
+import javax.xml.rpc.Stub;
+
import junit.framework.Test;
+
import org.jboss.test.ws.JBossWSTestSetup;
import org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesProxy;
import org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesSEI;
import org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesSupport;
-import javax.naming.InitialContext;
-import javax.xml.rpc.Service;
-import javax.xml.rpc.Stub;
-
/**
* @author Heiko Braun, <heiko(a)openj.net>
* @since 17-Feb-2006
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitB/IBaseDataTypesDocLitB_Stub.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitB/IBaseDataTypesDocLitB_Stub.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitB/IBaseDataTypesDocLitB_Stub.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,29 +5,16 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitB;
-import com.sun.xml.rpc.server.http.MessageContextProperties;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.soap.streaming.*;
-import com.sun.xml.rpc.soap.message.*;
-import com.sun.xml.rpc.soap.SOAPVersion;
-import com.sun.xml.rpc.soap.SOAPEncodingConstants;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
-import javax.xml.namespace.QName;
import java.rmi.RemoteException;
-import java.util.Iterator;
-import java.lang.reflect.*;
-import java.lang.Class;
-import com.sun.xml.rpc.client.SenderException;
-import com.sun.xml.rpc.client.*;
-import com.sun.xml.rpc.client.http.*;
-import javax.xml.rpc.handler.*;
+
+import javax.xml.namespace.QName;
import javax.xml.rpc.JAXRPCException;
-import javax.xml.rpc.soap.SOAPFaultException;
+import javax.xml.rpc.handler.HandlerChain;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesDocLitB_Stub
extends com.sun.xml.rpc.client.StubBase
implements
org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitB.IBaseDataTypesDocLitB {
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitB_Service/BaseDataTypesDocLitBService.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitB_Service/BaseDataTypesDocLitBService.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitB_Service/BaseDataTypesDocLitBService.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,7 +5,7 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitB_Service;
-import javax.xml.rpc.*;
+import javax.xml.rpc.ServiceException;
public interface BaseDataTypesDocLitBService extends javax.xml.rpc.Service {
public
org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitB_Service.IBaseDataTypesDocLitB
getBasicHttpBinding_IBaseDataTypesDocLitB() throws ServiceException;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/BaseDataTypesDocLitWService.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/BaseDataTypesDocLitWService.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/BaseDataTypesDocLitWService.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,7 +5,7 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import javax.xml.rpc.*;
+import javax.xml.rpc.ServiceException;
public interface BaseDataTypesDocLitWService extends javax.xml.rpc.Service {
public
org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW.IBaseDataTypesDocLitW
getBasicHttpBinding_IBaseDataTypesDocLitW() throws ServiceException;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/BaseDataTypesDocLitWService_Impl.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/BaseDataTypesDocLitWService_Impl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/BaseDataTypesDocLitWService_Impl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,16 +5,8 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.client.ServiceExceptionImpl;
-import com.sun.xml.rpc.util.exception.*;
-import com.sun.xml.rpc.soap.SOAPVersion;
-import com.sun.xml.rpc.client.HandlerChainImpl;
-import javax.xml.rpc.*;
-import javax.xml.rpc.encoding.*;
-import javax.xml.rpc.handler.HandlerChain;
-import javax.xml.rpc.handler.HandlerInfo;
import javax.xml.namespace.QName;
+import javax.xml.rpc.JAXRPCException;
public class BaseDataTypesDocLitWService_Impl extends com.sun.xml.rpc.client.BasicService
implements BaseDataTypesDocLitWService {
private static final QName serviceName = new
QName("http://tempuri.org/",
"BaseDataTypesDocLitWService");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/BaseDataTypesDocLitWTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/BaseDataTypesDocLitWTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/BaseDataTypesDocLitWTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,15 +1,16 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
+import javax.naming.InitialContext;
+import javax.xml.rpc.Service;
+import javax.xml.rpc.Stub;
+
import junit.framework.Test;
+
import org.jboss.test.ws.JBossWSTestSetup;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesProxy;
import org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesSEI;
import org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesSupport;
-import org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesProxy;
-import javax.naming.InitialContext;
-import javax.xml.rpc.Service;
-import javax.xml.rpc.Stub;
-
/**
* @author Heiko Braun, <heiko(a)openj.net>
* @since 17-Feb-2006
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/IBaseDataTypesDocLitW_Stub.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/IBaseDataTypesDocLitW_Stub.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/IBaseDataTypesDocLitW_Stub.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,29 +5,14 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.server.http.MessageContextProperties;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.soap.streaming.*;
-import com.sun.xml.rpc.soap.message.*;
-import com.sun.xml.rpc.soap.SOAPVersion;
-import com.sun.xml.rpc.soap.SOAPEncodingConstants;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
-import javax.xml.namespace.QName;
import java.rmi.RemoteException;
-import java.util.Iterator;
-import java.lang.reflect.*;
-import java.lang.Class;
-import com.sun.xml.rpc.client.SenderException;
-import com.sun.xml.rpc.client.*;
-import com.sun.xml.rpc.client.http.*;
-import javax.xml.rpc.handler.*;
+
+import javax.xml.namespace.QName;
import javax.xml.rpc.JAXRPCException;
-import javax.xml.rpc.soap.SOAPFaultException;
+import javax.xml.rpc.handler.HandlerChain;
+import org.xml.sax.XMLReader;
+
public class IBaseDataTypesDocLitW_Stub
extends com.sun.xml.rpc.client.StubBase
implements
org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW.IBaseDataTypesDocLitW {
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetBoolResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetBoolResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetBoolResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetBoolResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetBoolResult_QNAME = new
QName("http://tempuri.org/", "RetBoolResult");
private static final javax.xml.namespace.QName ns2_boolean_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_BOOLEAN;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetBool_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetBool_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetBool_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetBool_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inBool_QNAME = new
QName("http://tempuri.org/", "inBool");
private static final javax.xml.namespace.QName ns2_boolean_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_BOOLEAN;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetByteArrayResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetByteArrayResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetByteArrayResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetByteArrayResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetByteArrayResult_QNAME = new
QName("http://tempuri.org/", "RetByteArrayResult");
private static final javax.xml.namespace.QName ns2_base64Binary_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_BASE64_BINARY;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetByteArray_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetByteArray_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetByteArray_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetByteArray_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_inByteArray_QNAME = new
QName("http://tempuri.org/", "inByteArray");
private static final javax.xml.namespace.QName ns2_base64Binary_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_BASE64_BINARY;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetByteResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetByteResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetByteResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetByteResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetByteResult_QNAME = new
QName("http://tempuri.org/", "RetByteResult");
private static final javax.xml.namespace.QName ns2_unsignedByte_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_UNSIGNED_BYTE;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetByte_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetByte_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetByte_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetByte_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inByte_QNAME = new
QName("http://tempuri.org/", "inByte");
private static final javax.xml.namespace.QName ns2_unsignedByte_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_UNSIGNED_BYTE;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetCharResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetCharResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetCharResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetCharResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetCharResult_QNAME = new
QName("http://tempuri.org/", "RetCharResult");
private static final javax.xml.namespace.QName ns2_int_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_INT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetChar_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetChar_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetChar_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetChar_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inChar_QNAME = new
QName("http://tempuri.org/", "inChar");
private static final javax.xml.namespace.QName ns2_int_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_INT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetDateTimeResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetDateTimeResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetDateTimeResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetDateTimeResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetDateTimeResult_QNAME = new
QName("http://tempuri.org/", "RetDateTimeResult");
private static final javax.xml.namespace.QName ns2_dateTime_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DATE_TIME;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetDateTime_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetDateTime_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetDateTime_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetDateTime_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inDateTime_QNAME = new
QName("http://tempuri.org/", "inDateTime");
private static final javax.xml.namespace.QName ns2_dateTime_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DATE_TIME;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetDecimalResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetDecimalResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetDecimalResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetDecimalResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetDecimalResult_QNAME = new
QName("http://tempuri.org/", "RetDecimalResult");
private static final javax.xml.namespace.QName ns2_decimal_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DECIMAL;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetDecimal_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetDecimal_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetDecimal_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetDecimal_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inDecimal_QNAME = new
QName("http://tempuri.org/", "inDecimal");
private static final javax.xml.namespace.QName ns2_decimal_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DECIMAL;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetDoubleResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetDoubleResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetDoubleResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetDoubleResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetDoubleResult_QNAME = new
QName("http://tempuri.org/", "RetDoubleResult");
private static final javax.xml.namespace.QName ns2_double_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DOUBLE;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetDouble_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetDouble_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetDouble_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetDouble_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inDouble_QNAME = new
QName("http://tempuri.org/", "inDouble");
private static final javax.xml.namespace.QName ns2_double_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DOUBLE;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetFloatResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetFloatResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetFloatResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetFloatResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetFloatResult_QNAME = new
QName("http://tempuri.org/", "RetFloatResult");
private static final javax.xml.namespace.QName ns2_float_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_FLOAT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetFloat_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetFloat_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetFloat_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetFloat_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inFloat_QNAME = new
QName("http://tempuri.org/", "inFloat");
private static final javax.xml.namespace.QName ns2_float_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_FLOAT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetGuidResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetGuidResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetGuidResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetGuidResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetGuidResult_QNAME = new
QName("http://tempuri.org/", "RetGuidResult");
private static final javax.xml.namespace.QName ns2_string_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_STRING;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetGuid_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetGuid_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetGuid_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetGuid_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inGuid_QNAME = new
QName("http://tempuri.org/", "inGuid");
private static final javax.xml.namespace.QName ns2_string_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_STRING;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetIntResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetIntResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetIntResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetIntResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetIntResult_QNAME = new
QName("http://tempuri.org/", "RetIntResult");
private static final javax.xml.namespace.QName ns2_int_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_INT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetInt_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetInt_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetInt_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetInt_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inInt_QNAME = new
QName("http://tempuri.org/", "inInt");
private static final javax.xml.namespace.QName ns2_int_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_INT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetLongResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetLongResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetLongResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetLongResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetLongResult_QNAME = new
QName("http://tempuri.org/", "RetLongResult");
private static final javax.xml.namespace.QName ns2_long_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_LONG;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetLong_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetLong_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetLong_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetLong_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inLong_QNAME = new
QName("http://tempuri.org/", "inLong");
private static final javax.xml.namespace.QName ns2_long_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_LONG;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetObjectResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetObjectResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetObjectResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetObjectResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetObjectResult_QNAME = new
QName("http://tempuri.org/", "RetObjectResult");
private static final javax.xml.namespace.QName ns2_anyType_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_URTYPE;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetObject_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetObject_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetObject_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetObject_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inObject_QNAME = new
QName("http://tempuri.org/", "inObject");
private static final javax.xml.namespace.QName ns2_anyType_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_URTYPE;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetQNameResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetQNameResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetQNameResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetQNameResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetQNameResult_QNAME = new
QName("http://tempuri.org/", "RetQNameResult");
private static final javax.xml.namespace.QName ns2_QName_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_QNAME;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetQName_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetQName_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetQName_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetQName_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inQName_QNAME = new
QName("http://tempuri.org/", "inQName");
private static final javax.xml.namespace.QName ns2_QName_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_QNAME;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetSByteResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetSByteResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetSByteResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetSByteResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetSByteResult_QNAME = new
QName("http://tempuri.org/", "RetSByteResult");
private static final javax.xml.namespace.QName ns2_byte_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_BYTE;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetSByte_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetSByte_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetSByte_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetSByte_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inSByte_QNAME = new
QName("http://tempuri.org/", "inSByte");
private static final javax.xml.namespace.QName ns2_byte_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_BYTE;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetShortResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetShortResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetShortResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetShortResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetShortResult_QNAME = new
QName("http://tempuri.org/", "RetShortResult");
private static final javax.xml.namespace.QName ns2_short_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_SHORT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetShort_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetShort_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetShort_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetShort_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inShort_QNAME = new
QName("http://tempuri.org/", "inShort");
private static final javax.xml.namespace.QName ns2_short_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_SHORT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetSingleResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetSingleResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetSingleResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetSingleResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetSingleResult_QNAME = new
QName("http://tempuri.org/", "RetSingleResult");
private static final javax.xml.namespace.QName ns2_float_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_FLOAT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetSingle_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetSingle_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetSingle_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetSingle_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inSingle_QNAME = new
QName("http://tempuri.org/", "inSingle");
private static final javax.xml.namespace.QName ns2_float_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_FLOAT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetStringResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetStringResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetStringResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetStringResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetStringResult_QNAME = new
QName("http://tempuri.org/", "RetStringResult");
private static final javax.xml.namespace.QName ns2_string_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_STRING;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetString_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetString_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetString_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetString_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inString_QNAME = new
QName("http://tempuri.org/", "inString");
private static final javax.xml.namespace.QName ns2_string_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_STRING;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetTimeSpanResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetTimeSpanResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetTimeSpanResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetTimeSpanResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetTimeSpanResult_QNAME = new
QName("http://tempuri.org/", "RetTimeSpanResult");
private static final javax.xml.namespace.QName ns2_duration_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DURATION;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetTimeSpan_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetTimeSpan_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetTimeSpan_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetTimeSpan_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inTimeSpan_QNAME = new
QName("http://tempuri.org/", "inTimeSpan");
private static final javax.xml.namespace.QName ns2_duration_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DURATION;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetUIntResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetUIntResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetUIntResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetUIntResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetUIntResult_QNAME = new
QName("http://tempuri.org/", "RetUIntResult");
private static final javax.xml.namespace.QName ns2_unsignedInt_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_UNSIGNED_INT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetUInt_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetUInt_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetUInt_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetUInt_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inUInt_QNAME = new
QName("http://tempuri.org/", "inUInt");
private static final javax.xml.namespace.QName ns2_unsignedInt_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_UNSIGNED_INT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetULongResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetULongResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetULongResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetULongResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetULongResult_QNAME = new
QName("http://tempuri.org/", "RetULongResult");
private static final javax.xml.namespace.QName ns2_unsignedLong_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_UNSIGNED_LONG;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetULong_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetULong_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetULong_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetULong_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inULong_QNAME = new
QName("http://tempuri.org/", "inULong");
private static final javax.xml.namespace.QName ns2_unsignedLong_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_UNSIGNED_LONG;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetUShortResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetUShortResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetUShortResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetUShortResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetUShortResult_QNAME = new
QName("http://tempuri.org/", "RetUShortResult");
private static final javax.xml.namespace.QName ns2_unsignedShort_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_UNSIGNED_SHORT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetUShort_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetUShort_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetUShort_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetUShort_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inUShort_QNAME = new
QName("http://tempuri.org/", "inUShort");
private static final javax.xml.namespace.QName ns2_unsignedShort_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_UNSIGNED_SHORT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetUriResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetUriResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetUriResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetUriResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetUriResult_QNAME = new
QName("http://tempuri.org/", "RetUriResult");
private static final javax.xml.namespace.QName ns2_anyURI_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_ANY_URI;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetUri_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetUri_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW/RetUri_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetUri_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inUri_QNAME = new
QName("http://tempuri.org/", "inUri");
private static final javax.xml.namespace.QName ns2_anyURI_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_ANY_URI;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/BaseDataTypesDocLitWService.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/BaseDataTypesDocLitWService.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/BaseDataTypesDocLitWService.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,7 +5,7 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import javax.xml.rpc.*;
+import javax.xml.rpc.ServiceException;
public interface BaseDataTypesDocLitWService extends javax.xml.rpc.Service {
public
org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service.IBaseDataTypesDocLitW
getBasicHttpBinding_IBaseDataTypesDocLitW() throws ServiceException;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/IBaseDataTypesDocLitW_Tie.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/IBaseDataTypesDocLitW_Tie.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/IBaseDataTypesDocLitW_Tie.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,26 +5,14 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.server.http.MessageContextProperties;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.soap.streaming.*;
-import com.sun.xml.rpc.soap.message.*;
-import com.sun.xml.rpc.soap.SOAPVersion;
-import com.sun.xml.rpc.soap.SOAPEncodingConstants;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
+import java.lang.reflect.Method;
+
import javax.xml.namespace.QName;
-import java.rmi.RemoteException;
-import java.util.Iterator;
-import java.lang.reflect.*;
-import java.lang.Class;
-import com.sun.xml.rpc.server.*;
-import javax.xml.rpc.handler.HandlerInfo;
-import com.sun.xml.rpc.client.HandlerChainImpl;
+import org.xml.sax.XMLReader;
+
+import com.sun.org.apache.xml.internal.serializer.SerializerConstants;
+
public class IBaseDataTypesDocLitW_Tie
extends com.sun.xml.rpc.server.TieBase implements SerializerConstants {
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetBoolResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetBoolResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetBoolResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetBoolResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetBoolResult_QNAME = new
QName("http://tempuri.org/", "RetBoolResult");
private static final javax.xml.namespace.QName ns2_boolean_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_BOOLEAN;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetBool_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetBool_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetBool_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetBool_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inBool_QNAME = new
QName("http://tempuri.org/", "inBool");
private static final javax.xml.namespace.QName ns2_boolean_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_BOOLEAN;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetByteArrayResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetByteArrayResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetByteArrayResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetByteArrayResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetByteArrayResult_QNAME = new
QName("http://tempuri.org/", "RetByteArrayResult");
private static final javax.xml.namespace.QName ns2_base64Binary_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_BASE64_BINARY;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetByteArray_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetByteArray_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetByteArray_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetByteArray_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_inByteArray_QNAME = new
QName("http://tempuri.org/", "inByteArray");
private static final javax.xml.namespace.QName ns2_base64Binary_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_BASE64_BINARY;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetByteResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetByteResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetByteResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetByteResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetByteResult_QNAME = new
QName("http://tempuri.org/", "RetByteResult");
private static final javax.xml.namespace.QName ns2_unsignedByte_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_UNSIGNED_BYTE;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetByte_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetByte_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetByte_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetByte_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inByte_QNAME = new
QName("http://tempuri.org/", "inByte");
private static final javax.xml.namespace.QName ns2_unsignedByte_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_UNSIGNED_BYTE;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetCharResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetCharResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetCharResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetCharResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetCharResult_QNAME = new
QName("http://tempuri.org/", "RetCharResult");
private static final javax.xml.namespace.QName ns2_int_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_INT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetChar_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetChar_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetChar_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetChar_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inChar_QNAME = new
QName("http://tempuri.org/", "inChar");
private static final javax.xml.namespace.QName ns2_int_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_INT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetDateTimeResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetDateTimeResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetDateTimeResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetDateTimeResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetDateTimeResult_QNAME = new
QName("http://tempuri.org/", "RetDateTimeResult");
private static final javax.xml.namespace.QName ns2_dateTime_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DATE_TIME;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetDateTime_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetDateTime_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetDateTime_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetDateTime_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inDateTime_QNAME = new
QName("http://tempuri.org/", "inDateTime");
private static final javax.xml.namespace.QName ns2_dateTime_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DATE_TIME;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetDecimalResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetDecimalResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetDecimalResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetDecimalResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetDecimalResult_QNAME = new
QName("http://tempuri.org/", "RetDecimalResult");
private static final javax.xml.namespace.QName ns2_decimal_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DECIMAL;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetDecimal_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetDecimal_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetDecimal_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetDecimal_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inDecimal_QNAME = new
QName("http://tempuri.org/", "inDecimal");
private static final javax.xml.namespace.QName ns2_decimal_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DECIMAL;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetDoubleResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetDoubleResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetDoubleResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetDoubleResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetDoubleResult_QNAME = new
QName("http://tempuri.org/", "RetDoubleResult");
private static final javax.xml.namespace.QName ns2_double_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DOUBLE;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetDouble_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetDouble_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetDouble_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetDouble_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inDouble_QNAME = new
QName("http://tempuri.org/", "inDouble");
private static final javax.xml.namespace.QName ns2_double_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DOUBLE;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetFloatResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetFloatResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetFloatResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetFloatResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetFloatResult_QNAME = new
QName("http://tempuri.org/", "RetFloatResult");
private static final javax.xml.namespace.QName ns2_float_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_FLOAT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetFloat_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetFloat_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetFloat_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetFloat_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inFloat_QNAME = new
QName("http://tempuri.org/", "inFloat");
private static final javax.xml.namespace.QName ns2_float_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_FLOAT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetGuidResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetGuidResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetGuidResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetGuidResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetGuidResult_QNAME = new
QName("http://tempuri.org/", "RetGuidResult");
private static final javax.xml.namespace.QName ns2_string_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_STRING;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetGuid_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetGuid_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetGuid_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetGuid_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inGuid_QNAME = new
QName("http://tempuri.org/", "inGuid");
private static final javax.xml.namespace.QName ns2_string_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_STRING;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetIntResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetIntResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetIntResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetIntResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetIntResult_QNAME = new
QName("http://tempuri.org/", "RetIntResult");
private static final javax.xml.namespace.QName ns2_int_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_INT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetInt_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetInt_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetInt_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetInt_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inInt_QNAME = new
QName("http://tempuri.org/", "inInt");
private static final javax.xml.namespace.QName ns2_int_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_INT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetLongResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetLongResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetLongResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetLongResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetLongResult_QNAME = new
QName("http://tempuri.org/", "RetLongResult");
private static final javax.xml.namespace.QName ns2_long_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_LONG;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetLong_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetLong_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetLong_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetLong_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inLong_QNAME = new
QName("http://tempuri.org/", "inLong");
private static final javax.xml.namespace.QName ns2_long_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_LONG;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetObjectResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetObjectResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetObjectResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetObjectResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetObjectResult_QNAME = new
QName("http://tempuri.org/", "RetObjectResult");
private static final javax.xml.namespace.QName ns2_anyType_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_URTYPE;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetObject_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetObject_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetObject_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetObject_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inObject_QNAME = new
QName("http://tempuri.org/", "inObject");
private static final javax.xml.namespace.QName ns2_anyType_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_URTYPE;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetQNameResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetQNameResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetQNameResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetQNameResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetQNameResult_QNAME = new
QName("http://tempuri.org/", "RetQNameResult");
private static final javax.xml.namespace.QName ns2_QName_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_QNAME;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetQName_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetQName_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetQName_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetQName_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inQName_QNAME = new
QName("http://tempuri.org/", "inQName");
private static final javax.xml.namespace.QName ns2_QName_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_QNAME;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetSByteResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetSByteResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetSByteResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetSByteResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetSByteResult_QNAME = new
QName("http://tempuri.org/", "RetSByteResult");
private static final javax.xml.namespace.QName ns2_byte_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_BYTE;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetSByte_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetSByte_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetSByte_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetSByte_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inSByte_QNAME = new
QName("http://tempuri.org/", "inSByte");
private static final javax.xml.namespace.QName ns2_byte_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_BYTE;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetShortResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetShortResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetShortResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetShortResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetShortResult_QNAME = new
QName("http://tempuri.org/", "RetShortResult");
private static final javax.xml.namespace.QName ns2_short_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_SHORT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetShort_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetShort_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetShort_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetShort_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inShort_QNAME = new
QName("http://tempuri.org/", "inShort");
private static final javax.xml.namespace.QName ns2_short_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_SHORT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetSingleResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetSingleResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetSingleResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetSingleResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetSingleResult_QNAME = new
QName("http://tempuri.org/", "RetSingleResult");
private static final javax.xml.namespace.QName ns2_float_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_FLOAT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetSingle_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetSingle_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetSingle_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetSingle_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inSingle_QNAME = new
QName("http://tempuri.org/", "inSingle");
private static final javax.xml.namespace.QName ns2_float_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_FLOAT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetStringResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetStringResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetStringResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetStringResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetStringResult_QNAME = new
QName("http://tempuri.org/", "RetStringResult");
private static final javax.xml.namespace.QName ns2_string_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_STRING;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetString_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetString_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetString_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetString_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inString_QNAME = new
QName("http://tempuri.org/", "inString");
private static final javax.xml.namespace.QName ns2_string_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_STRING;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetTimeSpanResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetTimeSpanResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetTimeSpanResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetTimeSpanResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetTimeSpanResult_QNAME = new
QName("http://tempuri.org/", "RetTimeSpanResult");
private static final javax.xml.namespace.QName ns2_duration_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DURATION;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetTimeSpan_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetTimeSpan_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetTimeSpan_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetTimeSpan_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inTimeSpan_QNAME = new
QName("http://tempuri.org/", "inTimeSpan");
private static final javax.xml.namespace.QName ns2_duration_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DURATION;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetUIntResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetUIntResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetUIntResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetUIntResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetUIntResult_QNAME = new
QName("http://tempuri.org/", "RetUIntResult");
private static final javax.xml.namespace.QName ns2_unsignedInt_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_UNSIGNED_INT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetUInt_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetUInt_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetUInt_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetUInt_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inUInt_QNAME = new
QName("http://tempuri.org/", "inUInt");
private static final javax.xml.namespace.QName ns2_unsignedInt_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_UNSIGNED_INT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetULongResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetULongResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetULongResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetULongResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetULongResult_QNAME = new
QName("http://tempuri.org/", "RetULongResult");
private static final javax.xml.namespace.QName ns2_unsignedLong_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_UNSIGNED_LONG;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetULong_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetULong_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetULong_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetULong_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inULong_QNAME = new
QName("http://tempuri.org/", "inULong");
private static final javax.xml.namespace.QName ns2_unsignedLong_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_UNSIGNED_LONG;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetUShortResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetUShortResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetUShortResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetUShortResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetUShortResult_QNAME = new
QName("http://tempuri.org/", "RetUShortResult");
private static final javax.xml.namespace.QName ns2_unsignedShort_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_UNSIGNED_SHORT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetUShort_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetUShort_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetUShort_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetUShort_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inUShort_QNAME = new
QName("http://tempuri.org/", "inUShort");
private static final javax.xml.namespace.QName ns2_unsignedShort_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_UNSIGNED_SHORT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetUriResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetUriResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetUriResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetUriResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_RetUriResult_QNAME = new
QName("http://tempuri.org/", "RetUriResult");
private static final javax.xml.namespace.QName ns2_anyURI_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_ANY_URI;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetUri_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetUri_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesDocLitW_Service/RetUri_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesDocLitW_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class RetUri_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_inUri_QNAME = new
QName("http://tempuri.org/", "inUri");
private static final javax.xml.namespace.QName ns2_anyURI_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_ANY_URI;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesProxy.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesProxy.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesProxy.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,8 +1,8 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl;
import java.lang.reflect.InvocationHandler;
+import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
-import java.lang.reflect.InvocationTargetException;
/**
* Adapts a standard SEI to several test services
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/BaseDataTypesRpcLitService.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/BaseDataTypesRpcLitService.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/BaseDataTypesRpcLitService.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,7 +5,7 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import javax.xml.rpc.*;
+import javax.xml.rpc.ServiceException;
public interface BaseDataTypesRpcLitService extends javax.xml.rpc.Service {
public
org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit.IBaseDataTypesRpcLit
getBasicHttpBinding_IBaseDataTypesRpcLit() throws ServiceException;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/BaseDataTypesRpcLitService_Impl.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/BaseDataTypesRpcLitService_Impl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/BaseDataTypesRpcLitService_Impl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,16 +5,8 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.client.ServiceExceptionImpl;
-import com.sun.xml.rpc.util.exception.*;
-import com.sun.xml.rpc.soap.SOAPVersion;
-import com.sun.xml.rpc.client.HandlerChainImpl;
-import javax.xml.rpc.*;
-import javax.xml.rpc.encoding.*;
-import javax.xml.rpc.handler.HandlerChain;
-import javax.xml.rpc.handler.HandlerInfo;
import javax.xml.namespace.QName;
+import javax.xml.rpc.JAXRPCException;
public class BaseDataTypesRpcLitService_Impl extends com.sun.xml.rpc.client.BasicService
implements BaseDataTypesRpcLitService {
private static final QName serviceName = new
QName("http://tempuri.org/",
"BaseDataTypesRpcLitService");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/BaseDataTypesRpcLitTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/BaseDataTypesRpcLitTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/BaseDataTypesRpcLitTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,15 +1,16 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
+import javax.naming.InitialContext;
+import javax.xml.rpc.Service;
+import javax.xml.rpc.Stub;
+
import junit.framework.Test;
+
import org.jboss.test.ws.JBossWSTestSetup;
import org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesProxy;
import org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesSEI;
import org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesSupport;
-import javax.naming.InitialContext;
-import javax.xml.rpc.Service;
-import javax.xml.rpc.Stub;
-
/**
* @author Heiko Braun, <heiko(a)openj.net>
* @since 17-Feb-2006
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetBool_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetBool_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetBool_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetBool_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inBool_QNAME = new
QName("", "inBool");
private static final javax.xml.namespace.QName ns2_boolean_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_BOOLEAN;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetBool_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetBool_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetBool_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetBool_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetBoolResult_QNAME = new
QName("", "RetBoolResult");
private static final javax.xml.namespace.QName ns2_boolean_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_BOOLEAN;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetByteArray_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetByteArray_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetByteArray_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetByteArray_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inByteArray_QNAME = new
QName("", "inByteArray");
private static final javax.xml.namespace.QName ns2_base64Binary_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_BASE64_BINARY;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetByteArray_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetByteArray_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetByteArray_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetByteArray_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetByteArrayResult_QNAME = new
QName("", "RetByteArrayResult");
private static final javax.xml.namespace.QName ns2_base64Binary_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_BASE64_BINARY;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetByte_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetByte_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetByte_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetByte_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inByte_QNAME = new
QName("", "inByte");
private static final javax.xml.namespace.QName ns2_unsignedByte_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_UNSIGNED_BYTE;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetByte_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetByte_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetByte_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetByte_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetByteResult_QNAME = new
QName("", "RetByteResult");
private static final javax.xml.namespace.QName ns2_unsignedByte_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_UNSIGNED_BYTE;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetChar_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetChar_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetChar_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetChar_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inChar_QNAME = new
QName("", "inChar");
private static final javax.xml.namespace.QName ns2_int_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_INT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetChar_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetChar_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetChar_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetChar_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetCharResult_QNAME = new
QName("", "RetCharResult");
private static final javax.xml.namespace.QName ns2_int_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_INT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetDateTime_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetDateTime_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetDateTime_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetDateTime_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inDateTime_QNAME = new
QName("", "inDateTime");
private static final javax.xml.namespace.QName ns2_dateTime_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DATE_TIME;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetDateTime_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetDateTime_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetDateTime_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetDateTime_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetDateTimeResult_QNAME = new
QName("", "RetDateTimeResult");
private static final javax.xml.namespace.QName ns2_dateTime_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DATE_TIME;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetDecimal_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetDecimal_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetDecimal_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetDecimal_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inDecimal_QNAME = new
QName("", "inDecimal");
private static final javax.xml.namespace.QName ns2_decimal_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DECIMAL;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetDecimal_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetDecimal_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetDecimal_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetDecimal_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetDecimalResult_QNAME = new
QName("", "RetDecimalResult");
private static final javax.xml.namespace.QName ns2_decimal_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DECIMAL;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetDouble_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetDouble_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetDouble_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetDouble_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inDouble_QNAME = new
QName("", "inDouble");
private static final javax.xml.namespace.QName ns2_double_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DOUBLE;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetDouble_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetDouble_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetDouble_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetDouble_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetDoubleResult_QNAME = new
QName("", "RetDoubleResult");
private static final javax.xml.namespace.QName ns2_double_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DOUBLE;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetFloat_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetFloat_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetFloat_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetFloat_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inFloat_QNAME = new
QName("", "inFloat");
private static final javax.xml.namespace.QName ns2_float_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_FLOAT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetFloat_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetFloat_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetFloat_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetFloat_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetFloatResult_QNAME = new
QName("", "RetFloatResult");
private static final javax.xml.namespace.QName ns2_float_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_FLOAT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetGuid_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetGuid_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetGuid_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetGuid_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inGuid_QNAME = new
QName("", "inGuid");
private static final javax.xml.namespace.QName ns2_string_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_STRING;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetGuid_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetGuid_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetGuid_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetGuid_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetGuidResult_QNAME = new
QName("", "RetGuidResult");
private static final javax.xml.namespace.QName ns2_string_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_STRING;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetInt_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetInt_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetInt_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetInt_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inInt_QNAME = new
QName("", "inInt");
private static final javax.xml.namespace.QName ns2_int_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_INT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetInt_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetInt_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetInt_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetInt_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetIntResult_QNAME = new
QName("", "RetIntResult");
private static final javax.xml.namespace.QName ns2_int_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_INT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetLong_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetLong_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetLong_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetLong_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inLong_QNAME = new
QName("", "inLong");
private static final javax.xml.namespace.QName ns2_long_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_LONG;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetLong_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetLong_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetLong_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetLong_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetLongResult_QNAME = new
QName("", "RetLongResult");
private static final javax.xml.namespace.QName ns2_long_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_LONG;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetObject_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetObject_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetObject_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetObject_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inObject_QNAME = new
QName("", "inObject");
private static final javax.xml.namespace.QName ns2_anyType_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_URTYPE;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetObject_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetObject_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetObject_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetObject_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetObjectResult_QNAME = new
QName("", "RetObjectResult");
private static final javax.xml.namespace.QName ns2_anyType_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_URTYPE;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetQName_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetQName_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetQName_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetQName_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inQName_QNAME = new
QName("", "inQName");
private static final javax.xml.namespace.QName ns2_QName_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_QNAME;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetQName_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetQName_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetQName_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetQName_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetQNameResult_QNAME = new
QName("", "RetQNameResult");
private static final javax.xml.namespace.QName ns2_QName_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_QNAME;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetSByte_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetSByte_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetSByte_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetSByte_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inSByte_QNAME = new
QName("", "inSByte");
private static final javax.xml.namespace.QName ns2_byte_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_BYTE;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetSByte_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetSByte_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetSByte_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetSByte_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetSByteResult_QNAME = new
QName("", "RetSByteResult");
private static final javax.xml.namespace.QName ns2_byte_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_BYTE;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetShort_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetShort_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetShort_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetShort_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inShort_QNAME = new
QName("", "inShort");
private static final javax.xml.namespace.QName ns2_short_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_SHORT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetShort_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetShort_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetShort_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetShort_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetShortResult_QNAME = new
QName("", "RetShortResult");
private static final javax.xml.namespace.QName ns2_short_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_SHORT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetSingle_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetSingle_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetSingle_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetSingle_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inSingle_QNAME = new
QName("", "inSingle");
private static final javax.xml.namespace.QName ns2_float_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_FLOAT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetSingle_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetSingle_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetSingle_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetSingle_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetSingleResult_QNAME = new
QName("", "RetSingleResult");
private static final javax.xml.namespace.QName ns2_float_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_FLOAT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetString_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetString_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetString_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetString_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inString_QNAME = new
QName("", "inString");
private static final javax.xml.namespace.QName ns2_string_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_STRING;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetString_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetString_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetString_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetString_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetStringResult_QNAME = new
QName("", "RetStringResult");
private static final javax.xml.namespace.QName ns2_string_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_STRING;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetTimeSpan_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetTimeSpan_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetTimeSpan_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetTimeSpan_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inTimeSpan_QNAME = new
QName("", "inTimeSpan");
private static final javax.xml.namespace.QName ns2_duration_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DURATION;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetTimeSpan_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetTimeSpan_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetTimeSpan_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetTimeSpan_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetTimeSpanResult_QNAME = new
QName("", "RetTimeSpanResult");
private static final javax.xml.namespace.QName ns2_duration_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DURATION;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetUInt_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetUInt_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetUInt_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetUInt_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inUInt_QNAME = new
QName("", "inUInt");
private static final javax.xml.namespace.QName ns2_unsignedInt_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_UNSIGNED_INT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetUInt_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetUInt_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetUInt_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetUInt_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetUIntResult_QNAME = new
QName("", "RetUIntResult");
private static final javax.xml.namespace.QName ns2_unsignedInt_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_UNSIGNED_INT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetULong_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetULong_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetULong_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetULong_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inULong_QNAME = new
QName("", "inULong");
private static final javax.xml.namespace.QName ns2_unsignedLong_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_UNSIGNED_LONG;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetULong_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetULong_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetULong_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetULong_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetULongResult_QNAME = new
QName("", "RetULongResult");
private static final javax.xml.namespace.QName ns2_unsignedLong_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_UNSIGNED_LONG;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetUShort_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetUShort_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetUShort_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetUShort_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inUShort_QNAME = new
QName("", "inUShort");
private static final javax.xml.namespace.QName ns2_unsignedShort_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_UNSIGNED_SHORT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetUShort_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetUShort_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetUShort_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetUShort_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetUShortResult_QNAME = new
QName("", "RetUShortResult");
private static final javax.xml.namespace.QName ns2_unsignedShort_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_UNSIGNED_SHORT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetUri_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetUri_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetUri_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetUri_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inUri_QNAME = new
QName("", "inUri");
private static final javax.xml.namespace.QName ns2_anyURI_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_ANY_URI;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetUri_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetUri_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_RetUri_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetUri_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetUriResult_QNAME = new
QName("", "RetUriResult");
private static final javax.xml.namespace.QName ns2_anyURI_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_ANY_URI;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_Stub.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_Stub.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit/IBaseDataTypesRpcLit_Stub.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,29 +5,14 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit;
-import com.sun.xml.rpc.server.http.MessageContextProperties;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.soap.streaming.*;
-import com.sun.xml.rpc.soap.message.*;
-import com.sun.xml.rpc.soap.SOAPVersion;
-import com.sun.xml.rpc.soap.SOAPEncodingConstants;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
-import javax.xml.namespace.QName;
import java.rmi.RemoteException;
-import java.util.Iterator;
-import java.lang.reflect.*;
-import java.lang.Class;
-import com.sun.xml.rpc.client.SenderException;
-import com.sun.xml.rpc.client.*;
-import com.sun.xml.rpc.client.http.*;
-import javax.xml.rpc.handler.*;
+
+import javax.xml.namespace.QName;
import javax.xml.rpc.JAXRPCException;
-import javax.xml.rpc.soap.SOAPFaultException;
+import javax.xml.rpc.handler.HandlerChain;
+import org.xml.sax.XMLReader;
+
public class IBaseDataTypesRpcLit_Stub
extends com.sun.xml.rpc.client.StubBase
implements
org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit.IBaseDataTypesRpcLit {
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetBool_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetBool_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetBool_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetBool_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inBool_QNAME = new
QName("", "inBool");
private static final javax.xml.namespace.QName ns2_boolean_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_BOOLEAN;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetBool_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetBool_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetBool_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetBool_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetBoolResult_QNAME = new
QName("", "RetBoolResult");
private static final javax.xml.namespace.QName ns2_boolean_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_BOOLEAN;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetByteArray_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetByteArray_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetByteArray_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetByteArray_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inByteArray_QNAME = new
QName("", "inByteArray");
private static final javax.xml.namespace.QName ns2_base64Binary_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_BASE64_BINARY;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetByteArray_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetByteArray_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetByteArray_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetByteArray_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetByteArrayResult_QNAME = new
QName("", "RetByteArrayResult");
private static final javax.xml.namespace.QName ns2_base64Binary_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_BASE64_BINARY;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetByte_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetByte_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetByte_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetByte_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inByte_QNAME = new
QName("", "inByte");
private static final javax.xml.namespace.QName ns2_unsignedByte_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_UNSIGNED_BYTE;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetByte_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetByte_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetByte_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetByte_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetByteResult_QNAME = new
QName("", "RetByteResult");
private static final javax.xml.namespace.QName ns2_unsignedByte_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_UNSIGNED_BYTE;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetChar_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetChar_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetChar_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetChar_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inChar_QNAME = new
QName("", "inChar");
private static final javax.xml.namespace.QName ns2_int_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_INT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetChar_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetChar_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetChar_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetChar_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetCharResult_QNAME = new
QName("", "RetCharResult");
private static final javax.xml.namespace.QName ns2_int_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_INT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetDateTime_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetDateTime_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetDateTime_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetDateTime_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inDateTime_QNAME = new
QName("", "inDateTime");
private static final javax.xml.namespace.QName ns2_dateTime_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DATE_TIME;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetDateTime_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetDateTime_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetDateTime_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetDateTime_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetDateTimeResult_QNAME = new
QName("", "RetDateTimeResult");
private static final javax.xml.namespace.QName ns2_dateTime_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DATE_TIME;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetDecimal_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetDecimal_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetDecimal_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetDecimal_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inDecimal_QNAME = new
QName("", "inDecimal");
private static final javax.xml.namespace.QName ns2_decimal_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DECIMAL;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetDecimal_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetDecimal_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetDecimal_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetDecimal_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetDecimalResult_QNAME = new
QName("", "RetDecimalResult");
private static final javax.xml.namespace.QName ns2_decimal_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DECIMAL;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetDouble_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetDouble_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetDouble_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetDouble_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inDouble_QNAME = new
QName("", "inDouble");
private static final javax.xml.namespace.QName ns2_double_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DOUBLE;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetDouble_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetDouble_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetDouble_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetDouble_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetDoubleResult_QNAME = new
QName("", "RetDoubleResult");
private static final javax.xml.namespace.QName ns2_double_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DOUBLE;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetFloat_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetFloat_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetFloat_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetFloat_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inFloat_QNAME = new
QName("", "inFloat");
private static final javax.xml.namespace.QName ns2_float_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_FLOAT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetFloat_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetFloat_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetFloat_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetFloat_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetFloatResult_QNAME = new
QName("", "RetFloatResult");
private static final javax.xml.namespace.QName ns2_float_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_FLOAT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetGuid_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetGuid_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetGuid_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetGuid_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inGuid_QNAME = new
QName("", "inGuid");
private static final javax.xml.namespace.QName ns2_string_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_STRING;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetGuid_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetGuid_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetGuid_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetGuid_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetGuidResult_QNAME = new
QName("", "RetGuidResult");
private static final javax.xml.namespace.QName ns2_string_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_STRING;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetInt_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetInt_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetInt_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetInt_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inInt_QNAME = new
QName("", "inInt");
private static final javax.xml.namespace.QName ns2_int_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_INT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetInt_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetInt_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetInt_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetInt_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetIntResult_QNAME = new
QName("", "RetIntResult");
private static final javax.xml.namespace.QName ns2_int_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_INT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetLong_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetLong_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetLong_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetLong_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inLong_QNAME = new
QName("", "inLong");
private static final javax.xml.namespace.QName ns2_long_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_LONG;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetLong_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetLong_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetLong_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetLong_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetLongResult_QNAME = new
QName("", "RetLongResult");
private static final javax.xml.namespace.QName ns2_long_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_LONG;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetObject_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetObject_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetObject_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetObject_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inObject_QNAME = new
QName("", "inObject");
private static final javax.xml.namespace.QName ns2_anyType_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_URTYPE;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetObject_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetObject_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetObject_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetObject_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetObjectResult_QNAME = new
QName("", "RetObjectResult");
private static final javax.xml.namespace.QName ns2_anyType_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_URTYPE;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetQName_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetQName_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetQName_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetQName_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inQName_QNAME = new
QName("", "inQName");
private static final javax.xml.namespace.QName ns2_QName_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_QNAME;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetQName_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetQName_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetQName_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetQName_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetQNameResult_QNAME = new
QName("", "RetQNameResult");
private static final javax.xml.namespace.QName ns2_QName_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_QNAME;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetSByte_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetSByte_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetSByte_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetSByte_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inSByte_QNAME = new
QName("", "inSByte");
private static final javax.xml.namespace.QName ns2_byte_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_BYTE;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetSByte_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetSByte_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetSByte_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetSByte_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetSByteResult_QNAME = new
QName("", "RetSByteResult");
private static final javax.xml.namespace.QName ns2_byte_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_BYTE;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetShort_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetShort_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetShort_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetShort_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inShort_QNAME = new
QName("", "inShort");
private static final javax.xml.namespace.QName ns2_short_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_SHORT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetShort_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetShort_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetShort_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetShort_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetShortResult_QNAME = new
QName("", "RetShortResult");
private static final javax.xml.namespace.QName ns2_short_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_SHORT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetSingle_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetSingle_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetSingle_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetSingle_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inSingle_QNAME = new
QName("", "inSingle");
private static final javax.xml.namespace.QName ns2_float_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_FLOAT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetSingle_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetSingle_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetSingle_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetSingle_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetSingleResult_QNAME = new
QName("", "RetSingleResult");
private static final javax.xml.namespace.QName ns2_float_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_FLOAT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetString_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetString_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetString_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetString_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inString_QNAME = new
QName("", "inString");
private static final javax.xml.namespace.QName ns2_string_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_STRING;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetString_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetString_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetString_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetString_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetStringResult_QNAME = new
QName("", "RetStringResult");
private static final javax.xml.namespace.QName ns2_string_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_STRING;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetTimeSpan_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetTimeSpan_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetTimeSpan_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetTimeSpan_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inTimeSpan_QNAME = new
QName("", "inTimeSpan");
private static final javax.xml.namespace.QName ns2_duration_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DURATION;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetTimeSpan_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetTimeSpan_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetTimeSpan_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetTimeSpan_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetTimeSpanResult_QNAME = new
QName("", "RetTimeSpanResult");
private static final javax.xml.namespace.QName ns2_duration_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DURATION;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetUInt_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetUInt_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetUInt_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetUInt_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inUInt_QNAME = new
QName("", "inUInt");
private static final javax.xml.namespace.QName ns2_unsignedInt_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_UNSIGNED_INT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetUInt_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetUInt_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetUInt_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetUInt_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetUIntResult_QNAME = new
QName("", "RetUIntResult");
private static final javax.xml.namespace.QName ns2_unsignedInt_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_UNSIGNED_INT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetULong_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetULong_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetULong_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetULong_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inULong_QNAME = new
QName("", "inULong");
private static final javax.xml.namespace.QName ns2_unsignedLong_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_UNSIGNED_LONG;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetULong_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetULong_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetULong_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetULong_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetULongResult_QNAME = new
QName("", "RetULongResult");
private static final javax.xml.namespace.QName ns2_unsignedLong_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_UNSIGNED_LONG;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetUShort_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetUShort_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetUShort_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetUShort_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inUShort_QNAME = new
QName("", "inUShort");
private static final javax.xml.namespace.QName ns2_unsignedShort_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_UNSIGNED_SHORT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetUShort_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetUShort_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetUShort_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetUShort_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetUShortResult_QNAME = new
QName("", "RetUShortResult");
private static final javax.xml.namespace.QName ns2_unsignedShort_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_UNSIGNED_SHORT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetUri_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetUri_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetUri_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetUri_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_inUri_QNAME = new
QName("", "inUri");
private static final javax.xml.namespace.QName ns2_anyURI_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_ANY_URI;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetUri_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetUri_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_RetUri_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class IBaseDataTypesRpcLit_RetUri_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns1_RetUriResult_QNAME = new
QName("", "RetUriResult");
private static final javax.xml.namespace.QName ns2_anyURI_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_ANY_URI;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_Tie.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_Tie.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/IBaseDataTypesRpcLit_Tie.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,26 +5,14 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import com.sun.xml.rpc.server.http.MessageContextProperties;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.soap.streaming.*;
-import com.sun.xml.rpc.soap.message.*;
-import com.sun.xml.rpc.soap.SOAPVersion;
-import com.sun.xml.rpc.soap.SOAPEncodingConstants;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
+import java.lang.reflect.Method;
+
import javax.xml.namespace.QName;
-import java.rmi.RemoteException;
-import java.util.Iterator;
-import java.lang.reflect.*;
-import java.lang.Class;
-import com.sun.xml.rpc.server.*;
-import javax.xml.rpc.handler.HandlerInfo;
-import com.sun.xml.rpc.client.HandlerChainImpl;
+import org.xml.sax.XMLReader;
+
+import com.sun.org.apache.xml.internal.serializer.SerializerConstants;
+
public class IBaseDataTypesRpcLit_Tie
extends com.sun.xml.rpc.server.TieBase implements SerializerConstants {
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/ServiceImpl.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/ServiceImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesRpcLit_Service/ServiceImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,13 +1,14 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.BaseDataTypesRpcLit_Service;
-import javax.xml.soap.SOAPElement;
-import javax.xml.namespace.QName;
-import java.rmi.RemoteException;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.net.URI;
+import java.rmi.RemoteException;
import java.util.Calendar;
+import javax.xml.namespace.QName;
+import javax.xml.soap.SOAPElement;
+
/**
* @author Heiko Braun, <heiko(a)openj.net>
* @since 06-Mar-2006
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesSupport.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesSupport.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/BaseDataTypesSupport.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,15 +1,16 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl;
-import org.jboss.test.ws.JBossWSTest;
-import org.jboss.test.ws.interop.microsoft.InteropConfigFactory;
-import org.jboss.test.ws.interop.microsoft.ClientScenario;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.Stub;
import java.math.BigDecimal;
import java.net.URI;
import java.util.Calendar;
+import javax.xml.namespace.QName;
+import javax.xml.rpc.Stub;
+
+import org.jboss.test.ws.JBossWSTest;
+import org.jboss.test.ws.interop.microsoft.ClientScenario;
+import org.jboss.test.ws.interop.microsoft.InteropConfigFactory;
+
/**
* @author Heiko Braun, <heiko(a)openj.net>
* @since 20-Feb-2006
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesDocLitB/ComplexDataTypesDocLitBTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesDocLitB/ComplexDataTypesDocLitBTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesDocLitB/ComplexDataTypesDocLitBTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,16 +1,17 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesDocLitB;
+import javax.naming.InitialContext;
+import javax.xml.rpc.Service;
+import javax.xml.rpc.Stub;
+
import junit.framework.Test;
+
import org.jboss.test.ws.JBossWSTestSetup;
import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesProxy;
import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesSEI;
import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesSupport;
import
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.IComplexDataTypesDocLitB;
-import javax.naming.InitialContext;
-import javax.xml.rpc.Service;
-import javax.xml.rpc.Stub;
-
/**
* @author Heiko Braun, <heiko(a)openj.net>
* @since 17-Feb-2006
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesDocLitB_Service/ServiceImpl.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesDocLitB_Service/ServiceImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesDocLitB_Service/ServiceImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,9 +1,23 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesDocLitB_Service;
-import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.*;
-
import java.rmi.RemoteException;
+import
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.ArrayOfArrayOfstring;
+import
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.ArrayOfNullableOfdateTime;
+import
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.ArrayOfNullableOfdecimal;
+import
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.ArrayOfPerson;
+import
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.ArrayOfanyType;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.ArrayOfint;
+import
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.ArrayOfstring;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.BitMask;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.Employee;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.Group;
+import
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.IComplexDataTypesDocLitB;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.IntSet;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.Name;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.Person;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.Table;
+
/**
* @author Heiko Braun, <heiko(a)openj.net>
* @since 06-Mar-2006
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesDocLitW/ComplexDataTypesDocLitWTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesDocLitW/ComplexDataTypesDocLitWTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesDocLitW/ComplexDataTypesDocLitWTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,16 +1,17 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesDocLitW;
+import javax.naming.InitialContext;
+import javax.xml.rpc.Service;
+import javax.xml.rpc.Stub;
+
import junit.framework.Test;
+
import org.jboss.test.ws.JBossWSTestSetup;
import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesProxy;
import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesSEI;
import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesSupport;
import
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.IComplexDataTypesDocLitW;
-import javax.naming.InitialContext;
-import javax.xml.rpc.Service;
-import javax.xml.rpc.Stub;
-
/**
* @author Heiko Braun, <heiko(a)openj.net>
* @since 17-Feb-2006
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesDocLitW_Service/ServiceImpl.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesDocLitW_Service/ServiceImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesDocLitW_Service/ServiceImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,9 +1,23 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesDocLitW_Service;
-import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.*;
-
import java.rmi.RemoteException;
+import
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.ArrayOfArrayOfstring;
+import
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.ArrayOfNullableOfdateTime;
+import
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.ArrayOfNullableOfdecimal;
+import
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.ArrayOfPerson;
+import
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.ArrayOfanyType;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.ArrayOfint;
+import
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.ArrayOfstring;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.BitMask;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.Employee;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.Group;
+import
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.IComplexDataTypesDocLitW;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.IntSet;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.Name;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.Person;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.Table;
+
/**
* @author Heiko Braun, <heiko(a)openj.net>
* @since 06-Mar-2006
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesProxy.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesProxy.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesProxy.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,8 +1,8 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl;
import java.lang.reflect.InvocationHandler;
+import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
-import java.lang.reflect.InvocationTargetException;
/**
* Adapts a standard SEI to several test services
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesRpcLit/ComplexDataTypesRpcLitTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesRpcLit/ComplexDataTypesRpcLitTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesRpcLit/ComplexDataTypesRpcLitTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,16 +1,17 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesRpcLit;
+import javax.naming.InitialContext;
+import javax.xml.rpc.Service;
+import javax.xml.rpc.Stub;
+
import junit.framework.Test;
+
import org.jboss.test.ws.JBossWSTestSetup;
import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesProxy;
import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesSEI;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesSupport;
import
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.IComplexDataTypesRpcLit;
-import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesSupport;
-import javax.naming.InitialContext;
-import javax.xml.rpc.Service;
-import javax.xml.rpc.Stub;
-
/**
* @author Heiko Braun, <heiko(a)openj.net>
* @since 17-Feb-2006
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesRpcLit_Service/ServiceImpl.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesRpcLit_Service/ServiceImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesRpcLit_Service/ServiceImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,9 +1,23 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesRpcLit_Service;
-import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.*;
-
import java.rmi.RemoteException;
+import
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.ArrayOfArrayOfstring;
+import
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.ArrayOfNullableOfdateTime;
+import
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.ArrayOfNullableOfdecimal;
+import
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.ArrayOfPerson;
+import
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.ArrayOfanyType;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.ArrayOfint;
+import
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.ArrayOfstring;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.BitMask;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.Employee;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.Group;
+import
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.IComplexDataTypesRpcLit;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.IntSet;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.Name;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.Person;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.Table;
+
/**
* @author Heiko Braun, <heiko(a)openj.net>
* @since 06-Mar-2006
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ArrayOfArrayOfstring_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ArrayOfArrayOfstring_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ArrayOfArrayOfstring_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
-import javax.xml.namespace.QName;
-import java.util.List;
import java.util.ArrayList;
+import javax.xml.namespace.QName;
+
+import org.xml.sax.XMLReader;
+
public class ArrayOfArrayOfstring_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_ArrayOfstring_QNAME = new
QName("http://schemas.microsoft.com/2003/10/Serialization/Arrays",
"ArrayOfstring");
private static final javax.xml.namespace.QName ns1_ArrayOfstring_TYPE_QNAME = new
QName("http://schemas.microsoft.com/2003/10/Serialization/Arrays",
"ArrayOfstring");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ArrayOfNullableOfdateTime_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ArrayOfNullableOfdateTime_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ArrayOfNullableOfdateTime_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,14 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
-import javax.xml.namespace.QName;
-import java.util.List;
import java.util.ArrayList;
+import javax.xml.namespace.QName;
+
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class ArrayOfNullableOfdateTime_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns4_dateTime_QNAME = new
QName("http://schemas.datacontract.org/2004/07/System", "dateTime");
private static final javax.xml.namespace.QName ns2_dateTime_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DATE_TIME;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ArrayOfNullableOfdecimal_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ArrayOfNullableOfdecimal_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ArrayOfNullableOfdecimal_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,14 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
-import javax.xml.namespace.QName;
-import java.util.List;
import java.util.ArrayList;
+import javax.xml.namespace.QName;
+
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class ArrayOfNullableOfdecimal_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns4_decimal_QNAME = new
QName("http://schemas.datacontract.org/2004/07/System", "decimal");
private static final javax.xml.namespace.QName ns2_decimal_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DECIMAL;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ArrayOfPerson_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ArrayOfPerson_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ArrayOfPerson_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
-import javax.xml.namespace.QName;
-import java.util.List;
import java.util.ArrayList;
+import javax.xml.namespace.QName;
+
+import org.xml.sax.XMLReader;
+
public class ArrayOfPerson_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns5_Person_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"Person");
private static final javax.xml.namespace.QName ns5_Person_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"Person");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ArrayOfanyType_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ArrayOfanyType_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ArrayOfanyType_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,14 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
-import javax.xml.namespace.QName;
-import java.util.List;
import java.util.ArrayList;
+import javax.xml.namespace.QName;
+
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class ArrayOfanyType_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_anyType_QNAME = new
QName("http://schemas.microsoft.com/2003/10/Serialization/Arrays",
"anyType");
private static final javax.xml.namespace.QName ns2_anyType_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_URTYPE;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ArrayOfint_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ArrayOfint_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ArrayOfint_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,14 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
-import javax.xml.namespace.QName;
-import java.util.List;
import java.util.ArrayList;
+import javax.xml.namespace.QName;
+
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class ArrayOfint_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_int_QNAME = new
QName("http://schemas.microsoft.com/2003/10/Serialization/Arrays",
"int");
private static final javax.xml.namespace.QName ns2_int_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_INT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ArrayOfshort_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ArrayOfshort_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ArrayOfshort_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,14 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
-import javax.xml.namespace.QName;
-import java.util.List;
import java.util.ArrayList;
+import javax.xml.namespace.QName;
+
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class ArrayOfshort_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_short_QNAME = new
QName("http://schemas.microsoft.com/2003/10/Serialization/Arrays",
"short");
private static final javax.xml.namespace.QName ns2_short_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_SHORT;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ArrayOfstring_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ArrayOfstring_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ArrayOfstring_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,14 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
-import javax.xml.namespace.QName;
-import java.util.List;
import java.util.ArrayList;
+import javax.xml.namespace.QName;
+
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class ArrayOfstring_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns1_string_QNAME = new
QName("http://schemas.microsoft.com/2003/10/Serialization/Arrays",
"string");
private static final javax.xml.namespace.QName ns2_string_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_STRING;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/BitMask.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/BitMask.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/BitMask.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -6,7 +6,6 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import java.util.Map;
import java.util.HashMap;
public class BitMask {
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/BitMask_Encoder.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/BitMask_Encoder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/BitMask_Encoder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -6,9 +6,7 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import javax.xml.namespace.QName;
-import com.sun.xml.rpc.streaming.*;
+import org.xml.sax.XMLReader;
public class BitMask_Encoder extends SimpleTypeEncoderBase {
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ComplexDataTypesDocLitBService.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ComplexDataTypesDocLitBService.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ComplexDataTypesDocLitBService.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,7 +5,7 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import javax.xml.rpc.*;
+import javax.xml.rpc.ServiceException;
public interface ComplexDataTypesDocLitBService extends javax.xml.rpc.Service {
public
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.IComplexDataTypesDocLitB
getBasicHttpBinding_IComplexDataTypesDocLitB() throws ServiceException;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ComplexDataTypesDocLitBService_Impl.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ComplexDataTypesDocLitBService_Impl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ComplexDataTypesDocLitBService_Impl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,16 +5,8 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.client.ServiceExceptionImpl;
-import com.sun.xml.rpc.util.exception.*;
-import com.sun.xml.rpc.soap.SOAPVersion;
-import com.sun.xml.rpc.client.HandlerChainImpl;
-import javax.xml.rpc.*;
-import javax.xml.rpc.encoding.*;
-import javax.xml.rpc.handler.HandlerChain;
-import javax.xml.rpc.handler.HandlerInfo;
import javax.xml.namespace.QName;
+import javax.xml.rpc.JAXRPCException;
public class ComplexDataTypesDocLitBService_Impl extends
com.sun.xml.rpc.client.BasicService implements ComplexDataTypesDocLitBService {
private static final QName serviceName = new
QName("http://tempuri.org/",
"ComplexDataTypesDocLitBService");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ComplexDataTypesDocLitWService.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ComplexDataTypesDocLitWService.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ComplexDataTypesDocLitWService.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,7 +5,7 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import javax.xml.rpc.*;
+import javax.xml.rpc.ServiceException;
public interface ComplexDataTypesDocLitWService extends javax.xml.rpc.Service {
public
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.IComplexDataTypesDocLitW
getBasicHttpBinding_IComplexDataTypesDocLitW() throws ServiceException;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ComplexDataTypesDocLitWService_Impl.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ComplexDataTypesDocLitWService_Impl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ComplexDataTypesDocLitWService_Impl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,16 +5,8 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.client.ServiceExceptionImpl;
-import com.sun.xml.rpc.util.exception.*;
-import com.sun.xml.rpc.soap.SOAPVersion;
-import com.sun.xml.rpc.client.HandlerChainImpl;
-import javax.xml.rpc.*;
-import javax.xml.rpc.encoding.*;
-import javax.xml.rpc.handler.HandlerChain;
-import javax.xml.rpc.handler.HandlerInfo;
import javax.xml.namespace.QName;
+import javax.xml.rpc.JAXRPCException;
public class ComplexDataTypesDocLitWService_Impl extends
com.sun.xml.rpc.client.BasicService implements ComplexDataTypesDocLitWService {
private static final QName serviceName = new
QName("http://tempuri.org/",
"ComplexDataTypesDocLitWService");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ComplexDataTypesRpcLitService.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ComplexDataTypesRpcLitService.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ComplexDataTypesRpcLitService.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,7 +5,7 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import javax.xml.rpc.*;
+import javax.xml.rpc.ServiceException;
public interface ComplexDataTypesRpcLitService extends javax.xml.rpc.Service {
public
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.IComplexDataTypesRpcLit
getBasicHttpBinding_IComplexDataTypesRpcLit() throws ServiceException;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ComplexDataTypesRpcLitService_Impl.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ComplexDataTypesRpcLitService_Impl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/ComplexDataTypesRpcLitService_Impl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,16 +5,8 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.client.ServiceExceptionImpl;
-import com.sun.xml.rpc.util.exception.*;
-import com.sun.xml.rpc.soap.SOAPVersion;
-import com.sun.xml.rpc.client.HandlerChainImpl;
-import javax.xml.rpc.*;
-import javax.xml.rpc.encoding.*;
-import javax.xml.rpc.handler.HandlerChain;
-import javax.xml.rpc.handler.HandlerInfo;
import javax.xml.namespace.QName;
+import javax.xml.rpc.JAXRPCException;
public class ComplexDataTypesRpcLitService_Impl extends
com.sun.xml.rpc.client.BasicService implements ComplexDataTypesRpcLitService {
private static final QName serviceName = new
QName("http://tempuri.org/",
"ComplexDataTypesRpcLitService");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/Employee_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/Employee_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/Employee_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class Employee_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns5_BaseDetails_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"BaseDetails");
private static final javax.xml.namespace.QName ns5_Person_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"Person");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/Furniture_InterfaceSOAPSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/Furniture_InterfaceSOAPSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/Furniture_InterfaceSOAPSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,14 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.soap.SOAPVersion;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
+import org.xml.sax.XMLReader;
+
public class Furniture_InterfaceSOAPSerializer extends InterfaceSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns1_Table_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"Table");
private CombinedSerializer ns1_myTable_LiteralSerializer;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/Furniture_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/Furniture_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/Furniture_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class Furniture_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns5_color_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"color");
private static final javax.xml.namespace.QName ns2_string_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_STRING;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/Group_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/Group_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/Group_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class Group_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns5_members_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"members");
private static final javax.xml.namespace.QName ns5_ArrayOfPerson_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"ArrayOfPerson");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesDocLitB_Stub.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesDocLitB_Stub.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesDocLitB_Stub.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,29 +5,14 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.server.http.MessageContextProperties;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.soap.streaming.*;
-import com.sun.xml.rpc.soap.message.*;
-import com.sun.xml.rpc.soap.SOAPVersion;
-import com.sun.xml.rpc.soap.SOAPEncodingConstants;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
-import javax.xml.namespace.QName;
import java.rmi.RemoteException;
-import java.util.Iterator;
-import java.lang.reflect.*;
-import java.lang.Class;
-import com.sun.xml.rpc.client.SenderException;
-import com.sun.xml.rpc.client.*;
-import com.sun.xml.rpc.client.http.*;
-import javax.xml.rpc.handler.*;
+
+import javax.xml.namespace.QName;
import javax.xml.rpc.JAXRPCException;
-import javax.xml.rpc.soap.SOAPFaultException;
+import javax.xml.rpc.handler.HandlerChain;
+import org.xml.sax.XMLReader;
+
public class IComplexDataTypesDocLitB_Stub
extends com.sun.xml.rpc.client.StubBase
implements
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.IComplexDataTypesDocLitB
{
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesDocLitW_Stub.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesDocLitW_Stub.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesDocLitW_Stub.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,29 +5,14 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.server.http.MessageContextProperties;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.soap.streaming.*;
-import com.sun.xml.rpc.soap.message.*;
-import com.sun.xml.rpc.soap.SOAPVersion;
-import com.sun.xml.rpc.soap.SOAPEncodingConstants;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
-import javax.xml.namespace.QName;
import java.rmi.RemoteException;
-import java.util.Iterator;
-import java.lang.reflect.*;
-import java.lang.Class;
-import com.sun.xml.rpc.client.SenderException;
-import com.sun.xml.rpc.client.*;
-import com.sun.xml.rpc.client.http.*;
-import javax.xml.rpc.handler.*;
+
+import javax.xml.namespace.QName;
import javax.xml.rpc.JAXRPCException;
-import javax.xml.rpc.soap.SOAPFaultException;
+import javax.xml.rpc.handler.HandlerChain;
+import org.xml.sax.XMLReader;
+
public class IComplexDataTypesDocLitW_Stub
extends com.sun.xml.rpc.client.StubBase
implements
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.IComplexDataTypesDocLitW
{
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArray1D_SN_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArray1D_SN_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArray1D_SN_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class IComplexDataTypesRpcLit_RetArray1D_SN_RequestStruct_LiteralSerializer
extends LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns3_inArray1D_SN_QNAME = new
QName("", "inArray1D_SN");
private static final javax.xml.namespace.QName ns5_ArrayOfPerson_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"ArrayOfPerson");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArray1D_SN_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArray1D_SN_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArray1D_SN_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class IComplexDataTypesRpcLit_RetArray1D_SN_ResponseStruct_LiteralSerializer
extends LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns3_RetArray1D_SNResult_QNAME = new
QName("", "RetArray1D_SNResult");
private static final javax.xml.namespace.QName ns5_ArrayOfPerson_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"ArrayOfPerson");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayAnyType1D_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayAnyType1D_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayAnyType1D_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class IComplexDataTypesRpcLit_RetArrayAnyType1D_RequestStruct_LiteralSerializer
extends LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns3_inArrayAnyType1D_QNAME = new
QName("", "inArrayAnyType1D");
private static final javax.xml.namespace.QName ns1_ArrayOfanyType_TYPE_QNAME = new
QName("http://schemas.microsoft.com/2003/10/Serialization/Arrays",
"ArrayOfanyType");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayAnyType1D_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayAnyType1D_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayAnyType1D_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class IComplexDataTypesRpcLit_RetArrayAnyType1D_ResponseStruct_LiteralSerializer
extends LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns3_RetArrayAnyType1DResult_QNAME =
new QName("", "RetArrayAnyType1DResult");
private static final javax.xml.namespace.QName ns1_ArrayOfanyType_TYPE_QNAME = new
QName("http://schemas.microsoft.com/2003/10/Serialization/Arrays",
"ArrayOfanyType");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayDateTime1D_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayDateTime1D_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayDateTime1D_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class IComplexDataTypesRpcLit_RetArrayDateTime1D_RequestStruct_LiteralSerializer
extends LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns3_inArrayDateTime1D_QNAME = new
QName("", "inArrayDateTime1D");
private static final javax.xml.namespace.QName
ns4_ArrayOfNullableOfdateTime_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/System",
"ArrayOfNullableOfdateTime");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayDateTime1D_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayDateTime1D_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayDateTime1D_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class IComplexDataTypesRpcLit_RetArrayDateTime1D_ResponseStruct_LiteralSerializer
extends LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns3_RetArrayDateTime1DResult_QNAME =
new QName("", "RetArrayDateTime1DResult");
private static final javax.xml.namespace.QName
ns4_ArrayOfNullableOfdateTime_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/System",
"ArrayOfNullableOfdateTime");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayDecimal1D_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayDecimal1D_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayDecimal1D_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class IComplexDataTypesRpcLit_RetArrayDecimal1D_RequestStruct_LiteralSerializer
extends LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns3_inArrayDecimal1D_QNAME = new
QName("", "inArrayDecimal1D");
private static final javax.xml.namespace.QName
ns4_ArrayOfNullableOfdecimal_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/System",
"ArrayOfNullableOfdecimal");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayDecimal1D_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayDecimal1D_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayDecimal1D_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class IComplexDataTypesRpcLit_RetArrayDecimal1D_ResponseStruct_LiteralSerializer
extends LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns3_RetArrayDecimal1DResult_QNAME =
new QName("", "RetArrayDecimal1DResult");
private static final javax.xml.namespace.QName
ns4_ArrayOfNullableOfdecimal_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/System",
"ArrayOfNullableOfdecimal");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayInt1D_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayInt1D_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayInt1D_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class IComplexDataTypesRpcLit_RetArrayInt1D_RequestStruct_LiteralSerializer
extends LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns3_inArrayInt1D_QNAME = new
QName("", "inArrayInt1D");
private static final javax.xml.namespace.QName ns1_ArrayOfint_TYPE_QNAME = new
QName("http://schemas.microsoft.com/2003/10/Serialization/Arrays",
"ArrayOfint");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayInt1D_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayInt1D_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayInt1D_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class IComplexDataTypesRpcLit_RetArrayInt1D_ResponseStruct_LiteralSerializer
extends LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns3_RetArrayInt1DResult_QNAME = new
QName("", "RetArrayInt1DResult");
private static final javax.xml.namespace.QName ns1_ArrayOfint_TYPE_QNAME = new
QName("http://schemas.microsoft.com/2003/10/Serialization/Arrays",
"ArrayOfint");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayString1D_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayString1D_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayString1D_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class IComplexDataTypesRpcLit_RetArrayString1D_RequestStruct_LiteralSerializer
extends LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns3_inArrayString1D_QNAME = new
QName("", "inArrayString1D");
private static final javax.xml.namespace.QName ns1_ArrayOfstring_TYPE_QNAME = new
QName("http://schemas.microsoft.com/2003/10/Serialization/Arrays",
"ArrayOfstring");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayString1D_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayString1D_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayString1D_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class IComplexDataTypesRpcLit_RetArrayString1D_ResponseStruct_LiteralSerializer
extends LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns3_RetArrayString1DResult_QNAME = new
QName("", "RetArrayString1DResult");
private static final javax.xml.namespace.QName ns1_ArrayOfstring_TYPE_QNAME = new
QName("http://schemas.microsoft.com/2003/10/Serialization/Arrays",
"ArrayOfstring");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayString2D_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayString2D_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayString2D_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class IComplexDataTypesRpcLit_RetArrayString2D_RequestStruct_LiteralSerializer
extends LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns3_inArrayString2D_QNAME = new
QName("", "inArrayString2D");
private static final javax.xml.namespace.QName ns1_ArrayOfArrayOfstring_TYPE_QNAME =
new
QName("http://schemas.microsoft.com/2003/10/Serialization/Arrays",
"ArrayOfArrayOfstring");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayString2D_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayString2D_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetArrayString2D_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class IComplexDataTypesRpcLit_RetArrayString2D_ResponseStruct_LiteralSerializer
extends LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns3_RetArrayString2DResult_QNAME = new
QName("", "RetArrayString2DResult");
private static final javax.xml.namespace.QName ns1_ArrayOfArrayOfstring_TYPE_QNAME =
new
QName("http://schemas.microsoft.com/2003/10/Serialization/Arrays",
"ArrayOfArrayOfstring");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetDerivedClass_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetDerivedClass_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetDerivedClass_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class IComplexDataTypesRpcLit_RetDerivedClass_RequestStruct_LiteralSerializer
extends LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns3_inDerivedClass_QNAME = new
QName("", "inDerivedClass");
private static final javax.xml.namespace.QName ns5_Table_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"Table");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetDerivedClass_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetDerivedClass_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetDerivedClass_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class IComplexDataTypesRpcLit_RetDerivedClass_ResponseStruct_LiteralSerializer
extends LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns3_RetDerivedClassResult_QNAME = new
QName("", "RetDerivedClassResult");
private static final javax.xml.namespace.QName ns5_Table_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"Table");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetEnumInt_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetEnumInt_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetEnumInt_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class IComplexDataTypesRpcLit_RetEnumInt_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns3_inEnumInt_QNAME = new
QName("", "inEnumInt");
private static final javax.xml.namespace.QName ns5_IntSet_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"IntSet");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetEnumInt_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetEnumInt_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetEnumInt_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class IComplexDataTypesRpcLit_RetEnumInt_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns3_RetEnumIntResult_QNAME = new
QName("", "RetEnumIntResult");
private static final javax.xml.namespace.QName ns5_IntSet_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"IntSet");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetEnumString_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetEnumString_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetEnumString_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class IComplexDataTypesRpcLit_RetEnumString_RequestStruct_LiteralSerializer
extends LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns3_inEnumString_QNAME = new
QName("", "inEnumString");
private static final javax.xml.namespace.QName ns5_BitMask_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"BitMask");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetEnumString_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetEnumString_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetEnumString_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class IComplexDataTypesRpcLit_RetEnumString_ResponseStruct_LiteralSerializer
extends LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns3_RetEnumStringResult_QNAME = new
QName("", "RetEnumStringResult");
private static final javax.xml.namespace.QName ns5_BitMask_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"BitMask");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetStructS1_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetStructS1_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetStructS1_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class IComplexDataTypesRpcLit_RetStructS1_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns3_inStructS1_QNAME = new
QName("", "inStructS1");
private static final javax.xml.namespace.QName ns5_Name_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"Name");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetStructS1_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetStructS1_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetStructS1_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class IComplexDataTypesRpcLit_RetStructS1_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns3_RetStructS1Result_QNAME = new
QName("", "RetStructS1Result");
private static final javax.xml.namespace.QName ns5_Name_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"Name");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetStructSNSAS_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetStructSNSAS_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetStructSNSAS_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class IComplexDataTypesRpcLit_RetStructSNSAS_RequestStruct_LiteralSerializer
extends LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns3_inStructSNSAS_QNAME = new
QName("", "inStructSNSAS");
private static final javax.xml.namespace.QName ns5_Group_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"Group");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetStructSNSAS_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetStructSNSAS_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetStructSNSAS_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class IComplexDataTypesRpcLit_RetStructSNSAS_ResponseStruct_LiteralSerializer
extends LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns3_RetStructSNSASResult_QNAME = new
QName("", "RetStructSNSASResult");
private static final javax.xml.namespace.QName ns5_Group_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"Group");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetStructSNSA_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetStructSNSA_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetStructSNSA_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class IComplexDataTypesRpcLit_RetStructSNSA_RequestStruct_LiteralSerializer
extends LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns3_inStructSNSA_QNAME = new
QName("", "inStructSNSA");
private static final javax.xml.namespace.QName ns5_Employee_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"Employee");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetStructSNSA_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetStructSNSA_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetStructSNSA_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class IComplexDataTypesRpcLit_RetStructSNSA_ResponseStruct_LiteralSerializer
extends LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns3_RetStructSNSAResult_QNAME = new
QName("", "RetStructSNSAResult");
private static final javax.xml.namespace.QName ns5_Employee_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"Employee");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetStructSN_RequestStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetStructSN_RequestStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetStructSN_RequestStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class IComplexDataTypesRpcLit_RetStructSN_RequestStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns3_inStructSN_QNAME = new
QName("", "inStructSN");
private static final javax.xml.namespace.QName ns5_Person_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"Person");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetStructSN_ResponseStruct_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetStructSN_ResponseStruct_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_RetStructSN_ResponseStruct_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class IComplexDataTypesRpcLit_RetStructSN_ResponseStruct_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns3_RetStructSNResult_QNAME = new
QName("", "RetStructSNResult");
private static final javax.xml.namespace.QName ns5_Person_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"Person");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_Stub.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_Stub.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IComplexDataTypesRpcLit_Stub.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,29 +5,14 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.server.http.MessageContextProperties;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.soap.streaming.*;
-import com.sun.xml.rpc.soap.message.*;
-import com.sun.xml.rpc.soap.SOAPVersion;
-import com.sun.xml.rpc.soap.SOAPEncodingConstants;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
-import javax.xml.namespace.QName;
import java.rmi.RemoteException;
-import java.util.Iterator;
-import java.lang.reflect.*;
-import java.lang.Class;
-import com.sun.xml.rpc.client.SenderException;
-import com.sun.xml.rpc.client.*;
-import com.sun.xml.rpc.client.http.*;
-import javax.xml.rpc.handler.*;
+
+import javax.xml.namespace.QName;
import javax.xml.rpc.JAXRPCException;
-import javax.xml.rpc.soap.SOAPFaultException;
+import javax.xml.rpc.handler.HandlerChain;
+import org.xml.sax.XMLReader;
+
public class IComplexDataTypesRpcLit_Stub
extends com.sun.xml.rpc.client.StubBase
implements
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.IComplexDataTypesRpcLit
{
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IntSet.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IntSet.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IntSet.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -6,7 +6,6 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import java.util.Map;
import java.util.HashMap;
public class IntSet {
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IntSet_Encoder.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IntSet_Encoder.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/IntSet_Encoder.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -6,9 +6,7 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import javax.xml.namespace.QName;
-import com.sun.xml.rpc.streaming.*;
+import org.xml.sax.XMLReader;
public class IntSet_Encoder extends SimpleTypeEncoderBase {
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/Name_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/Name_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/Name_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class Name_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns5_name_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"name");
private static final javax.xml.namespace.QName ns2_string_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_STRING;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/Person_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/Person_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/Person_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class Person_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns5_Age_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"Age");
private static final javax.xml.namespace.QName ns2_double_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_DOUBLE;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArray1D_SNResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArray1D_SNResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArray1D_SNResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class RetArray1D_SNResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns3_RetArray1D_SNResult_QNAME = new
QName("http://tempuri.org/", "RetArray1D_SNResult");
private static final javax.xml.namespace.QName ns5_ArrayOfPerson_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"ArrayOfPerson");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArray1D_SN_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArray1D_SN_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArray1D_SN_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class RetArray1D_SN_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns3_inArray1D_SN_QNAME = new
QName("http://tempuri.org/", "inArray1D_SN");
private static final javax.xml.namespace.QName ns5_ArrayOfPerson_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"ArrayOfPerson");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayAnyType1DResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayAnyType1DResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayAnyType1DResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class RetArrayAnyType1DResponse_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns3_RetArrayAnyType1DResult_QNAME =
new
QName("http://tempuri.org/", "RetArrayAnyType1DResult");
private static final javax.xml.namespace.QName ns1_ArrayOfanyType_TYPE_QNAME = new
QName("http://schemas.microsoft.com/2003/10/Serialization/Arrays",
"ArrayOfanyType");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayAnyType1D_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayAnyType1D_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayAnyType1D_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class RetArrayAnyType1D_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns3_inArrayAnyType1D_QNAME = new
QName("http://tempuri.org/", "inArrayAnyType1D");
private static final javax.xml.namespace.QName ns1_ArrayOfanyType_TYPE_QNAME = new
QName("http://schemas.microsoft.com/2003/10/Serialization/Arrays",
"ArrayOfanyType");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayDateTime1DResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayDateTime1DResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayDateTime1DResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class RetArrayDateTime1DResponse_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns3_RetArrayDateTime1DResult_QNAME =
new
QName("http://tempuri.org/", "RetArrayDateTime1DResult");
private static final javax.xml.namespace.QName
ns4_ArrayOfNullableOfdateTime_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/System",
"ArrayOfNullableOfdateTime");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayDateTime1D_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayDateTime1D_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayDateTime1D_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class RetArrayDateTime1D_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns3_inArrayDateTime1D_QNAME = new
QName("http://tempuri.org/", "inArrayDateTime1D");
private static final javax.xml.namespace.QName
ns4_ArrayOfNullableOfdateTime_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/System",
"ArrayOfNullableOfdateTime");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayDecimal1DResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayDecimal1DResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayDecimal1DResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class RetArrayDecimal1DResponse_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns3_RetArrayDecimal1DResult_QNAME =
new
QName("http://tempuri.org/", "RetArrayDecimal1DResult");
private static final javax.xml.namespace.QName
ns4_ArrayOfNullableOfdecimal_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/System",
"ArrayOfNullableOfdecimal");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayDecimal1D_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayDecimal1D_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayDecimal1D_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class RetArrayDecimal1D_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns3_inArrayDecimal1D_QNAME = new
QName("http://tempuri.org/", "inArrayDecimal1D");
private static final javax.xml.namespace.QName
ns4_ArrayOfNullableOfdecimal_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/System",
"ArrayOfNullableOfdecimal");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayInt1DResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayInt1DResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayInt1DResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class RetArrayInt1DResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns3_RetArrayInt1DResult_QNAME = new
QName("http://tempuri.org/", "RetArrayInt1DResult");
private static final javax.xml.namespace.QName ns1_ArrayOfint_TYPE_QNAME = new
QName("http://schemas.microsoft.com/2003/10/Serialization/Arrays",
"ArrayOfint");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayInt1D_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayInt1D_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayInt1D_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class RetArrayInt1D_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns3_inArrayInt1D_QNAME = new
QName("http://tempuri.org/", "inArrayInt1D");
private static final javax.xml.namespace.QName ns1_ArrayOfint_TYPE_QNAME = new
QName("http://schemas.microsoft.com/2003/10/Serialization/Arrays",
"ArrayOfint");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayString1DResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayString1DResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayString1DResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class RetArrayString1DResponse_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns3_RetArrayString1DResult_QNAME = new
QName("http://tempuri.org/", "RetArrayString1DResult");
private static final javax.xml.namespace.QName ns1_ArrayOfstring_TYPE_QNAME = new
QName("http://schemas.microsoft.com/2003/10/Serialization/Arrays",
"ArrayOfstring");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayString1D_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayString1D_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayString1D_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class RetArrayString1D_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns3_inArrayString1D_QNAME = new
QName("http://tempuri.org/", "inArrayString1D");
private static final javax.xml.namespace.QName ns1_ArrayOfstring_TYPE_QNAME = new
QName("http://schemas.microsoft.com/2003/10/Serialization/Arrays",
"ArrayOfstring");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayString2DResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayString2DResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayString2DResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class RetArrayString2DResponse_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns3_RetArrayString2DResult_QNAME = new
QName("http://tempuri.org/", "RetArrayString2DResult");
private static final javax.xml.namespace.QName ns1_ArrayOfArrayOfstring_TYPE_QNAME =
new
QName("http://schemas.microsoft.com/2003/10/Serialization/Arrays",
"ArrayOfArrayOfstring");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayString2D_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayString2D_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetArrayString2D_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class RetArrayString2D_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns3_inArrayString2D_QNAME = new
QName("http://tempuri.org/", "inArrayString2D");
private static final javax.xml.namespace.QName ns1_ArrayOfArrayOfstring_TYPE_QNAME =
new
QName("http://schemas.microsoft.com/2003/10/Serialization/Arrays",
"ArrayOfArrayOfstring");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetDerivedClassResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetDerivedClassResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetDerivedClassResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class RetDerivedClassResponse_LiteralSerializer extends
LiteralObjectSerializerBase implements Initializable {
private static final javax.xml.namespace.QName ns3_RetDerivedClassResult_QNAME = new
QName("http://tempuri.org/", "RetDerivedClassResult");
private static final javax.xml.namespace.QName ns5_Table_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"Table");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetDerivedClass_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetDerivedClass_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetDerivedClass_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class RetDerivedClass_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns3_inDerivedClass_QNAME = new
QName("http://tempuri.org/", "inDerivedClass");
private static final javax.xml.namespace.QName ns5_Table_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"Table");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetEnumIntResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetEnumIntResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetEnumIntResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class RetEnumIntResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns3_RetEnumIntResult_QNAME = new
QName("http://tempuri.org/", "RetEnumIntResult");
private static final javax.xml.namespace.QName ns5_IntSet_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"IntSet");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetEnumInt_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetEnumInt_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetEnumInt_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class RetEnumInt_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns3_inEnumInt_QNAME = new
QName("http://tempuri.org/", "inEnumInt");
private static final javax.xml.namespace.QName ns5_IntSet_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"IntSet");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetEnumStringResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetEnumStringResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetEnumStringResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class RetEnumStringResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns3_RetEnumStringResult_QNAME = new
QName("http://tempuri.org/", "RetEnumStringResult");
private static final javax.xml.namespace.QName ns5_BitMask_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"BitMask");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetEnumString_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetEnumString_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetEnumString_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class RetEnumString_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns3_inEnumString_QNAME = new
QName("http://tempuri.org/", "inEnumString");
private static final javax.xml.namespace.QName ns5_BitMask_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"BitMask");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetStructS1Response_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetStructS1Response_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetStructS1Response_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class RetStructS1Response_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns3_RetStructS1Result_QNAME = new
QName("http://tempuri.org/", "RetStructS1Result");
private static final javax.xml.namespace.QName ns5_Name_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"Name");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetStructS1_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetStructS1_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetStructS1_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class RetStructS1_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns3_inStructS1_QNAME = new
QName("http://tempuri.org/", "inStructS1");
private static final javax.xml.namespace.QName ns5_Name_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"Name");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetStructSNResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetStructSNResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetStructSNResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class RetStructSNResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns3_RetStructSNResult_QNAME = new
QName("http://tempuri.org/", "RetStructSNResult");
private static final javax.xml.namespace.QName ns5_Person_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"Person");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetStructSNSAResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetStructSNSAResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetStructSNSAResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class RetStructSNSAResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns3_RetStructSNSAResult_QNAME = new
QName("http://tempuri.org/", "RetStructSNSAResult");
private static final javax.xml.namespace.QName ns5_Employee_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"Employee");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetStructSNSASResponse_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetStructSNSASResponse_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetStructSNSASResponse_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class RetStructSNSASResponse_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns3_RetStructSNSASResult_QNAME = new
QName("http://tempuri.org/", "RetStructSNSASResult");
private static final javax.xml.namespace.QName ns5_Group_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"Group");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetStructSNSAS_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetStructSNSAS_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetStructSNSAS_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class RetStructSNSAS_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns3_inStructSNSAS_QNAME = new
QName("http://tempuri.org/", "inStructSNSAS");
private static final javax.xml.namespace.QName ns5_Group_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"Group");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetStructSNSA_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetStructSNSA_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetStructSNSA_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class RetStructSNSA_LiteralSerializer extends LiteralObjectSerializerBase
implements Initializable {
private static final javax.xml.namespace.QName ns3_inStructSNSA_QNAME = new
QName("http://tempuri.org/", "inStructSNSA");
private static final javax.xml.namespace.QName ns5_Employee_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"Employee");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetStructSN_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetStructSN_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/RetStructSN_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,10 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
public class RetStructSN_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns3_inStructSN_QNAME = new
QName("http://tempuri.org/", "inStructSN");
private static final javax.xml.namespace.QName ns5_Person_TYPE_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"Person");
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/Table_LiteralSerializer.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/Table_LiteralSerializer.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesShared/Table_LiteralSerializer.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,19 +5,12 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared;
-import com.sun.xml.rpc.encoding.*;
-import com.sun.xml.rpc.encoding.xsd.XSDConstants;
-import com.sun.xml.rpc.encoding.literal.*;
-import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
-import com.sun.xml.rpc.encoding.simpletype.*;
-import com.sun.xml.rpc.encoding.soap.SOAPConstants;
-import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
-import com.sun.xml.rpc.streaming.*;
-import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
-import java.util.List;
-import java.util.ArrayList;
+import org.xml.sax.XMLReader;
+
+import com.ibm.wsdl.extensions.schema.SchemaConstants;
+
public class Table_LiteralSerializer extends LiteralObjectSerializerBase implements
Initializable {
private static final javax.xml.namespace.QName ns5_color_QNAME = new
QName("http://schemas.datacontract.org/2004/07/XwsInterop.SoapWsdl.C...;,
"color");
private static final javax.xml.namespace.QName ns2_string_TYPE_QNAME =
SchemaConstants.QNAME_TYPE_STRING;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesSupport.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesSupport.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/soapwsdl/ComplexDataTypesSupport.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,14 +1,28 @@
package org.jboss.test.ws.interop.microsoft.soapwsdl;
+import java.math.BigDecimal;
+import java.util.Calendar;
+
+import javax.xml.rpc.Stub;
+
import org.jboss.test.ws.JBossWSTest;
-import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.*;
+import org.jboss.test.ws.interop.microsoft.ClientScenario;
import org.jboss.test.ws.interop.microsoft.InteropConfigFactory;
-import org.jboss.test.ws.interop.microsoft.ClientScenario;
+import
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.ArrayOfArrayOfstring;
+import
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.ArrayOfNullableOfdateTime;
+import
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.ArrayOfNullableOfdecimal;
+import
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.ArrayOfPerson;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.ArrayOfint;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.ArrayOfshort;
+import
org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.ArrayOfstring;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.BitMask;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.Employee;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.Group;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.IntSet;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.Name;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.Person;
+import org.jboss.test.ws.interop.microsoft.soapwsdl.ComplexDataTypesShared.Table;
-import javax.xml.rpc.Stub;
-import java.util.Calendar;
-import java.math.BigDecimal;
-
/**
* @author Heiko Braun, <heiko(a)openj.net>
* @since 23-Feb-2006
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/encoded/marshalltest/JavaBean.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/encoded/marshalltest/JavaBean.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/encoded/marshalltest/JavaBean.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -10,7 +10,7 @@
import java.util.Arrays;
import java.util.Calendar;
-import org.jboss.ws.utils.JavaUtils;
+import org.jboss.ws.core.utils.JavaUtils;
public class JavaBean
{
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/encoded/marshalltest/ValueType.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/encoded/marshalltest/ValueType.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/encoded/marshalltest/ValueType.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -10,7 +10,7 @@
import java.util.Arrays;
import java.util.Calendar;
-import org.jboss.ws.utils.JavaUtils;
+import org.jboss.ws.core.utils.JavaUtils;
public class ValueType
{
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1068/JBWS1068TestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1068/JBWS1068TestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1068/JBWS1068TestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -25,7 +25,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
+import org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory;
/**
* Cannot handle xsd:import of xml schema
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1093/JBWS1093TestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1093/JBWS1093TestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1093/JBWS1093TestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -35,7 +35,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
/**
* Test case to test that when a deployment contains both an endpoint and a
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1107/JBWS1107TestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1107/JBWS1107TestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1107/JBWS1107TestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -32,7 +32,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
/**
* Test case to test that an endpoint can be accessed if there is whitespace
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1115/JBWS1115TestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1115/JBWS1115TestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1115/JBWS1115TestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -26,7 +26,7 @@
import javax.management.ObjectName;
import org.jboss.test.ws.JBossWSTest;
-import org.jboss.ws.utils.ObjectNameFactory;
+import org.jboss.ws.core.utils.ObjectNameFactory;
/**
*
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1124/JBWS1124TestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1124/JBWS1124TestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1124/JBWS1124TestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -31,7 +31,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
/**
* Scoped class loading domains for WS endpoints
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1179/TestEndpointImpl.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1179/TestEndpointImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1179/TestEndpointImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -25,9 +25,9 @@
import javax.servlet.http.HttpSession;
-import org.jboss.ws.common.CommonMessageContext;
-import org.jboss.ws.jaxrpc.handler.MessageContextJAXRPC;
-import org.jboss.ws.soap.MessageContextAssociation;
+import org.jboss.ws.core.CommonMessageContext;
+import org.jboss.ws.core.jaxrpc.handler.MessageContextJAXRPC;
+import org.jboss.ws.core.soap.MessageContextAssociation;
/**
*
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1186/JBWS1186TestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1186/JBWS1186TestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1186/JBWS1186TestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -37,7 +37,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
/**
* The prefix "xsi" for attribute "xsi:nil" is not bound
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1186/ServerHandler.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1186/ServerHandler.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1186/ServerHandler.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -27,7 +27,6 @@
import javax.xml.rpc.handler.soap.SOAPMessageContext;
import javax.xml.soap.MessageFactory;
import javax.xml.soap.Name;
-import javax.xml.soap.SOAPBody;
import javax.xml.soap.SOAPBodyElement;
import javax.xml.soap.SOAPElement;
import javax.xml.soap.SOAPEnvelope;
@@ -36,7 +35,7 @@
import javax.xml.soap.SOAPMessage;
import org.jboss.logging.Logger;
-import org.jboss.ws.soap.SOAPContentElement;
+import org.jboss.ws.core.soap.SOAPContentElement;
public class ServerHandler extends GenericHandler
{
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1190/TestEndpointImpl.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1190/TestEndpointImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1190/TestEndpointImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -25,12 +25,12 @@
import java.io.FilenameFilter;
import java.net.MalformedURLException;
+import org.jboss.ws.core.server.ServerConfig;
+import org.jboss.ws.core.server.ServerConfigFactory;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
import org.jboss.ws.metadata.wsdl.WSDLEndpoint;
import org.jboss.ws.metadata.wsdl.WSDLService;
-import org.jboss.ws.server.ServerConfig;
-import org.jboss.ws.server.ServerConfigFactory;
+import org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory;
/**
*
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1205/TestEndpointImpl.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1205/TestEndpointImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws1205/TestEndpointImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -28,8 +28,8 @@
import javax.naming.InitialContext;
import javax.xml.rpc.Service;
-import org.jboss.ws.server.ServerConfig;
-import org.jboss.ws.server.ServerConfigFactory;
+import org.jboss.ws.core.server.ServerConfig;
+import org.jboss.ws.core.server.ServerConfigFactory;
/**
* @author darran.lofthouse(a)jboss.com
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws434/JBWS434TestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws434/JBWS434TestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws434/JBWS434TestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -34,7 +34,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.utils.DOMUtils;
+import org.jboss.ws.core.utils.DOMUtils;
import org.w3c.dom.Attr;
import org.w3c.dom.NamedNodeMap;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws775/JBWS775TestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws775/JBWS775TestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws775/JBWS775TestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -35,7 +35,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.utils.DOMWriter;
+import org.jboss.ws.core.utils.DOMWriter;
/**
* Web services deployment can fail when deploying multiple EJB JARs
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws812/JBWS812TestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws812/JBWS812TestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws812/JBWS812TestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -41,8 +41,8 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.utils.DOMUtils;
-import org.jboss.ws.utils.DOMWriter;
+import org.jboss.ws.core.utils.DOMUtils;
+import org.jboss.ws.core.utils.DOMWriter;
import org.w3c.dom.Element;
/**
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws812/ServerHandler.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws812/ServerHandler.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws812/ServerHandler.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -30,7 +30,7 @@
import javax.xml.soap.SOAPMessage;
import org.jboss.logging.Logger;
-import org.jboss.ws.utils.DOMWriter;
+import org.jboss.ws.core.utils.DOMWriter;
public class ServerHandler extends GenericHandler
{
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws950/JBWS950TestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws950/JBWS950TestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws950/JBWS950TestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -32,7 +32,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
/**
* Attributes of type xsd:QName incorrectly serialized
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws955/JBWS955TestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws955/JBWS955TestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws955/JBWS955TestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -32,8 +32,8 @@
import javax.xml.soap.SOAPMessage;
import org.jboss.test.ws.JBossWSTest;
-import org.jboss.ws.utils.DOMUtils;
-import org.jboss.ws.utils.DOMWriter;
+import org.jboss.ws.core.utils.DOMUtils;
+import org.jboss.ws.core.utils.DOMWriter;
import org.w3c.dom.Element;
/**
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws956/JBWS956TestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws956/JBWS956TestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws956/JBWS956TestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -32,7 +32,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
/**
* Deserialization of complex bean containing an array of complex beans
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws958/JBWS958TestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws958/JBWS958TestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws958/JBWS958TestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -26,7 +26,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
+import org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory;
/**
* XML entity usage in wsdl contained schema
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/marshall/MarshallDocLitTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/marshall/MarshallDocLitTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/marshall/MarshallDocLitTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -28,13 +28,11 @@
import javax.naming.InitialContext;
import javax.xml.namespace.QName;
import javax.xml.rpc.Service;
-import javax.xml.rpc.Stub;
import junit.framework.Test;
import org.jboss.test.ws.JBossWSTestSetup;
import org.jboss.test.ws.jaxrpc.marshall.types.JavaBean;
-import org.jboss.ws.jaxrpc.StubExt;
/**
* Test standard JAX-RPC types.
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/marshall/MarshallRpcLitDIITestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/marshall/MarshallRpcLitDIITestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/marshall/MarshallRpcLitDIITestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -35,7 +35,7 @@
import org.jboss.test.ws.JBossWSTestSetup;
import org.jboss.test.ws.jaxrpc.marshall.types.JavaBean;
import org.jboss.ws.Constants;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
/**
* Test the Dynamic Invocation Interface (DII) on the Call
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/marshall/MarshallTest.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/marshall/MarshallTest.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/marshall/MarshallTest.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -32,7 +32,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.jaxrpc.marshall.types.JavaBean;
import org.jboss.test.ws.jaxrpc.marshall.types.JavaBean2;
-import org.jboss.ws.utils.JavaUtils;
+import org.jboss.ws.core.utils.JavaUtils;
/**
* Test standard JAX-RPC types.
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/docstyle/bare/TrivialServiceDocBareTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/docstyle/bare/TrivialServiceDocBareTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/docstyle/bare/TrivialServiceDocBareTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -33,7 +33,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
/**
* Test JSE test case for an document/literal/bare style service.
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/docstyle/wrapped/TrivialServiceDocWrappedTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/docstyle/wrapped/TrivialServiceDocWrappedTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/docstyle/wrapped/TrivialServiceDocWrappedTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -33,7 +33,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
/**
* Test JSE test case for an document/literal/wrapped style service.
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/dynamichandler/DynamicHandlerTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/dynamichandler/DynamicHandlerTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/dynamichandler/DynamicHandlerTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -35,9 +35,9 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.ServiceExt;
-import org.jboss.ws.metadata.HandlerMetaData;
-import org.jboss.ws.utils.ObjectNameFactory;
+import org.jboss.ws.core.jaxrpc.ServiceExt;
+import org.jboss.ws.core.utils.ObjectNameFactory;
+import org.jboss.ws.metadata.umdm.HandlerMetaData;
/**
* Test dynamic handlers
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/exception/ExceptionTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/exception/ExceptionTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/exception/ExceptionTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -48,7 +48,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
/**
* Test user exception propagation.
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/handler/ClientSideHandler.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/handler/ClientSideHandler.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/handler/ClientSideHandler.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -36,8 +36,6 @@
import org.jboss.logging.Logger;
-import sun.reflect.ReflectionFactory.GetReflectionFactoryAction;
-
public class ClientSideHandler extends GenericHandler
{
// Provide logging
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/handler/HeaderClientTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/handler/HeaderClientTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/handler/HeaderClientTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -36,8 +36,8 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
import org.jboss.ws.Constants;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
-import org.jboss.ws.jaxrpc.StubExt;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.StubExt;
/**
* Test bound and unbound headers
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/handler/HeaderDIITestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/handler/HeaderDIITestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/handler/HeaderDIITestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -35,7 +35,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
import org.jboss.ws.Constants;
-import org.jboss.ws.jaxrpc.CallImpl;
+import org.jboss.ws.core.jaxrpc.CallImpl;
/**
* Test the Dynamic Invocation Interface (DII) on the Call
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/handler/HeaderProxyTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/handler/HeaderProxyTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/handler/HeaderProxyTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -33,9 +33,9 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
import org.jboss.ws.Constants;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
-import org.jboss.ws.jaxrpc.ServiceImpl;
-import org.jboss.ws.jaxrpc.StubExt;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.ServiceImpl;
+import org.jboss.ws.core.jaxrpc.StubExt;
/**
* Test bound and unbound headers
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/holder/HolderTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/holder/HolderTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/holder/HolderTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -56,7 +56,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
/**
* Test Holders
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jmstransport/JMSTransportTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jmstransport/JMSTransportTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jmstransport/JMSTransportTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -24,7 +24,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.utils.DOMUtils;
+import org.jboss.ws.core.utils.DOMUtils;
/**
* A web service client that connects to a MDB endpoint.
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jmstransport/OrganizationJMSEndpoint.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jmstransport/OrganizationJMSEndpoint.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jmstransport/OrganizationJMSEndpoint.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -11,7 +11,7 @@
import java.rmi.RemoteException;
import org.jboss.logging.Logger;
-import org.jboss.ws.integration.jboss.jms.JMSTransportSupport;
+import org.jboss.ws.integration.jboss42.jms.JMSTransportSupport;
/**
* An example of a MDB acting as a web service endpoint.
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jsr109ejb/RpcDIIConfiguredCallTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jsr109ejb/RpcDIIConfiguredCallTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jsr109ejb/RpcDIIConfiguredCallTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -33,8 +33,8 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
-import org.jboss.ws.jaxrpc.ServiceImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.ServiceImpl;
/**
* Test the Dynamic Invocation Interface (DII) on a Call that is preconfigured from WSDL
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jsr109ejb/RpcDIIUnconfiguredCallTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jsr109ejb/RpcDIIUnconfiguredCallTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jsr109ejb/RpcDIIUnconfiguredCallTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -34,7 +34,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
import org.jboss.ws.Constants;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
/**
* Test the Dynamic Invocation Interface (DII) on the Call
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jsr109ejb/RpcProxyTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jsr109ejb/RpcProxyTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jsr109ejb/RpcProxyTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -30,8 +30,8 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
-import org.jboss.ws.jaxrpc.ServiceImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.ServiceImpl;
/**
* Test the DynamicProxy Call
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jsr109pojo/DocJSETestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jsr109pojo/DocJSETestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jsr109pojo/DocJSETestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -33,7 +33,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
/**
* Test JSE endpoint for a document style service.
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jsr109pojo/RpcDIIConfiguredCallTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jsr109pojo/RpcDIIConfiguredCallTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jsr109pojo/RpcDIIConfiguredCallTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -33,8 +33,8 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
-import org.jboss.ws.jaxrpc.ServiceImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.ServiceImpl;
/**
* Test the Dynamic Invocation Interface (DII) on a Call that is preconfigured from WSDL
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jsr109pojo/RpcDIIUnconfiguredCallTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jsr109pojo/RpcDIIUnconfiguredCallTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jsr109pojo/RpcDIIUnconfiguredCallTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -34,7 +34,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
import org.jboss.ws.Constants;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
/**
* Test the Dynamic Invocation Interface (DII) on the Call
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jsr109pojo/RpcJSETestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jsr109pojo/RpcJSETestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jsr109pojo/RpcJSETestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -33,7 +33,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
/**
* Test JSE test case for an rpc style service.
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jsr109pojo/RpcProxyTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jsr109pojo/RpcProxyTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/jsr109pojo/RpcProxyTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -30,8 +30,8 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
-import org.jboss.ws.jaxrpc.ServiceImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.ServiceImpl;
/**
* Test the DynamicProxy Call
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/message/MessageTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/message/MessageTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/message/MessageTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -50,8 +50,8 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
-import org.jboss.ws.utils.DOMUtils;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.utils.DOMUtils;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/message/MessageTestServiceBean.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/message/MessageTestServiceBean.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/message/MessageTestServiceBean.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -36,7 +36,7 @@
import javax.xml.transform.dom.DOMSource;
import org.jboss.logging.Logger;
-import org.jboss.ws.utils.DOMUtils;
+import org.jboss.ws.core.utils.DOMUtils;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/mtom/EmployeeRecords.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/mtom/EmployeeRecords.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/mtom/EmployeeRecords.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -24,9 +24,6 @@
import java.rmi.Remote;
import java.rmi.RemoteException;
-import javax.activation.DataHandler;
-import javax.xml.transform.Source;
-
/**
* Service Endpoint Interface for XOP
*
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/mtom/EmployeeRecordsImpl.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/mtom/EmployeeRecordsImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/mtom/EmployeeRecordsImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -21,19 +21,14 @@
*/
package org.jboss.test.ws.jaxrpc.samples.mtom;
-import java.io.IOException;
import java.io.ByteArrayInputStream;
+import java.io.IOException;
import java.rmi.RemoteException;
import javax.activation.DataHandler;
-import javax.xml.rpc.ServiceException;
-import javax.xml.rpc.server.ServiceLifecycle;
-import javax.xml.rpc.server.ServletEndpointContext;
-import javax.xml.transform.Source;
import javax.xml.transform.stream.StreamSource;
-import org.jboss.ws.WSException;
-import org.jboss.ws.utils.IOUtils;
+import org.jboss.ws.core.utils.IOUtils;
/**
* EmployeeRecords service endpoint
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/mtom/MTOMTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/mtom/MTOMTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/mtom/MTOMTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -38,8 +38,8 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
-import org.jboss.ws.jaxrpc.StubExt;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.StubExt;
/**
* Test SOAP with XOP through the JAXRPC dynamic proxy layer.
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/oneway/OneWayTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/oneway/OneWayTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/oneway/OneWayTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -33,7 +33,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
/**
* Test JSE test case for onway operations.
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/rpcstyle/TrivialServiceRpcTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/rpcstyle/TrivialServiceRpcTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/rpcstyle/TrivialServiceRpcTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -33,7 +33,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
/**
* Test JSE test case for an rpc style service.
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/swa/AttachmentProxyTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/swa/AttachmentProxyTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/swa/AttachmentProxyTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -40,7 +40,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
/**
* Test SOAP with Attachements (SwA) through the JAXRPC dynamic proxy layer.
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/swa/AttachmentSAAJTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/swa/AttachmentSAAJTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/swa/AttachmentSAAJTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -49,7 +49,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.soap.SOAPBodyElementRpc;
+import org.jboss.ws.core.soap.SOAPBodyElementRpc;
/**
* Test SOAP with Attachements (SwA) through the SAAJ layer.
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/wseventing/SysmonTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/wseventing/SysmonTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/wseventing/SysmonTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -42,21 +42,21 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.addressing.AddressingClientUtil;
-import org.jboss.ws.addressing.jaxrpc.WSAddressingClientHandler;
-import org.jboss.ws.eventing.EventSourceEndpoint;
-import org.jboss.ws.eventing.EventingConstants;
-import org.jboss.ws.eventing.SubscriptionManagerEndpoint;
-import org.jboss.ws.eventing.element.DeliveryType;
-import org.jboss.ws.eventing.element.EndpointReference;
-import org.jboss.ws.eventing.element.FilterType;
-import org.jboss.ws.eventing.element.StatusRequest;
-import org.jboss.ws.eventing.element.SubscribeRequest;
-import org.jboss.ws.eventing.element.SubscribeResponse;
-import org.jboss.ws.eventing.element.UnsubscribeRequest;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
-import org.jboss.ws.jaxrpc.ServiceImpl;
-import org.jboss.ws.jaxrpc.StubExt;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.ServiceImpl;
+import org.jboss.ws.core.jaxrpc.StubExt;
+import org.jboss.ws.extensions.addressing.AddressingClientUtil;
+import org.jboss.ws.extensions.addressing.jaxrpc.WSAddressingClientHandler;
+import org.jboss.ws.extensions.eventing.EventSourceEndpoint;
+import org.jboss.ws.extensions.eventing.EventingConstants;
+import org.jboss.ws.extensions.eventing.SubscriptionManagerEndpoint;
+import org.jboss.ws.extensions.eventing.element.DeliveryType;
+import org.jboss.ws.extensions.eventing.element.EndpointReference;
+import org.jboss.ws.extensions.eventing.element.FilterType;
+import org.jboss.ws.extensions.eventing.element.StatusRequest;
+import org.jboss.ws.extensions.eventing.element.SubscribeRequest;
+import org.jboss.ws.extensions.eventing.element.SubscribeResponse;
+import org.jboss.ws.extensions.eventing.element.UnsubscribeRequest;
/**
* Test the eventing example service.
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/wseventing/SysmonUtil.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/wseventing/SysmonUtil.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/wseventing/SysmonUtil.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -10,9 +10,9 @@
import javax.xml.ws.addressing.JAXWSAConstants;
import org.jboss.logging.Logger;
-import org.jboss.ws.addressing.AddressingClientUtil;
-import org.jboss.ws.eventing.element.EndpointReference;
-import org.jboss.ws.eventing.element.SubscribeResponse;
+import org.jboss.ws.extensions.addressing.AddressingClientUtil;
+import org.jboss.ws.extensions.eventing.element.EndpointReference;
+import org.jboss.ws.extensions.eventing.element.SubscribeResponse;
/**
* Util methods that drive the SysmoneTestCase.
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/wssecurity/SimpleEncryptTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/wssecurity/SimpleEncryptTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/wssecurity/SimpleEncryptTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -37,9 +37,9 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
-import org.jboss.ws.jaxrpc.ServiceImpl;
-import org.jboss.ws.wsse.jaxrpc.WSSecurityHandlerOutbound;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.ServiceImpl;
+import org.jboss.ws.extensions.security.jaxrpc.WSSecurityHandlerOutbound;
/**
* Test WS-Security with RPC/Literal
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/wssecurity/SimpleSignTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/wssecurity/SimpleSignTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/wssecurity/SimpleSignTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -37,9 +37,9 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
-import org.jboss.ws.jaxrpc.ServiceImpl;
-import org.jboss.ws.wsse.jaxrpc.WSSecurityHandlerOutbound;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.ServiceImpl;
+import org.jboss.ws.extensions.security.jaxrpc.WSSecurityHandlerOutbound;
/**
* Test WS-Security with RPC/Literal
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/wssecurity/StorePassEncryptTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/wssecurity/StorePassEncryptTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/samples/wssecurity/StorePassEncryptTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -39,9 +39,9 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
-import org.jboss.ws.jaxrpc.ServiceImpl;
-import org.jboss.ws.wsse.jaxrpc.WSSecurityHandlerOutbound;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.ServiceImpl;
+import org.jboss.ws.extensions.security.jaxrpc.WSSecurityHandlerOutbound;
/**
* This test simulates simulates the usage of a jboss-ws-security keystore and truststore
use cases
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/TestEndpointService.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/TestEndpointService.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/TestEndpointService.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -8,7 +8,7 @@
package org.jboss.test.ws.jaxrpc.webserviceref;
-import javax.xml.rpc.*;
+import javax.xml.rpc.ServiceException;
public interface TestEndpointService extends javax.xml.rpc.Service
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/WebServiceRefClientTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/WebServiceRefClientTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/WebServiceRefClientTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -34,9 +34,9 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
+import org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory;
/**
* Test the JAXRPC <service-ref>
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/WebServiceRefEJBTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/WebServiceRefEJBTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/WebServiceRefEJBTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -33,9 +33,9 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
+import org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory;
/**
* Test the JAXRPC <service-ref>
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/WebServiceRefServletTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/WebServiceRefServletTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/WebServiceRefServletTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -34,9 +34,9 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
+import org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory;
/**
* Test the JAXRPC <service-ref>
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/DIIClientTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/DIIClientTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/DIIClientTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -43,22 +43,22 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.addressing.AddressingClientUtil;
-import org.jboss.ws.addressing.jaxrpc.WSAddressingClientHandler;
-import org.jboss.ws.eventing.EventSourceEndpoint;
-import org.jboss.ws.eventing.EventingConstants;
-import org.jboss.ws.eventing.SubscriptionManagerEndpoint;
-import org.jboss.ws.eventing.element.DeliveryType;
-import org.jboss.ws.eventing.element.EndpointReference;
-import org.jboss.ws.eventing.element.FilterType;
-import org.jboss.ws.eventing.element.SubscribeRequest;
-import org.jboss.ws.eventing.element.SubscribeResponse;
-import org.jboss.ws.eventing.element.UnsubscribeRequest;
-import org.jboss.ws.jaxrpc.ServiceExt;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
-import org.jboss.ws.jaxrpc.StubExt;
+import org.jboss.ws.core.jaxrpc.ServiceExt;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.StubExt;
+import org.jboss.ws.extensions.addressing.AddressingClientUtil;
+import org.jboss.ws.extensions.addressing.jaxrpc.WSAddressingClientHandler;
+import org.jboss.ws.extensions.eventing.EventSourceEndpoint;
+import org.jboss.ws.extensions.eventing.EventingConstants;
+import org.jboss.ws.extensions.eventing.SubscriptionManagerEndpoint;
+import org.jboss.ws.extensions.eventing.element.DeliveryType;
+import org.jboss.ws.extensions.eventing.element.EndpointReference;
+import org.jboss.ws.extensions.eventing.element.FilterType;
+import org.jboss.ws.extensions.eventing.element.SubscribeRequest;
+import org.jboss.ws.extensions.eventing.element.SubscribeResponse;
+import org.jboss.ws.extensions.eventing.element.UnsubscribeRequest;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
+import org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory;
/**
* @author Heiko Braun, <heiko(a)openj.net>
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/EventSinkServlet.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/EventSinkServlet.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/EventSinkServlet.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -29,8 +29,8 @@
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
-import org.jboss.ws.utils.DOMUtils;
-import org.jboss.ws.utils.DOMWriter;
+import org.jboss.ws.core.utils.DOMUtils;
+import org.jboss.ws.core.utils.DOMWriter;
import org.w3c.dom.Element;
/**
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/EventingSupport.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/EventingSupport.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/EventingSupport.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -35,18 +35,18 @@
import javax.xml.ws.addressing.JAXWSAConstants;
import org.jboss.test.ws.JBossWSTest;
-import org.jboss.ws.addressing.AddressingClientUtil;
-import org.jboss.ws.eventing.EventSourceEndpoint;
-import org.jboss.ws.eventing.EventingConstants;
-import org.jboss.ws.eventing.SubscriptionManagerEndpoint;
-import org.jboss.ws.eventing.element.DeliveryType;
-import org.jboss.ws.eventing.element.EndpointReference;
-import org.jboss.ws.eventing.element.FilterType;
-import org.jboss.ws.eventing.element.SubscribeRequest;
-import org.jboss.ws.eventing.element.SubscribeResponse;
-import org.jboss.ws.jaxrpc.StubExt;
+import org.jboss.ws.core.jaxrpc.StubExt;
+import org.jboss.ws.extensions.addressing.AddressingClientUtil;
+import org.jboss.ws.extensions.eventing.EventSourceEndpoint;
+import org.jboss.ws.extensions.eventing.EventingConstants;
+import org.jboss.ws.extensions.eventing.SubscriptionManagerEndpoint;
+import org.jboss.ws.extensions.eventing.element.DeliveryType;
+import org.jboss.ws.extensions.eventing.element.EndpointReference;
+import org.jboss.ws.extensions.eventing.element.FilterType;
+import org.jboss.ws.extensions.eventing.element.SubscribeRequest;
+import org.jboss.ws.extensions.eventing.element.SubscribeResponse;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
+import org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory;
/**
* Eventing test case support.
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/EventingTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/EventingTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/EventingTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -32,17 +32,17 @@
import junit.framework.Test;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.addressing.AddressingClientUtil;
-import org.jboss.ws.eventing.EventingConstants;
-import org.jboss.ws.eventing.element.DeliveryType;
-import org.jboss.ws.eventing.element.RenewRequest;
-import org.jboss.ws.eventing.element.RenewResponse;
-import org.jboss.ws.eventing.element.StatusRequest;
-import org.jboss.ws.eventing.element.StatusResponse;
-import org.jboss.ws.eventing.element.SubscribeRequest;
-import org.jboss.ws.eventing.element.SubscribeResponse;
-import org.jboss.ws.eventing.element.UnsubscribeRequest;
-import org.jboss.ws.jaxrpc.StubExt;
+import org.jboss.ws.core.jaxrpc.StubExt;
+import org.jboss.ws.extensions.addressing.AddressingClientUtil;
+import org.jboss.ws.extensions.eventing.EventingConstants;
+import org.jboss.ws.extensions.eventing.element.DeliveryType;
+import org.jboss.ws.extensions.eventing.element.RenewRequest;
+import org.jboss.ws.extensions.eventing.element.RenewResponse;
+import org.jboss.ws.extensions.eventing.element.StatusRequest;
+import org.jboss.ws.extensions.eventing.element.StatusResponse;
+import org.jboss.ws.extensions.eventing.element.SubscribeRequest;
+import org.jboss.ws.extensions.eventing.element.SubscribeResponse;
+import org.jboss.ws.extensions.eventing.element.UnsubscribeRequest;
/**
* Test the eventing endpoints.
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/NotificationTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/NotificationTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/NotificationTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -28,10 +28,10 @@
import junit.framework.Test;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.eventing.EventingConstants;
-import org.jboss.ws.eventing.element.SubscribeResponse;
-import org.jboss.ws.eventing.mgmt.EventDispatcher;
-import org.jboss.ws.utils.DOMUtils;
+import org.jboss.ws.core.utils.DOMUtils;
+import org.jboss.ws.extensions.eventing.EventingConstants;
+import org.jboss.ws.extensions.eventing.element.SubscribeResponse;
+import org.jboss.ws.extensions.eventing.mgmt.EventDispatcher;
import org.w3c.dom.Element;
/**
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/SubscriptionManagerTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/SubscriptionManagerTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/SubscriptionManagerTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -27,13 +27,12 @@
import java.util.Date;
import org.jboss.test.ws.JBossWSTest;
-import org.jboss.ws.eventing.EventingConstants;
-import org.jboss.ws.eventing.deployment.EventingEndpointDI;
-import org.jboss.ws.eventing.element.EndpointReference;
-import org.jboss.ws.eventing.mgmt.Filter;
-import org.jboss.ws.eventing.mgmt.SubscriptionManager;
-import org.jboss.ws.eventing.mgmt.SubscriptionTicket;
-import org.jboss.ws.utils.DOMUtils;
+import org.jboss.ws.core.utils.DOMUtils;
+import org.jboss.ws.extensions.eventing.deployment.EventingEndpointDI;
+import org.jboss.ws.extensions.eventing.element.EndpointReference;
+import org.jboss.ws.extensions.eventing.mgmt.Filter;
+import org.jboss.ws.extensions.eventing.mgmt.SubscriptionManager;
+import org.jboss.ws.extensions.eventing.mgmt.SubscriptionTicket;
import org.w3c.dom.Element;
/**
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wsse/MicrosoftInteropTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wsse/MicrosoftInteropTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wsse/MicrosoftInteropTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -32,13 +32,12 @@
import javax.xml.soap.SOAPMessage;
import org.jboss.test.ws.JBossWSTest;
-import org.jboss.ws.soap.MessageFactoryImpl;
-import org.jboss.ws.utils.DOMUtils;
-import org.jboss.ws.wsse.Constants;
-import org.jboss.ws.wsse.SecurityDecoder;
-import org.jboss.ws.wsse.SecurityStore;
-import org.jboss.ws.wsse.Util;
-import org.w3c.dom.Document;
+import org.jboss.ws.core.soap.MessageFactoryImpl;
+import org.jboss.ws.core.utils.DOMUtils;
+import org.jboss.ws.extensions.security.Constants;
+import org.jboss.ws.extensions.security.SecurityDecoder;
+import org.jboss.ws.extensions.security.SecurityStore;
+import org.jboss.ws.extensions.security.Util;
import org.w3c.dom.Element;
/**
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wsse/RoundTripTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wsse/RoundTripTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wsse/RoundTripTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -34,23 +34,23 @@
import org.jboss.security.SecurityAssociation;
import org.jboss.test.ws.JBossWSTest;
-import org.jboss.ws.soap.MessageFactoryImpl;
-import org.jboss.ws.utils.DOMWriter;
-import org.jboss.ws.wsse.Constants;
-import org.jboss.ws.wsse.EncryptionOperation;
-import org.jboss.ws.wsse.OperationDescription;
-import org.jboss.ws.wsse.QNameTarget;
-import org.jboss.ws.wsse.RequireEncryptionOperation;
-import org.jboss.ws.wsse.RequireSignatureOperation;
-import org.jboss.ws.wsse.SecurityDecoder;
-import org.jboss.ws.wsse.SecurityEncoder;
-import org.jboss.ws.wsse.SecurityStore;
-import org.jboss.ws.wsse.SendUsernameOperation;
-import org.jboss.ws.wsse.SignatureOperation;
-import org.jboss.ws.wsse.Target;
-import org.jboss.ws.wsse.TimestampOperation;
-import org.jboss.ws.wsse.Util;
-import org.jboss.ws.wsse.WsuIdTarget;
+import org.jboss.ws.core.soap.MessageFactoryImpl;
+import org.jboss.ws.core.utils.DOMWriter;
+import org.jboss.ws.extensions.security.Constants;
+import org.jboss.ws.extensions.security.EncryptionOperation;
+import org.jboss.ws.extensions.security.OperationDescription;
+import org.jboss.ws.extensions.security.QNameTarget;
+import org.jboss.ws.extensions.security.RequireEncryptionOperation;
+import org.jboss.ws.extensions.security.RequireSignatureOperation;
+import org.jboss.ws.extensions.security.SecurityDecoder;
+import org.jboss.ws.extensions.security.SecurityEncoder;
+import org.jboss.ws.extensions.security.SecurityStore;
+import org.jboss.ws.extensions.security.SendUsernameOperation;
+import org.jboss.ws.extensions.security.SignatureOperation;
+import org.jboss.ws.extensions.security.Target;
+import org.jboss.ws.extensions.security.TimestampOperation;
+import org.jboss.ws.extensions.security.Util;
+import org.jboss.ws.extensions.security.WsuIdTarget;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wsse/SunInteropTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wsse/SunInteropTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wsse/SunInteropTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -31,12 +31,12 @@
import javax.xml.soap.SOAPMessage;
import org.jboss.test.ws.JBossWSTest;
-import org.jboss.ws.soap.MessageFactoryImpl;
-import org.jboss.ws.utils.DOMWriter;
-import org.jboss.ws.wsse.Constants;
-import org.jboss.ws.wsse.SecurityDecoder;
-import org.jboss.ws.wsse.SecurityStore;
-import org.jboss.ws.wsse.Util;
+import org.jboss.ws.core.soap.MessageFactoryImpl;
+import org.jboss.ws.core.utils.DOMWriter;
+import org.jboss.ws.extensions.security.Constants;
+import org.jboss.ws.extensions.security.SecurityDecoder;
+import org.jboss.ws.extensions.security.SecurityStore;
+import org.jboss.ws.extensions.security.Util;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/XOPTestSupport.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/XOPTestSupport.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/XOPTestSupport.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -21,13 +21,19 @@
*/
package org.jboss.test.ws.jaxrpc.xop;
-import javax.xml.transform.stream.StreamSource;
-import javax.activation.DataHandler;
-import java.io.*;
-import java.awt.*;
+import java.awt.Image;
+import java.awt.Toolkit;
+import java.io.ByteArrayInputStream;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.net.MalformedURLException;
import java.net.URL;
-import java.net.MalformedURLException;
+import javax.activation.DataHandler;
+import javax.xml.transform.stream.StreamSource;
+
/**
* @author Heiko Braun <heiko.braun(a)jboss.com>
* @version $Id$
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/XOPTypeDefTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/XOPTypeDefTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/XOPTypeDefTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -7,10 +7,10 @@
import org.apache.xerces.xs.XSComplexTypeDefinition;
import org.apache.xerces.xs.XSModel;
import org.apache.xerces.xs.XSTypeDefinition;
+import org.jboss.ws.extensions.xop.jaxrpc.XOPScanner;
import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel;
import org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils;
import org.jboss.ws.metadata.wsdl.xsd.SchemaUtils;
-import org.jboss.ws.xop.XOPScanner;
import org.jboss.xb.binding.NamespaceRegistry;
/**
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/doclit/InlineHandler.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/doclit/InlineHandler.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/doclit/InlineHandler.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -21,18 +21,18 @@
*/
package org.jboss.test.ws.jaxrpc.xop.doclit;
-import org.jboss.logging.Logger;
-import org.jboss.ws.soap.NameImpl;
-
+import javax.xml.namespace.QName;
import javax.xml.rpc.handler.GenericHandler;
import javax.xml.rpc.handler.HandlerInfo;
import javax.xml.rpc.handler.MessageContext;
import javax.xml.rpc.handler.soap.SOAPMessageContext;
-import javax.xml.namespace.QName;
-import javax.xml.soap.SOAPMessage;
import javax.xml.soap.SOAPBody;
import javax.xml.soap.SOAPElement;
+import javax.xml.soap.SOAPMessage;
+import org.jboss.logging.Logger;
+import org.jboss.ws.core.soap.NameImpl;
+
/**
* @author Heiko Braun <heiko.braun(a)jboss.com>
* @version $Id$
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/doclit/XOPBase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/doclit/XOPBase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/doclit/XOPBase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -21,18 +21,26 @@
*/
package org.jboss.test.ws.jaxrpc.xop.doclit;
-import org.jboss.test.ws.JBossWSTest;
-import org.jboss.test.ws.jaxrpc.xop.XOPTestSupport;
-import org.jboss.test.ws.jaxrpc.xop.shared.*;
-import org.jboss.ws.jaxrpc.StubExt;
-import org.jboss.ws.utils.IOUtils;
+import java.awt.Image;
+import java.io.File;
import javax.activation.DataHandler;
import javax.xml.rpc.Stub;
import javax.xml.transform.Source;
-import java.awt.*;
-import java.io.File;
+import org.jboss.test.ws.JBossWSTest;
+import org.jboss.test.ws.jaxrpc.xop.XOPTestSupport;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingDataHandler;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingDataHandlerResponse;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingImage;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingImageResponse;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingMsg;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingMsgResponse;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingSource;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingSourceResponse;
+import org.jboss.ws.core.jaxrpc.StubExt;
+import org.jboss.ws.core.utils.IOUtils;
+
/**
* @author Heiko Braun <heiko.braun(a)jboss.com>
* @version $Id:XOPBase.java 1321 2006-10-27 11:47:18Z heiko.braun(a)jboss.com $
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/doclit/XOPHandlerTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/doclit/XOPHandlerTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/doclit/XOPHandlerTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -21,12 +21,13 @@
*/
package org.jboss.test.ws.jaxrpc.xop.doclit;
+import javax.naming.InitialContext;
+import javax.xml.rpc.Service;
+
import junit.framework.Test;
+
import org.jboss.test.ws.JBossWSTestSetup;
-import javax.naming.InitialContext;
-import javax.xml.rpc.Service;
-
/**
* Test MTOM functionality with jaxrpc-handlers in place.<br>
* This basically determines wether XB needs to handle base64 values directly
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/doclit/XOPPing.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/doclit/XOPPing.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/doclit/XOPPing.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -6,7 +6,14 @@
package org.jboss.test.ws.jaxrpc.xop.doclit;
-import org.jboss.test.ws.jaxrpc.xop.shared.*;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingDataHandler;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingDataHandlerResponse;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingImage;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingImageResponse;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingMsg;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingMsgResponse;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingSource;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingSourceResponse;
public interface XOPPing extends java.rmi.Remote
{
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/doclit/XOPPingImpl.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/doclit/XOPPingImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/doclit/XOPPingImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,10 +1,17 @@
package org.jboss.test.ws.jaxrpc.xop.doclit;
-import org.jboss.test.ws.jaxrpc.xop.doclit.XOPPing;
-import org.jboss.test.ws.jaxrpc.xop.shared.*;
-
import java.rmi.RemoteException;
+import org.jboss.test.ws.jaxrpc.xop.shared.MTOMServiceBase;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingDataHandler;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingDataHandlerResponse;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingImage;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingImageResponse;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingMsg;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingMsgResponse;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingSource;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingSourceResponse;
+
/**
* MTOM test service impl.
* The 'message' param value determines wether or not the response should be XOP
encoded.
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/doclit/XOPTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/doclit/XOPTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/doclit/XOPTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -23,12 +23,13 @@
// $Id$
+import javax.naming.InitialContext;
+import javax.xml.rpc.Service;
+
import junit.framework.Test;
+
import org.jboss.test.ws.JBossWSTestSetup;
-import javax.naming.InitialContext;
-import javax.xml.rpc.Service;
-
/**
* Test MTOM functionaly without any jaxrpc handlers in place.
*
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/rpclit/InlineHandler.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/rpclit/InlineHandler.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/rpclit/InlineHandler.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,8 +1,5 @@
package org.jboss.test.ws.jaxrpc.xop.rpclit;
-import org.jboss.logging.Logger;
-import org.jboss.ws.soap.NameImpl;
-
import javax.xml.namespace.QName;
import javax.xml.rpc.handler.GenericHandler;
import javax.xml.rpc.handler.HandlerInfo;
@@ -12,6 +9,9 @@
import javax.xml.soap.SOAPElement;
import javax.xml.soap.SOAPMessage;
+import org.jboss.logging.Logger;
+import org.jboss.ws.core.soap.NameImpl;
+
/**
* @author Heiko Braun <heiko.braun(a)jboss.com>
* @since Jun 16, 2006
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/rpclit/XOPBase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/rpclit/XOPBase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/rpclit/XOPBase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -21,19 +21,27 @@
*/
package org.jboss.test.ws.jaxrpc.xop.rpclit;
-import org.jboss.test.ws.JBossWSTest;
-import org.jboss.test.ws.jaxrpc.xop.XOPTestSupport;
-import org.jboss.test.ws.jaxrpc.xop.shared.*;
-import org.jboss.ws.jaxrpc.StubExt;
-import org.jboss.ws.utils.IOUtils;
+import java.awt.Image;
+import java.io.File;
+import java.util.StringTokenizer;
import javax.activation.DataHandler;
import javax.xml.rpc.Stub;
import javax.xml.transform.Source;
-import java.io.File;
-import java.util.StringTokenizer;
-import java.awt.*;
+import org.jboss.test.ws.JBossWSTest;
+import org.jboss.test.ws.jaxrpc.xop.XOPTestSupport;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingDataHandler;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingDataHandlerResponse;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingImage;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingImageResponse;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingMsg;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingMsgResponse;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingSource;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingSourceResponse;
+import org.jboss.ws.core.jaxrpc.StubExt;
+import org.jboss.ws.core.utils.IOUtils;
+
/**
* @author Heiko Braun <heiko.braun(a)jboss.com>
* @version $Id:XOPBase.java 1321 2006-10-27 11:47:18Z heiko.braun(a)jboss.com $
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/rpclit/XOPHandlerTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/rpclit/XOPHandlerTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/rpclit/XOPHandlerTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -21,12 +21,13 @@
*/
package org.jboss.test.ws.jaxrpc.xop.rpclit;
+import javax.naming.InitialContext;
+import javax.xml.rpc.Service;
+
import junit.framework.Test;
+
import org.jboss.test.ws.JBossWSTestSetup;
-import javax.naming.InitialContext;
-import javax.xml.rpc.Service;
-
/**
* @author Heiko Braun <heiko.braun(a)jboss.com>
* @version $Id$
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/rpclit/XOPPing.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/rpclit/XOPPing.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/rpclit/XOPPing.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -6,7 +6,12 @@
package org.jboss.test.ws.jaxrpc.xop.rpclit;
-import org.jboss.test.ws.jaxrpc.xop.shared.*;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingDataHandler;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingDataHandlerResponse;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingImage;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingImageResponse;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingSource;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingSourceResponse;
public interface XOPPing extends java.rmi.Remote
{
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/rpclit/XOPPingImpl.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/rpclit/XOPPingImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/rpclit/XOPPingImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,9 +1,17 @@
package org.jboss.test.ws.jaxrpc.xop.rpclit;
-import org.jboss.test.ws.jaxrpc.xop.shared.*;
-
import java.rmi.RemoteException;
+import org.jboss.test.ws.jaxrpc.xop.shared.MTOMServiceBase;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingDataHandler;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingDataHandlerResponse;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingImage;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingImageResponse;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingMsg;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingMsgResponse;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingSource;
+import org.jboss.test.ws.jaxrpc.xop.shared.PingSourceResponse;
+
/**
* @author Heiko Braun, <heiko(a)openj.net>
* @since 11-Apr-2006
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/rpclit/XOPTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/rpclit/XOPTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/rpclit/XOPTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -23,12 +23,13 @@
// $Id$
+import javax.naming.InitialContext;
+import javax.xml.rpc.Service;
+
import junit.framework.Test;
+
import org.jboss.test.ws.JBossWSTestSetup;
-import javax.naming.InitialContext;
-import javax.xml.rpc.Service;
-
/**
*
* @author Heiko.Braun(a)jboss.org
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/shared/MTOMServiceBase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/shared/MTOMServiceBase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/shared/MTOMServiceBase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -21,13 +21,13 @@
*/
package org.jboss.test.ws.jaxrpc.xop.shared;
-import org.jboss.ws.common.CommonMessageContext;
-import org.jboss.ws.soap.MessageContextAssociation;
-import org.jboss.ws.jaxrpc.StubExt;
-import org.jboss.ws.xop.XOPContext;
-
import java.util.StringTokenizer;
+import org.jboss.ws.core.CommonMessageContext;
+import org.jboss.ws.core.jaxrpc.StubExt;
+import org.jboss.ws.core.soap.MessageContextAssociation;
+import org.jboss.ws.extensions.xop.XOPContext;
+
/**
* @author Heiko Braun <heiko.braun(a)jboss.com>
* @version $Id$
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/shared/PingImage.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/shared/PingImage.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/shared/PingImage.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -21,7 +21,7 @@
*/
package org.jboss.test.ws.jaxrpc.xop.shared;
-import java.awt.*;
+import java.awt.Image;
/**
* @author Heiko Braun <heiko.braun(a)jboss.com>
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/shared/PingImageResponse.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/shared/PingImageResponse.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/shared/PingImageResponse.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -21,7 +21,7 @@
*/
package org.jboss.test.ws.jaxrpc.xop.shared;
-import java.awt.*;
+import java.awt.Image;
/**
* @author Heiko Braun <heiko.braun(a)jboss.com>
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jbws1178/JBWS1178TestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jbws1178/JBWS1178TestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jbws1178/JBWS1178TestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -34,7 +34,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.CallImpl;
+import org.jboss.ws.core.jaxrpc.CallImpl;
/**
* [JBWS-1178] Multiple virtual host and soap:address problem
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jbws1190/JBWS1190TestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jbws1190/JBWS1190TestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jbws1190/JBWS1190TestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -31,7 +31,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
/**
*
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jbws1190/TestEndpointImpl.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jbws1190/TestEndpointImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jbws1190/TestEndpointImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -27,12 +27,12 @@
import javax.jws.WebService;
+import org.jboss.ws.core.server.ServerConfig;
+import org.jboss.ws.core.server.ServerConfigFactory;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
import org.jboss.ws.metadata.wsdl.WSDLEndpoint;
import org.jboss.ws.metadata.wsdl.WSDLService;
-import org.jboss.ws.server.ServerConfig;
-import org.jboss.ws.server.ServerConfigFactory;
+import org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory;
/**
*
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jbws860/JBWS860TestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jbws860/JBWS860TestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jbws860/JBWS860TestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -33,7 +33,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
+import org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory;
/**
* Investigate "Is Not A Servlet" error with multiple servlets in the web.xml
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jbws944/JBWS944TestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jbws944/JBWS944TestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jbws944/JBWS944TestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -32,7 +32,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
+import org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory;
/**
* EJB3 jmx name is incorrectly derrived
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/complex/JSR181ComplexTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/complex/JSR181ComplexTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/complex/JSR181ComplexTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -43,7 +43,7 @@
import org.jboss.test.ws.jaxws.jsr181.complex.client.RegistrationService;
import org.jboss.test.ws.jaxws.jsr181.complex.client.Statistics;
import org.jboss.test.ws.jaxws.jsr181.complex.client.ValidationException;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
/**
*
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/complex/client/RegistrationServiceService.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/complex/client/RegistrationServiceService.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/complex/client/RegistrationServiceService.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -8,7 +8,7 @@
package org.jboss.test.ws.jaxws.jsr181.complex.client;
-import javax.xml.rpc.*;
+import javax.xml.rpc.ServiceException;
public interface RegistrationServiceService extends javax.xml.rpc.Service
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/handlerchain/JSR181HandlerChainTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/handlerchain/JSR181HandlerChainTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/handlerchain/JSR181HandlerChainTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -30,8 +30,8 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.CallImpl;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.CallImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
/**
* Test the JSR-181 annotation: javax.jws.HandlerChain
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/oneway/JSR181OneWayTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/oneway/JSR181OneWayTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/oneway/JSR181OneWayTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -30,9 +30,9 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.CallImpl;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
-import org.jboss.ws.metadata.OperationMetaData;
+import org.jboss.ws.core.jaxrpc.CallImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.metadata.umdm.OperationMetaData;
/**
* Test the JSR-181 annotation: javax.jws.Oneway
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/soapbinding/JSR181SOAPBindingTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/soapbinding/JSR181SOAPBindingTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/soapbinding/JSR181SOAPBindingTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -38,12 +38,12 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.CallImpl;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
-import org.jboss.ws.jaxrpc.Style;
-import org.jboss.ws.jaxrpc.Use;
-import org.jboss.ws.metadata.OperationMetaData;
-import org.jboss.ws.soap.NameImpl;
+import org.jboss.ws.core.jaxrpc.CallImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.Style;
+import org.jboss.ws.core.jaxrpc.Use;
+import org.jboss.ws.core.soap.NameImpl;
+import org.jboss.ws.metadata.umdm.OperationMetaData;
/**
* Test the JSR-181 annotation: javax.jws.SOAPBinding
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/webmethod/JSR181WebMethodTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/webmethod/JSR181WebMethodTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/webmethod/JSR181WebMethodTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -37,9 +37,9 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.CallImpl;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
-import org.jboss.ws.soap.NameImpl;
+import org.jboss.ws.core.jaxrpc.CallImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.soap.NameImpl;
/**
* Test the JSR-181 annotation: javax.jws.webmethod
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/webparam/JSR181WebParamTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/webparam/JSR181WebParamTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/webparam/JSR181WebParamTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -32,10 +32,10 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.CallImpl;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
-import org.jboss.ws.metadata.OperationMetaData;
-import org.jboss.ws.metadata.ParameterMetaData;
+import org.jboss.ws.core.jaxrpc.CallImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.metadata.umdm.OperationMetaData;
+import org.jboss.ws.metadata.umdm.ParameterMetaData;
/**
* Test the JSR-181 annotation: javax.jws.WebParam
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/webresult/JSR181WebResultTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/webresult/JSR181WebResultTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/webresult/JSR181WebResultTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -37,9 +37,9 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.CallImpl;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
-import org.jboss.ws.soap.NameImpl;
+import org.jboss.ws.core.jaxrpc.CallImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.soap.NameImpl;
/**
* Test the JSR-181 annotation: javax.jws.webresult
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/webservice/JSR181WebServiceEJB21TestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/webservice/JSR181WebServiceEJB21TestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/webservice/JSR181WebServiceEJB21TestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -32,7 +32,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
+import org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory;
/**
* Test the JSR-181 annotation: javax.jws.WebService
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/webservice/JSR181WebServiceEJB3TestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/webservice/JSR181WebServiceEJB3TestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/webservice/JSR181WebServiceEJB3TestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -32,7 +32,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
+import org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory;
/**
* Test the JSR-181 annotation: javax.jws.WebService
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/webservice/JSR181WebServiceJSETestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/webservice/JSR181WebServiceJSETestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/jsr181/webservice/JSR181WebServiceJSETestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -32,7 +32,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
+import org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory;
/**
* Test the JSR-181 annotation: javax.jws.WebService
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/samples/jsr181ejb/JSR181WebServiceEJB3TestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/samples/jsr181ejb/JSR181WebServiceEJB3TestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/samples/jsr181ejb/JSR181WebServiceEJB3TestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -35,7 +35,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
+import org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory;
/**
* Test the JSR-181 annotation: javax.jws.WebService
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/samples/jsr181pojo/JSR181WebServiceJSETestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/samples/jsr181pojo/JSR181WebServiceJSETestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/samples/jsr181pojo/JSR181WebServiceJSETestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -33,9 +33,9 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
+import org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory;
/**
* Test the JSR-181 annotation: javax.jws.WebService
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/samples/wsaddressing/AddressingStatefulTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/samples/wsaddressing/AddressingStatefulTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/samples/wsaddressing/AddressingStatefulTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -36,9 +36,9 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.addressing.jaxrpc.WSAddressingClientHandler;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
-import org.jboss.ws.jaxrpc.ServiceImpl;
+import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.ServiceImpl;
+import org.jboss.ws.extensions.addressing.jaxrpc.WSAddressingClientHandler;
/**
* Test stateful endpoint using ws-addressing
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/samples/wsaddressing/ClientHandler.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/samples/wsaddressing/ClientHandler.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/samples/wsaddressing/ClientHandler.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -36,8 +36,8 @@
import javax.xml.ws.addressing.ReferenceParameters;
import org.jboss.logging.Logger;
-import org.jboss.ws.utils.DOMUtils;
-import org.jboss.ws.utils.UUIDGenerator;
+import org.jboss.ws.core.utils.DOMUtils;
+import org.jboss.ws.core.utils.UUIDGenerator;
/**
* A client side handler for the ws-addressing
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/samples/wsaddressing/ServerHandler.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/samples/wsaddressing/ServerHandler.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/samples/wsaddressing/ServerHandler.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -34,7 +34,7 @@
import javax.xml.ws.addressing.ReferenceParameters;
import org.jboss.logging.Logger;
-import org.jboss.ws.utils.DOMUtils;
+import org.jboss.ws.core.utils.DOMUtils;
/**
* A server side handler for the ws-addressing
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/wsaddressing/EndpointReferenceTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/wsaddressing/EndpointReferenceTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/wsaddressing/EndpointReferenceTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -24,8 +24,8 @@
//$Id$
import org.jboss.test.ws.JBossWSTest;
-import org.jboss.ws.addressing.EndpointReferenceImpl;
-import org.jboss.ws.utils.DOMUtils;
+import org.jboss.ws.core.utils.DOMUtils;
+import org.jboss.ws.extensions.addressing.EndpointReferenceImpl;
import org.w3c.dom.Element;
/**
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/wsaddressing/replyto/ClientHandler.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/wsaddressing/replyto/ClientHandler.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/wsaddressing/replyto/ClientHandler.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -33,7 +33,7 @@
import org.jboss.logging.Logger;
import org.jboss.test.ws.jaxws.wsaddressing.AddressingHandler;
-import org.jboss.ws.utils.UUIDGenerator;
+import org.jboss.ws.core.utils.UUIDGenerator;
/**
* A client side handler for the ws-addressing
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/wsaddressing/replyto/FaultToEndpointImpl.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/wsaddressing/replyto/FaultToEndpointImpl.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxws/wsaddressing/replyto/FaultToEndpointImpl.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -33,7 +33,7 @@
import javax.xml.soap.SOAPFault;
import org.jboss.logging.Logger;
-import org.jboss.ws.utils.DOMWriter;
+import org.jboss.ws.core.utils.DOMWriter;
/**
* WS-Addressing service endpoint
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/JavaToWSDL11TestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/JavaToWSDL11TestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/JavaToWSDL11TestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -34,13 +34,14 @@
import org.jboss.test.ws.tools.sei.ServiceException;
import org.jboss.test.ws.tools.sei.StandardJavaTypes;
import org.jboss.ws.Constants;
-import org.jboss.ws.jaxrpc.Style;
+import org.jboss.ws.core.jaxrpc.Style;
+import org.jboss.ws.core.utils.DOMUtils;
+import org.jboss.ws.core.utils.IOUtils;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
import org.jboss.ws.metadata.wsdl.WSDLUtils;
import org.jboss.ws.tools.JavaToWSDL;
import org.jboss.ws.tools.WSToolsConstants;
-import org.jboss.ws.utils.DOMUtils;
-import org.jboss.ws.utils.IOUtils;
+import org.jboss.ws.tools.wsdl.WSDLWriter;
import org.w3c.dom.Element;
/**
@@ -129,7 +130,7 @@
WSDLDefinitions wsdl = jwsdl.generate(seiClass);
Writer fw = IOUtils.getCharsetFileWriter(new File(wsdlPath),
Constants.DEFAULT_XML_CHARSET);
- wsdl.write(fw, Constants.DEFAULT_XML_CHARSET);
+ new WSDLWriter(wsdl).write(fw, Constants.DEFAULT_XML_CHARSET);
fw.close();
//Validate the generated WSDL
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/SchemaGeneratorTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/SchemaGeneratorTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/SchemaGeneratorTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -28,7 +28,7 @@
import org.jboss.test.ws.common.jbossxb.complex.Base;
import org.jboss.test.ws.common.jbossxb.complex.Composite;
import org.jboss.test.ws.common.jbossxb.complex.Derived;
-import org.jboss.ws.utils.DOMUtils;
+import org.jboss.ws.core.utils.DOMUtils;
import org.w3c.dom.Element;
/** Test the XSD schema generator
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/WSDL11ToJavaTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/WSDL11ToJavaTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/WSDL11ToJavaTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -31,11 +31,11 @@
import org.jboss.test.ws.tools.sei.StandardJavaTypes;
import org.jboss.test.ws.tools.validation.WSDL11Validator;
import org.jboss.test.ws.tools.validation.WSDLValidator;
-import org.jboss.ws.jaxrpc.LiteralTypeMapping;
-import org.jboss.ws.metadata.wsdl.WSDL20Writer;
+import org.jboss.ws.core.jaxrpc.LiteralTypeMapping;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
import org.jboss.ws.tools.WSDLToJava;
import org.jboss.ws.tools.interfaces.WSDLToJavaIntf;
+import org.jboss.ws.tools.wsdl.WSDLWriter;
/**
* Test jbossws WSDL11 -> Java
@@ -86,14 +86,14 @@
File wsdlDir = new File("./tools/wsdl-out");
wsdlDir.mkdirs();
FileWriter writer = new FileWriter(new File(wsdlDir + "/" + fname));
- new WSDL20Writer(wsdl).write(writer);
+ new WSDLWriter(wsdl).write(writer);
writer.close();
}
private String getWSDLAsString(WSDLDefinitions wsdl) throws IOException
{
StringWriter strwr = new StringWriter();
- new WSDL20Writer(wsdl).write(strwr);
+ new WSDLWriter(wsdl).write(strwr);
return strwr.toString();
}
Deleted:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/WSDL11ToWSDL20TestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/WSDL11ToWSDL20TestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/WSDL11ToWSDL20TestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -1,134 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.test.ws.tools;
-
-import java.io.File;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.io.StringWriter;
-
-import org.jboss.test.ws.JBossWSTest;
-import org.jboss.test.ws.tools.sei.PrimitiveTypes;
-import org.jboss.test.ws.tools.sei.StandardJavaTypes;
-import org.jboss.test.ws.tools.validation.WSDL11Validator;
-import org.jboss.test.ws.tools.validation.WSDLValidator;
-import org.jboss.ws.jaxrpc.LiteralTypeMapping;
-import org.jboss.ws.metadata.wsdl.WSDL20Writer;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
-import org.jboss.ws.tools.WSDLToJava;
-import org.jboss.ws.tools.interfaces.WSDLToJavaIntf;
-
-/**
- * Test jbossws WSDL11 -> Java -> WSDL20
- *
- * @author anil.saldhana(a)jboss.org
- * @since January 26,2005
- */
-public class WSDL11ToWSDL20TestCase extends JBossWSTest
-{
- /** Test a SEI that contains JAXRPC primitive types */
- public void testPrimitiveTypes() throws Exception
- {
- Class seiClass = PrimitiveTypes.class;
- WSDLDefinitions wsdlDefinitions = getWSDLDefinitions(seiClass,
"PrimitiveTypesService_RPC_11.wsdl");
- String wsdlString = getWSDLAsString(wsdlDefinitions);
- //System.out.println(wsdlString);
- writeWSDL(wsdlDefinitions, "PrimitiveTypesService_RPC_20.wsdl");
- }
-
- /** Test a SEI that contains JAXRPC java standard types */
- public void testStandardJavaTypes() throws Exception
- {
- Class seiClass = StandardJavaTypes.class;
- WSDLDefinitions wsdlDefinitions = getWSDLDefinitions(seiClass,
"StandardJavaTypesService_RPC_11.wsdl");
- String wsdlString = getWSDLAsString(wsdlDefinitions);
- //System.out.println(wsdlString);
- writeWSDL(wsdlDefinitions, "StandardJavaTypesService_RPC_20.wsdl");
- }
-
- /** Test a SEI that contains JAXRPC java standard types */
- public void testStandardDocJavaTypes() throws Exception
- {
- Class seiClass = StandardJavaTypes.class;
- WSDLDefinitions wsdlDefinitions = getWSDLDefinitions(seiClass,
"StandardJavaTypesService_DOC_11.wsdl");
- String wsdlString = getWSDLAsString(wsdlDefinitions);
- //System.out.println(wsdlString);
- writeWSDL(wsdlDefinitions, "StandardJavaTypesService_DOC_20.wsdl");
- }
-
- /** Test a SEI that contains JAXRPC java standard types */
- public void testWSDLSpecExample() throws Exception
- {
- WSDLDefinitions wsdl = doWSDLTest("W3CExample_DOC_11.wsdl");
- //System.out.println(wsdlString);
- writeWSDL(wsdl, "W3CExample_DOC_20.wsdl");
- }
-
- private void writeWSDL(WSDLDefinitions wsdl, String fname) throws Exception
- {
- String wsdlWrite = "tools";
-
- FileWriter writer = new FileWriter(wsdlWrite + "/" + fname);
- new WSDL20Writer(wsdl).write(writer);
- writer.close();
- }
-
- private String getWSDLAsString(WSDLDefinitions wsdl) throws IOException
- {
- StringWriter strwr = new StringWriter();
- new WSDL20Writer(wsdl).write(strwr);
- return strwr.toString();
- }
-
- private WSDLDefinitions getWSDLDefinitions(Class seiClass, String wsdlFileName) throws
Exception
- {
- File wsdlFile = new File("resources/tools/wsdlfixture/" + wsdlFileName);
- assertTrue(wsdlFile.exists());
-
- WSDLDefinitionsFactory wsdlFactory = WSDLDefinitionsFactory.newInstance();
- WSDLDefinitions wsdlDefinitions = wsdlFactory.parse(wsdlFile.toURL());
-
- WSDLValidator validator = new WSDL11Validator();
- if (validator.validate(seiClass, wsdlDefinitions) == false)
- System.err.println("FIXME: " + validator.getErrorList().toString());
-
- return wsdlDefinitions;
- }
-
- /**
- * The idea here is that the WSDLReader reads in the <definition> element
- * and looks at the default namespace. If it is wsdl-1.1, it delegates to
- * wsdl4j which parses the same wsdl again and builds the wsdl4j object graph.
- * TODO:Reading the wsdl4j graph and copying to jbossws/wsdl objects
- * @param wsdlFileName
- * @throws Exception
- */
- private WSDLDefinitions doWSDLTest(String wsdlFileName) throws Exception
- {
- File wsdlFile = new File("resources/tools/wsdlfixture/" + wsdlFileName);
- assertTrue(wsdlFile.exists());
- WSDLToJavaIntf wsdljava = new WSDLToJava();
- wsdljava.setTypeMapping(new LiteralTypeMapping());
- return wsdljava.convertWSDL2Java(wsdlFile.toURL());
- }
-}
Modified: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/WSToolsTest.java
===================================================================
--- branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/WSToolsTest.java 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/WSToolsTest.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -39,11 +39,12 @@
import org.jboss.test.ws.tools.validation.WSDL11Validator;
import org.jboss.test.ws.tools.validation.WSDLValidator;
import org.jboss.ws.Constants;
-import org.jboss.ws.jaxrpc.LiteralTypeMapping;
-import org.jboss.ws.jaxrpc.Style;
+import org.jboss.ws.core.jaxrpc.LiteralTypeMapping;
+import org.jboss.ws.core.jaxrpc.Style;
+import org.jboss.ws.core.utils.DOMUtils;
+import org.jboss.ws.core.utils.DOMWriter;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel;
import org.jboss.ws.tools.JavaToWSDL;
import org.jboss.ws.tools.JavaToXSD;
@@ -51,8 +52,7 @@
import org.jboss.ws.tools.client.ServiceCreator;
import org.jboss.ws.tools.exceptions.JBossWSToolsException;
import org.jboss.ws.tools.mapping.MappingFileGenerator;
-import org.jboss.ws.utils.DOMUtils;
-import org.jboss.ws.utils.DOMWriter;
+import org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory;
import org.w3c.dom.Element;
/**
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/clientside/ClientSideArtifactsTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/clientside/ClientSideArtifactsTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/clientside/ClientSideArtifactsTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -28,14 +28,14 @@
import org.jboss.test.ws.tools.WSToolsTest;
import org.jboss.test.ws.tools.fixture.JBossSourceComparator;
import org.jboss.test.ws.tools.validation.JaxrpcMappingValidator;
-import org.jboss.ws.jaxrpc.LiteralTypeMapping;
+import org.jboss.ws.core.jaxrpc.LiteralTypeMapping;
+import org.jboss.ws.core.utils.DOMUtils;
+import org.jboss.ws.core.utils.DOMWriter;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
import org.jboss.ws.tools.WSDLToJava;
import org.jboss.ws.tools.client.ServiceCreator;
import org.jboss.ws.tools.mapping.MappingFileGenerator;
-import org.jboss.ws.utils.DOMUtils;
-import org.jboss.ws.utils.DOMWriter;
import org.w3c.dom.Element;
/**
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/doclit/ToolsDocLitTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/doclit/ToolsDocLitTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/doclit/ToolsDocLitTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -26,12 +26,13 @@
import org.jboss.test.ws.tools.WSToolsTest;
import org.jboss.ws.Constants;
-import org.jboss.ws.jaxrpc.Style;
+import org.jboss.ws.core.jaxrpc.Style;
+import org.jboss.ws.core.utils.DOMUtils;
+import org.jboss.ws.core.utils.IOUtils;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
import org.jboss.ws.tools.JavaToWSDL;
import org.jboss.ws.tools.WSToolsConstants;
-import org.jboss.ws.utils.DOMUtils;
-import org.jboss.ws.utils.IOUtils;
+import org.jboss.ws.tools.wsdl.WSDLWriter;
import org.w3c.dom.Element;
/**
@@ -57,7 +58,7 @@
WSDLDefinitions wsdl = jwsdl.generate(seiClass);
Writer fw = IOUtils.getCharsetFileWriter(new File(wsdlPath),
Constants.DEFAULT_XML_CHARSET);
- wsdl.write(fw, Constants.DEFAULT_XML_CHARSET);
+ new WSDLWriter(wsdl).write(fw, Constants.DEFAULT_XML_CHARSET);
fw.close();
String fixturefile =
"resources/tools/doc-lit/trivial/wsdl/SampleService.wsdl";
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/enums/EnumTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/enums/EnumTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/enums/EnumTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -24,8 +24,8 @@
import java.io.FileInputStream;
import org.jboss.test.ws.JBossWSTest;
+import org.jboss.ws.core.utils.DOMUtils;
import org.jboss.ws.tools.WSTools;
-import org.jboss.ws.utils.DOMUtils;
import org.w3c.dom.Element;
/**
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/holders/StandardHoldersTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/holders/StandardHoldersTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/holders/StandardHoldersTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -30,17 +30,18 @@
import org.jboss.test.ws.tools.validation.WSDL11Validator;
import org.jboss.test.ws.tools.validation.WSDLValidator;
import org.jboss.ws.Constants;
-import org.jboss.ws.jaxrpc.LiteralTypeMapping;
-import org.jboss.ws.jaxrpc.Style;
+import org.jboss.ws.core.jaxrpc.LiteralTypeMapping;
+import org.jboss.ws.core.jaxrpc.Style;
+import org.jboss.ws.core.utils.DOMUtils;
+import org.jboss.ws.core.utils.IOUtils;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
import org.jboss.ws.tools.JavaToWSDL;
import org.jboss.ws.tools.WSDLToJava;
import org.jboss.ws.tools.WSToolsConstants;
import org.jboss.ws.tools.exceptions.JBossWSToolsException;
import org.jboss.ws.tools.interfaces.WSDLToJavaIntf;
-import org.jboss.ws.utils.DOMUtils;
-import org.jboss.ws.utils.IOUtils;
+import org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory;
+import org.jboss.ws.tools.wsdl.WSDLWriter;
import org.w3c.dom.Element;
@@ -85,7 +86,7 @@
String wsdlDir = "tools/";
String wsdlPath = wsdlDir+ "/HolderService.wsdl";
Writer fw = IOUtils.getCharsetFileWriter(new File(wsdlPath),
Constants.DEFAULT_XML_CHARSET);
- wsdl.write(fw, Constants.DEFAULT_XML_CHARSET);
+ new WSDLWriter(wsdl).write(fw, Constants.DEFAULT_XML_CHARSET);
fw.close();
//Now validate the wsdl file
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/java2xsd/SchemaModelTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/java2xsd/SchemaModelTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/java2xsd/SchemaModelTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -31,9 +31,9 @@
import org.jboss.test.ws.common.jbossxb.complex.Derived;
import org.jboss.test.ws.common.jbossxb.simple.SimpleUserType;
import org.jboss.ws.Constants;
+import org.jboss.ws.core.utils.DOMUtils;
import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel;
import org.jboss.ws.tools.JavaToXSD;
-import org.jboss.ws.utils.DOMUtils;
import org.w3c.dom.Element;
/**
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/java2xsd/SchemaTypesCreatorTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/java2xsd/SchemaTypesCreatorTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/java2xsd/SchemaTypesCreatorTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -29,10 +29,10 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.tools.jbws_161.customexceptions.UserException;
import org.jboss.test.ws.tools.sei.Derived;
+import org.jboss.ws.core.utils.DOMUtils;
import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel;
import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSTypeDefinition;
import org.jboss.ws.tools.schema.SchemaTypeCreator;
-import org.jboss.ws.utils.DOMUtils;
import org.w3c.dom.Element;
/**
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws1079/JBWS1079TestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws1079/JBWS1079TestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws1079/JBWS1079TestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -26,8 +26,8 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.tools.fixture.JBossSourceComparator;
+import org.jboss.ws.core.utils.DOMUtils;
import org.jboss.ws.tools.WSTools;
-import org.jboss.ws.utils.DOMUtils;
import org.w3c.dom.Element;
/**
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws1090/JBWS1090TestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws1090/JBWS1090TestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws1090/JBWS1090TestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -30,9 +30,9 @@
import java.io.OutputStream;
import org.jboss.test.ws.JBossWSTest;
+import org.jboss.ws.core.utils.DOMUtils;
+import org.jboss.ws.core.utils.IOUtils;
import org.jboss.ws.tools.WSTools;
-import org.jboss.ws.utils.DOMUtils;
-import org.jboss.ws.utils.IOUtils;
import org.w3c.dom.Element;
/**
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws1170/JBWS1170TestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws1170/JBWS1170TestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws1170/JBWS1170TestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -26,8 +26,8 @@
import java.io.FileReader;
import org.jboss.test.ws.JBossWSTest;
+import org.jboss.ws.core.utils.DOMUtils;
import org.jboss.ws.tools.WSTools;
-import org.jboss.ws.utils.DOMUtils;
import org.w3c.dom.Element;
/**
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws1253/JBWS1253TestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws1253/JBWS1253TestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws1253/JBWS1253TestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -26,8 +26,8 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.tools.fixture.JBossSourceComparator;
+import org.jboss.ws.core.utils.DOMUtils;
import org.jboss.ws.tools.WSTools;
-import org.jboss.ws.utils.DOMUtils;
import org.w3c.dom.Element;
/**
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws818/JBWS818TestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws818/JBWS818TestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws818/JBWS818TestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -24,8 +24,8 @@
import java.io.FileInputStream;
import org.jboss.test.ws.JBossWSTest;
+import org.jboss.ws.core.utils.DOMUtils;
import org.jboss.ws.tools.WSTools;
-import org.jboss.ws.utils.DOMUtils;
import org.w3c.dom.Element;
/**
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws_204/AnonTypesTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws_204/AnonTypesTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws_204/AnonTypesTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -29,8 +29,8 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.tools.jbws_204.wscompile.anontypes.Items;
import org.jboss.ws.Constants;
+import org.jboss.ws.core.utils.DOMUtils;
import org.jboss.ws.tools.JavaToXSD;
-import org.jboss.ws.utils.DOMUtils;
import org.w3c.dom.Element;
/**
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws_204/NillableTypesTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws_204/NillableTypesTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws_204/NillableTypesTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -31,10 +31,10 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.tools.jbws_204.wscompile.nillabletypes.NillableType;
import org.jboss.ws.Constants;
+import org.jboss.ws.core.utils.DOMUtils;
import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel;
import org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils;
import org.jboss.ws.tools.JavaToXSD;
-import org.jboss.ws.utils.DOMUtils;
import org.w3c.dom.Element;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws_204/StandardArraysTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws_204/StandardArraysTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws_204/StandardArraysTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -29,8 +29,8 @@
import org.jboss.test.ws.tools.WSToolsTest;
import org.jboss.ws.Constants;
+import org.jboss.ws.core.utils.DOMUtils;
import org.jboss.ws.tools.JavaToXSD;
-import org.jboss.ws.utils.DOMUtils;
import org.w3c.dom.Element;
/**
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws_204/StandardDoubleArraysTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws_204/StandardDoubleArraysTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws_204/StandardDoubleArraysTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -29,7 +29,7 @@
import org.jboss.test.ws.tools.WSToolsTest;
import org.jboss.ws.Constants;
-import org.jboss.ws.utils.DOMUtils;
+import org.jboss.ws.core.utils.DOMUtils;
import org.w3c.dom.Element;
/**
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/metadata/JavaWsdlMappingMetaDataTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/metadata/JavaWsdlMappingMetaDataTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/metadata/JavaWsdlMappingMetaDataTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -27,6 +27,7 @@
import javax.xml.namespace.QName;
import org.jboss.test.ws.JBossWSTest;
+import org.jboss.ws.core.utils.DOMUtils;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMappingFactory;
import org.jboss.ws.metadata.jaxrpcmapping.MethodParamPartsMapping;
@@ -37,7 +38,6 @@
import org.jboss.ws.metadata.jaxrpcmapping.ServiceInterfaceMapping;
import org.jboss.ws.metadata.jaxrpcmapping.WsdlMessageMapping;
import org.jboss.ws.metadata.jaxrpcmapping.WsdlReturnValueMapping;
-import org.jboss.ws.utils.DOMUtils;
import org.w3c.dom.Element;
/**
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/metadata/WebServicesMetaDataTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/metadata/WebServicesMetaDataTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/metadata/WebServicesMetaDataTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -28,11 +28,11 @@
import javax.xml.namespace.QName;
import org.jboss.test.ws.JBossWSTest;
-import org.jboss.ws.metadata.jsr109.PortComponentMetaData;
-import org.jboss.ws.metadata.jsr109.WebserviceDescriptionMetaData;
-import org.jboss.ws.metadata.jsr109.WebservicesFactory;
-import org.jboss.ws.metadata.jsr109.WebservicesMetaData;
-import org.jboss.ws.utils.DOMUtils;
+import org.jboss.ws.core.utils.DOMUtils;
+import org.jboss.ws.metadata.webservices.PortComponentMetaData;
+import org.jboss.ws.metadata.webservices.WebserviceDescriptionMetaData;
+import org.jboss.ws.metadata.webservices.WebservicesFactory;
+import org.jboss.ws.metadata.webservices.WebservicesMetaData;
import org.jboss.xb.binding.ObjectModelFactory;
import org.jboss.xb.binding.Unmarshaller;
import org.jboss.xb.binding.UnmarshallerFactory;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/validation/WSDL11ValidationTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/validation/WSDL11ValidationTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/validation/WSDL11ValidationTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -26,8 +26,8 @@
import junit.framework.TestCase;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
import org.jboss.ws.tools.exceptions.JBossWSToolsException;
+import org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory;
/**
* Testcase to test the WSDL Validator
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/xmlschema/WSDLTypesTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/xmlschema/WSDLTypesTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/xmlschema/WSDLTypesTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -27,7 +27,7 @@
import javax.xml.namespace.QName;
import org.jboss.test.ws.JBossWSTest;
-import org.jboss.ws.jaxrpc.LiteralTypeMapping;
+import org.jboss.ws.core.jaxrpc.LiteralTypeMapping;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
import org.jboss.ws.metadata.wsdl.WSDLTypes;
import org.jboss.ws.metadata.wsdl.WSDLUtils;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/xmlschema/XercesSchemaParserTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/xmlschema/XercesSchemaParserTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/xmlschema/XercesSchemaParserTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -47,6 +47,7 @@
import org.apache.xerces.xs.XSTypeDefinition;
import org.apache.xerces.xs.XSWildcard;
import org.jboss.test.ws.JBossWSTest;
+import org.jboss.ws.core.utils.JBossWSEntityResolver;
import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSComplexTypeDefinition;
import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSElementDeclaration;
import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSEntityResolver;
@@ -54,7 +55,6 @@
import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSParticle;
import org.jboss.ws.metadata.wsdl.xsd.SchemaUtils;
import org.jboss.ws.tools.JavaToXSD;
-import org.jboss.ws.utils.JBossWSEntityResolver;
import org.jboss.xb.binding.sunday.unmarshalling.LSInputAdaptor;
import org.jboss.xb.binding.sunday.unmarshalling.SchemaBinding;
import org.jboss.xb.binding.sunday.unmarshalling.SchemaBindingResolver;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/xsdjava/AnonymousTypesTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/xsdjava/AnonymousTypesTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/xsdjava/AnonymousTypesTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -25,7 +25,7 @@
import org.jboss.test.ws.tools.WSToolsTest;
import org.jboss.test.ws.tools.fixture.JBossSourceComparator;
-import org.jboss.ws.jaxrpc.LiteralTypeMapping;
+import org.jboss.ws.core.jaxrpc.LiteralTypeMapping;
import org.jboss.ws.tools.XSDToJava;
import org.jboss.ws.tools.interfaces.XSDToJavaIntf;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/xsdjava/ComplexTypesTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/xsdjava/ComplexTypesTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/xsdjava/ComplexTypesTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -25,7 +25,7 @@
import org.jboss.test.ws.tools.WSToolsTest;
import org.jboss.test.ws.tools.fixture.JBossSourceComparator;
-import org.jboss.ws.jaxrpc.LiteralTypeMapping;
+import org.jboss.ws.core.jaxrpc.LiteralTypeMapping;
import org.jboss.ws.tools.XSDToJava;
import org.jboss.ws.tools.interfaces.XSDToJavaIntf;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/xsdjava/NillableTypesTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/xsdjava/NillableTypesTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/xsdjava/NillableTypesTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -25,7 +25,7 @@
import org.jboss.test.ws.tools.WSToolsTest;
import org.jboss.test.ws.tools.fixture.JBossSourceComparator;
-import org.jboss.ws.jaxrpc.LiteralTypeMapping;
+import org.jboss.ws.core.jaxrpc.LiteralTypeMapping;
import org.jboss.ws.tools.XSDToJava;
import org.jboss.ws.tools.interfaces.XSDToJavaIntf;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/xsdjava/ReferencesTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/xsdjava/ReferencesTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/xsdjava/ReferencesTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -25,7 +25,7 @@
import org.jboss.test.ws.tools.WSToolsTest;
import org.jboss.test.ws.tools.fixture.JBossSourceComparator;
-import org.jboss.ws.jaxrpc.LiteralTypeMapping;
+import org.jboss.ws.core.jaxrpc.LiteralTypeMapping;
import org.jboss.ws.tools.XSDToJava;
import org.jboss.ws.tools.interfaces.XSDToJavaIntf;
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/xsdjava/SimpleTypesTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/xsdjava/SimpleTypesTestCase.java 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/xsdjava/SimpleTypesTestCase.java 2006-12-07
13:30:48 UTC (rev 1606)
@@ -25,7 +25,7 @@
import org.jboss.test.ws.tools.WSToolsTest;
import org.jboss.test.ws.tools.fixture.JBossSourceComparator;
-import org.jboss.ws.jaxrpc.LiteralTypeMapping;
+import org.jboss.ws.core.jaxrpc.LiteralTypeMapping;
import org.jboss.ws.tools.XSDToJava;
import org.jboss.ws.tools.interfaces.XSDToJavaIntf;
Modified:
branches/jbossws-1.0/src/test/resources/common/config/jaxrpc-endpoint-config.xml
===================================================================
---
branches/jbossws-1.0/src/test/resources/common/config/jaxrpc-endpoint-config.xml 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/resources/common/config/jaxrpc-endpoint-config.xml 2006-12-07
13:30:48 UTC (rev 1606)
@@ -17,7 +17,7 @@
<handler-chain-name>PreHandlerChain</handler-chain-name>
<handler>
<j2ee:handler-name>WSSecurityHandlerInbound</j2ee:handler-name>
-
<j2ee:handler-class>org.jboss.ws.wsse.jaxrpc.WSSecurityHandlerInbound</j2ee:handler-class>
+
<j2ee:handler-class>org.jboss.ws.extensions.security.jaxrpc.WSSecurityHandlerInbound</j2ee:handler-class>
</handler>
</pre-handler-chain>
</endpoint-config>
Modified: branches/jbossws-1.0/src/test/resources/common/config/jaxws-endpoint-config.xml
===================================================================
---
branches/jbossws-1.0/src/test/resources/common/config/jaxws-endpoint-config.xml 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/resources/common/config/jaxws-endpoint-config.xml 2006-12-07
13:30:48 UTC (rev 1606)
@@ -18,7 +18,7 @@
<javaee:protocol-bindings>##SOAP11_HTTP</javaee:protocol-bindings>
<javaee:handler>
<javaee:handler-name>WSSecurityHandlerInbound</javaee:handler-name>
-
<javaee:handler-class>org.jboss.ws.wsse.jaxws.WSSecurityHandlerInbound</javaee:handler-class>
+
<javaee:handler-class>org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerInbound</javaee:handler-class>
</javaee:handler>
</javaee:handler-chain>
</pre-handler-chains>
Modified:
branches/jbossws-1.0/src/test/resources/interop/microsoft/addressing/wsa10/META-INF/application-client.xml
===================================================================
---
branches/jbossws-1.0/src/test/resources/interop/microsoft/addressing/wsa10/META-INF/application-client.xml 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/resources/interop/microsoft/addressing/wsa10/META-INF/application-client.xml 2006-12-07
13:30:48 UTC (rev 1606)
@@ -26,7 +26,7 @@
<handler>
<handler-name>client.notify.handler</handler-name>
-
<handler-class>org.jboss.ws.addressing.jaxrpc.WSAddressingClientHandler</handler-class>
+
<handler-class>org.jboss.ws.extensions.addressing.jaxrpc.WSAddressingClientHandler</handler-class>
<!--init-param>
<param-name>javax.xml.ws.addressing.to.inbound</param-name>
<
param-value>http://example.org/node/A</param-value>
@@ -37,7 +37,7 @@
<handler>
<handler-name>client.echo.handler</handler-name>
-
<handler-class>org.jboss.ws.addressing.jaxrpc.WSAddressingClientHandler</handler-class>
+
<handler-class>org.jboss.ws.extensions.addressing.jaxrpc.WSAddressingClientHandler</handler-class>
<!--init-param>
<param-name>javax.xml.ws.addressing.to.inbound</param-name>
<
param-value>http://example.org/node/A</param-value>
Modified:
branches/jbossws-1.0/src/test/resources/interop/microsoft/addressing/wsaTestService/WEB-INF/webservices.xml
===================================================================
---
branches/jbossws-1.0/src/test/resources/interop/microsoft/addressing/wsaTestService/WEB-INF/webservices.xml 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/resources/interop/microsoft/addressing/wsaTestService/WEB-INF/webservices.xml 2006-12-07
13:30:48 UTC (rev 1606)
@@ -29,7 +29,7 @@
<handler>
<handler-name>addressing handler</handler-name>
-
<handler-class>org.jboss.ws.addressing.jaxrpc.WSAddressingServerHandler</handler-class>
+
<handler-class>org.jboss.ws.extensions.addressing.jaxrpc.WSAddressingServerHandler</handler-class>
<init-param>
<param-name>validate</param-name>
<param-value>false</param-value>
Modified:
branches/jbossws-1.0/src/test/resources/jaxrpc/marshall-rpclit/WEB-INF/webservices.xml
===================================================================
---
branches/jbossws-1.0/src/test/resources/jaxrpc/marshall-rpclit/WEB-INF/webservices.xml 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/resources/jaxrpc/marshall-rpclit/WEB-INF/webservices.xml 2006-12-07
13:30:48 UTC (rev 1606)
@@ -19,7 +19,7 @@
</service-impl-bean>
<handler>
<handler-name>MTOM disabled handler</handler-name>
- <handler-class>org.jboss.ws.xop.DisableMTOMHandler</handler-class>
+
<handler-class>org.jboss.ws.extensions.xop.DisableMTOMHandler</handler-class>
</handler>
</port-component>
</webservice-description>
Modified:
branches/jbossws-1.0/src/test/resources/jaxrpc/samples/wseventing/META-INF/application-client.xml
===================================================================
---
branches/jbossws-1.0/src/test/resources/jaxrpc/samples/wseventing/META-INF/application-client.xml 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/resources/jaxrpc/samples/wseventing/META-INF/application-client.xml 2006-12-07
13:30:48 UTC (rev 1606)
@@ -8,21 +8,21 @@
<service-ref>
<service-ref-name>service/SysmonService</service-ref-name>
-
<service-interface>org.jboss.ws.eventing.EventingService</service-interface>
+
<service-interface>org.jboss.ws.extensions.eventing.EventingService</service-interface>
<wsdl-file>META-INF/wsdl/sysmon.wsdl</wsdl-file>
<jaxrpc-mapping-file>META-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
<port-component-ref>
-
<service-endpoint-interface>org.jboss.ws.eventing.EventSourceEndpoint</service-endpoint-interface>
+
<service-endpoint-interface>org.jboss.ws.extensions.eventing.EventSourceEndpoint</service-endpoint-interface>
</port-component-ref>
<port-component-ref>
-
<service-endpoint-interface>org.jboss.ws.eventing.SubscriptionManagerEndpoint</service-endpoint-interface>
+
<service-endpoint-interface>org.jboss.ws.extensions.eventing.SubscriptionManagerEndpoint</service-endpoint-interface>
</port-component-ref>
<handler>
<handler-name>WSAddressingHandler</handler-name>
-
<handler-class>org.jboss.ws.addressing.jaxrpc.WSAddressingClientHandler</handler-class>
+
<handler-class>org.jboss.ws.extensions.addressing.jaxrpc.WSAddressingClientHandler</handler-class>
</handler>
</service-ref>
Modified:
branches/jbossws-1.0/src/test/resources/jaxrpc/samples/wseventing/WEB-INF/jaxrpc-mapping.xml
===================================================================
---
branches/jbossws-1.0/src/test/resources/jaxrpc/samples/wseventing/WEB-INF/jaxrpc-mapping.xml 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/resources/jaxrpc/samples/wseventing/WEB-INF/jaxrpc-mapping.xml 2006-12-07
13:30:48 UTC (rev 1606)
@@ -8,14 +8,14 @@
</package-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.eventing.element.SubscribeRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.SubscribeRequest</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:Subscribe</root-type-qname>
<qname-scope>element</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.eventing.element.SubscribeRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.SubscribeRequest</java-type>
<anonymous-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:>Subscribe</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
@@ -42,7 +42,7 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
- <java-type>org.jboss.ws.eventing.element.FilterType</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.FilterType</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:FilterType</root-type-qname>
<qname-scope>complexType</qname-scope>
@@ -57,7 +57,7 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
- <java-type>org.jboss.ws.eventing.element.DeliveryType</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.DeliveryType</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:DeliveryType</root-type-qname>
<qname-scope>complexType</qname-scope>
@@ -76,14 +76,14 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.eventing.element.SubscriptionEndRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.SubscriptionEndRequest</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:SubscriptionEnd</root-type-qname>
<qname-scope>element</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.eventing.element.SubscriptionEndRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.SubscriptionEndRequest</java-type>
<anonymous-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:>SubscriptionEnd</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
@@ -102,14 +102,14 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.eventing.element.SubscribeResponse</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.SubscribeResponse</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:SubscribeResponse</root-type-qname>
<qname-scope>element</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.eventing.element.SubscribeResponse</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.SubscribeResponse</java-type>
<anonymous-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:>SubscribeResponse</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
@@ -124,13 +124,13 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.eventing.element.EndpointReference</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.EndpointReference</java-type>
<root-type-qname
xmlns:typeNS="http://www.w3.org/2005/08/addressing">typeNS:E...
<qname-scope>element</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.eventing.element.EndpointReference</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.EndpointReference</java-type>
<root-type-qname
xmlns:typeNS="http://www.w3.org/2005/08/addressing">
typeNS:EndpointReferenceType</root-type-qname>
<qname-scope>complexType</qname-scope>
@@ -149,13 +149,13 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
- <java-type>org.jboss.ws.eventing.element.MetaData</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.MetaData</java-type>
<root-type-qname
xmlns:typeNS="http://www.w3.org/2005/08/addressing">typeNS:M...
<qname-scope>element</qname-scope>
</java-xml-type-mapping>
<!--java-xml-type-mapping>
- <java-type>org.jboss.ws.eventing.element.MetaData</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.MetaData</java-type>
<root-type-qname
xmlns:typeNS="http://www.w3.org/2005/08/addressing">typeNS:M...
<qname-scope>complexType</qname-scope>
<variable-mapping>
@@ -165,13 +165,13 @@
</java-xml-type-mapping-->
<java-xml-type-mapping>
- <java-type>org.jboss.ws.eventing.element.RenewRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.RenewRequest</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"&g...
<qname-scope>element</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
- <java-type>org.jboss.ws.eventing.element.RenewRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.RenewRequest</java-type>
<anonymous-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:>Renew</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
@@ -182,14 +182,14 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
- <java-type>org.jboss.ws.eventing.element.RenewResponse</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.RenewResponse</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:RenewResponse</root-type-qname>
<qname-scope>element</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
- <java-type>org.jboss.ws.eventing.element.RenewResponse</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.RenewResponse</java-type>
<anonymous-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:>RenewResponse</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
@@ -200,7 +200,7 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
- <java-type>org.jboss.ws.eventing.element.StatusRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.StatusRequest</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:GetStatus</root-type-qname>
<qname-scope>element</qname-scope>
@@ -211,21 +211,21 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
- <java-type>org.jboss.ws.eventing.element.StatusRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.StatusRequest</java-type>
<anonymous-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:>GetStatus</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
- <java-type>org.jboss.ws.eventing.element.StatusResponse</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.StatusResponse</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:GetStatusResponse</root-type-qname>
<qname-scope>element</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
- <java-type>org.jboss.ws.eventing.element.StatusResponse</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.StatusResponse</java-type>
<anonymous-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:>GetStatusResponse</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
@@ -236,7 +236,7 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.eventing.element.UnsubscribeRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.UnsubscribeRequest</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:Unsubscribe</root-type-qname>
<qname-scope>element</qname-scope>
@@ -247,14 +247,14 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.eventing.element.UnsubscribeRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.UnsubscribeRequest</java-type>
<anonymous-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:>Unsubscribe</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
</java-xml-type-mapping>
<service-interface-mapping>
-
<service-interface>org.jboss.ws.eventing.EventingService</service-interface>
+
<service-interface>org.jboss.ws.extensions.eventing.EventingService</service-interface>
<wsdl-service-name
xmlns:serviceNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
serviceNS:EventingService</wsdl-service-name>
<port-mapping>
@@ -268,7 +268,7 @@
</service-interface-mapping>
<service-endpoint-interface-mapping>
-
<service-endpoint-interface>org.jboss.ws.eventing.EventSourceEndpoint</service-endpoint-interface>
+
<service-endpoint-interface>org.jboss.ws.extensions.eventing.EventSourceEndpoint</service-endpoint-interface>
<wsdl-port-type
xmlns:portTypeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing&quo...
portTypeNS:EventSource</wsdl-port-type>
<wsdl-binding
xmlns:bindingNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
@@ -278,7 +278,7 @@
<wsdl-operation>SubscribeOp</wsdl-operation>
<method-param-parts-mapping>
<param-position>0</param-position>
-
<param-type>org.jboss.ws.eventing.element.SubscribeRequest</param-type>
+
<param-type>org.jboss.ws.extensions.eventing.element.SubscribeRequest</param-type>
<wsdl-message-mapping>
<wsdl-message
xmlns:wsdlMsgNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
wsdlMsgNS:SubscribeMsg</wsdl-message>
@@ -287,7 +287,7 @@
</wsdl-message-mapping>
</method-param-parts-mapping>
<wsdl-return-value-mapping>
-
<method-return-value>org.jboss.ws.eventing.element.SubscribeResponse</method-return-value>
+
<method-return-value>org.jboss.ws.extensions.eventing.element.SubscribeResponse</method-return-value>
<wsdl-message
xmlns:wsdlMsgNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
wsdlMsgNS:SubscribeResponseMsg</wsdl-message>
<wsdl-message-part-name>body</wsdl-message-part-name>
@@ -298,7 +298,7 @@
<java-method-name>subscriptionEnd</java-method-name>
<wsdl-operation>SubscriptionEnd</wsdl-operation>
<wsdl-return-value-mapping>
-
<method-return-value>org.jboss.ws.eventing.element.SubscriptionEndRequest</method-return-value>
+
<method-return-value>org.jboss.ws.extensions.eventing.element.SubscriptionEndRequest</method-return-value>
<wsdl-message
xmlns:wsdlMsgNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
wsdlMsgNS:SubscriptionEnd</wsdl-message>
<wsdl-message-part-name>body</wsdl-message-part-name>
@@ -308,7 +308,7 @@
</service-endpoint-interface-mapping>
<service-endpoint-interface-mapping>
-
<service-endpoint-interface>org.jboss.ws.eventing.SubscriptionManagerEndpoint</service-endpoint-interface>
+
<service-endpoint-interface>org.jboss.ws.extensions.eventing.SubscriptionManagerEndpoint</service-endpoint-interface>
<wsdl-port-type
xmlns:portTypeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing&quo...
portTypeNS:SubscriptionManager</wsdl-port-type>
@@ -320,7 +320,7 @@
<wsdl-operation>GetStatusOp</wsdl-operation>
<method-param-parts-mapping>
<param-position>0</param-position>
-
<param-type>org.jboss.ws.eventing.element.StatusRequest</param-type>
+
<param-type>org.jboss.ws.extensions.eventing.element.StatusRequest</param-type>
<wsdl-message-mapping>
<wsdl-message
xmlns:wsdlMsgNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
wsdlMsgNS:GetStatusMsg</wsdl-message>
@@ -329,7 +329,7 @@
</wsdl-message-mapping>
</method-param-parts-mapping>
<wsdl-return-value-mapping>
-
<method-return-value>org.jboss.ws.eventing.element.StatusResponse</method-return-value>
+
<method-return-value>org.jboss.ws.extensions.eventing.element.StatusResponse</method-return-value>
<wsdl-message
xmlns:wsdlMsgNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
wsdlMsgNS:GetStatusResponseMsg</wsdl-message>
<wsdl-message-part-name>body</wsdl-message-part-name>
@@ -341,7 +341,7 @@
<wsdl-operation>RenewOp</wsdl-operation>
<method-param-parts-mapping>
<param-position>0</param-position>
-
<param-type>org.jboss.ws.eventing.element.RenewRequest</param-type>
+
<param-type>org.jboss.ws.extensions.eventing.element.RenewRequest</param-type>
<wsdl-message-mapping>
<wsdl-message
xmlns:wsdlMsgNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
wsdlMsgNS:RenewMsg</wsdl-message>
@@ -350,7 +350,7 @@
</wsdl-message-mapping>
</method-param-parts-mapping>
<wsdl-return-value-mapping>
-
<method-return-value>org.jboss.ws.eventing.element.RenewResponse</method-return-value>
+
<method-return-value>org.jboss.ws.extensions.eventing.element.RenewResponse</method-return-value>
<wsdl-message
xmlns:wsdlMsgNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
wsdlMsgNS:RenewResponseMsg</wsdl-message>
<wsdl-message-part-name>body</wsdl-message-part-name>
@@ -362,7 +362,7 @@
<wsdl-operation>UnsubscribeOp</wsdl-operation>
<method-param-parts-mapping>
<param-position>0</param-position>
-
<param-type>org.jboss.ws.eventing.element.UnsubscribeRequest</param-type>
+
<param-type>org.jboss.ws.extensions.eventing.element.UnsubscribeRequest</param-type>
<wsdl-message-mapping>
<wsdl-message
xmlns:wsdlMsgNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
wsdlMsgNS:UnsubscribeMsg</wsdl-message>
Modified:
branches/jbossws-1.0/src/test/resources/jaxrpc/samples/wseventing/WEB-INF/web.xml
===================================================================
---
branches/jbossws-1.0/src/test/resources/jaxrpc/samples/wseventing/WEB-INF/web.xml 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/resources/jaxrpc/samples/wseventing/WEB-INF/web.xml 2006-12-07
13:30:48 UTC (rev 1606)
@@ -6,11 +6,11 @@
<servlet>
<servlet-name>EventSourceServlet</servlet-name>
-
<servlet-class>org.jboss.ws.eventing.EventSourceEndpointImpl</servlet-class>
+
<servlet-class>org.jboss.ws.extensions.eventing.EventSourceEndpointImpl</servlet-class>
</servlet>
<servlet>
<servlet-name>SubscriptionManagerServlet</servlet-name>
-
<servlet-class>org.jboss.ws.eventing.SubscriptionManagerEndpointImpl</servlet-class>
+
<servlet-class>org.jboss.ws.extensions.eventing.SubscriptionManagerEndpointImpl</servlet-class>
</servlet>
<servlet-mapping>
Modified:
branches/jbossws-1.0/src/test/resources/jaxrpc/samples/wseventing/WEB-INF/webservices.xml
===================================================================
---
branches/jbossws-1.0/src/test/resources/jaxrpc/samples/wseventing/WEB-INF/webservices.xml 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/resources/jaxrpc/samples/wseventing/WEB-INF/webservices.xml 2006-12-07
13:30:48 UTC (rev 1606)
@@ -15,14 +15,14 @@
<port-component>
<port-component-name>SubscriptionManagerPort</port-component-name>
<wsdl-port>wsdl:SubscriptionManagerPort</wsdl-port>
-
<service-endpoint-interface>org.jboss.ws.eventing.SubscriptionManagerEndpoint</service-endpoint-interface>
+
<service-endpoint-interface>org.jboss.ws.extensions.eventing.SubscriptionManagerEndpoint</service-endpoint-interface>
<service-impl-bean>
<servlet-link>SubscriptionManagerServlet</servlet-link>
</service-impl-bean>
<handler>
<handler-name>WSAddressingHandler</handler-name>
-
<handler-class>org.jboss.ws.addressing.jaxrpc.WSAddressingServerHandler</handler-class>
+
<handler-class>org.jboss.ws.extensions.addressing.jaxrpc.WSAddressingServerHandler</handler-class>
</handler>
</port-component>
@@ -30,14 +30,14 @@
<port-component>
<port-component-name>EventSourcePort</port-component-name>
<wsdl-port>wsdl:EventSourcePort</wsdl-port>
-
<service-endpoint-interface>org.jboss.ws.eventing.EventSourceEndpoint</service-endpoint-interface>
+
<service-endpoint-interface>org.jboss.ws.extensions.eventing.EventSourceEndpoint</service-endpoint-interface>
<service-impl-bean>
<servlet-link>EventSourceServlet</servlet-link>
</service-impl-bean>
<handler>
<handler-name>WSAddressingHandler</handler-name>
-
<handler-class>org.jboss.ws.addressing.jaxrpc.WSAddressingServerHandler</handler-class>
+
<handler-class>org.jboss.ws.extensions.addressing.jaxrpc.WSAddressingServerHandler</handler-class>
</handler>
</port-component>
Modified:
branches/jbossws-1.0/src/test/resources/jaxrpc/wseventing/META-INF/application-client.xml
===================================================================
---
branches/jbossws-1.0/src/test/resources/jaxrpc/wseventing/META-INF/application-client.xml 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/resources/jaxrpc/wseventing/META-INF/application-client.xml 2006-12-07
13:30:48 UTC (rev 1606)
@@ -8,21 +8,21 @@
<service-ref>
<service-ref-name>service/EventingService</service-ref-name>
-
<service-interface>org.jboss.ws.eventing.EventingService</service-interface>
+
<service-interface>org.jboss.ws.extensions.eventing.EventingService</service-interface>
<wsdl-file>META-INF/wsdl/wind.wsdl</wsdl-file>
<jaxrpc-mapping-file>META-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
<port-component-ref>
-
<service-endpoint-interface>org.jboss.ws.eventing.EventSourceEndpoint</service-endpoint-interface>
+
<service-endpoint-interface>org.jboss.ws.extensions.eventing.EventSourceEndpoint</service-endpoint-interface>
</port-component-ref>
<port-component-ref>
-
<service-endpoint-interface>org.jboss.ws.eventing.SubscriptionManagerEndpoint</service-endpoint-interface>
+
<service-endpoint-interface>org.jboss.ws.extensions.eventing.SubscriptionManagerEndpoint</service-endpoint-interface>
</port-component-ref>
<handler>
<handler-name>SOAPOutboundHandler</handler-name>
-
<handler-class>org.jboss.ws.addressing.jaxrpc.WSAddressingClientHandler</handler-class>
+
<handler-class>org.jboss.ws.extensions.addressing.jaxrpc.WSAddressingClientHandler</handler-class>
</handler>
</service-ref>
Modified:
branches/jbossws-1.0/src/test/resources/jaxrpc/wseventing/WEB-INF/jaxrpc-mapping.xml
===================================================================
---
branches/jbossws-1.0/src/test/resources/jaxrpc/wseventing/WEB-INF/jaxrpc-mapping.xml 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/resources/jaxrpc/wseventing/WEB-INF/jaxrpc-mapping.xml 2006-12-07
13:30:48 UTC (rev 1606)
@@ -8,14 +8,14 @@
</package-mapping>
<java-xml-type-mapping>
- <java-type>org.jboss.ws.eventing.element.SubscribeRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.SubscribeRequest</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:Subscribe</root-type-qname>
<qname-scope>element</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
- <java-type>org.jboss.ws.eventing.element.SubscribeRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.SubscribeRequest</java-type>
<anonymous-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:>Subscribe</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
@@ -42,7 +42,7 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
- <java-type>org.jboss.ws.eventing.element.FilterType</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.FilterType</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:FilterType</root-type-qname>
<qname-scope>complexType</qname-scope>
@@ -57,7 +57,7 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
- <java-type>org.jboss.ws.eventing.element.DeliveryType</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.DeliveryType</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:DeliveryType</root-type-qname>
<qname-scope>complexType</qname-scope>
@@ -76,14 +76,14 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.eventing.element.SubscriptionEndRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.SubscriptionEndRequest</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:SubscriptionEnd</root-type-qname>
<qname-scope>element</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.eventing.element.SubscriptionEndRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.SubscriptionEndRequest</java-type>
<anonymous-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:>SubscriptionEnd</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
@@ -102,14 +102,14 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
- <java-type>org.jboss.ws.eventing.element.SubscribeResponse</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.SubscribeResponse</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:SubscribeResponse</root-type-qname>
<qname-scope>element</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
- <java-type>org.jboss.ws.eventing.element.SubscribeResponse</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.SubscribeResponse</java-type>
<anonymous-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:>SubscribeResponse</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
@@ -124,13 +124,13 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
- <java-type>org.jboss.ws.eventing.element.EndpointReference</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.EndpointReference</java-type>
<root-type-qname
xmlns:typeNS="http://www.w3.org/2005/08/addressing">typeNS:E...
<qname-scope>element</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
- <java-type>org.jboss.ws.eventing.element.EndpointReference</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.EndpointReference</java-type>
<root-type-qname
xmlns:typeNS="http://www.w3.org/2005/08/addressing">
typeNS:EndpointReferenceType</root-type-qname>
<qname-scope>complexType</qname-scope>
@@ -149,13 +149,13 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
- <java-type>org.jboss.ws.eventing.element.MetaData</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.MetaData</java-type>
<root-type-qname
xmlns:typeNS="http://www.w3.org/2005/08/addressing">typeNS:M...
<qname-scope>element</qname-scope>
</java-xml-type-mapping>
<!--java-xml-type-mapping>
- <java-type>org.jboss.ws.eventing.element.MetaData</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.MetaData</java-type>
<root-type-qname
xmlns:typeNS="http://www.w3.org/2005/08/addressing">typeNS:M...
<qname-scope>complexType</qname-scope>
<variable-mapping>
@@ -165,13 +165,13 @@
</java-xml-type-mapping-->
<java-xml-type-mapping>
- <java-type>org.jboss.ws.eventing.element.RenewRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.RenewRequest</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"&g...
<qname-scope>element</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
- <java-type>org.jboss.ws.eventing.element.RenewRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.RenewRequest</java-type>
<anonymous-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:>Renew</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
@@ -182,14 +182,14 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
- <java-type>org.jboss.ws.eventing.element.RenewResponse</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.RenewResponse</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:RenewResponse</root-type-qname>
<qname-scope>element</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
- <java-type>org.jboss.ws.eventing.element.RenewResponse</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.RenewResponse</java-type>
<anonymous-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:>RenewResponse</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
@@ -200,7 +200,7 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
- <java-type>org.jboss.ws.eventing.element.StatusRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.StatusRequest</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:GetStatus</root-type-qname>
<qname-scope>element</qname-scope>
@@ -211,21 +211,21 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
- <java-type>org.jboss.ws.eventing.element.StatusRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.StatusRequest</java-type>
<anonymous-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:>GetStatus</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
- <java-type>org.jboss.ws.eventing.element.StatusResponse</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.StatusResponse</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:GetStatusResponse</root-type-qname>
<qname-scope>element</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
- <java-type>org.jboss.ws.eventing.element.StatusResponse</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.StatusResponse</java-type>
<anonymous-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:>GetStatusResponse</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
@@ -236,7 +236,7 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.eventing.element.UnsubscribeRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.UnsubscribeRequest</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:Unsubscribe</root-type-qname>
<qname-scope>element</qname-scope>
@@ -247,14 +247,14 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.eventing.element.UnsubscribeRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.element.UnsubscribeRequest</java-type>
<anonymous-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:>Unsubscribe</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
</java-xml-type-mapping>
<service-interface-mapping>
-
<service-interface>org.jboss.ws.eventing.EventingService</service-interface>
+
<service-interface>org.jboss.ws.extensions.eventing.EventingService</service-interface>
<wsdl-service-name
xmlns:serviceNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
serviceNS:EventingService</wsdl-service-name>
<port-mapping>
@@ -268,7 +268,7 @@
</service-interface-mapping>
<service-endpoint-interface-mapping>
-
<service-endpoint-interface>org.jboss.ws.eventing.EventSourceEndpoint</service-endpoint-interface>
+
<service-endpoint-interface>org.jboss.ws.extensions.eventing.EventSourceEndpoint</service-endpoint-interface>
<wsdl-port-type
xmlns:portTypeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing&quo...
portTypeNS:EventSource</wsdl-port-type>
<wsdl-binding
xmlns:bindingNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
@@ -278,7 +278,7 @@
<wsdl-operation>SubscribeOp</wsdl-operation>
<method-param-parts-mapping>
<param-position>0</param-position>
-
<param-type>org.jboss.ws.eventing.element.SubscribeRequest</param-type>
+
<param-type>org.jboss.ws.extensions.eventing.element.SubscribeRequest</param-type>
<wsdl-message-mapping>
<wsdl-message
xmlns:wsdlMsgNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
wsdlMsgNS:SubscribeMsg</wsdl-message>
@@ -287,7 +287,7 @@
</wsdl-message-mapping>
</method-param-parts-mapping>
<wsdl-return-value-mapping>
-
<method-return-value>org.jboss.ws.eventing.element.SubscribeResponse</method-return-value>
+
<method-return-value>org.jboss.ws.extensions.eventing.element.SubscribeResponse</method-return-value>
<wsdl-message
xmlns:wsdlMsgNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
wsdlMsgNS:SubscribeResponseMsg</wsdl-message>
<wsdl-message-part-name>body</wsdl-message-part-name>
@@ -298,7 +298,7 @@
<java-method-name>subscriptionEnd</java-method-name>
<wsdl-operation>SubscriptionEnd</wsdl-operation>
<wsdl-return-value-mapping>
-
<method-return-value>org.jboss.ws.eventing.element.SubscriptionEndRequest</method-return-value>
+
<method-return-value>org.jboss.ws.extensions.eventing.element.SubscriptionEndRequest</method-return-value>
<wsdl-message
xmlns:wsdlMsgNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
wsdlMsgNS:SubscriptionEnd</wsdl-message>
<wsdl-message-part-name>body</wsdl-message-part-name>
@@ -308,7 +308,7 @@
</service-endpoint-interface-mapping>
<service-endpoint-interface-mapping>
-
<service-endpoint-interface>org.jboss.ws.eventing.SubscriptionManagerEndpoint</service-endpoint-interface>
+
<service-endpoint-interface>org.jboss.ws.extensions.eventing.SubscriptionManagerEndpoint</service-endpoint-interface>
<wsdl-port-type
xmlns:portTypeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing&quo...
portTypeNS:SubscriptionManager</wsdl-port-type>
@@ -320,7 +320,7 @@
<wsdl-operation>GetStatusOp</wsdl-operation>
<method-param-parts-mapping>
<param-position>0</param-position>
-
<param-type>org.jboss.ws.eventing.element.StatusRequest</param-type>
+
<param-type>org.jboss.ws.extensions.eventing.element.StatusRequest</param-type>
<wsdl-message-mapping>
<wsdl-message
xmlns:wsdlMsgNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
wsdlMsgNS:GetStatusMsg</wsdl-message>
@@ -329,7 +329,7 @@
</wsdl-message-mapping>
</method-param-parts-mapping>
<wsdl-return-value-mapping>
-
<method-return-value>org.jboss.ws.eventing.element.StatusResponse</method-return-value>
+
<method-return-value>org.jboss.ws.extensions.eventing.element.StatusResponse</method-return-value>
<wsdl-message
xmlns:wsdlMsgNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
wsdlMsgNS:GetStatusResponseMsg</wsdl-message>
<wsdl-message-part-name>body</wsdl-message-part-name>
@@ -341,7 +341,7 @@
<wsdl-operation>RenewOp</wsdl-operation>
<method-param-parts-mapping>
<param-position>0</param-position>
-
<param-type>org.jboss.ws.eventing.element.RenewRequest</param-type>
+
<param-type>org.jboss.ws.extensions.eventing.element.RenewRequest</param-type>
<wsdl-message-mapping>
<wsdl-message
xmlns:wsdlMsgNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
wsdlMsgNS:RenewMsg</wsdl-message>
@@ -350,7 +350,7 @@
</wsdl-message-mapping>
</method-param-parts-mapping>
<wsdl-return-value-mapping>
-
<method-return-value>org.jboss.ws.eventing.element.RenewResponse</method-return-value>
+
<method-return-value>org.jboss.ws.extensions.eventing.element.RenewResponse</method-return-value>
<wsdl-message
xmlns:wsdlMsgNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
wsdlMsgNS:RenewResponseMsg</wsdl-message>
<wsdl-message-part-name>body</wsdl-message-part-name>
@@ -362,7 +362,7 @@
<wsdl-operation>UnsubscribeOp</wsdl-operation>
<method-param-parts-mapping>
<param-position>0</param-position>
-
<param-type>org.jboss.ws.eventing.element.UnsubscribeRequest</param-type>
+
<param-type>org.jboss.ws.extensions.eventing.element.UnsubscribeRequest</param-type>
<wsdl-message-mapping>
<wsdl-message
xmlns:wsdlMsgNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
wsdlMsgNS:UnsubscribeMsg</wsdl-message>
Modified: branches/jbossws-1.0/src/test/resources/jaxrpc/wseventing/WEB-INF/web.xml
===================================================================
--- branches/jbossws-1.0/src/test/resources/jaxrpc/wseventing/WEB-INF/web.xml 2006-12-07
12:39:20 UTC (rev 1605)
+++ branches/jbossws-1.0/src/test/resources/jaxrpc/wseventing/WEB-INF/web.xml 2006-12-07
13:30:48 UTC (rev 1606)
@@ -6,7 +6,7 @@
<display-name>Eventing Service App</display-name>
<servlet>
<servlet-name>EventSourceServlet</servlet-name>
-
<servlet-class>org.jboss.ws.eventing.EventSourceEndpointImpl</servlet-class>
+
<servlet-class>org.jboss.ws.extensions.eventing.EventSourceEndpointImpl</servlet-class>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
@@ -16,7 +16,7 @@
<servlet>
<servlet-name>SubscriptionManagerServlet</servlet-name>
-
<servlet-class>org.jboss.ws.eventing.SubscriptionManagerEndpointImpl</servlet-class>
+
<servlet-class>org.jboss.ws.extensions.eventing.SubscriptionManagerEndpointImpl</servlet-class>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
Modified:
branches/jbossws-1.0/src/test/resources/jaxrpc/wseventing/WEB-INF/webservices.xml
===================================================================
---
branches/jbossws-1.0/src/test/resources/jaxrpc/wseventing/WEB-INF/webservices.xml 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/resources/jaxrpc/wseventing/WEB-INF/webservices.xml 2006-12-07
13:30:48 UTC (rev 1606)
@@ -15,14 +15,14 @@
<port-component>
<port-component-name>SubscriptionManagerPort</port-component-name>
<wsdl-port>wsdl:SubscriptionManagerPort</wsdl-port>
-
<service-endpoint-interface>org.jboss.ws.eventing.SubscriptionManagerEndpoint</service-endpoint-interface>
+
<service-endpoint-interface>org.jboss.ws.extensions.eventing.SubscriptionManagerEndpoint</service-endpoint-interface>
<service-impl-bean>
<servlet-link>SubscriptionManagerServlet</servlet-link>
</service-impl-bean>
<handler>
-
<handler-name>org.jboss.ws.addressing.jaxrpc.WSAddressingServerHandler</handler-name>
-
<handler-class>org.jboss.ws.addressing.jaxrpc.WSAddressingServerHandler</handler-class>
+
<handler-name>org.jboss.ws.extensions.addressing.jaxrpc.WSAddressingServerHandler</handler-name>
+
<handler-class>org.jboss.ws.extensions.addressing.jaxrpc.WSAddressingServerHandler</handler-class>
</handler>
</port-component>
@@ -30,13 +30,13 @@
<port-component>
<port-component-name>EventSourcePort</port-component-name>
<wsdl-port>wsdl:EventSourcePort</wsdl-port>
-
<service-endpoint-interface>org.jboss.ws.eventing.EventSourceEndpoint</service-endpoint-interface>
+
<service-endpoint-interface>org.jboss.ws.extensions.eventing.EventSourceEndpoint</service-endpoint-interface>
<service-impl-bean>
<servlet-link>EventSourceServlet</servlet-link>
</service-impl-bean>
<handler>
-
<handler-name>org.jboss.ws.addressing.jaxrpc.WSAddressingServerHandler</handler-name>
-
<handler-class>org.jboss.ws.addressing.jaxrpc.WSAddressingServerHandler</handler-class>
+
<handler-name>org.jboss.ws.extensions.addressing.jaxrpc.WSAddressingServerHandler</handler-name>
+
<handler-class>org.jboss.ws.extensions.addressing.jaxrpc.WSAddressingServerHandler</handler-class>
</handler>
</port-component>
Modified:
branches/jbossws-1.0/src/test/resources/jaxws/samples/jsr181ejb/config/ServerHandlers.xml
===================================================================
---
branches/jbossws-1.0/src/test/resources/jaxws/samples/jsr181ejb/config/ServerHandlers.xml 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/resources/jaxws/samples/jsr181ejb/config/ServerHandlers.xml 2006-12-07
13:30:48 UTC (rev 1606)
@@ -5,7 +5,7 @@
<handler-chain-name>SecureHandlerChain</handler-chain-name>
<handler>
<handler-name>WSSecurityHandlerInbound</handler-name>
-
<handler-class>org.jboss.ws.wsse.WSSecurityHandlerInbound</handler-class>
+
<handler-class>org.jboss.ws.extensions.security.WSSecurityHandlerInbound</handler-class>
</handler>
</handler-chain>
</handler-config>
Modified:
branches/jbossws-1.0/src/test/resources/jaxws/wsaddressing/action/META-INF/jbossws-client-config.xml
===================================================================
---
branches/jbossws-1.0/src/test/resources/jaxws/wsaddressing/action/META-INF/jbossws-client-config.xml 2006-12-07
12:39:20 UTC (rev 1605)
+++
branches/jbossws-1.0/src/test/resources/jaxws/wsaddressing/action/META-INF/jbossws-client-config.xml 2006-12-07
13:30:48 UTC (rev 1606)
@@ -13,7 +13,7 @@
<handler-chain-name>PostHandlerChain</handler-chain-name>
<handler>
<j2ee:handler-name>SOAPClientHandler</j2ee:handler-name>
-
<j2ee:handler-class>org.jboss.ws.addressing.jaxrpc.WSAddressingClientHandler</j2ee:handler-class>
+
<j2ee:handler-class>org.jboss.ws.extensions.addressing.jaxrpc.WSAddressingClientHandler</j2ee:handler-class>
</handler>
</post-handler-chain>
</client-config>