Author: hei...@jb... Date: 2006-06-29 08:30:42 -0400 (Thu, 29 Jun 2006) New Revision: 514 Added: branches/jbossws-1.0/src/main/java/org/jboss/ws/jaxb/JBossXBSupport.java branches/jbossws-1.0/src/test/java/org/jboss/test/ws/xop/XOPTypeDefTestCase.java branches/jbossws-1.0/src/test/java/org/jboss/test/ws/xop/doclit/InlineHandler.java branches/jbossws-1.0/src/test/resources/benchmark/jmeter/csvdata.txt branches/jbossws-1.0/src/test/resources/xop/circular.xsd branches/jbossws-1.0/src/test/resources/xop/schema.xsd Log: XOP for doc/lit Added: branches/jbossws-1.0/src/main/java/org/jboss/ws/jaxb/JBossXBSupport.java =================================================================== --- branches/jbossws-1.0/src/main/java/org/jboss/ws/jaxb/JBossXBSupport.java 2006-06-29 09:16:57 UTC (rev 513) +++ branches/jbossws-1.0/src/main/java/org/jboss/ws/jaxb/JBossXBSupport.java 2006-06-29 12:30:42 UTC (rev 514) @@ -0,0 +1,67 @@ +package org.jboss.ws.jaxb; + +import org.jboss.xb.binding.sunday.unmarshalling.SchemaBinding; +import org.jboss.ws.soap.SOAPMessageContextImpl; +import org.jboss.ws.soap.MessageContextAssociation; +import org.jboss.ws.metadata.OperationMetaData; +import org.jboss.ws.metadata.EndpointMetaData; +import org.jboss.ws.metadata.ServiceMetaData; +import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping; +import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel; + +import javax.xml.namespace.QName; +import java.util.Map; + +/** + * @author Heiko Braun <hei...@jb...> + * @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 JAXBConstants#JAXB_ROOT_QNAME + * @see JAXBConstants#JAXB_TYPE_QNAME + */ + public static SchemaBinding getOrCreateSchemaBinding(Map properties) + { + SchemaBinding schemaBinding = null; + SchemaBindingBuilder bindingBuilder = new SchemaBindingBuilder(); + + QName xmlName = (QName)properties.get(JAXBConstants.JAXB_ROOT_QNAME); + QName xmlType = (QName)properties.get(JAXBConstants.JAXB_TYPE_QNAME); + + // Get the eagerly initialized SchameBinding from the ServiceMetaData + SOAPMessageContextImpl 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(JAXBConstants.JAXB_XS_MODEL); + JavaWsdlMapping wsdlMapping = (JavaWsdlMapping)properties.get(JAXBConstants.JAXB_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; + } +} Property changes on: branches/jbossws-1.0/src/main/java/org/jboss/ws/jaxb/JBossXBSupport.java ___________________________________________________________________ Name: svn:keywords + Id Revision Name: svn:eol-style + LF Added: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/xop/XOPTypeDefTestCase.java =================================================================== --- branches/jbossws-1.0/src/test/java/org/jboss/test/ws/xop/XOPTypeDefTestCase.java 2006-06-29 09:16:57 UTC (rev 513) +++ branches/jbossws-1.0/src/test/java/org/jboss/test/ws/xop/XOPTypeDefTestCase.java 2006-06-29 12:30:42 UTC (rev 514) @@ -0,0 +1,90 @@ +package org.jboss.test.ws.xop; + +import junit.framework.TestCase; +import org.apache.xerces.xs.XSComplexTypeDefinition; +import org.apache.xerces.xs.XSModel; +import org.apache.xerces.xs.XSTypeDefinition; +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; + +import java.io.File; + +/** + * @author Heiko Braun <hei...@jb...> + * @since Jun 9, 2006 + */ +public class XOPTypeDefTestCase extends TestCase { + + public XOPTypeDefTestCase(String string) { + super(string); + } + + protected void setUp() throws Exception { + super.setUp(); + } + + public void testCircularReferences() throws Exception{ + SchemaUtils utils = SchemaUtils.getInstance(); + //String prefix = "C:/dev/prj/jbossws/branches/jbossws-1.0_SchemaBindingMarshaller/src/test/"; + File f = new File("resources/xop/circular.xsd"); + assertTrue("Unable to load schema file " + f.getAbsolutePath(), f.exists()); + + XSModel xsModel = utils.parseSchema(f.toURL()); + assertNotNull(xsModel); + WSSchemaUtils wsUtil = WSSchemaUtils.getInstance(new NamespaceRegistry(), "http://complex.jsr181.ws.test.jboss.org/jaws"); + JBossXSModel schemaModel= wsUtil.getJBossXSModel(xsModel); + + XSTypeDefinition xsType = schemaModel.getTypeDefinition("Customer", "http://complex.jsr181.ws.test.jboss.org/jaws"); + + assertNotNull("Root type def not found", xsType); + XOPScanner scanner = new XOPScanner(); + + if (xsType instanceof XSComplexTypeDefinition) + { + XSComplexTypeDefinition xsComplexType = (XSComplexTypeDefinition)xsType; + XSTypeDefinition resultType = scanner.findXOPTypeDef(xsComplexType); + + // it fails when getting a stack overflow ;) + } + } + + public void testXOPElementScan() throws Exception + { + SchemaUtils utils = SchemaUtils.getInstance(); + //String prefix = "C:/dev/prj/jbossws/branches/jbossws-1.0_SchemaBindingMarshaller/src/test/"; + File f = new File("resources/xop/schema.xsd"); + assertTrue("Unable to load schema file " + f.getAbsolutePath(), f.exists()); + + XSModel xsModel = utils.parseSchema(f.toURL()); + assertNotNull(xsModel); + WSSchemaUtils wsUtil = WSSchemaUtils.getInstance(new NamespaceRegistry(), "http://jboss.org/test/ws/xop/doclit"); + JBossXSModel schemaModel= wsUtil.getJBossXSModel(xsModel); + + XSTypeDefinition xsType = schemaModel.getTypeDefinition(">PingMsg", "http://jboss.org/test/ws/xop/doclit"); + + assertNotNull("Root type def not found", xsType); + XOPScanner scanner = new XOPScanner(); + + if (xsType instanceof XSComplexTypeDefinition) + { + XSComplexTypeDefinition xsComplexType = (XSComplexTypeDefinition)xsType; + XSTypeDefinition resultType = scanner.findXOPTypeDef(xsComplexType); + assertNotNull("Unable to find xop typedef in schema", resultType); + } + + scanner.reset(); + + xsType = schemaModel.getTypeDefinition(">PingMsgResponse", "http://jboss.org/test/ws/xop/doclit"); + assertNotNull("Root type def not found", xsType); + if (xsType instanceof XSComplexTypeDefinition) + { + XSComplexTypeDefinition xsComplexType = (XSComplexTypeDefinition)xsType; + XSTypeDefinition resultType = scanner.findXOPTypeDef(xsComplexType); + assertNotNull("Unable to find XOP typedef in schema", resultType); + } + + } +} Property changes on: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/xop/XOPTypeDefTestCase.java ___________________________________________________________________ Name: svn:keywords + Id Revision Name: svn:eol-style + LF Added: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/xop/doclit/InlineHandler.java =================================================================== --- branches/jbossws-1.0/src/test/java/org/jboss/test/ws/xop/doclit/InlineHandler.java 2006-06-29 09:16:57 UTC (rev 513) +++ branches/jbossws-1.0/src/test/java/org/jboss/test/ws/xop/doclit/InlineHandler.java 2006-06-29 12:30:42 UTC (rev 514) @@ -0,0 +1,56 @@ +package org.jboss.test.ws.xop.doclit; + +import org.jboss.logging.Logger; +import org.jboss.util.xml.DOMWriter; +import org.jboss.ws.soap.NameImpl; + +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.soap.SOAPMessage; +import javax.xml.soap.Name; +import javax.xml.soap.SOAPElement; +import javax.xml.soap.SOAPBody; + +/** + * @author Heiko Braun <hei...@jb...> + * @since Jun 16, 2006 + */ +public class InlineHandler extends GenericHandler { + + private static Logger log = Logger.getLogger(InlineHandler.class); + + public QName[] getHeaders() { + return new QName[0]; + } + + public boolean handleRequest(MessageContext messageContext) { + //dumpMessage(messageContext); + return true; + } + + public boolean handleResponse(MessageContext messageContext) { + dumpMessage(messageContext); + return true; + } + + private void dumpMessage(MessageContext messageContext) { + try + { + SOAPMessage soapMessage = ((SOAPMessageContext)messageContext).getMessage(); + SOAPBody soapBody = soapMessage.getSOAPBody(); + + String msg = DOMWriter.printNode(soapBody, true); + log.info(msg); + + SOAPElement response = (SOAPElement) soapBody.getChildElements().next(); + SOAPElement xopElement = (SOAPElement)response.getChildElements(new NameImpl("imagejpeg")).next(); + messageContext.setProperty("xop.expected", xopElement.getFirstChild().getNodeValue()); + } + catch (Exception e) + { + log.error(e); + } + } +} Property changes on: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/xop/doclit/InlineHandler.java ___________________________________________________________________ Name: svn:keywords + Id Revision Name: svn:eol-style + LF Added: branches/jbossws-1.0/src/test/resources/benchmark/jmeter/csvdata.txt =================================================================== --- branches/jbossws-1.0/src/test/resources/benchmark/jmeter/csvdata.txt 2006-06-29 09:16:57 UTC (rev 513) +++ branches/jbossws-1.0/src/test/resources/benchmark/jmeter/csvdata.txt 2006-06-29 12:30:42 UTC (rev 514) @@ -0,0 +1,1110 @@ +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +10,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +50,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +200,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +1500,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 +5000,1 \ No newline at end of file Property changes on: branches/jbossws-1.0/src/test/resources/benchmark/jmeter/csvdata.txt ___________________________________________________________________ Name: svn:keywords + Id Revision Name: svn:eol-style + LF Added: branches/jbossws-1.0/src/test/resources/xop/circular.xsd =================================================================== --- branches/jbossws-1.0/src/test/resources/xop/circular.xsd 2006-06-29 09:16:57 UTC (rev 513) +++ branches/jbossws-1.0/src/test/resources/xop/circular.xsd 2006-06-29 12:30:42 UTC (rev 514) @@ -0,0 +1,134 @@ +<schema elementFormDefault="qualified" targetNamespace="http://complex.jsr181.ws.test.jboss.org/jaws" xmlns="http://www.w3.org/2001/XMLSchema" + xmlns:ns2="http://extra.complex.jsr181.ws.test.jboss.org/jaws" + xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" + xmlns:tns="http://complex.jsr181.ws.test.jboss.org/jaws" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + + <import namespace="http://extra.complex.jsr181.ws.test.jboss.org/jaws"/> + + <complexType name="Address"> + <sequence> + <element name="city" nillable="true" type="string"/> + <element name="state" nillable="true" type="string"/> + <element name="street" nillable="true" type="string"/> + <element name="zip" nillable="true" type="string"/> + </sequence> + </complexType> + <complexType name="AlreadyRegisteredException"> + <complexContent> + <extension base="tns:RegistrationException"> + <sequence> + <element name="existingId" type="long"/> + </sequence> + </extension> + </complexContent> + </complexType> + <complexType name="BulkRegister"> + <sequence> + <element maxOccurs="unbounded" minOccurs="0" name="Customers" nillable="true" type="tns:Customer"/> + <element name="When" nillable="true" type="dateTime"/> + </sequence> + </complexType> + <complexType name="BulkRegisterResponse"> + <sequence> + <element maxOccurs="unbounded" minOccurs="0" name="RegisteredIDs" type="long"/> + </sequence> + </complexType> + <complexType name="Customer"> + <sequence> + <element name="address" nillable="true" type="tns:Address"/> + <element maxOccurs="unbounded" minOccurs="0" name="contactNumbers" nillable="true" type="tns:PhoneNumber"/> + <element name="id" type="long"/> + <element name="name" nillable="true" type="tns:Name"/> + <element maxOccurs="unbounded" minOccurs="0" name="referredCustomers" nillable="true" type="tns:Customer"/> + </sequence> + </complexType> + <complexType name="GetStatistics"> + <sequence> + <element name="Customer" nillable="true" type="tns:Customer"/> + </sequence> + </complexType> + <complexType name="GetStatisticsResponse"> + <sequence> + <element name="Statistics" nillable="true" type="Statistics"/> + </sequence> + </complexType> + + <complexType name="Statistics"> + <sequence> + <element name="activationTime" nillable="true" type="dateTime"/> + <element name="hits" type="long"/> + </sequence> + </complexType> + + + <complexType name="InvoiceCustomer"> + <complexContent> + <extension base="tns:Customer"> + <sequence> + <element name="cycleDay" type="int"/> + </sequence> + </extension> + </complexContent> + </complexType> + <complexType name="Name"> + <sequence> + <element name="firstName" nillable="true" type="string"/> + <element name="lastName" nillable="true" type="string"/> + <element name="middleName" nillable="true" type="string"/> + </sequence> + </complexType> + <complexType name="PhoneNumber"> + <sequence> + <element name="areaCode" nillable="true" type="string"/> + <element name="exchange" nillable="true" type="string"/> + <element name="line" nillable="true" type="string"/> + </sequence> + </complexType> + <complexType name="Register"> + <sequence> + <element name="Customer" nillable="true" type="tns:Customer"/> + <element name="When" nillable="true" type="dateTime"/> + </sequence> + </complexType> + <complexType name="RegisterForInvoice"> + <sequence> + <element name="InvoiceCustomer" nillable="true" type="tns:InvoiceCustomer"/> + </sequence> + </complexType> + <complexType name="RegisterForInvoiceResponse"> + <sequence> + <element name="done" type="boolean"/> + </sequence> + </complexType> + <complexType name="RegisterResponse"> + <sequence> + <element name="RegisteredID" type="long"/> + </sequence> + </complexType> + <complexType name="RegistrationException"> + <sequence> + <element name="message" nillable="true" type="string"/> + </sequence> + </complexType> + <complexType name="ValidationException"> + <complexContent> + <extension base="tns:RegistrationException"> + <sequence> + <element maxOccurs="unbounded" minOccurs="0" name="failiedCustomers" type="long"/> + </sequence> + </extension> + </complexContent> + </complexType> + <element name="AlreadyRegisteredException" type="tns:AlreadyRegisteredException"/> + <element name="BulkRegister" type="tns:BulkRegister"/> + <element name="BulkRegisterResponse" type="tns:BulkRegisterResponse"/> + <element name="GetStatistics" type="tns:GetStatistics"/> + <element name="GetStatisticsResponse" type="tns:GetStatisticsResponse"/> + <element name="Register" type="tns:Register"/> + <element name="RegisterForInvoice" type="tns:RegisterForInvoice"/> + <element name="RegisterForInvoiceResponse" type="tns:RegisterForInvoiceResponse"/> + <element name="RegisterResponse" type="tns:RegisterResponse"/> + <element name="RegistrationException" type="tns:RegistrationException"/> + <element name="ValidationException" type="tns:ValidationException"/> +</schema> Property changes on: branches/jbossws-1.0/src/test/resources/xop/circular.xsd ___________________________________________________________________ Name: svn:keywords + Id Revision Name: svn:eol-style + LF Added: branches/jbossws-1.0/src/test/resources/xop/schema.xsd =================================================================== --- branches/jbossws-1.0/src/test/resources/xop/schema.xsd 2006-06-29 09:16:57 UTC (rev 513) +++ branches/jbossws-1.0/src/test/resources/xop/schema.xsd 2006-06-29 12:30:42 UTC (rev 514) @@ -0,0 +1,33 @@ +<s:schema xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2001/XMLSchema" + targetNamespace="http://jboss.org/test/ws/xop/doclit" + xmlns:xmime="http://www.w3.org/2005/05/xmlmime" + xmlns:tns="http://jboss.org/test/ws/xop/doclit"> + + <s:import schemaLocation="http://www.w3.org/2005/05/xmlmime" namespace="http://www.w3.org/2005/05/xmlmime"/> + + <s:element name="PingMsg"> + <s:complexType> + <s:sequence> + <s:element name="message" minOccurs="0" maxOccurs="1" type="s:string" /> + <s:element name="imagejpeg" xmime:contentType="image/jpeg" type="tns:XOPBinary"/> + </s:sequence> + </s:complexType> + </s:element> + + <s:element name="PingMsgResponse"> + <s:complexType> + <s:sequence> + <s:element name="imagejpeg" xmime:contentType="image/jpeg" type="xmime:base64Binary"/> + </s:sequence> + </s:complexType> + </s:element> + + <s:complexType name="XOPBinary" > + <s:simpleContent> + <s:extension base="s:base64Binary" > + <s:attribute ref="xmime:contentType" use="optional"/> + </s:extension> + </s:simpleContent> + </s:complexType> + +</s:schema> \ No newline at end of file Property changes on: branches/jbossws-1.0/src/test/resources/xop/schema.xsd ___________________________________________________________________ Name: svn:keywords + Id Revision Name: svn:eol-style + LF |