Author: rsearls
Date: 2014-09-30 08:30:10 -0400 (Tue, 30 Sep 2014)
New Revision: 18955
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/HelloRequest.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/HelloResponse.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/HelloWSImpl.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/HelloWs.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportAlpha/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportAlpha/GreetingsWs.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportAlpha/GreetingsWsImpl.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportAlpha/JWBS3792AlphaTestCase.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportBeta/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportBeta/GreetingsWs.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportBeta/GreetingsWsImpl.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportBeta/JWBS3792BetaTestCase.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportDelta/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportDelta/GreetingsWs.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportDelta/GreetingsWsImpl.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportDelta/JWBS3792DeltaTestCase.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportEpsilon/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportEpsilon/GreetingsWs.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportEpsilon/GreetingsWsImpl.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportEpsilon/JWBS3792EpsilonTestCase.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportGamma/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportGamma/GreetingsWs.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportGamma/GreetingsWsImpl.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportGamma/JWBS3792GammaTestCase.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/WEB-INF/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/WEB-INF/wsdl/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/WEB-INF/wsdl/Hello.wsdl
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/WEB-INF/wsdl/Hello_schema2.xsd
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportAlpha/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportAlpha/WEB-INF/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportAlpha/WEB-INF/wsdl/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportAlpha/WEB-INF/wsdl/Greeting_Simplest.wsdl
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportAlpha/WEB-INF/wsdl/Hello.wsdl
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportAlpha/WEB-INF/wsdl/Hello_schema2.xsd
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportBeta/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportBeta/WEB-INF/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportBeta/WEB-INF/wsdl/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportBeta/WEB-INF/wsdl/A/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportBeta/WEB-INF/wsdl/A/b/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportBeta/WEB-INF/wsdl/A/b/Hello_schema2.xsd
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportBeta/WEB-INF/wsdl/Greeting_Simplest.wsdl
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportBeta/WEB-INF/wsdl/Hello.wsdl
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportDelta/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportDelta/WEB-INF/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportDelta/WEB-INF/schema/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportDelta/WEB-INF/schema/Hello_schema2.xsd
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportDelta/WEB-INF/wsdl/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportDelta/WEB-INF/wsdl/A/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportDelta/WEB-INF/wsdl/A/b/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportDelta/WEB-INF/wsdl/A/b/Hello.wsdl
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportDelta/WEB-INF/wsdl/Greeting_Simplest.wsdl
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportEpsilon/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportEpsilon/WEB-INF/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportEpsilon/WEB-INF/wsdl/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportEpsilon/WEB-INF/wsdl/Greeting_Simplest.wsdl
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportGamma/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportGamma/WEB-INF/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportGamma/WEB-INF/wsdl/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportGamma/WEB-INF/wsdl/A/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportGamma/WEB-INF/wsdl/A/b/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportGamma/WEB-INF/wsdl/A/b/Hello.wsdl
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportGamma/WEB-INF/wsdl/A/b/Hello_schema2.xsd
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportGamma/WEB-INF/wsdl/Greeting_Simplest.wsdl
Log:
[JBWS-3792] tests to confirm that wsdl:import is handled properly and to demonstrate valid
examples.
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/HelloRequest.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/HelloRequest.java
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/HelloRequest.java 2014-09-30
12:30:10 UTC (rev 18955)
@@ -0,0 +1,38 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2013, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.cxf.jbws3792;
+
+public class HelloRequest
+{
+ private String input;
+
+ public String getInput()
+ {
+ return input;
+ }
+
+ public void setInput(String input)
+ {
+ this.input = input;
+ }
+
+}
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/HelloResponse.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/HelloResponse.java
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/HelloResponse.java 2014-09-30
12:30:10 UTC (rev 18955)
@@ -0,0 +1,41 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2013, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.cxf.jbws3792;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class HelloResponse
+{
+ private List<String> multiHello = new ArrayList<String>();
+
+ public List<String> getMultiHello()
+ {
+ return multiHello;
+ }
+
+ public void setMultiHello(List<String> multiHello)
+ {
+ this.multiHello = multiHello;
+ }
+
+}
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/HelloWSImpl.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/HelloWSImpl.java
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/HelloWSImpl.java 2014-09-30
12:30:10 UTC (rev 18955)
@@ -0,0 +1,42 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2013, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.cxf.jbws3792;
+
+import javax.jws.WebService;
+
+@WebService(wsdlLocation = "WEB-INF/wsdl/Hello.wsdl",
+ name = HelloWs.NAME,
+ serviceName = HelloWs.NAME,
+ targetNamespace = HelloWs.TARGET_NAMESPACE,
+ endpointInterface =
"org.jboss.test.ws.jaxws.cxf.jbws3792.HelloWs")
+public class HelloWSImpl implements HelloWs
+{
+
+ public HelloResponse doHello(HelloRequest request)
+ {
+ HelloResponse response = new HelloResponse();
+ response.getMultiHello().add(request.getInput());
+ response.getMultiHello().add("world");
+ return response;
+ }
+
+}
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/HelloWs.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/HelloWs.java
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/HelloWs.java 2014-09-30
12:30:10 UTC (rev 18955)
@@ -0,0 +1,33 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2013, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.cxf.jbws3792;
+import javax.jws.WebService;
+
+@WebService(name = HelloWs.NAME, targetNamespace = HelloWs.TARGET_NAMESPACE)
+public interface HelloWs
+{
+ public final static String NAME = "HelloService";
+
+ public final static String TARGET_NAMESPACE = "http://hello/test";
+
+ public HelloResponse doHello(HelloRequest request);
+}
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportAlpha/GreetingsWs.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportAlpha/GreetingsWs.java
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportAlpha/GreetingsWs.java 2014-09-30
12:30:10 UTC (rev 18955)
@@ -0,0 +1,36 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2013, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.cxf.jbws3792.wsdlImportAlpha;
+
+import javax.jws.WebService;
+
+/**
+ *
+ */
+@WebService(name = GreetingsWs.NAME, targetNamespace = GreetingsWs.TARGET_NAMESPACE)
+public interface GreetingsWs
+{
+ public final static String NAME = "GreetingsService";
+
+ public final static String TARGET_NAMESPACE = "http://greetings/test";
+}
+
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportAlpha/GreetingsWsImpl.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportAlpha/GreetingsWsImpl.java
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportAlpha/GreetingsWsImpl.java 2014-09-30
12:30:10 UTC (rev 18955)
@@ -0,0 +1,33 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2013, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.cxf.jbws3792.wsdlImportAlpha;
+
+import javax.jws.WebService;
+
+@WebService(
+ wsdlLocation = "WEB-INF/wsdl/Greeting_Simplest.wsdl",
+ targetNamespace = GreetingsWs.TARGET_NAMESPACE,
+ name = GreetingsWs.NAME,
+ serviceName = GreetingsWs.NAME,
+ endpointInterface =
"org.jboss.test.ws.jaxws.cxf.jbws3792.wsdlImportAlpha.GreetingsWs")
+public class GreetingsWsImpl implements GreetingsWs {
+}
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportAlpha/JWBS3792AlphaTestCase.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportAlpha/JWBS3792AlphaTestCase.java
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportAlpha/JWBS3792AlphaTestCase.java 2014-09-30
12:30:10 UTC (rev 18955)
@@ -0,0 +1,92 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2013, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.cxf.jbws3792.wsdlImportAlpha;
+
+import junit.framework.Test;
+import org.jboss.shrinkwrap.api.asset.StringAsset;
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestHelper;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import java.io.File;
+import java.net.URL;
+import java.util.Iterator;
+import java.util.LinkedList;
+import java.util.List;
+
+/**
+ * Test standard configuration, where all wsdls and schema files are
+ * located in the same directory.
+ */
+public class JWBS3792AlphaTestCase extends JBossWSTest {
+
+ public static JBossWSTestHelper.BaseDeployment<?>[] createDeployments () {
+ List<JBossWSTestHelper.BaseDeployment<?>> list = new
LinkedList<JBossWSTestHelper.BaseDeployment<?>>();
+
+ list.add(
+ new JBossWSTestHelper.WarDeployment("jbws3792-wsdlImportAlpha.war")
{
+ { archive
+ .setManifest(new StringAsset("Manifest-Version: 1.0\n"
+ + "Dependencies: org.jboss.ws.cxf.jbossws-cxf-client\n"))
+
.addClass(org.jboss.test.ws.jaxws.cxf.jbws3792.wsdlImportAlpha.GreetingsWsImpl.class)
+
.addClass(org.jboss.test.ws.jaxws.cxf.jbws3792.wsdlImportAlpha.GreetingsWs.class)
+ .addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir()
+ +
"/jaxws/cxf/jbws3792/wsdlImportAlpha/WEB-INF/wsdl/Greeting_Simplest.wsdl"),
+ "wsdl/Greeting_Simplest.wsdl")
+ .addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir()
+ +
"/jaxws/cxf/jbws3792/wsdlImportAlpha/WEB-INF/wsdl/Hello.wsdl"),
+ "wsdl/Hello.wsdl")
+ .addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir()
+ +
"/jaxws/cxf/jbws3792/wsdlImportAlpha/WEB-INF/wsdl/Hello_schema2.xsd"),
+ "wsdl/Hello_schema2.xsd")
+ ;
+
+ }
+ });
+
+ return list.toArray(new JBossWSTestHelper.BaseDeployment<?>[list.size()]);
+ }
+
+ public static Test suite()
+ {
+ return new JBossWSTestSetup(JWBS3792AlphaTestCase.class,
+ JBossWSTestHelper.writeToFile(createDeployments()));
+ }
+
+ public void testImportSimplest() throws Exception {
+ URL wsdlURL = new URL("http://" + getServerHost()
+ + ":8080/jbws3792-wsdlImportAlpha/GreetingsService?wsdl");
+ QName qname = new QName("http://hello/test",
"HelloService");
+ Service service = Service.create(wsdlURL, qname);
+ Iterator<QName> it = service.getPorts();
+ int cnt = 0;
+ while (it.hasNext()){
+ cnt++;
+ QName qn = (QName)it.next();
+ assertTrue("qname: " + qn.toString(),
+ "{http://hello/test}HelloServicePort".equals(qn.toString()));
+ }
+ assertTrue("Expected cnt to be 1 but cnt is " + cnt, cnt == 1);
+ }
+}
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportBeta/GreetingsWs.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportBeta/GreetingsWs.java
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportBeta/GreetingsWs.java 2014-09-30
12:30:10 UTC (rev 18955)
@@ -0,0 +1,36 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2013, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.cxf.jbws3792.wsdlImportBeta;
+
+import javax.jws.WebService;
+
+/**
+ *
+ */
+@WebService(name = GreetingsWs.NAME, targetNamespace = GreetingsWs.TARGET_NAMESPACE)
+public interface GreetingsWs
+{
+ public final static String NAME = "GreetingsService";
+
+ public final static String TARGET_NAMESPACE = "http://greetings/test";
+}
+
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportBeta/GreetingsWsImpl.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportBeta/GreetingsWsImpl.java
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportBeta/GreetingsWsImpl.java 2014-09-30
12:30:10 UTC (rev 18955)
@@ -0,0 +1,37 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2013, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.cxf.jbws3792.wsdlImportBeta;
+
+import javax.jws.WebService;
+
+/**
+ *
+ */
+
+@WebService(
+ wsdlLocation = "WEB-INF/wsdl/Greeting_Simplest.wsdl",
+ targetNamespace = GreetingsWs.TARGET_NAMESPACE,
+ name = GreetingsWs.NAME,
+ serviceName = GreetingsWs.NAME,
+ endpointInterface =
"org.jboss.test.ws.jaxws.cxf.jbws3792.wsdlImportBeta.GreetingsWs")
+public class GreetingsWsImpl implements GreetingsWs {
+}
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportBeta/JWBS3792BetaTestCase.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportBeta/JWBS3792BetaTestCase.java
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportBeta/JWBS3792BetaTestCase.java 2014-09-30
12:30:10 UTC (rev 18955)
@@ -0,0 +1,92 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2013, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.cxf.jbws3792.wsdlImportBeta;
+
+import junit.framework.Test;
+import org.jboss.shrinkwrap.api.asset.StringAsset;
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestHelper;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import java.io.File;
+import java.net.URL;
+import java.util.Iterator;
+import java.util.LinkedList;
+import java.util.List;
+
+/**
+ * Test the schema is NOT co-located with the referencing imported wsdl.
+ * The imported wsdl and the importing wsdl are located in the same directory.
+ */
+public class JWBS3792BetaTestCase extends JBossWSTest {
+
+ public static JBossWSTestHelper.BaseDeployment<?>[] createDeployments () {
+ List<JBossWSTestHelper.BaseDeployment<?>> list = new
LinkedList<JBossWSTestHelper.BaseDeployment<?>>();
+
+ list.add(
+ new JBossWSTestHelper.WarDeployment("jbws3792-wsdlImportBeta.war")
{
+ { archive
+ .setManifest(new StringAsset("Manifest-Version: 1.0\n"
+ + "Dependencies: org.jboss.ws.cxf.jbossws-cxf-client\n"))
+
.addClass(org.jboss.test.ws.jaxws.cxf.jbws3792.wsdlImportBeta.GreetingsWsImpl.class)
+
.addClass(org.jboss.test.ws.jaxws.cxf.jbws3792.wsdlImportBeta.GreetingsWs.class)
+ .addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir()
+ +
"/jaxws/cxf/jbws3792/wsdlImportBeta/WEB-INF/wsdl/Greeting_Simplest.wsdl"),
+ "wsdl/Greeting_Simplest.wsdl")
+ .addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir()
+ +
"/jaxws/cxf/jbws3792/wsdlImportBeta/WEB-INF/wsdl/Hello.wsdl"),
+ "wsdl/Hello.wsdl")
+ .addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir()
+ +
"/jaxws/cxf/jbws3792/wsdlImportBeta/WEB-INF/wsdl/A/b/Hello_schema2.xsd"),
+ "wsdl/A/b/Hello_schema2.xsd")
+ ;
+
+ }
+ });
+
+ return list.toArray(new JBossWSTestHelper.BaseDeployment<?>[list.size()]);
+ }
+
+ public static Test suite()
+ {
+ return new JBossWSTestSetup(JWBS3792BetaTestCase.class,
+ JBossWSTestHelper.writeToFile(createDeployments()));
+ }
+
+
+ public void testImportSimplest() throws Exception {
+ URL wsdlURL = new URL("http://" + getServerHost()
+ + ":8080/jbws3792-wsdlImportBeta/GreetingsService?wsdl");
+ QName qname = new QName("http://hello/test",
"HelloService");
+ Service service = Service.create(wsdlURL, qname);
+ Iterator<QName> it = service.getPorts();
+ int cnt = 0;
+ while (it.hasNext()){
+ cnt++;
+ QName qn = (QName)it.next();
+
assertTrue("{http://hello/test}HelloServicePort".equals(qn.toString()));
+ }
+ assertTrue("Expected cnt to be 1 but cnt is " + cnt, cnt == 1);
+ }
+}
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportDelta/GreetingsWs.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportDelta/GreetingsWs.java
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportDelta/GreetingsWs.java 2014-09-30
12:30:10 UTC (rev 18955)
@@ -0,0 +1,36 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2013, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.cxf.jbws3792.wsdlImportDelta;
+
+import javax.jws.WebService;
+
+/**
+ *
+ */
+@WebService(name = GreetingsWs.NAME, targetNamespace = GreetingsWs.TARGET_NAMESPACE)
+public interface GreetingsWs
+{
+ public final static String NAME = "GreetingsService";
+
+ public final static String TARGET_NAMESPACE = "http://greetings/test";
+}
+
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportDelta/GreetingsWsImpl.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportDelta/GreetingsWsImpl.java
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportDelta/GreetingsWsImpl.java 2014-09-30
12:30:10 UTC (rev 18955)
@@ -0,0 +1,37 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2013, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.cxf.jbws3792.wsdlImportDelta;
+
+import javax.jws.WebService;
+
+/**
+ *
+ */
+
+@WebService(
+ wsdlLocation = "WEB-INF/wsdl/Greeting_Simplest.wsdl",
+ targetNamespace = GreetingsWs.TARGET_NAMESPACE,
+ name = GreetingsWs.NAME,
+ serviceName = GreetingsWs.NAME,
+ endpointInterface =
"org.jboss.test.ws.jaxws.cxf.jbws3792.wsdlImportDelta.GreetingsWs")
+public class GreetingsWsImpl implements GreetingsWs {
+}
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportDelta/JWBS3792DeltaTestCase.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportDelta/JWBS3792DeltaTestCase.java
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportDelta/JWBS3792DeltaTestCase.java 2014-09-30
12:30:10 UTC (rev 18955)
@@ -0,0 +1,93 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2013, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.cxf.jbws3792.wsdlImportDelta;
+
+import junit.framework.Test;
+import org.jboss.shrinkwrap.api.asset.StringAsset;
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestHelper;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import java.io.File;
+import java.net.URL;
+import java.util.Iterator;
+import java.util.LinkedList;
+import java.util.List;
+
+/**
+ * Test imported wsdl is NOT co-located with the importing wsdl
+ * and schema is NOT co-located with the referencing imported wsdl.
+ */
+public class JWBS3792DeltaTestCase extends JBossWSTest {
+
+ public static JBossWSTestHelper.BaseDeployment<?>[] createDeployments () {
+ List<JBossWSTestHelper.BaseDeployment<?>> list = new
LinkedList<JBossWSTestHelper.BaseDeployment<?>>();
+
+ list.add(
+ new JBossWSTestHelper.WarDeployment("jbws3792-wsdlImportDelta.war")
{
+ { archive
+ .setManifest(new StringAsset("Manifest-Version: 1.0\n"
+ + "Dependencies: org.jboss.ws.cxf.jbossws-cxf-client\n"))
+
.addClass(org.jboss.test.ws.jaxws.cxf.jbws3792.wsdlImportDelta.GreetingsWsImpl.class)
+
.addClass(org.jboss.test.ws.jaxws.cxf.jbws3792.wsdlImportDelta.GreetingsWs.class)
+ .addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir()
+ +
"/jaxws/cxf/jbws3792/wsdlImportDelta/WEB-INF/wsdl/Greeting_Simplest.wsdl"),
+ "wsdl/Greeting_Simplest.wsdl")
+ .addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir()
+ +
"/jaxws/cxf/jbws3792/wsdlImportDelta/WEB-INF/wsdl/A/b/Hello.wsdl"),
+ "wsdl/A/b/Hello.wsdl")
+ .addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir()
+ +
"/jaxws/cxf/jbws3792/wsdlImportDelta/WEB-INF/schema/Hello_schema2.xsd"),
+ "schema/Hello_schema2.xsd")
+ ;
+
+ }
+ });
+
+ return list.toArray(new JBossWSTestHelper.BaseDeployment<?>[list.size()]);
+ }
+
+ public static Test suite()
+ {
+ return new JBossWSTestSetup(JWBS3792DeltaTestCase.class,
+ JBossWSTestHelper.writeToFile(createDeployments()));
+ }
+
+
+ public void testImportSimplest() throws Exception {
+
+ URL wsdlURL = new URL("http://" + getServerHost()
+ + ":8080/jbws3792-wsdlImportDelta/GreetingsService?wsdl");
+ QName qname = new QName("http://hello/test",
"HelloService");
+ Service service = Service.create(wsdlURL, qname);
+ Iterator<QName> it = service.getPorts();
+ int cnt = 0;
+ while (it.hasNext()){
+ cnt++;
+ QName qn = (QName)it.next();
+
assertTrue("{http://hello/test}HelloServicePort".equals(qn.toString()));
+ }
+ assertTrue("Expected cnt to be 1 but cnt is " + cnt, cnt == 1);
+ }
+}
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportEpsilon/GreetingsWs.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportEpsilon/GreetingsWs.java
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportEpsilon/GreetingsWs.java 2014-09-30
12:30:10 UTC (rev 18955)
@@ -0,0 +1,36 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2013, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.cxf.jbws3792.wsdlImportEpsilon;
+
+import javax.jws.WebService;
+
+/**
+ *
+ */
+@WebService(name = GreetingsWs.NAME, targetNamespace = GreetingsWs.TARGET_NAMESPACE)
+public interface GreetingsWs
+{
+ public final static String NAME = "GreetingsService";
+
+ public final static String TARGET_NAMESPACE = "http://greetings/test";
+}
+
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportEpsilon/GreetingsWsImpl.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportEpsilon/GreetingsWsImpl.java
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportEpsilon/GreetingsWsImpl.java 2014-09-30
12:30:10 UTC (rev 18955)
@@ -0,0 +1,37 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2013, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.cxf.jbws3792.wsdlImportEpsilon;
+
+import javax.jws.WebService;
+
+/**
+ *
+ */
+
+@WebService(
+ wsdlLocation = "WEB-INF/wsdl/Greeting_Simplest.wsdl",
+ targetNamespace = GreetingsWs.TARGET_NAMESPACE,
+ name = GreetingsWs.NAME,
+ serviceName = GreetingsWs.NAME,
+ endpointInterface =
"org.jboss.test.ws.jaxws.cxf.jbws3792.wsdlImportEpsilon.GreetingsWs")
+public class GreetingsWsImpl implements GreetingsWs {
+}
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportEpsilon/JWBS3792EpsilonTestCase.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportEpsilon/JWBS3792EpsilonTestCase.java
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportEpsilon/JWBS3792EpsilonTestCase.java 2014-09-30
12:30:10 UTC (rev 18955)
@@ -0,0 +1,103 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2013, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.cxf.jbws3792.wsdlImportEpsilon;
+
+import junit.framework.Test;
+import org.jboss.shrinkwrap.api.asset.StringAsset;
+import org.jboss.test.ws.jaxws.cxf.jbws3792.HelloRequest;
+import org.jboss.test.ws.jaxws.cxf.jbws3792.HelloResponse;
+import org.jboss.test.ws.jaxws.cxf.jbws3792.HelloWs;
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestHelper;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import java.io.File;
+import java.net.URL;
+import java.util.LinkedList;
+import java.util.List;
+
+/**
+ * Test imported wsdl identified by URL of deployed app.
+ */
+public class JWBS3792EpsilonTestCase extends JBossWSTest {
+
+ public static JBossWSTestHelper.BaseDeployment<?>[] createDeployments () {
+ List<JBossWSTestHelper.BaseDeployment<?>> list = new
LinkedList<JBossWSTestHelper.BaseDeployment<?>>();
+
+ list.add(
+ new JBossWSTestHelper.WarDeployment("jbws3792-hello.war") {
+ {
+ archive
+ .setManifest(new StringAsset("Manifest-Version: 1.0\n"
+ + "Dependencies:
org.jboss.ws.cxf.jbossws-cxf-client\n"))
+
.addClass(org.jboss.test.ws.jaxws.cxf.jbws3792.HelloResponse.class)
+
.addClass(org.jboss.test.ws.jaxws.cxf.jbws3792.HelloRequest.class)
+
.addClass(org.jboss.test.ws.jaxws.cxf.jbws3792.HelloWSImpl.class)
+ .addClass(org.jboss.test.ws.jaxws.cxf.jbws3792.HelloWs.class)
+ .addAsWebInfResource(new
File(JBossWSTestHelper.getTestResourcesDir()
+ + "/jaxws/cxf/jbws3792/WEB-INF/wsdl/Hello.wsdl"),
+ "wsdl/Hello.wsdl")
+ .addAsWebInfResource(new
File(JBossWSTestHelper.getTestResourcesDir()
+ +
"/jaxws/cxf/jbws3792/WEB-INF/wsdl/Hello_schema2.xsd"),
+ "wsdl/Hello_schema2.xsd")
+ ;
+ }
+ });
+
+ list.add(
+ new
JBossWSTestHelper.WarDeployment("jbws3792-wsdlImportEpsilon.war") {
+ { archive
+ .setManifest(new StringAsset("Manifest-Version: 1.0\n"
+ + "Dependencies: org.jboss.ws.cxf.jbossws-cxf-client\n"))
+
.addClass(org.jboss.test.ws.jaxws.cxf.jbws3792.wsdlImportEpsilon.GreetingsWsImpl.class)
+
.addClass(org.jboss.test.ws.jaxws.cxf.jbws3792.wsdlImportEpsilon.GreetingsWs.class)
+ .addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir()
+ +
"/jaxws/cxf/jbws3792/wsdlImportEpsilon/WEB-INF/wsdl/Greeting_Simplest.wsdl"),
+ "wsdl/Greeting_Simplest.wsdl")
+ ;
+ }
+ });
+
+ return list.toArray(new JBossWSTestHelper.BaseDeployment<?>[list.size()]);
+ }
+
+ public static Test suite()
+ {
+ return new JBossWSTestSetup(JWBS3792EpsilonTestCase.class,
+ JBossWSTestHelper.writeToFile(createDeployments()));
+ }
+
+
+ public void testImportSimplest() throws Exception {
+ URL wsdlURL = new URL("http://" + getServerHost()
+ + ":8080/jbws3792-wsdlImportEpsilon/GreetingsService?wsdl");
+ QName qname = new QName("http://hello/test",
"HelloService");
+ Service service = Service.create(wsdlURL, qname);
+ HelloWs hello = (HelloWs)service.getPort(HelloWs.class);
+ HelloRequest hReq = new HelloRequest();
+ hReq.setInput("Joe");
+ HelloResponse hRep = hello.doHello(hReq);
+ assertEquals("Joe", hRep.getMultiHello().get(0));
+ }
+}
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportGamma/GreetingsWs.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportGamma/GreetingsWs.java
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportGamma/GreetingsWs.java 2014-09-30
12:30:10 UTC (rev 18955)
@@ -0,0 +1,36 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2013, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.cxf.jbws3792.wsdlImportGamma;
+
+import javax.jws.WebService;
+
+/**
+ *
+ */
+@WebService(name = GreetingsWs.NAME, targetNamespace = GreetingsWs.TARGET_NAMESPACE)
+public interface GreetingsWs
+{
+ public final static String NAME = "GreetingsService";
+
+ public final static String TARGET_NAMESPACE = "http://greetings/test";
+}
+
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportGamma/GreetingsWsImpl.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportGamma/GreetingsWsImpl.java
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportGamma/GreetingsWsImpl.java 2014-09-30
12:30:10 UTC (rev 18955)
@@ -0,0 +1,37 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2013, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.cxf.jbws3792.wsdlImportGamma;
+
+import javax.jws.WebService;
+
+/**
+ *
+ */
+
+@WebService(
+ wsdlLocation = "WEB-INF/wsdl/Greeting_Simplest.wsdl",
+ targetNamespace = GreetingsWs.TARGET_NAMESPACE,
+ name = GreetingsWs.NAME,
+ serviceName = GreetingsWs.NAME,
+ endpointInterface =
"org.jboss.test.ws.jaxws.cxf.jbws3792.wsdlImportGamma.GreetingsWs")
+public class GreetingsWsImpl implements GreetingsWs {
+}
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportGamma/JWBS3792GammaTestCase.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportGamma/JWBS3792GammaTestCase.java
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3792/wsdlImportGamma/JWBS3792GammaTestCase.java 2014-09-30
12:30:10 UTC (rev 18955)
@@ -0,0 +1,91 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2013, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.cxf.jbws3792.wsdlImportGamma;
+
+import junit.framework.Test;
+import org.jboss.shrinkwrap.api.asset.StringAsset;
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestHelper;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import java.io.File;
+import java.net.URL;
+import java.util.Iterator;
+import java.util.LinkedList;
+import java.util.List;
+
+/**
+ * Test imported wsdl and its referenced schema is NOT co-located with the
+ * importing wsdl. The imported wsdl and its referenced schema are located
+ * in the same directory as the importing wsdl.
+ */
+public class JWBS3792GammaTestCase extends JBossWSTest {
+
+ public static JBossWSTestHelper.BaseDeployment<?>[] createDeployments () {
+ List<JBossWSTestHelper.BaseDeployment<?>> list = new
LinkedList<JBossWSTestHelper.BaseDeployment<?>>();
+
+ list.add(
+ new JBossWSTestHelper.WarDeployment("jbws3792-wsdlImportGamma.war")
{
+ { archive
+ .setManifest(new StringAsset("Manifest-Version: 1.0\n"
+ + "Dependencies: org.jboss.ws.cxf.jbossws-cxf-client\n"))
+
.addClass(org.jboss.test.ws.jaxws.cxf.jbws3792.wsdlImportGamma.GreetingsWsImpl.class)
+
.addClass(org.jboss.test.ws.jaxws.cxf.jbws3792.wsdlImportGamma.GreetingsWs.class)
+ .addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir()
+ +
"/jaxws/cxf/jbws3792/wsdlImportGamma/WEB-INF/wsdl/Greeting_Simplest.wsdl"),
+ "wsdl/Greeting_Simplest.wsdl")
+ .addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir()
+ +
"/jaxws/cxf/jbws3792/wsdlImportGamma/WEB-INF/wsdl/A/b/Hello.wsdl"),
"wsdl/A/b/Hello.wsdl")
+ .addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir()
+ +
"/jaxws/cxf/jbws3792/wsdlImportGamma/WEB-INF/wsdl/A/b/Hello_schema2.xsd"),
"wsdl/A/b/Hello_schema2.xsd")
+ ;
+
+ }
+ });
+
+ return list.toArray(new JBossWSTestHelper.BaseDeployment<?>[list.size()]);
+ }
+
+ public static Test suite()
+ {
+ return new JBossWSTestSetup(JWBS3792GammaTestCase.class,
+ JBossWSTestHelper.writeToFile(createDeployments()));
+ }
+
+
+ public void testImportSimplest() throws Exception {
+ URL wsdlURL = new URL("http://" + getServerHost()
+ + ":8080/jbws3792-wsdlImportGamma/GreetingsService?wsdl");
+ QName qname = new QName("http://hello/test",
"HelloService");
+ Service service = Service.create(wsdlURL, qname);
+ Iterator<QName> it = service.getPorts();
+ int cnt = 0;
+ while (it.hasNext()){
+ cnt++;
+ QName qn = (QName)it.next();
+
assertTrue("{http://hello/test}HelloServicePort".equals(qn.toString()));
+ }
+ assertTrue("Expected cnt to be 1 but cnt is " + cnt, cnt == 1);
+ }
+}
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/WEB-INF/wsdl/Hello.wsdl
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/WEB-INF/wsdl/Hello.wsdl
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/WEB-INF/wsdl/Hello.wsdl 2014-09-30
12:30:10 UTC (rev 18955)
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions name="HelloService"
+ targetNamespace="http://hello/test"
+
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:tns="http://hello/test"
+ xmlns:tns2="http://hello/test2"
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
+
+ <wsdl:types>
+ <schema
xmlns="http://www.w3.org/2001/XMLSchema">
+ <import namespace="http://hello/test2"
schemaLocation="Hello_schema2.xsd"/>
+ </schema>
+ </wsdl:types>
+ <wsdl:message name="doHello">
+ <wsdl:part name="parameters" element="tns2:doHello">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="doHelloResponse">
+ <wsdl:part name="parameters"
element="tns2:doHelloResponse">
+ </wsdl:part>
+ </wsdl:message>
+
+ <wsdl:portType name="HelloService">
+ <wsdl:operation name="doHello">
+ <wsdl:input name="doHello" message="tns:doHello">
+ </wsdl:input>
+ <wsdl:output name="doHelloResponse"
message="tns:doHelloResponse">
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="HelloServiceSoapBinding"
type="tns:HelloService">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="doHello">
+ <soap:operation soapAction="" style="document"/>
+ <wsdl:input name="doHello">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="doHelloResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+
+ <wsdl:service name="HelloService">
+ <wsdl:port name="HelloServicePort"
binding="tns:HelloServiceSoapBinding">
+ <soap:address location="http://localhost:8080/HelloServicePort"/>
+ </wsdl:port>
+ </wsdl:service>
+
+</wsdl:definitions>
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/WEB-INF/wsdl/Hello_schema2.xsd
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/WEB-INF/wsdl/Hello_schema2.xsd
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/WEB-INF/wsdl/Hello_schema2.xsd 2014-09-30
12:30:10 UTC (rev 18955)
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xs:schema xmlns="http://hello/test2"
+ xmlns:tns="http://hello/test2"
+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ elementFormDefault="unqualified"
+ targetNamespace="http://hello/test2"
+ version="1.0">
+
+ <xs:element name="doHello" type="tns:doHello"/>
+ <xs:element name="doHelloResponse"
type="tns:doHelloResponse"/>
+ <xs:complexType name="doHello">
+ <xs:sequence>
+ <xs:element minOccurs="0" name="arg0"
type="tns:helloRequest"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="helloRequest">
+ <xs:sequence>
+ <xs:element minOccurs="0" name="hello"
type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="doHelloResponse">
+ <xs:sequence>
+ <xs:element minOccurs="0" name="return"
type="tns:helloResponse"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="helloResponse">
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" minOccurs="0"
name="multiHello" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+</xs:schema>
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportAlpha/WEB-INF/wsdl/Greeting_Simplest.wsdl
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportAlpha/WEB-INF/wsdl/Greeting_Simplest.wsdl
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportAlpha/WEB-INF/wsdl/Greeting_Simplest.wsdl 2014-09-30
12:30:10 UTC (rev 18955)
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions
+ targetNamespace="http://greetings/test"
+
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:tns="http://greetings/test"
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ >
+
+ <wsdl:import namespace="http://hello/test"
+ location="Hello.wsdl" />
+
+ <wsdl:portType name="GreetingsService">
+ </wsdl:portType>
+
+ <wsdl:binding name="GreetingsServiceSoapBinding"
type="tns:GreetingsService">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ </wsdl:binding>
+
+ <wsdl:service name="GreetingsService">
+ <wsdl:port name="GreetingsServicePort"
binding="tns:GreetingsServiceSoapBinding">
+ <soap:address
location="http://localhost:8080/GreetingsServicePort"/>
+ </wsdl:port>
+ </wsdl:service>
+
+</wsdl:definitions>
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportAlpha/WEB-INF/wsdl/Hello.wsdl
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportAlpha/WEB-INF/wsdl/Hello.wsdl
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportAlpha/WEB-INF/wsdl/Hello.wsdl 2014-09-30
12:30:10 UTC (rev 18955)
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions name="HelloService"
+ targetNamespace="http://hello/test"
+
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:tns="http://hello/test"
+ xmlns:tns2="http://hello/test2"
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
+
+ <wsdl:types>
+ <schema
xmlns="http://www.w3.org/2001/XMLSchema">
+ <import namespace="http://hello/test2"
schemaLocation="Hello_schema2.xsd"/>
+ </schema>
+ </wsdl:types>
+ <wsdl:message name="doHello">
+ <wsdl:part name="parameters" element="tns2:doHello">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="doHelloResponse">
+ <wsdl:part name="parameters"
element="tns2:doHelloResponse">
+ </wsdl:part>
+ </wsdl:message>
+
+ <wsdl:portType name="HelloService">
+ <wsdl:operation name="doHello">
+ <wsdl:input name="doHello" message="tns:doHello">
+ </wsdl:input>
+ <wsdl:output name="doHelloResponse"
message="tns:doHelloResponse">
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="HelloServiceSoapBinding"
type="tns:HelloService">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="doHello">
+ <soap:operation soapAction="" style="document"/>
+ <wsdl:input name="doHello">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="doHelloResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+
+ <wsdl:service name="HelloService">
+ <wsdl:port name="HelloServicePort"
binding="tns:HelloServiceSoapBinding">
+ <soap:address location="http://localhost:8080/HelloServicePort"/>
+ </wsdl:port>
+ </wsdl:service>
+
+</wsdl:definitions>
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportAlpha/WEB-INF/wsdl/Hello_schema2.xsd
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportAlpha/WEB-INF/wsdl/Hello_schema2.xsd
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportAlpha/WEB-INF/wsdl/Hello_schema2.xsd 2014-09-30
12:30:10 UTC (rev 18955)
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xs:schema xmlns="http://hello/test2"
+ xmlns:tns="http://hello/test2"
+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ elementFormDefault="unqualified"
+ targetNamespace="http://hello/test2"
+ version="1.0">
+
+ <xs:element name="doHello" type="tns:doHello"/>
+ <xs:element name="doHelloResponse"
type="tns:doHelloResponse"/>
+ <xs:complexType name="doHello">
+ <xs:sequence>
+ <xs:element minOccurs="0" name="arg0"
type="tns:helloRequest"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="helloRequest">
+ <xs:sequence>
+ <xs:element minOccurs="0" name="hello"
type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="doHelloResponse">
+ <xs:sequence>
+ <xs:element minOccurs="0" name="return"
type="tns:helloResponse"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="helloResponse">
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" minOccurs="0"
name="multiHello" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+</xs:schema>
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportBeta/WEB-INF/wsdl/A/b/Hello_schema2.xsd
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportBeta/WEB-INF/wsdl/A/b/Hello_schema2.xsd
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportBeta/WEB-INF/wsdl/A/b/Hello_schema2.xsd 2014-09-30
12:30:10 UTC (rev 18955)
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xs:schema xmlns="http://hello/test2"
+ xmlns:tns="http://hello/test2"
+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ elementFormDefault="unqualified"
+ targetNamespace="http://hello/test2"
+ version="1.0">
+
+ <xs:element name="doHello" type="tns:doHello"/>
+ <xs:element name="doHelloResponse"
type="tns:doHelloResponse"/>
+ <xs:complexType name="doHello">
+ <xs:sequence>
+ <xs:element minOccurs="0" name="arg0"
type="tns:helloRequest"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="helloRequest">
+ <xs:sequence>
+ <xs:element minOccurs="0" name="hello"
type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="doHelloResponse">
+ <xs:sequence>
+ <xs:element minOccurs="0" name="return"
type="tns:helloResponse"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="helloResponse">
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" minOccurs="0"
name="multiHello" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+</xs:schema>
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportBeta/WEB-INF/wsdl/Greeting_Simplest.wsdl
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportBeta/WEB-INF/wsdl/Greeting_Simplest.wsdl
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportBeta/WEB-INF/wsdl/Greeting_Simplest.wsdl 2014-09-30
12:30:10 UTC (rev 18955)
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions
+ targetNamespace="http://greetings/test"
+
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:tns="http://greetings/test"
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ >
+
+ <wsdl:import namespace="http://hello/test"
+ location="Hello.wsdl" />
+
+ <wsdl:portType name="GreetingsService">
+ </wsdl:portType>
+
+ <wsdl:binding name="GreetingsServiceSoapBinding"
type="tns:GreetingsService">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ </wsdl:binding>
+
+ <wsdl:service name="GreetingsService">
+ <wsdl:port name="GreetingsServicePort"
binding="tns:GreetingsServiceSoapBinding">
+ <soap:address
location="http://localhost:8080/GreetingsServicePort"/>
+ </wsdl:port>
+ </wsdl:service>
+
+</wsdl:definitions>
+
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportBeta/WEB-INF/wsdl/Hello.wsdl
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportBeta/WEB-INF/wsdl/Hello.wsdl
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportBeta/WEB-INF/wsdl/Hello.wsdl 2014-09-30
12:30:10 UTC (rev 18955)
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions name="HelloService"
+ targetNamespace="http://hello/test"
+
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:tns="http://hello/test"
+ xmlns:tns2="http://hello/test2"
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
+
+ <wsdl:types>
+ <schema
xmlns="http://www.w3.org/2001/XMLSchema">
+ <import namespace="http://hello/test2"
schemaLocation="A/b/Hello_schema2.xsd"/>
+ </schema>
+ </wsdl:types>
+ <wsdl:message name="doHello">
+ <wsdl:part name="parameters" element="tns2:doHello">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="doHelloResponse">
+ <wsdl:part name="parameters"
element="tns2:doHelloResponse">
+ </wsdl:part>
+ </wsdl:message>
+
+ <wsdl:portType name="HelloService">
+ <wsdl:operation name="doHello">
+ <wsdl:input name="doHello" message="tns:doHello">
+ </wsdl:input>
+ <wsdl:output name="doHelloResponse"
message="tns:doHelloResponse">
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="HelloServiceSoapBinding"
type="tns:HelloService">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="doHello">
+ <soap:operation soapAction="" style="document"/>
+ <wsdl:input name="doHello">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="doHelloResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+
+ <wsdl:service name="HelloService">
+ <wsdl:port name="HelloServicePort"
binding="tns:HelloServiceSoapBinding">
+ <soap:address location="http://localhost:8080/HelloServicePort"/>
+ </wsdl:port>
+ </wsdl:service>
+
+</wsdl:definitions>
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportDelta/WEB-INF/schema/Hello_schema2.xsd
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportDelta/WEB-INF/schema/Hello_schema2.xsd
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportDelta/WEB-INF/schema/Hello_schema2.xsd 2014-09-30
12:30:10 UTC (rev 18955)
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xs:schema xmlns="http://hello/test2"
+ xmlns:tns="http://hello/test2"
+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ elementFormDefault="unqualified"
+ targetNamespace="http://hello/test2"
+ version="1.0">
+
+ <xs:element name="doHello" type="tns:doHello"/>
+ <xs:element name="doHelloResponse"
type="tns:doHelloResponse"/>
+ <xs:complexType name="doHello">
+ <xs:sequence>
+ <xs:element minOccurs="0" name="arg0"
type="tns:helloRequest"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="helloRequest">
+ <xs:sequence>
+ <xs:element minOccurs="0" name="hello"
type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="doHelloResponse">
+ <xs:sequence>
+ <xs:element minOccurs="0" name="return"
type="tns:helloResponse"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="helloResponse">
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" minOccurs="0"
name="multiHello" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+</xs:schema>
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportDelta/WEB-INF/wsdl/A/b/Hello.wsdl
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportDelta/WEB-INF/wsdl/A/b/Hello.wsdl
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportDelta/WEB-INF/wsdl/A/b/Hello.wsdl 2014-09-30
12:30:10 UTC (rev 18955)
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions name="HelloService"
+ targetNamespace="http://hello/test"
+
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:tns="http://hello/test"
+ xmlns:tns2="http://hello/test2"
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
+
+ <wsdl:types>
+ <schema
xmlns="http://www.w3.org/2001/XMLSchema">
+ <import namespace="http://hello/test2"
schemaLocation="../../../schema/Hello_schema2.xsd"/>
+ </schema>
+ </wsdl:types>
+ <wsdl:message name="doHello">
+ <wsdl:part name="parameters" element="tns2:doHello">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="doHelloResponse">
+ <wsdl:part name="parameters"
element="tns2:doHelloResponse">
+ </wsdl:part>
+ </wsdl:message>
+
+ <wsdl:portType name="HelloService">
+ <wsdl:operation name="doHello">
+ <wsdl:input name="doHello" message="tns:doHello">
+ </wsdl:input>
+ <wsdl:output name="doHelloResponse"
message="tns:doHelloResponse">
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="HelloServiceSoapBinding"
type="tns:HelloService">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="doHello">
+ <soap:operation soapAction="" style="document"/>
+ <wsdl:input name="doHello">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="doHelloResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+
+ <wsdl:service name="HelloService">
+ <wsdl:port name="HelloServicePort"
binding="tns:HelloServiceSoapBinding">
+ <soap:address
location="http://localhost:8080/HelloServicePort"/>
+ </wsdl:port>
+ </wsdl:service>
+
+</wsdl:definitions>
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportDelta/WEB-INF/wsdl/Greeting_Simplest.wsdl
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportDelta/WEB-INF/wsdl/Greeting_Simplest.wsdl
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportDelta/WEB-INF/wsdl/Greeting_Simplest.wsdl 2014-09-30
12:30:10 UTC (rev 18955)
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions
+ targetNamespace="http://greetings/test"
+
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:tns="http://greetings/test"
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ >
+
+ <wsdl:import namespace="http://hello/test"
location="A/b/Hello.wsdl" />
+
+ <wsdl:portType name="GreetingsService">
+ </wsdl:portType>
+
+ <wsdl:binding name="GreetingsServiceSoapBinding"
type="tns:GreetingsService">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ </wsdl:binding>
+
+ <wsdl:service name="GreetingsService">
+ <wsdl:port name="GreetingsServicePort"
binding="tns:GreetingsServiceSoapBinding">
+ <soap:address
location="http://localhost:8080/GreetingsServicePort"/>
+ </wsdl:port>
+ </wsdl:service>
+
+</wsdl:definitions>
+
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportEpsilon/WEB-INF/wsdl/Greeting_Simplest.wsdl
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportEpsilon/WEB-INF/wsdl/Greeting_Simplest.wsdl
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportEpsilon/WEB-INF/wsdl/Greeting_Simplest.wsdl 2014-09-30
12:30:10 UTC (rev 18955)
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions
+ targetNamespace="http://greetings/test"
+
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:tns="http://greetings/test"
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ >
+ <wsdl:import namespace="http://hello/test"
+
location="http://localhost:8080/jbws3792-hello/HelloService?wsdl" />
+
+ <wsdl:portType name="GreetingsService">
+ </wsdl:portType>
+
+ <wsdl:binding name="GreetingsServiceSoapBinding"
type="tns:GreetingsService">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ </wsdl:binding>
+
+ <wsdl:service name="GreetingsService">
+ <wsdl:port name="GreetingsServicePort"
binding="tns:GreetingsServiceSoapBinding">
+ <soap:address
location="http://localhost:8080/GreetingsServicePort"/>
+ </wsdl:port>
+ </wsdl:service>
+
+</wsdl:definitions>
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportGamma/WEB-INF/wsdl/A/b/Hello.wsdl
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportGamma/WEB-INF/wsdl/A/b/Hello.wsdl
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportGamma/WEB-INF/wsdl/A/b/Hello.wsdl 2014-09-30
12:30:10 UTC (rev 18955)
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions name="HelloService"
+ targetNamespace="http://hello/test"
+
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:tns="http://hello/test"
+ xmlns:tns2="http://hello/test2"
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
+
+ <wsdl:types>
+ <schema
xmlns="http://www.w3.org/2001/XMLSchema">
+ <import namespace="http://hello/test2"
schemaLocation="Hello_schema2.xsd"/>
+ </schema>
+ </wsdl:types>
+ <wsdl:message name="doHello">
+ <wsdl:part name="parameters" element="tns2:doHello">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="doHelloResponse">
+ <wsdl:part name="parameters"
element="tns2:doHelloResponse">
+ </wsdl:part>
+ </wsdl:message>
+
+ <wsdl:portType name="HelloService">
+ <wsdl:operation name="doHello">
+ <wsdl:input name="doHello" message="tns:doHello">
+ </wsdl:input>
+ <wsdl:output name="doHelloResponse"
message="tns:doHelloResponse">
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="HelloServiceSoapBinding"
type="tns:HelloService">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="doHello">
+ <soap:operation soapAction="" style="document"/>
+ <wsdl:input name="doHello">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="doHelloResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+
+ <wsdl:service name="HelloService">
+ <wsdl:port name="HelloServicePort"
binding="tns:HelloServiceSoapBinding">
+ <soap:address location="http://localhost:8080/HelloServicePort"/>
+ </wsdl:port>
+ </wsdl:service>
+
+</wsdl:definitions>
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportGamma/WEB-INF/wsdl/A/b/Hello_schema2.xsd
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportGamma/WEB-INF/wsdl/A/b/Hello_schema2.xsd
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportGamma/WEB-INF/wsdl/A/b/Hello_schema2.xsd 2014-09-30
12:30:10 UTC (rev 18955)
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xs:schema xmlns="http://hello/test2"
+ xmlns:tns="http://hello/test2"
+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ elementFormDefault="unqualified"
+ targetNamespace="http://hello/test2"
+ version="1.0">
+
+ <xs:element name="doHello" type="tns:doHello"/>
+ <xs:element name="doHelloResponse"
type="tns:doHelloResponse"/>
+ <xs:complexType name="doHello">
+ <xs:sequence>
+ <xs:element minOccurs="0" name="arg0"
type="tns:helloRequest"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="helloRequest">
+ <xs:sequence>
+ <xs:element minOccurs="0" name="hello"
type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="doHelloResponse">
+ <xs:sequence>
+ <xs:element minOccurs="0" name="return"
type="tns:helloResponse"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="helloResponse">
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" minOccurs="0"
name="multiHello" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+</xs:schema>
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportGamma/WEB-INF/wsdl/Greeting_Simplest.wsdl
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportGamma/WEB-INF/wsdl/Greeting_Simplest.wsdl
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3792/wsdlImportGamma/WEB-INF/wsdl/Greeting_Simplest.wsdl 2014-09-30
12:30:10 UTC (rev 18955)
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions
+ targetNamespace="http://greetings/test"
+
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:tns="http://greetings/test"
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ >
+
+ <wsdl:import namespace="http://hello/test"
+ location="A/b/Hello.wsdl" />
+
+ <wsdl:portType name="GreetingsService">
+ </wsdl:portType>
+
+ <wsdl:binding name="GreetingsServiceSoapBinding"
type="tns:GreetingsService">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ </wsdl:binding>
+
+ <wsdl:service name="GreetingsService">
+ <wsdl:port name="GreetingsServicePort"
binding="tns:GreetingsServiceSoapBinding">
+ <soap:address
location="http://localhost:8080/GreetingsServicePort"/>
+ </wsdl:port>
+ </wsdl:service>
+
+</wsdl:definitions>
+