Modified: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/WrappedInInterceptorTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/WrappedInInterceptorTest.java?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/WrappedInInterceptorTest.java (original)
+++ incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/WrappedInInterceptorTest.java Fri Aug 25 06:16:36 2006
@@ -1,59 +1,59 @@
-package org.apache.cxf.jaxb;
-
-import java.util.List;
-
-import javax.xml.stream.XMLInputFactory;
-import javax.xml.stream.XMLStreamReader;
-
-import org.apache.cxf.interceptor.WrappedInInterceptor;
-import org.apache.cxf.message.Message;
-import org.apache.cxf.service.model.BindingOperationInfo;
-
-public class WrappedInInterceptorTest extends TestBase {
-
- public void testInterceptorInbound() throws Exception {
- WrappedInInterceptor interceptor = new WrappedInInterceptor();
-
- message.setContent(XMLStreamReader.class, XMLInputFactory.newInstance()
- .createXMLStreamReader(getTestStream(getClass(), "resources/GreetMeDocLiteralReq.xml")));
-
- interceptor.handleMessage(message);
-
- assertNull(message.getContent(Exception.class));
- BindingOperationInfo op = (BindingOperationInfo)message.getExchange().get(BindingOperationInfo.class
- .getName());
- assertNotNull(op);
-
- List<?> objs = message.getContent(List.class);
- assertTrue(objs != null && objs.size() > 0);
- Object obj = objs.get(0);
- assertTrue(obj instanceof org.apache.hello_world_soap_http.types.GreetMe);
- org.apache.hello_world_soap_http.types.GreetMe gm
- = (org.apache.hello_world_soap_http.types.GreetMe)obj;
-
- assertEquals("TestSOAPInputPMessage", gm.getRequestType());
- }
-
- public void testInterceptorOutbound() throws Exception {
- WrappedInInterceptor interceptor = new WrappedInInterceptor();
-
- message.setContent(XMLStreamReader.class, XMLInputFactory.newInstance()
- .createXMLStreamReader(getTestStream(getClass(), "resources/GreetMeDocLiteralResp.xml")));
- message.put(Message.REQUESTOR_ROLE, Boolean.TRUE);
-
- interceptor.handleMessage(message);
- assertNull(message.getContent(Exception.class));
-
- List<?> objs = message.getContent(List.class);
- assertTrue(objs != null && objs.size() > 0);
-
- Object retValue = objs.get(0);
- assertNotNull(retValue);
-
- assertTrue(retValue instanceof org.apache.hello_world_soap_http.types.GreetMeResponse);
-
- org.apache.hello_world_soap_http.types.GreetMeResponse gm
- = (org.apache.hello_world_soap_http.types.GreetMeResponse)retValue;
- assertEquals("TestSOAPOutputPMessage", gm.getResponseType());
- }
-}
+package org.apache.cxf.jaxb;
+
+import java.util.List;
+
+import javax.xml.stream.XMLInputFactory;
+import javax.xml.stream.XMLStreamReader;
+
+import org.apache.cxf.interceptor.WrappedInInterceptor;
+import org.apache.cxf.message.Message;
+import org.apache.cxf.service.model.BindingOperationInfo;
+
+public class WrappedInInterceptorTest extends TestBase {
+
+ public void testInterceptorInbound() throws Exception {
+ WrappedInInterceptor interceptor = new WrappedInInterceptor();
+
+ message.setContent(XMLStreamReader.class, XMLInputFactory.newInstance()
+ .createXMLStreamReader(getTestStream(getClass(), "resources/GreetMeDocLiteralReq.xml")));
+
+ interceptor.handleMessage(message);
+
+ assertNull(message.getContent(Exception.class));
+ BindingOperationInfo op = (BindingOperationInfo)message.getExchange().get(BindingOperationInfo.class
+ .getName());
+ assertNotNull(op);
+
+ List<?> objs = message.getContent(List.class);
+ assertTrue(objs != null && objs.size() > 0);
+ Object obj = objs.get(0);
+ assertTrue(obj instanceof org.apache.hello_world_soap_http.types.GreetMe);
+ org.apache.hello_world_soap_http.types.GreetMe gm
+ = (org.apache.hello_world_soap_http.types.GreetMe)obj;
+
+ assertEquals("TestSOAPInputPMessage", gm.getRequestType());
+ }
+
+ public void testInterceptorOutbound() throws Exception {
+ WrappedInInterceptor interceptor = new WrappedInInterceptor();
+
+ message.setContent(XMLStreamReader.class, XMLInputFactory.newInstance()
+ .createXMLStreamReader(getTestStream(getClass(), "resources/GreetMeDocLiteralResp.xml")));
+ message.put(Message.REQUESTOR_ROLE, Boolean.TRUE);
+
+ interceptor.handleMessage(message);
+ assertNull(message.getContent(Exception.class));
+
+ List<?> objs = message.getContent(List.class);
+ assertTrue(objs != null && objs.size() > 0);
+
+ Object retValue = objs.get(0);
+ assertNotNull(retValue);
+
+ assertTrue(retValue instanceof org.apache.hello_world_soap_http.types.GreetMeResponse);
+
+ org.apache.hello_world_soap_http.types.GreetMeResponse gm
+ = (org.apache.hello_world_soap_http.types.GreetMeResponse)retValue;
+ assertEquals("TestSOAPOutputPMessage", gm.getResponseType());
+ }
+}
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/WrappedInInterceptorTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/WrappedInInterceptorTest.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Modified: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/io/XMLStreamDataReaderTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/io/XMLStreamDataReaderTest.java?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/io/XMLStreamDataReaderTest.java (original)
+++ incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/io/XMLStreamDataReaderTest.java Fri Aug 25 06:16:36 2006
@@ -1,132 +1,132 @@
-package org.apache.cxf.jaxb.io;
-
-import java.io.IOException;
-import java.io.InputStream;
-
-import javax.xml.bind.JAXBContext;
-import javax.xml.namespace.QName;
-import javax.xml.stream.XMLInputFactory;
-import javax.xml.stream.XMLStreamReader;
-
-import junit.framework.TestCase;
-
-import org.apache.cxf.databinding.DataReader;
-import org.apache.cxf.jaxb.JAXBDataReaderFactory;
-import org.apache.cxf.jaxb.JAXBEncoderDecoder;
-import org.apache.cxf.staxutils.StaxStreamFilter;
-import org.apache.hello_world_doc_lit_bare.PutLastTradedPricePortType;
-import org.apache.hello_world_doc_lit_bare.types.TradePriceData;
-import org.apache.hello_world_rpclit.GreeterRPCLit;
-import org.apache.hello_world_rpclit.types.MyComplexStruct;
-import org.apache.hello_world_soap_http.Greeter;
-import org.apache.hello_world_soap_http.types.GreetMe;
-import org.apache.hello_world_soap_http.types.GreetMeResponse;
-
-public class XMLStreamDataReaderTest extends TestCase {
-
- private XMLInputFactory factory;
- private XMLStreamReader reader;
- private InputStream is;
-
- public void setUp() throws Exception {
- factory = XMLInputFactory.newInstance();
- }
-
- public void tearDown() throws IOException {
- is.close();
- }
-
- public void testReadWrapper() throws Exception {
- JAXBDataReaderFactory rf = getTestReaderFactory(Greeter.class);
-
- reader = getTestReader("../resources/GreetMeDocLiteralReq.xml");
- assertNotNull(reader);
-
- DataReader<XMLStreamReader> dr = rf.createReader(XMLStreamReader.class);
- assertNotNull(dr);
- Object val = dr.read(reader);
- assertNotNull(val);
- assertTrue(val instanceof GreetMe);
- assertEquals("TestSOAPInputPMessage", ((GreetMe)val).getRequestType());
- }
-
- public void testReadWrapperReturn() throws Exception {
- JAXBDataReaderFactory rf = getTestReaderFactory(Greeter.class);
-
- reader = getTestReader("../resources/GreetMeDocLiteralResp.xml");
- assertNotNull(reader);
-
- DataReader<XMLStreamReader> dr = rf.createReader(XMLStreamReader.class);
- assertNotNull(dr);
-
- Object retValue = dr.read(reader);
-
- assertNotNull(retValue);
- assertTrue(retValue instanceof GreetMeResponse);
- assertEquals("TestSOAPOutputPMessage", ((GreetMeResponse)retValue).getResponseType());
- }
-
- public void testReadRPC() throws Exception {
- JAXBDataReaderFactory rf = getTestReaderFactory(GreeterRPCLit.class);
-
- QName[] tags = {new QName("http://apache.org/hello_world_rpclit", "sendReceiveData")};
-
- reader = getTestReader("../resources/greetMeRpcLitReq.xml");
- assertNotNull(reader);
-
- XMLStreamReader localReader = getTestFilteredReader(reader, tags);
-
- DataReader<XMLStreamReader> dr = rf.createReader(XMLStreamReader.class);
- assertNotNull(dr);
- Object val = dr.read(new QName("http://apache.org/hello_world_rpclit", "in"),
- localReader,
- MyComplexStruct.class);
- assertNotNull(val);
-
- assertTrue(val instanceof MyComplexStruct);
- assertEquals("this is element 1", ((MyComplexStruct)val).getElem1());
- assertEquals("this is element 2", ((MyComplexStruct)val).getElem2());
- assertEquals(42, ((MyComplexStruct)val).getElem3());
- }
-
-
- public void testReadBare() throws Exception {
- JAXBDataReaderFactory rf = getTestReaderFactory(PutLastTradedPricePortType.class);
-
- reader = getTestReader("../resources/sayHiDocLitBareReq.xml");
- assertNotNull(reader);
-
- DataReader<XMLStreamReader> dr = rf.createReader(XMLStreamReader.class);
- assertNotNull(dr);
- Object val = dr.read(new QName("http://apache.org/hello_world_doc_lit_bare/types", "inout"),
- reader,
- null);
-
- assertNotNull(val);
- assertTrue(val instanceof TradePriceData);
- assertEquals("CXF", ((TradePriceData)val).getTickerSymbol());
- assertEquals(1.0f, ((TradePriceData)val).getTickerPrice());
- }
-
- private JAXBDataReaderFactory getTestReaderFactory(Class clz) throws Exception {
- JAXBContext ctx = JAXBEncoderDecoder.createJAXBContextForClass(clz);
- JAXBDataReaderFactory readerFacotry = new JAXBDataReaderFactory();
- readerFacotry.setJAXBContext(ctx);
- return readerFacotry;
- }
-
- private XMLStreamReader getTestFilteredReader(XMLStreamReader r, QName[] q) throws Exception {
- StaxStreamFilter filter = new StaxStreamFilter(q);
- return factory.createFilteredReader(r, filter);
- }
-
- private XMLStreamReader getTestReader(String resource) throws Exception {
- is = getTestStream(resource);
- assertNotNull(is);
- return factory.createXMLStreamReader(is);
- }
-
- private InputStream getTestStream(String resource) {
- return getClass().getResourceAsStream(resource);
- }
-}
+package org.apache.cxf.jaxb.io;
+
+import java.io.IOException;
+import java.io.InputStream;
+
+import javax.xml.bind.JAXBContext;
+import javax.xml.namespace.QName;
+import javax.xml.stream.XMLInputFactory;
+import javax.xml.stream.XMLStreamReader;
+
+import junit.framework.TestCase;
+
+import org.apache.cxf.databinding.DataReader;
+import org.apache.cxf.jaxb.JAXBDataReaderFactory;
+import org.apache.cxf.jaxb.JAXBEncoderDecoder;
+import org.apache.cxf.staxutils.StaxStreamFilter;
+import org.apache.hello_world_doc_lit_bare.PutLastTradedPricePortType;
+import org.apache.hello_world_doc_lit_bare.types.TradePriceData;
+import org.apache.hello_world_rpclit.GreeterRPCLit;
+import org.apache.hello_world_rpclit.types.MyComplexStruct;
+import org.apache.hello_world_soap_http.Greeter;
+import org.apache.hello_world_soap_http.types.GreetMe;
+import org.apache.hello_world_soap_http.types.GreetMeResponse;
+
+public class XMLStreamDataReaderTest extends TestCase {
+
+ private XMLInputFactory factory;
+ private XMLStreamReader reader;
+ private InputStream is;
+
+ public void setUp() throws Exception {
+ factory = XMLInputFactory.newInstance();
+ }
+
+ public void tearDown() throws IOException {
+ is.close();
+ }
+
+ public void testReadWrapper() throws Exception {
+ JAXBDataReaderFactory rf = getTestReaderFactory(Greeter.class);
+
+ reader = getTestReader("../resources/GreetMeDocLiteralReq.xml");
+ assertNotNull(reader);
+
+ DataReader<XMLStreamReader> dr = rf.createReader(XMLStreamReader.class);
+ assertNotNull(dr);
+ Object val = dr.read(reader);
+ assertNotNull(val);
+ assertTrue(val instanceof GreetMe);
+ assertEquals("TestSOAPInputPMessage", ((GreetMe)val).getRequestType());
+ }
+
+ public void testReadWrapperReturn() throws Exception {
+ JAXBDataReaderFactory rf = getTestReaderFactory(Greeter.class);
+
+ reader = getTestReader("../resources/GreetMeDocLiteralResp.xml");
+ assertNotNull(reader);
+
+ DataReader<XMLStreamReader> dr = rf.createReader(XMLStreamReader.class);
+ assertNotNull(dr);
+
+ Object retValue = dr.read(reader);
+
+ assertNotNull(retValue);
+ assertTrue(retValue instanceof GreetMeResponse);
+ assertEquals("TestSOAPOutputPMessage", ((GreetMeResponse)retValue).getResponseType());
+ }
+
+ public void testReadRPC() throws Exception {
+ JAXBDataReaderFactory rf = getTestReaderFactory(GreeterRPCLit.class);
+
+ QName[] tags = {new QName("http://apache.org/hello_world_rpclit", "sendReceiveData")};
+
+ reader = getTestReader("../resources/greetMeRpcLitReq.xml");
+ assertNotNull(reader);
+
+ XMLStreamReader localReader = getTestFilteredReader(reader, tags);
+
+ DataReader<XMLStreamReader> dr = rf.createReader(XMLStreamReader.class);
+ assertNotNull(dr);
+ Object val = dr.read(new QName("http://apache.org/hello_world_rpclit", "in"),
+ localReader,
+ MyComplexStruct.class);
+ assertNotNull(val);
+
+ assertTrue(val instanceof MyComplexStruct);
+ assertEquals("this is element 1", ((MyComplexStruct)val).getElem1());
+ assertEquals("this is element 2", ((MyComplexStruct)val).getElem2());
+ assertEquals(42, ((MyComplexStruct)val).getElem3());
+ }
+
+
+ public void testReadBare() throws Exception {
+ JAXBDataReaderFactory rf = getTestReaderFactory(PutLastTradedPricePortType.class);
+
+ reader = getTestReader("../resources/sayHiDocLitBareReq.xml");
+ assertNotNull(reader);
+
+ DataReader<XMLStreamReader> dr = rf.createReader(XMLStreamReader.class);
+ assertNotNull(dr);
+ Object val = dr.read(new QName("http://apache.org/hello_world_doc_lit_bare/types", "inout"),
+ reader,
+ null);
+
+ assertNotNull(val);
+ assertTrue(val instanceof TradePriceData);
+ assertEquals("CXF", ((TradePriceData)val).getTickerSymbol());
+ assertEquals(1.0f, ((TradePriceData)val).getTickerPrice());
+ }
+
+ private JAXBDataReaderFactory getTestReaderFactory(Class clz) throws Exception {
+ JAXBContext ctx = JAXBEncoderDecoder.createJAXBContextForClass(clz);
+ JAXBDataReaderFactory readerFacotry = new JAXBDataReaderFactory();
+ readerFacotry.setJAXBContext(ctx);
+ return readerFacotry;
+ }
+
+ private XMLStreamReader getTestFilteredReader(XMLStreamReader r, QName[] q) throws Exception {
+ StaxStreamFilter filter = new StaxStreamFilter(q);
+ return factory.createFilteredReader(r, filter);
+ }
+
+ private XMLStreamReader getTestReader(String resource) throws Exception {
+ is = getTestStream(resource);
+ assertNotNull(is);
+ return factory.createXMLStreamReader(is);
+ }
+
+ private InputStream getTestStream(String resource) {
+ return getClass().getResourceAsStream(resource);
+ }
+}
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/io/XMLStreamDataReaderTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/io/XMLStreamDataReaderTest.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Modified: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/io/XMLStreamDataWriterTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/io/XMLStreamDataWriterTest.java?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/io/XMLStreamDataWriterTest.java (original)
+++ incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/io/XMLStreamDataWriterTest.java Fri Aug 25 06:16:36 2006
@@ -1,201 +1,201 @@
-package org.apache.cxf.jaxb.io;
-
-import java.io.ByteArrayInputStream;
-import java.io.ByteArrayOutputStream;
-
-import javax.xml.bind.JAXBContext;
-import javax.xml.namespace.QName;
-import javax.xml.stream.XMLInputFactory;
-import javax.xml.stream.XMLOutputFactory;
-import javax.xml.stream.XMLStreamReader;
-import javax.xml.stream.XMLStreamWriter;
-
-import junit.framework.TestCase;
-
-import org.apache.cxf.databinding.DataWriter;
-import org.apache.cxf.jaxb.JAXBDataWriterFactory;
-import org.apache.cxf.jaxb.JAXBEncoderDecoder;
-import org.apache.cxf.staxutils.DepthXMLStreamReader;
-import org.apache.cxf.staxutils.StaxUtils;
-import org.apache.hello_world_doc_lit_bare.PutLastTradedPricePortType;
-import org.apache.hello_world_doc_lit_bare.types.TradePriceData;
-import org.apache.hello_world_rpclit.GreeterRPCLit;
-import org.apache.hello_world_rpclit.types.MyComplexStruct;
-import org.apache.hello_world_soap_http.Greeter;
-import org.apache.hello_world_soap_http.types.GreetMe;
-import org.apache.hello_world_soap_http.types.GreetMeResponse;
-
-public class XMLStreamDataWriterTest extends TestCase {
-
- private ByteArrayOutputStream baos;
- private XMLStreamWriter streamWriter;
- private XMLInputFactory inFactory;
-
- public void setUp() throws Exception {
- baos = new ByteArrayOutputStream();
- XMLOutputFactory factory = XMLOutputFactory.newInstance();
- streamWriter = factory.createXMLStreamWriter(baos);
- assertNotNull(streamWriter);
- inFactory = XMLInputFactory.newInstance();
- }
-
- public void tearDown() throws Exception {
- baos.close();
- }
-
- public void testWriteRPCLit1() throws Exception {
- JAXBDataWriterFactory wf = getTestWriterFactory(GreeterRPCLit.class);
-
- DataWriter<XMLStreamWriter> dw = wf.createWriter(XMLStreamWriter.class);
- assertNotNull(dw);
-
- String val = new String("TESTOUTPUTMESSAGE");
- QName elName = new QName("http://apache.org/hello_world_rpclit/types",
- "in");
-
- dw.write(val, elName, streamWriter);
- streamWriter.flush();
-
- ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
- XMLStreamReader xr = inFactory.createXMLStreamReader(bais);
- DepthXMLStreamReader reader = new DepthXMLStreamReader(xr);
- StaxUtils.toNextElement(reader);
- assertEquals(new QName("http://apache.org/hello_world_rpclit/types", "in"),
- reader.getName());
-
- StaxUtils.nextEvent(reader);
- StaxUtils.toNextText(reader);
- assertEquals("TESTOUTPUTMESSAGE", reader.getText());
- }
-
- public void testWriteRPCLit2() throws Exception {
- JAXBDataWriterFactory wf = getTestWriterFactory(GreeterRPCLit.class);
-
- DataWriter<XMLStreamWriter> dw = wf.createWriter(XMLStreamWriter.class);
- assertNotNull(dw);
-
- MyComplexStruct val = new MyComplexStruct();
- val.setElem1("This is element 1");
- val.setElem2("This is element 2");
- val.setElem3(1);
-
- QName elName = new QName("http://apache.org/hello_world_rpclit/types",
- "in");
-
- dw.write(val, elName, streamWriter);
- streamWriter.flush();
-
- ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
- XMLStreamReader xr = inFactory.createXMLStreamReader(bais);
- DepthXMLStreamReader reader = new DepthXMLStreamReader(xr);
- StaxUtils.toNextElement(reader);
- assertEquals(new QName("http://apache.org/hello_world_rpclit/types", "in"),
- reader.getName());
-
- StaxUtils.nextEvent(reader);
- StaxUtils.toNextElement(reader);
- assertEquals(new QName("http://apache.org/hello_world_rpclit/types", "elem1"),
- reader.getName());
-
- StaxUtils.nextEvent(reader);
- StaxUtils.toNextText(reader);
- assertEquals("This is element 1", reader.getText());
- }
-
- public void testWriteBare() throws Exception {
- JAXBDataWriterFactory wf = getTestWriterFactory(PutLastTradedPricePortType.class);
-
- DataWriter<XMLStreamWriter> dw = wf.createWriter(XMLStreamWriter.class);
- assertNotNull(dw);
-
- TradePriceData val = new TradePriceData();
- val.setTickerSymbol("This is a symbol");
- val.setTickerPrice(1.0f);
-
- dw.write(val,
- new QName("http://apache.org/hello_world_doc_lit_bare/types", "inout"),
- streamWriter);
- streamWriter.flush();
-
- ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
- XMLStreamReader xr = inFactory.createXMLStreamReader(bais);
- DepthXMLStreamReader reader = new DepthXMLStreamReader(xr);
- StaxUtils.toNextElement(reader);
- assertEquals(new QName("http://apache.org/hello_world_doc_lit_bare/types", "inout"),
- reader.getName());
-
- StaxUtils.nextEvent(reader);
- StaxUtils.toNextElement(reader);
- assertEquals(new QName("http://apache.org/hello_world_doc_lit_bare/types", "tickerSymbol"),
- reader.getName());
-
- StaxUtils.nextEvent(reader);
- StaxUtils.toNextText(reader);
- assertEquals("This is a symbol", reader.getText());
- }
-
- public void testWriteWrapper() throws Exception {
- JAXBDataWriterFactory wf = getTestWriterFactory(Greeter.class);
-
- DataWriter<XMLStreamWriter> dw = wf.createWriter(XMLStreamWriter.class);
- assertNotNull(dw);
-
- GreetMe val = new GreetMe();
- val.setRequestType("Hello");
-
- dw.write(val, streamWriter);
- streamWriter.flush();
-
- ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
- XMLStreamReader xr = inFactory.createXMLStreamReader(bais);
- DepthXMLStreamReader reader = new DepthXMLStreamReader(xr);
- StaxUtils.toNextElement(reader);
- assertEquals(new QName("http://apache.org/hello_world_soap_http/types", "greetMe"),
- reader.getName());
-
- StaxUtils.nextEvent(reader);
- StaxUtils.toNextElement(reader);
- assertEquals(new QName("http://apache.org/hello_world_soap_http/types", "requestType"),
- reader.getName());
-
- StaxUtils.nextEvent(reader);
- StaxUtils.toNextText(reader);
- assertEquals("Hello", reader.getText());
- }
-
- public void testWriteWrapperReturn() throws Exception {
- JAXBDataWriterFactory wf = getTestWriterFactory(Greeter.class);
-
- DataWriter<XMLStreamWriter> dw = wf.createWriter(XMLStreamWriter.class);
- assertNotNull(dw);
-
- GreetMeResponse retVal = new GreetMeResponse();
- retVal.setResponseType("TESTOUTPUTMESSAGE");
-
- dw.write(retVal, streamWriter);
- streamWriter.flush();
-
- ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
- XMLStreamReader xr = inFactory.createXMLStreamReader(bais);
- DepthXMLStreamReader reader = new DepthXMLStreamReader(xr);
- StaxUtils.toNextElement(reader);
- assertEquals(new QName("http://apache.org/hello_world_soap_http/types", "greetMeResponse"),
- reader.getName());
-
- StaxUtils.nextEvent(reader);
- StaxUtils.toNextElement(reader);
- assertEquals(new QName("http://apache.org/hello_world_soap_http/types", "responseType"),
- reader.getName());
-
- StaxUtils.nextEvent(reader);
- StaxUtils.toNextText(reader);
- assertEquals("TESTOUTPUTMESSAGE", reader.getText());
- }
-
- private JAXBDataWriterFactory getTestWriterFactory(Class clz) throws Exception {
- JAXBContext ctx = JAXBEncoderDecoder.createJAXBContextForClass(clz);
- JAXBDataWriterFactory writerFactory = new JAXBDataWriterFactory();
- writerFactory.setJAXBContext(ctx);
- return writerFactory;
- }
-}
+package org.apache.cxf.jaxb.io;
+
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
+
+import javax.xml.bind.JAXBContext;
+import javax.xml.namespace.QName;
+import javax.xml.stream.XMLInputFactory;
+import javax.xml.stream.XMLOutputFactory;
+import javax.xml.stream.XMLStreamReader;
+import javax.xml.stream.XMLStreamWriter;
+
+import junit.framework.TestCase;
+
+import org.apache.cxf.databinding.DataWriter;
+import org.apache.cxf.jaxb.JAXBDataWriterFactory;
+import org.apache.cxf.jaxb.JAXBEncoderDecoder;
+import org.apache.cxf.staxutils.DepthXMLStreamReader;
+import org.apache.cxf.staxutils.StaxUtils;
+import org.apache.hello_world_doc_lit_bare.PutLastTradedPricePortType;
+import org.apache.hello_world_doc_lit_bare.types.TradePriceData;
+import org.apache.hello_world_rpclit.GreeterRPCLit;
+import org.apache.hello_world_rpclit.types.MyComplexStruct;
+import org.apache.hello_world_soap_http.Greeter;
+import org.apache.hello_world_soap_http.types.GreetMe;
+import org.apache.hello_world_soap_http.types.GreetMeResponse;
+
+public class XMLStreamDataWriterTest extends TestCase {
+
+ private ByteArrayOutputStream baos;
+ private XMLStreamWriter streamWriter;
+ private XMLInputFactory inFactory;
+
+ public void setUp() throws Exception {
+ baos = new ByteArrayOutputStream();
+ XMLOutputFactory factory = XMLOutputFactory.newInstance();
+ streamWriter = factory.createXMLStreamWriter(baos);
+ assertNotNull(streamWriter);
+ inFactory = XMLInputFactory.newInstance();
+ }
+
+ public void tearDown() throws Exception {
+ baos.close();
+ }
+
+ public void testWriteRPCLit1() throws Exception {
+ JAXBDataWriterFactory wf = getTestWriterFactory(GreeterRPCLit.class);
+
+ DataWriter<XMLStreamWriter> dw = wf.createWriter(XMLStreamWriter.class);
+ assertNotNull(dw);
+
+ String val = new String("TESTOUTPUTMESSAGE");
+ QName elName = new QName("http://apache.org/hello_world_rpclit/types",
+ "in");
+
+ dw.write(val, elName, streamWriter);
+ streamWriter.flush();
+
+ ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
+ XMLStreamReader xr = inFactory.createXMLStreamReader(bais);
+ DepthXMLStreamReader reader = new DepthXMLStreamReader(xr);
+ StaxUtils.toNextElement(reader);
+ assertEquals(new QName("http://apache.org/hello_world_rpclit/types", "in"),
+ reader.getName());
+
+ StaxUtils.nextEvent(reader);
+ StaxUtils.toNextText(reader);
+ assertEquals("TESTOUTPUTMESSAGE", reader.getText());
+ }
+
+ public void testWriteRPCLit2() throws Exception {
+ JAXBDataWriterFactory wf = getTestWriterFactory(GreeterRPCLit.class);
+
+ DataWriter<XMLStreamWriter> dw = wf.createWriter(XMLStreamWriter.class);
+ assertNotNull(dw);
+
+ MyComplexStruct val = new MyComplexStruct();
+ val.setElem1("This is element 1");
+ val.setElem2("This is element 2");
+ val.setElem3(1);
+
+ QName elName = new QName("http://apache.org/hello_world_rpclit/types",
+ "in");
+
+ dw.write(val, elName, streamWriter);
+ streamWriter.flush();
+
+ ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
+ XMLStreamReader xr = inFactory.createXMLStreamReader(bais);
+ DepthXMLStreamReader reader = new DepthXMLStreamReader(xr);
+ StaxUtils.toNextElement(reader);
+ assertEquals(new QName("http://apache.org/hello_world_rpclit/types", "in"),
+ reader.getName());
+
+ StaxUtils.nextEvent(reader);
+ StaxUtils.toNextElement(reader);
+ assertEquals(new QName("http://apache.org/hello_world_rpclit/types", "elem1"),
+ reader.getName());
+
+ StaxUtils.nextEvent(reader);
+ StaxUtils.toNextText(reader);
+ assertEquals("This is element 1", reader.getText());
+ }
+
+ public void testWriteBare() throws Exception {
+ JAXBDataWriterFactory wf = getTestWriterFactory(PutLastTradedPricePortType.class);
+
+ DataWriter<XMLStreamWriter> dw = wf.createWriter(XMLStreamWriter.class);
+ assertNotNull(dw);
+
+ TradePriceData val = new TradePriceData();
+ val.setTickerSymbol("This is a symbol");
+ val.setTickerPrice(1.0f);
+
+ dw.write(val,
+ new QName("http://apache.org/hello_world_doc_lit_bare/types", "inout"),
+ streamWriter);
+ streamWriter.flush();
+
+ ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
+ XMLStreamReader xr = inFactory.createXMLStreamReader(bais);
+ DepthXMLStreamReader reader = new DepthXMLStreamReader(xr);
+ StaxUtils.toNextElement(reader);
+ assertEquals(new QName("http://apache.org/hello_world_doc_lit_bare/types", "inout"),
+ reader.getName());
+
+ StaxUtils.nextEvent(reader);
+ StaxUtils.toNextElement(reader);
+ assertEquals(new QName("http://apache.org/hello_world_doc_lit_bare/types", "tickerSymbol"),
+ reader.getName());
+
+ StaxUtils.nextEvent(reader);
+ StaxUtils.toNextText(reader);
+ assertEquals("This is a symbol", reader.getText());
+ }
+
+ public void testWriteWrapper() throws Exception {
+ JAXBDataWriterFactory wf = getTestWriterFactory(Greeter.class);
+
+ DataWriter<XMLStreamWriter> dw = wf.createWriter(XMLStreamWriter.class);
+ assertNotNull(dw);
+
+ GreetMe val = new GreetMe();
+ val.setRequestType("Hello");
+
+ dw.write(val, streamWriter);
+ streamWriter.flush();
+
+ ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
+ XMLStreamReader xr = inFactory.createXMLStreamReader(bais);
+ DepthXMLStreamReader reader = new DepthXMLStreamReader(xr);
+ StaxUtils.toNextElement(reader);
+ assertEquals(new QName("http://apache.org/hello_world_soap_http/types", "greetMe"),
+ reader.getName());
+
+ StaxUtils.nextEvent(reader);
+ StaxUtils.toNextElement(reader);
+ assertEquals(new QName("http://apache.org/hello_world_soap_http/types", "requestType"),
+ reader.getName());
+
+ StaxUtils.nextEvent(reader);
+ StaxUtils.toNextText(reader);
+ assertEquals("Hello", reader.getText());
+ }
+
+ public void testWriteWrapperReturn() throws Exception {
+ JAXBDataWriterFactory wf = getTestWriterFactory(Greeter.class);
+
+ DataWriter<XMLStreamWriter> dw = wf.createWriter(XMLStreamWriter.class);
+ assertNotNull(dw);
+
+ GreetMeResponse retVal = new GreetMeResponse();
+ retVal.setResponseType("TESTOUTPUTMESSAGE");
+
+ dw.write(retVal, streamWriter);
+ streamWriter.flush();
+
+ ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
+ XMLStreamReader xr = inFactory.createXMLStreamReader(bais);
+ DepthXMLStreamReader reader = new DepthXMLStreamReader(xr);
+ StaxUtils.toNextElement(reader);
+ assertEquals(new QName("http://apache.org/hello_world_soap_http/types", "greetMeResponse"),
+ reader.getName());
+
+ StaxUtils.nextEvent(reader);
+ StaxUtils.toNextElement(reader);
+ assertEquals(new QName("http://apache.org/hello_world_soap_http/types", "responseType"),
+ reader.getName());
+
+ StaxUtils.nextEvent(reader);
+ StaxUtils.toNextText(reader);
+ assertEquals("TESTOUTPUTMESSAGE", reader.getText());
+ }
+
+ private JAXBDataWriterFactory getTestWriterFactory(Class clz) throws Exception {
+ JAXBContext ctx = JAXBEncoderDecoder.createJAXBContextForClass(clz);
+ JAXBDataWriterFactory writerFactory = new JAXBDataWriterFactory();
+ writerFactory.setJAXBContext(ctx);
+ return writerFactory;
+ }
+}
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/io/XMLStreamDataWriterTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/io/XMLStreamDataWriterTest.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Modified: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/GreetMeDocLiteralReq.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/GreetMeDocLiteralReq.xml?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/GreetMeDocLiteralReq.xml (original)
+++ incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/GreetMeDocLiteralReq.xml Fri Aug 25 06:16:36 2006
@@ -1 +1 @@
-<ns4:greetMe xmlns:ns4="http://apache.org/hello_world_soap_http/types"><ns4:requestType>TestSOAPInputPMessage</ns4:requestType></ns4:greetMe>
+<ns4:greetMe xmlns:ns4="http://apache.org/hello_world_soap_http/types"><ns4:requestType>TestSOAPInputPMessage</ns4:requestType></ns4:greetMe>
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/GreetMeDocLiteralReq.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/GreetMeDocLiteralReq.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/GreetMeDocLiteralReq.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Modified: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/GreetMeDocLiteralResp.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/GreetMeDocLiteralResp.xml?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/GreetMeDocLiteralResp.xml (original)
+++ incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/GreetMeDocLiteralResp.xml Fri Aug 25 06:16:36 2006
@@ -1,3 +1,3 @@
-<ns4:greetMeResponse xmlns:ns4="http://apache.org/hello_world_soap_http/types">
- <ns4:responseType>TestSOAPOutputPMessage</ns4:responseType>
-</ns4:greetMeResponse>
+<ns4:greetMeResponse xmlns:ns4="http://apache.org/hello_world_soap_http/types">
+ <ns4:responseType>TestSOAPOutputPMessage</ns4:responseType>
+</ns4:greetMeResponse>
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/GreetMeDocLiteralResp.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/GreetMeDocLiteralResp.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/GreetMeDocLiteralResp.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Modified: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/StringStruct.xsd
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/StringStruct.xsd?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/StringStruct.xsd (original)
+++ incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/StringStruct.xsd Fri Aug 25 06:16:36 2006
@@ -1,12 +1,12 @@
-<xsd:schema targetNamespace="http://apache.org/hello_world_soap_http/types"
- xmlns="http://www.w3.org/2001/XMLSchema"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:x1="http://apache.org/hello_world_soap_http/types"
- elementFormDefault="qualified">
- <xsd:complexType name="stringStruct">
- <xsd:sequence>
- <xsd:element name="arg0" type="string"/>
- <xsd:element name="arg1" type="string"/>
- </xsd:sequence>
- </xsd:complexType>
-</xsd:schema>
+<xsd:schema targetNamespace="http://apache.org/hello_world_soap_http/types"
+ xmlns="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:x1="http://apache.org/hello_world_soap_http/types"
+ elementFormDefault="qualified">
+ <xsd:complexType name="stringStruct">
+ <xsd:sequence>
+ <xsd:element name="arg0" type="string"/>
+ <xsd:element name="arg1" type="string"/>
+ </xsd:sequence>
+ </xsd:complexType>
+</xsd:schema>
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/StringStruct.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/StringStruct.xsd
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/StringStruct.xsd
------------------------------------------------------------------------------
svn:mime-type = text/xml
Modified: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/amazon.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/amazon.xml?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/amazon.xml (original)
+++ incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/amazon.xml Fri Aug 25 06:16:36 2006
@@ -1,9 +1,9 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ns:ItemLookup xmlns:ns="http://xml.amazon.com/AWSECommerceService/2004-08-01">
- <ns:SubscriptionId>1E5AY4ZG53H4AMC8QH82</ns:SubscriptionId>
- <ns:AssociateTag>dandiephosblo-20</ns:AssociateTag>
- <ns:Request>
- <ns:IdType>ASIN</ns:IdType>
- <ns:ItemId>0486411214</ns:ItemId>
- </ns:Request>
+<?xml version="1.0" encoding="UTF-8"?>
+<ns:ItemLookup xmlns:ns="http://xml.amazon.com/AWSECommerceService/2004-08-01">
+ <ns:SubscriptionId>1E5AY4ZG53H4AMC8QH82</ns:SubscriptionId>
+ <ns:AssociateTag>dandiephosblo-20</ns:AssociateTag>
+ <ns:Request>
+ <ns:IdType>ASIN</ns:IdType>
+ <ns:ItemId>0486411214</ns:ItemId>
+ </ns:Request>
</ns:ItemLookup>
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/amazon.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/amazon.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/amazon.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Modified: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/greetMeRpcLitReq.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/greetMeRpcLitReq.xml?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/greetMeRpcLitReq.xml (original)
+++ incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/greetMeRpcLitReq.xml Fri Aug 25 06:16:36 2006
@@ -1,7 +1,7 @@
-<ns1:sendReceiveData xmlns:ns1="http://apache.org/hello_world_rpclit">
- <in xmlns:ns5="http://apache.org/hello_world_rpclit/types">
- <ns5:elem1>this is element 1</ns5:elem1>
- <ns5:elem2>this is element 2</ns5:elem2>
- <ns5:elem3>42</ns5:elem3>
- </in>
-</ns1:sendReceiveData>
+<ns1:sendReceiveData xmlns:ns1="http://apache.org/hello_world_rpclit">
+ <in xmlns:ns5="http://apache.org/hello_world_rpclit/types">
+ <ns5:elem1>this is element 1</ns5:elem1>
+ <ns5:elem2>this is element 2</ns5:elem2>
+ <ns5:elem3>42</ns5:elem3>
+ </in>
+</ns1:sendReceiveData>
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/greetMeRpcLitReq.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/greetMeRpcLitReq.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/greetMeRpcLitReq.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Modified: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/sayHiDocLitBareReq.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/sayHiDocLitBareReq.xml?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/sayHiDocLitBareReq.xml (original)
+++ incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/sayHiDocLitBareReq.xml Fri Aug 25 06:16:36 2006
@@ -1,5 +1,5 @@
-<ns4:inout xmlns:ns4="http://apache.org/hello_world_doc_lit_bare/types"
- xmlns:ns5="http://www.w3.org/2005/08/addressing/wsdl">
- <ns4:tickerSymbol>CXF</ns4:tickerSymbol>
- <ns4:tickerPrice>1.0</ns4:tickerPrice>
-</ns4:inout>
+<ns4:inout xmlns:ns4="http://apache.org/hello_world_doc_lit_bare/types"
+ xmlns:ns5="http://www.w3.org/2005/08/addressing/wsdl">
+ <ns4:tickerSymbol>CXF</ns4:tickerSymbol>
+ <ns4:tickerPrice>1.0</ns4:tickerPrice>
+</ns4:inout>
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/sayHiDocLitBareReq.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/sayHiDocLitBareReq.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/sayHiDocLitBareReq.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Modified: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/sayHiDocLitBareResp.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/sayHiDocLitBareResp.xml?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/sayHiDocLitBareResp.xml (original)
+++ incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/sayHiDocLitBareResp.xml Fri Aug 25 06:16:36 2006
@@ -1,5 +1,5 @@
-<ns5:inout xmlns:ns4="http://www.w3.org/2005/08/addressing/wsdl"
- xmlns:ns5="http://apache.org/hello_world_doc_lit_bare/types">
- <ns5:tickerSymbol>OBJECTWEB</ns5:tickerSymbol>
- <ns5:tickerPrice>4.5</ns5:tickerPrice>
-</ns5:inout>
+<ns5:inout xmlns:ns4="http://www.w3.org/2005/08/addressing/wsdl"
+ xmlns:ns5="http://apache.org/hello_world_doc_lit_bare/types">
+ <ns5:tickerSymbol>OBJECTWEB</ns5:tickerSymbol>
+ <ns5:tickerPrice>4.5</ns5:tickerPrice>
+</ns5:inout>
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/sayHiDocLitBareResp.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/sayHiDocLitBareResp.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/sayHiDocLitBareResp.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Modified: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/sayHiRpcLiteralReq.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/sayHiRpcLiteralReq.xml?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/sayHiRpcLiteralReq.xml (original)
+++ incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/sayHiRpcLiteralReq.xml Fri Aug 25 06:16:36 2006
@@ -1,10 +1,10 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<SOAP-ENV:Envelope
- xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:m1="http://apache.org/hello_world_rpclit">
- <SOAP-ENV:Body>
- <m1:sayHi> </m1:sayHi>
- </SOAP-ENV:Body>
+<?xml version="1.0" encoding="utf-8" ?>
+<SOAP-ENV:Envelope
+ xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:m1="http://apache.org/hello_world_rpclit">
+ <SOAP-ENV:Body>
+ <m1:sayHi> </m1:sayHi>
+ </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/sayHiRpcLiteralReq.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/sayHiRpcLiteralReq.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/sayHiRpcLiteralReq.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Modified: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/wsdl/doc_lit_bare.wsdl
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/wsdl/doc_lit_bare.wsdl?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/wsdl/doc_lit_bare.wsdl (original)
+++ incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/wsdl/doc_lit_bare.wsdl Fri Aug 25 06:16:36 2006
@@ -1,88 +1,88 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<wsdl:definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://apache.org/hello_world_doc_lit_bare" xmlns:x1="http://apache.org/hello_world_doc_lit_bare/types" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://apache.org/hello_world_doc_lit_bare" name="DocLitBare" elementFormDefault="qualified">
- <wsdl:types>
- <schema targetNamespace="http://apache.org/hello_world_doc_lit_bare/types" xmlns:tns="http://apache.org/hello_world_doc_lit_bare/types" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
- <complexType name="TradePriceData">
- <sequence>
- <element name="tickerSymbol" type="xsd:string"/>
- <element name="tickerPrice" type="xsd:float"/>
- </sequence>
- </complexType>
- <element name="in" type="tns:TradePriceData"/>
- <element name="inout" type="tns:TradePriceData"/>
- <element name="stringRespType" type="xsd:string"/>
- </schema>
- </wsdl:types>
- <message name="PutLastTradedPriceInput">
- <part name="body" element="x1:in"/>
- </message>
- <message name="PutLastTradedPriceOutput"/>
-
- <message name="SayHiInput">
- <part name="body" element="x1:inout"/>
- </message>
- <message name="SayHiOutput">
- <part name="body" element="x1:inout"/>
- </message>
-
- <message name="bareNoParamRequest"/>
-
- <message name="bareNoParamResponse">
- <part element="x1:stringRespType" name="theResponse"/>
- </message>
-
- <portType name="PutLastTradedPricePortType">
-
- <operation name="SayHi">
- <input message="tns:SayHiInput"/>
- <output message="tns:SayHiOutput"/>
- </operation>
-
- <operation name="PutLastTradedPrice">
- <input message="tns:PutLastTradedPriceInput"/>
- <output message="tns:PutLastTradedPriceOutput"/>
- </operation>
-
- <operation name="bareNoParam">
- <input message="tns:bareNoParamRequest"/>
- <output message="tns:bareNoParamResponse"/>
- </operation>
-
- </portType>
-
- <binding name="PutLastTradedPriceSoapBinding" type="tns:PutLastTradedPricePortType">
- <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
-
- <operation name="SayHi">
- <input>
- <soap:body use="literal"/>
- </input>
- <output>
- <soap:body use="literal"/>
- </output>
- </operation>
-
- <operation name="PutLastTradedPrice">
- <input>
- <soap:body use="literal"/>
- </input>
- <output>
- <soap:body use="literal"/>
- </output>
- </operation>
-
- <operation name="bareNoParam">
- <input>
- <soap:body use="literal"/>
- </input>
- <output>
- <soap:body use="literal"/>
- </output>
- </operation>
- </binding>
- <wsdl:service name="SOAPService">
- <wsdl:port name="SoapPort" binding="tns:PutLastTradedPriceSoapBinding">
- <soap:address location="http://localhost:9003/SOAPDocLitBareService/SoapPort"/>
- </wsdl:port>
- </wsdl:service>
-</wsdl:definitions>
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://apache.org/hello_world_doc_lit_bare" xmlns:x1="http://apache.org/hello_world_doc_lit_bare/types" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://apache.org/hello_world_doc_lit_bare" name="DocLitBare" elementFormDefault="qualified">
+ <wsdl:types>
+ <schema targetNamespace="http://apache.org/hello_world_doc_lit_bare/types" xmlns:tns="http://apache.org/hello_world_doc_lit_bare/types" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
+ <complexType name="TradePriceData">
+ <sequence>
+ <element name="tickerSymbol" type="xsd:string"/>
+ <element name="tickerPrice" type="xsd:float"/>
+ </sequence>
+ </complexType>
+ <element name="in" type="tns:TradePriceData"/>
+ <element name="inout" type="tns:TradePriceData"/>
+ <element name="stringRespType" type="xsd:string"/>
+ </schema>
+ </wsdl:types>
+ <message name="PutLastTradedPriceInput">
+ <part name="body" element="x1:in"/>
+ </message>
+ <message name="PutLastTradedPriceOutput"/>
+
+ <message name="SayHiInput">
+ <part name="body" element="x1:inout"/>
+ </message>
+ <message name="SayHiOutput">
+ <part name="body" element="x1:inout"/>
+ </message>
+
+ <message name="bareNoParamRequest"/>
+
+ <message name="bareNoParamResponse">
+ <part element="x1:stringRespType" name="theResponse"/>
+ </message>
+
+ <portType name="PutLastTradedPricePortType">
+
+ <operation name="SayHi">
+ <input message="tns:SayHiInput"/>
+ <output message="tns:SayHiOutput"/>
+ </operation>
+
+ <operation name="PutLastTradedPrice">
+ <input message="tns:PutLastTradedPriceInput"/>
+ <output message="tns:PutLastTradedPriceOutput"/>
+ </operation>
+
+ <operation name="bareNoParam">
+ <input message="tns:bareNoParamRequest"/>
+ <output message="tns:bareNoParamResponse"/>
+ </operation>
+
+ </portType>
+
+ <binding name="PutLastTradedPriceSoapBinding" type="tns:PutLastTradedPricePortType">
+ <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+
+ <operation name="SayHi">
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+
+ <operation name="PutLastTradedPrice">
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+
+ <operation name="bareNoParam">
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+ </binding>
+ <wsdl:service name="SOAPService">
+ <wsdl:port name="SoapPort" binding="tns:PutLastTradedPriceSoapBinding">
+ <soap:address location="http://localhost:9003/SOAPDocLitBareService/SoapPort"/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/wsdl/doc_lit_bare.wsdl
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/wsdl/doc_lit_bare.wsdl
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/wsdl/doc_lit_bare.wsdl
------------------------------------------------------------------------------
svn:mime-type = text/xml
Modified: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/wsdl/hello_world.wsdl
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/wsdl/hello_world.wsdl?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/wsdl/hello_world.wsdl (original)
+++ incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/wsdl/hello_world.wsdl Fri Aug 25 06:16:36 2006
@@ -1,250 +1,250 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<wsdl:definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
- xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
- xmlns:tns="http://apache.org/hello_world_soap_http"
- xmlns:x1="http://apache.org/hello_world_soap_http/types"
- xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- targetNamespace="http://apache.org/hello_world_soap_http" name="HelloWorld">
- <wsdl:types>
- <schema targetNamespace="http://apache.org/hello_world_soap_http/types" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:x1="http://apache.org/hello_world_soap_http/types" elementFormDefault="qualified">
- <element name="sayHi">
- <complexType/>
- </element>
- <element name="sayHiResponse">
- <complexType>
- <sequence>
- <element name="responseType" type="string"/>
- </sequence>
- </complexType>
- </element>
- <element name="greetMe">
- <complexType>
- <sequence>
- <element name="requestType" type="string"/>
- </sequence>
- </complexType>
- </element>
- <element name="greetMeResponse">
- <complexType>
- <sequence>
- <element name="responseType" type="string"/>
- </sequence>
- </complexType>
- </element>
- <element name="greetMeSometime">
- <complexType>
- <sequence>
- <element name="requestType" type="string"/>
- </sequence>
- </complexType>
- </element>
- <element name="greetMeSometimeResponse">
- <complexType>
- <sequence>
- <element name="responseType" type="string"/>
- </sequence>
- </complexType>
- </element>
- <element name="greetMeOneWay">
- <complexType>
- <sequence>
- <element name="requestType" type="string"/>
- </sequence>
- </complexType>
- </element>
- <element name="testDocLitFault">
- <complexType>
- <sequence>
- <element name="faultType" type="string"/>
- </sequence>
- </complexType>
- </element>
- <element name="testDocLitFaultResponse">
- <complexType>
- <sequence/>
- </complexType>
- </element>
- <complexType name="ErrorCode">
- <sequence>
- <element name="minor" type="short"/>
- <element name="major" type="short"/>
- </sequence>
- </complexType>
- <element name="NoSuchCodeLit">
- <complexType>
- <sequence>
- <element name="code" type="x1:ErrorCode"/>
- </sequence>
- </complexType>
- </element>
- <element name="BadRecordLit" type="string"/>
- <complexType name="BadRecord">
- <sequence>
- <element name="reason" type="string"/>
- <element name="code" type="short"/>
- </sequence>
- </complexType>
- <complexType name="addNumbers">
- <sequence>
- <element name="arg0" type="int"/>
- <element name="arg1" type="int"/>
- </sequence>
- </complexType>
- <element name="addNumbers" type="x1:addNumbers"/>
- <complexType name="addNumbersResponse">
- <sequence>
- <element name="return" type="int"/>
- </sequence>
- </complexType>
- <element name="addNumbersResponse" type="x1:addNumbersResponse"/>
- <complexType name="stringStruct">
- <sequence>
- <element name="arg0" type="string"/>
- <element name="arg1" type="string"/>
- </sequence>
- </complexType>
- <element name="BareDocument" type="string"/>
- <element name="BareDocumentResponse">
- <complexType>
- <sequence>
- <element name="company" type="string"/>
- </sequence>
- <attribute name="id" type="int"/>
- </complexType>
- </element>
- </schema>
- </wsdl:types>
- <wsdl:message name="sayHiRequest">
- <wsdl:part name="in" element="x1:sayHi"/>
- </wsdl:message>
- <wsdl:message name="sayHiResponse">
- <wsdl:part name="out" element="x1:sayHiResponse"/>
- </wsdl:message>
- <wsdl:message name="greetMeRequest">
- <wsdl:part name="in" element="x1:greetMe"/>
- </wsdl:message>
- <wsdl:message name="greetMeResponse">
- <wsdl:part name="out" element="x1:greetMeResponse"/>
- </wsdl:message>
- <wsdl:message name="greetMeSometimeRequest">
- <wsdl:part name="in" element="x1:greetMeSometime"/>
- </wsdl:message>
- <wsdl:message name="greetMeSometimeResponse">
- <wsdl:part name="out" element="x1:greetMeSometimeResponse"/>
- </wsdl:message>
- <wsdl:message name="greetMeOneWayRequest">
- <wsdl:part name="in" element="x1:greetMeOneWay"/>
- </wsdl:message>
- <wsdl:message name="testDocLitFaultRequest">
- <wsdl:part name="in" element="x1:testDocLitFault"/>
- </wsdl:message>
- <wsdl:message name="testDocLitFaultResponse">
- <wsdl:part name="out" element="x1:testDocLitFaultResponse"/>
- </wsdl:message>
- <wsdl:message name="NoSuchCodeLitFault">
- <wsdl:part name="NoSuchCodeLit" element="x1:NoSuchCodeLit"/>
- </wsdl:message>
- <wsdl:message name="BadRecordLitFault">
- <wsdl:part name="BadRecordLit" element="x1:BadRecordLit"/>
- </wsdl:message>
- <wsdl:message name="testDocLitBareRequest">
- <wsdl:part name="in" element="x1:BareDocument"/>
- </wsdl:message>
- <wsdl:message name="testDocLitBareResponse">
- <wsdl:part name="out" element="x1:BareDocumentResponse"/>
- </wsdl:message>
- <wsdl:portType name="Greeter">
- <wsdl:operation name="sayHi">
- <wsdl:input name="sayHiRequest" message="tns:sayHiRequest"/>
- <wsdl:output name="sayHiResponse" message="tns:sayHiResponse"/>
- </wsdl:operation>
- <wsdl:operation name="greetMe">
- <wsdl:input name="greetMeRequest" message="tns:greetMeRequest"/>
- <wsdl:output name="greetMeResponse" message="tns:greetMeResponse"/>
- </wsdl:operation>
- <wsdl:operation name="greetMeSometime">
- <wsdl:input name="greetMeSometimeRequest" message="tns:greetMeSometimeRequest"/>
- <wsdl:output name="greetMeSometimeResponse" message="tns:greetMeSometimeResponse"/>
- </wsdl:operation>
- <wsdl:operation name="greetMeOneWay">
- <wsdl:input name="greetMeOneWayRequest" message="tns:greetMeOneWayRequest"/>
- </wsdl:operation>
- <wsdl:operation name="testDocLitFault">
- <wsdl:input name="testDocLitFaultRequest" message="tns:testDocLitFaultRequest"/>
- <wsdl:output name="testDocLitFaultResponse" message="tns:testDocLitFaultResponse"/>
- <wsdl:fault name="NoSuchCodeLitFault" message="tns:NoSuchCodeLitFault"/>
- <wsdl:fault name="BadRecordLitFault" message="tns:BadRecordLitFault"/>
- </wsdl:operation>
- <wsdl:operation name="testDocLitBare">
- <wsdl:input name="testDocLitBareRequest" message="tns:testDocLitBareRequest"/>
- <wsdl:output name="testDocLitBareResponse" message="tns:testDocLitBareResponse"/>
- </wsdl:operation>
- </wsdl:portType>
- <wsdl:binding name="Greeter_SOAPBinding" type="tns:Greeter">
- <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
- <wsdl:operation name="sayHi">
- <soap:operation style="document"/>
- <wsdl:input>
- <soap:body use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap:body use="literal"/>
- </wsdl:output>
- </wsdl:operation>
- <wsdl:operation name="greetMe">
- <soap:operation style="document"/>
- <wsdl:input>
- <soap:body use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap:body use="literal"/>
- </wsdl:output>
- </wsdl:operation>
- <wsdl:operation name="greetMeSometime">
- <soap:operation style="document"/>
- <wsdl:input>
- <soap:body use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap:body use="literal"/>
- </wsdl:output>
- </wsdl:operation>
- <wsdl:operation name="greetMeOneWay">
- <soap:operation style="document"/>
- <wsdl:input>
- <soap:body use="literal"/>
- </wsdl:input>
- </wsdl:operation>
- <wsdl:operation name="testDocLitFault">
- <soap:operation style="document"/>
- <wsdl:input>
- <soap:body use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap:body use="literal"/>
- </wsdl:output>
- <wsdl:fault name="NoSuchCodeLitFault">
- <soap:fault name="NoSuchCodeLitFault" use="literal"/>
- </wsdl:fault>
- <wsdl:fault name="BadRecordLitFault">
- <soap:fault name="BadRecordLitFault" use="literal"/>
- </wsdl:fault>
- </wsdl:operation>
- <wsdl:operation name="testDocLitBare">
- <soap:operation style="document" soapAction="http://apache.org/hello_world_soap_http/testDocLitBare"/>
- <wsdl:input name="testDocLitBareRequest">
- <soap:body use="literal"/>
- </wsdl:input>
- <wsdl:output name="testDocLitBareResponse">
- <soap:body use="literal"/>
- </wsdl:output>
- </wsdl:operation>
- </wsdl:binding>
- <wsdl:service name="SOAPService">
- <wsdl:port name="SoapPort" binding="tns:Greeter_SOAPBinding">
- <soap:address location="http://localhost:9000/SoapContext/SoapPort"/>
- </wsdl:port>
- </wsdl:service>
-</wsdl:definitions>
-
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:tns="http://apache.org/hello_world_soap_http"
+ xmlns:x1="http://apache.org/hello_world_soap_http/types"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ targetNamespace="http://apache.org/hello_world_soap_http" name="HelloWorld">
+ <wsdl:types>
+ <schema targetNamespace="http://apache.org/hello_world_soap_http/types" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:x1="http://apache.org/hello_world_soap_http/types" elementFormDefault="qualified">
+ <element name="sayHi">
+ <complexType/>
+ </element>
+ <element name="sayHiResponse">
+ <complexType>
+ <sequence>
+ <element name="responseType" type="string"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="greetMe">
+ <complexType>
+ <sequence>
+ <element name="requestType" type="string"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="greetMeResponse">
+ <complexType>
+ <sequence>
+ <element name="responseType" type="string"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="greetMeSometime">
+ <complexType>
+ <sequence>
+ <element name="requestType" type="string"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="greetMeSometimeResponse">
+ <complexType>
+ <sequence>
+ <element name="responseType" type="string"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="greetMeOneWay">
+ <complexType>
+ <sequence>
+ <element name="requestType" type="string"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="testDocLitFault">
+ <complexType>
+ <sequence>
+ <element name="faultType" type="string"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="testDocLitFaultResponse">
+ <complexType>
+ <sequence/>
+ </complexType>
+ </element>
+ <complexType name="ErrorCode">
+ <sequence>
+ <element name="minor" type="short"/>
+ <element name="major" type="short"/>
+ </sequence>
+ </complexType>
+ <element name="NoSuchCodeLit">
+ <complexType>
+ <sequence>
+ <element name="code" type="x1:ErrorCode"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="BadRecordLit" type="string"/>
+ <complexType name="BadRecord">
+ <sequence>
+ <element name="reason" type="string"/>
+ <element name="code" type="short"/>
+ </sequence>
+ </complexType>
+ <complexType name="addNumbers">
+ <sequence>
+ <element name="arg0" type="int"/>
+ <element name="arg1" type="int"/>
+ </sequence>
+ </complexType>
+ <element name="addNumbers" type="x1:addNumbers"/>
+ <complexType name="addNumbersResponse">
+ <sequence>
+ <element name="return" type="int"/>
+ </sequence>
+ </complexType>
+ <element name="addNumbersResponse" type="x1:addNumbersResponse"/>
+ <complexType name="stringStruct">
+ <sequence>
+ <element name="arg0" type="string"/>
+ <element name="arg1" type="string"/>
+ </sequence>
+ </complexType>
+ <element name="BareDocument" type="string"/>
+ <element name="BareDocumentResponse">
+ <complexType>
+ <sequence>
+ <element name="company" type="string"/>
+ </sequence>
+ <attribute name="id" type="int"/>
+ </complexType>
+ </element>
+ </schema>
+ </wsdl:types>
+ <wsdl:message name="sayHiRequest">
+ <wsdl:part name="in" element="x1:sayHi"/>
+ </wsdl:message>
+ <wsdl:message name="sayHiResponse">
+ <wsdl:part name="out" element="x1:sayHiResponse"/>
+ </wsdl:message>
+ <wsdl:message name="greetMeRequest">
+ <wsdl:part name="in" element="x1:greetMe"/>
+ </wsdl:message>
+ <wsdl:message name="greetMeResponse">
+ <wsdl:part name="out" element="x1:greetMeResponse"/>
+ </wsdl:message>
+ <wsdl:message name="greetMeSometimeRequest">
+ <wsdl:part name="in" element="x1:greetMeSometime"/>
+ </wsdl:message>
+ <wsdl:message name="greetMeSometimeResponse">
+ <wsdl:part name="out" element="x1:greetMeSometimeResponse"/>
+ </wsdl:message>
+ <wsdl:message name="greetMeOneWayRequest">
+ <wsdl:part name="in" element="x1:greetMeOneWay"/>
+ </wsdl:message>
+ <wsdl:message name="testDocLitFaultRequest">
+ <wsdl:part name="in" element="x1:testDocLitFault"/>
+ </wsdl:message>
+ <wsdl:message name="testDocLitFaultResponse">
+ <wsdl:part name="out" element="x1:testDocLitFaultResponse"/>
+ </wsdl:message>
+ <wsdl:message name="NoSuchCodeLitFault">
+ <wsdl:part name="NoSuchCodeLit" element="x1:NoSuchCodeLit"/>
+ </wsdl:message>
+ <wsdl:message name="BadRecordLitFault">
+ <wsdl:part name="BadRecordLit" element="x1:BadRecordLit"/>
+ </wsdl:message>
+ <wsdl:message name="testDocLitBareRequest">
+ <wsdl:part name="in" element="x1:BareDocument"/>
+ </wsdl:message>
+ <wsdl:message name="testDocLitBareResponse">
+ <wsdl:part name="out" element="x1:BareDocumentResponse"/>
+ </wsdl:message>
+ <wsdl:portType name="Greeter">
+ <wsdl:operation name="sayHi">
+ <wsdl:input name="sayHiRequest" message="tns:sayHiRequest"/>
+ <wsdl:output name="sayHiResponse" message="tns:sayHiResponse"/>
+ </wsdl:operation>
+ <wsdl:operation name="greetMe">
+ <wsdl:input name="greetMeRequest" message="tns:greetMeRequest"/>
+ <wsdl:output name="greetMeResponse" message="tns:greetMeResponse"/>
+ </wsdl:operation>
+ <wsdl:operation name="greetMeSometime">
+ <wsdl:input name="greetMeSometimeRequest" message="tns:greetMeSometimeRequest"/>
+ <wsdl:output name="greetMeSometimeResponse" message="tns:greetMeSometimeResponse"/>
+ </wsdl:operation>
+ <wsdl:operation name="greetMeOneWay">
+ <wsdl:input name="greetMeOneWayRequest" message="tns:greetMeOneWayRequest"/>
+ </wsdl:operation>
+ <wsdl:operation name="testDocLitFault">
+ <wsdl:input name="testDocLitFaultRequest" message="tns:testDocLitFaultRequest"/>
+ <wsdl:output name="testDocLitFaultResponse" message="tns:testDocLitFaultResponse"/>
+ <wsdl:fault name="NoSuchCodeLitFault" message="tns:NoSuchCodeLitFault"/>
+ <wsdl:fault name="BadRecordLitFault" message="tns:BadRecordLitFault"/>
+ </wsdl:operation>
+ <wsdl:operation name="testDocLitBare">
+ <wsdl:input name="testDocLitBareRequest" message="tns:testDocLitBareRequest"/>
+ <wsdl:output name="testDocLitBareResponse" message="tns:testDocLitBareResponse"/>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="Greeter_SOAPBinding" type="tns:Greeter">
+ <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="sayHi">
+ <soap:operation style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="greetMe">
+ <soap:operation style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="greetMeSometime">
+ <soap:operation style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="greetMeOneWay">
+ <soap:operation style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ </wsdl:operation>
+ <wsdl:operation name="testDocLitFault">
+ <soap:operation style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="NoSuchCodeLitFault">
+ <soap:fault name="NoSuchCodeLitFault" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="BadRecordLitFault">
+ <soap:fault name="BadRecordLitFault" use="literal"/>
+ </wsdl:fault>
+ </wsdl:operation>
+ <wsdl:operation name="testDocLitBare">
+ <soap:operation style="document" soapAction="http://apache.org/hello_world_soap_http/testDocLitBare"/>
+ <wsdl:input name="testDocLitBareRequest">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="testDocLitBareResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="SOAPService">
+ <wsdl:port name="SoapPort" binding="tns:Greeter_SOAPBinding">
+ <soap:address location="http://localhost:9000/SoapContext/SoapPort"/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
+
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/wsdl/hello_world.wsdl
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/wsdl/hello_world.wsdl
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/resources/wsdl/hello_world.wsdl
------------------------------------------------------------------------------
svn:mime-type = text/xml
Modified: incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/binding/soap/SOAPBindingImpl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/binding/soap/SOAPBindingImpl.java?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/binding/soap/SOAPBindingImpl.java (original)
+++ incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/binding/soap/SOAPBindingImpl.java Fri Aug 25 06:16:36 2006
@@ -1,47 +1,47 @@
-package org.apache.cxf.jaxws.binding.soap;
-
-
-import java.util.Set;
-
-import javax.xml.soap.MessageFactory;
-import javax.xml.soap.SOAPFactory;
-import javax.xml.ws.WebServiceException;
-import javax.xml.ws.soap.SOAPBinding;
-
-import org.apache.cxf.binding.soap.SoapBinding;
-import org.apache.cxf.jaxws.binding.BindingImpl;
-
-public class SOAPBindingImpl extends BindingImpl implements SOAPBinding {
-
- // private SoapBinding soapBinding;
-
- public SOAPBindingImpl(SoapBinding sb) {
- // soapBinding = sb;
- }
-
- public Set<String> getRoles() {
- return null;
- }
-
- public void setRoles(Set<String> set) {
- // TODO
- }
-
- public boolean isMTOMEnabled() {
- return false;
- }
-
- public void setMTOMEnabled(boolean flag) {
- throw new WebServiceException("MTOM is not supported");
- }
-
- public MessageFactory getMessageFactory() {
- // TODO: get from wrapped SoapBinding
- return null;
- }
-
- public SOAPFactory getSOAPFactory() {
- // TODO: get from wrapped SoapBinding
- return null;
- }
-}
+package org.apache.cxf.jaxws.binding.soap;
+
+
+import java.util.Set;
+
+import javax.xml.soap.MessageFactory;
+import javax.xml.soap.SOAPFactory;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.soap.SOAPBinding;
+
+import org.apache.cxf.binding.soap.SoapBinding;
+import org.apache.cxf.jaxws.binding.BindingImpl;
+
+public class SOAPBindingImpl extends BindingImpl implements SOAPBinding {
+
+ // private SoapBinding soapBinding;
+
+ public SOAPBindingImpl(SoapBinding sb) {
+ // soapBinding = sb;
+ }
+
+ public Set<String> getRoles() {
+ return null;
+ }
+
+ public void setRoles(Set<String> set) {
+ // TODO
+ }
+
+ public boolean isMTOMEnabled() {
+ return false;
+ }
+
+ public void setMTOMEnabled(boolean flag) {
+ throw new WebServiceException("MTOM is not supported");
+ }
+
+ public MessageFactory getMessageFactory() {
+ // TODO: get from wrapped SoapBinding
+ return null;
+ }
+
+ public SOAPFactory getSOAPFactory() {
+ // TODO: get from wrapped SoapBinding
+ return null;
+ }
+}
Propchange: incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/binding/soap/SOAPBindingImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/binding/soap/SOAPBindingImpl.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
|