[jboss-svn-commits] JBL Code SVN: r38125 - in labs/jbossesb/branches/JBESB_4_11_CP/product: services/soap/src/main/java/org/jboss/soa/esb/actions/soap and 3 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Mon Jun 18 02:10:48 EDT 2012


Author: mageshbk at jboss.com
Date: 2012-06-18 02:10:45 -0400 (Mon, 18 Jun 2012)
New Revision: 38125

Added:
   labs/jbossesb/branches/JBESB_4_11_CP/product/services/soap/src/test/java/org/jboss/soa/esb/actions/soap/soap-message-08.xml
   labs/jbossesb/branches/JBESB_4_11_CP/product/services/soap/src/test/java/org/jboss/soa/esb/actions/soap/soap-message-09.xml
   labs/jbossesb/branches/JBESB_4_11_CP/product/services/soapui-client/src/test/java/org/jboss/soa/esb/services/soapui/AnyTypeSoapUIClientServiceMBeanUnitTest.java
   labs/jbossesb/branches/JBESB_4_11_CP/product/services/soapui-client/src/test/java/org/jboss/soa/esb/services/soapui/anytype_request.xml
   labs/jbossesb/branches/JBESB_4_11_CP/product/services/soapui-client/src/test/java/org/jboss/soa/esb/services/soapui/anytype_response.xml
   labs/jbossesb/branches/JBESB_4_11_CP/product/services/soapui-client/src/test/java/org/jboss/soa/esb/services/soapui/anytype_response_merged.xml
   labs/jbossesb/branches/JBESB_4_11_CP/product/services/soapui-client/src/test/java/org/jboss/soa/esb/services/soapui/anytypehelloworld.wsdl
Modified:
   labs/jbossesb/branches/JBESB_4_11_CP/product/rosetta/src/org/jboss/internal/soa/esb/soap/OGNLUtils.java
   labs/jbossesb/branches/JBESB_4_11_CP/product/services/soap/src/main/java/org/jboss/soa/esb/actions/soap/SOAPClient.java
   labs/jbossesb/branches/JBESB_4_11_CP/product/services/soap/src/test/java/org/jboss/soa/esb/actions/soap/SOAPClient_Response_UnitTest.java
   labs/jbossesb/branches/JBESB_4_11_CP/product/services/soap/src/test/java/org/jboss/soa/esb/actions/soap/soapclient-config-01.xml
   labs/jbossesb/branches/JBESB_4_11_CP/product/services/soapui-client/src/main/java/org/jboss/soa/esb/services/soapui/SoapUIClientService.java
Log:
[JBESB-3809] - Add support for <xs:any> data type in SOAPClient.

Modified: labs/jbossesb/branches/JBESB_4_11_CP/product/rosetta/src/org/jboss/internal/soa/esb/soap/OGNLUtils.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/rosetta/src/org/jboss/internal/soa/esb/soap/OGNLUtils.java	2012-06-15 14:58:58 UTC (rev 38124)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/rosetta/src/org/jboss/internal/soa/esb/soap/OGNLUtils.java	2012-06-18 06:10:45 UTC (rev 38125)
@@ -22,6 +22,7 @@
     public static final String JBOSSESB_SOAP_NS_PREFIX = "jbossesb-soap:";
     public static final String OGNL_ATTRIB = "ognl";
     public static final String IS_COLLECTION_ATTRIB = "is-collection";
+    public static final String SOAPUI_ANYTYPE_COMMENT = "You may enter ANY elements at this point";
     public static final String SOAPUI_CLONE_COMMENT = " repetitions:";
     public static final String CLONED_POSTFIX = " - cloned";
     public static final String SOAPENC_NS = "http://schemas.xmlsoap.org/soap/encoding/";

Modified: labs/jbossesb/branches/JBESB_4_11_CP/product/services/soap/src/main/java/org/jboss/soa/esb/actions/soap/SOAPClient.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/services/soap/src/main/java/org/jboss/soa/esb/actions/soap/SOAPClient.java	2012-06-15 14:58:58 UTC (rev 38124)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/services/soap/src/main/java/org/jboss/soa/esb/actions/soap/SOAPClient.java	2012-06-18 06:10:45 UTC (rev 38125)
@@ -25,6 +25,7 @@
 import java.io.File;
 import java.io.IOException;
 import java.io.StringReader;
+import java.io.StringWriter;
 import java.io.UnsupportedEncodingException;
 import java.net.URI;
 import java.net.URISyntaxException;
@@ -36,6 +37,8 @@
 import javax.xml.parsers.DocumentBuilder;
 import javax.xml.parsers.DocumentBuilderFactory;
 import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.stream.XMLEventWriter;
+import javax.xml.stream.XMLStreamException;
 
 import org.apache.commons.httpclient.Header;
 import org.apache.commons.httpclient.HostConfiguration;
@@ -47,6 +50,7 @@
 import org.jboss.internal.soa.esb.publish.Publish;
 import org.jboss.internal.soa.esb.soap.OGNLUtils;
 import org.jboss.internal.soa.esb.util.StreamUtils;
+import org.jboss.internal.soa.esb.util.XMLHelper;
 import org.jboss.soa.esb.ConfigurationException;
 import org.jboss.soa.esb.actions.AbstractActionPipelineProcessor;
 import org.jboss.soa.esb.actions.ActionLifecycleException;
@@ -625,6 +629,27 @@
             Node childNode = children.item(i);
             if(childNode.getNodeType() == Node.ELEMENT_NODE) {
                 populateResponseOgnlMap(map, (Element)childNode);
+            } else if (childNode.getNodeType() == Node.COMMENT_NODE
+                        && childNode.getTextContent().equals(OGNLUtils.SOAPUI_ANYTYPE_COMMENT)) {
+                Node sibling = childNode.getNextSibling();
+                while (sibling != null
+                        && sibling.getNodeType() != Node.ELEMENT_NODE) {
+                    // Find the ANY element type
+                    sibling = sibling.getNextSibling();
+                }
+                if (sibling != null) {
+                    String ognl = OGNLUtils.getOGNLExpression(element);
+                    final StringWriter sw = new StringWriter() ;
+                    try {
+                        final XMLEventWriter writer = XMLHelper.getXMLEventWriter(sw);
+                        Node fragment = element.removeChild(sibling);
+                        XMLHelper.readDomNode(fragment, writer, true);
+                    } catch (XMLStreamException e) {
+                        logger.error("Unable to read ANY element.", e);
+                    }
+                    map.put(ognl, sw.toString());
+                    break;
+                }
             }
         }
     }

Modified: labs/jbossesb/branches/JBESB_4_11_CP/product/services/soap/src/test/java/org/jboss/soa/esb/actions/soap/SOAPClient_Response_UnitTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/services/soap/src/test/java/org/jboss/soa/esb/actions/soap/SOAPClient_Response_UnitTest.java	2012-06-15 14:58:58 UTC (rev 38124)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/services/soap/src/test/java/org/jboss/soa/esb/actions/soap/SOAPClient_Response_UnitTest.java	2012-06-18 06:10:45 UTC (rev 38125)
@@ -1,11 +1,15 @@
 package org.jboss.soa.esb.actions.soap;
 
+import java.io.ByteArrayInputStream;
 import java.io.IOException;
 import java.util.Map;
 
+import javax.xml.parsers.ParserConfigurationException;
+
 import junit.framework.TestCase;
 
 import org.jboss.internal.soa.esb.util.StreamUtils;
+import org.jboss.internal.soa.esb.util.XMLHelper;
 import org.jboss.soa.esb.ConfigurationException;
 import org.jboss.soa.esb.actions.ActionProcessingException;
 import org.jboss.soa.esb.actions.soap.SOAPClient.Response;
@@ -156,7 +160,43 @@
         assertEquals( expectedSOAPNS, soapClient.getSoapNS());
     }
 
+    public void test_anyType_OGNL() throws ConfigurationException, ActionProcessingException, ParserConfigurationException, SAXException, IOException {
+        ConfigTree actionConfig = configUtil.getActionConfig("OrderNotificationService", "soapui-client-action-08");
+        SOAPClient soapClient = new SOAPClient(actionConfig);
+        String mergedResponse = new String(StreamUtils.readStream(getClass().getResourceAsStream("soap-message-08.xml")));
+        String expected = 
+                        "<books>\n" +
+                        "   <book>\n" +
+                        "      <name>JBoss ESB Beginners Guide</name>\n" +
+                        "      <authors>\n" +
+                        "         <author>Len DiMaggio</author>\n" +
+                        "         <author>Kevin Conner</author>\n" +
+                        "         <author>Tom Cunningham</author>\n" +
+                        "         <author>Magesh Kumar B</author>\n" +
+                        "      </authors>\n" +
+                        "   </book>\n" +
+                        "</books>\n";
+        Message message = MessageFactory.getInstance().getMessage();
 
+        soapClient.processResponse(message, new Response(mergedResponse));
+        Map<String, String> responseMap = (Map<String, String>) message.getBody().get();
+        assertTrue("OGNL parameter not as expected. See " + expected + ".  Generated param: \n" + 
+                    message, XMLHelper.compareXMLContent(new ByteArrayInputStream(expected.getBytes()), new ByteArrayInputStream(responseMap.get("sayHiResponse").getBytes())));
+    }
+
+    public void test_anyType_SOAP() throws ConfigurationException, ActionProcessingException, ParserConfigurationException, SAXException, IOException {
+        ConfigTree actionConfig = configUtil.getActionConfig("OrderNotificationService", "soapui-client-action-09");
+        SOAPClient soapClient = new SOAPClient(actionConfig);
+        String expected = "soap-message-09.xml";
+        String mergedResponse = new String(StreamUtils.readStream(getClass().getResourceAsStream(expected)));
+        Message message = MessageFactory.getInstance().getMessage();
+
+        soapClient.processResponse(message, new Response(mergedResponse));
+        String response = (String) message.getBody().get();
+        assertTrue("OGNL parameter not as expected. See " + expected + ".  Generated param: \n" + 
+                    message, XMLHelper.compareXMLContent(getClass().getResourceAsStream(expected), new ByteArrayInputStream(response.getBytes())));
+    }
+
     private static Response response_01 = new Response(
             "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n" +
             "\t<soapenv:Header/>\n" +

Added: labs/jbossesb/branches/JBESB_4_11_CP/product/services/soap/src/test/java/org/jboss/soa/esb/actions/soap/soap-message-08.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/services/soap/src/test/java/org/jboss/soa/esb/actions/soap/soap-message-08.xml	                        (rev 0)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/services/soap/src/test/java/org/jboss/soa/esb/actions/soap/soap-message-08.xml	2012-06-18 06:10:45 UTC (rev 38125)
@@ -0,0 +1,19 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
+              xmlns:hello="http://www.jboss.org/sayHi">
+    <env:Header/>
+    <env:Body>
+       <hello:sayHiResponse><!--You may enter ANY elements at this point-->
+          <books>
+             <book>
+                <name>JBoss ESB Beginners Guide</name>
+                    <authors>
+                        <author>Len DiMaggio</author>
+                        <author>Kevin Conner</author>
+                        <author>Tom Cunningham</author>
+                        <author>Magesh Kumar B</author>
+                    </authors>
+             </book>
+          </books>
+       </hello:sayHiResponse>
+    </env:Body>
+</env:Envelope>
\ No newline at end of file

Added: labs/jbossesb/branches/JBESB_4_11_CP/product/services/soap/src/test/java/org/jboss/soa/esb/actions/soap/soap-message-09.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/services/soap/src/test/java/org/jboss/soa/esb/actions/soap/soap-message-09.xml	                        (rev 0)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/services/soap/src/test/java/org/jboss/soa/esb/actions/soap/soap-message-09.xml	2012-06-18 06:10:45 UTC (rev 38125)
@@ -0,0 +1,19 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
+              xmlns:hello="http://www.jboss.org/sayHi">
+    <env:Header/>
+    <env:Body>
+       <hello:sayHiResponse>
+          <books>
+             <book>
+                <name>JBoss ESB Beginners Guide</name>
+                    <authors>
+                        <author>Len DiMaggio</author>
+                        <author>Kevin Conner</author>
+                        <author>Tom Cunningham</author>
+                        <author>Magesh Kumar B</author>
+                    </authors>
+             </book>
+          </books>
+       </hello:sayHiResponse>
+    </env:Body>
+</env:Envelope>
\ No newline at end of file

Modified: labs/jbossesb/branches/JBESB_4_11_CP/product/services/soap/src/test/java/org/jboss/soa/esb/actions/soap/soapclient-config-01.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/services/soap/src/test/java/org/jboss/soa/esb/actions/soap/soapclient-config-01.xml	2012-06-15 14:58:58 UTC (rev 38124)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/services/soap/src/test/java/org/jboss/soa/esb/actions/soap/soapclient-config-01.xml	2012-06-18 06:10:45 UTC (rev 38125)
@@ -61,6 +61,16 @@
                     <property name="wsdl" value="http://localhost:18080/active-bpel/services/RetailerCallback?wsdl"/>
                     <property name="SOAPAction" value="http://org.jboss.esb/quickstarts/bpel/ABI_OrderManager/SendSalesOrderNotification/"/>
                 </action>
+                <action name="soapui-client-action-08" class="org.jboss.soa.esb.actions.soap.SOAPClient">
+                    <property name="wsdl" value="http://localhost:18080/anytypehelloworld.wsdl"/>
+                    <property name="SOAPAction" value="ZZZ"/>
+                    <property name="responseAsOgnlMap" value="true" />
+                </action>
+                <action name="soapui-client-action-09" class="org.jboss.soa.esb.actions.soap.SOAPClient">
+                    <property name="wsdl" value="http://localhost:18080/anytypehelloworld.wsdl"/>
+                    <property name="SOAPAction" value="ZZZ"/>
+                    <property name="responseAsOgnlMap" value="false" />
+                </action>
             </actions>
         </service>
 

Modified: labs/jbossesb/branches/JBESB_4_11_CP/product/services/soapui-client/src/main/java/org/jboss/soa/esb/services/soapui/SoapUIClientService.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/services/soapui-client/src/main/java/org/jboss/soa/esb/services/soapui/SoapUIClientService.java	2012-06-15 14:58:58 UTC (rev 38124)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/services/soapui-client/src/main/java/org/jboss/soa/esb/services/soapui/SoapUIClientService.java	2012-06-18 06:10:45 UTC (rev 38125)
@@ -648,7 +648,7 @@
     /**
      * Merge the template to accommodate data collections.
      * <p/>
-     * It merges the soapUI cllection comment nodes to the message where appropriate.
+     * It merges the soapUI cllection comment and any type nodes to the message where appropriate.
      *
      * @param template The template element to be merged.
      * @param instance The element to be processed.
@@ -681,6 +681,16 @@
                     for (int j = 0; j < instancesSize; j++) {
                         mergeTemplate((Element) templateNode, (Element) instances.item(j), j);
                     }
+                } else if (templateNode.getNodeType() == Node.COMMENT_NODE
+                            && templateNode.getTextContent().equals(OGNLUtils.SOAPUI_ANYTYPE_COMMENT)) {
+                    // Merge any type node comment
+                    Comment newComment = instance.getOwnerDocument().createComment(templateNode.getTextContent());
+                    Node child = instance.getFirstChild();
+                    if (child != null) {
+                        instance.insertBefore(newComment, child);
+                    } else {
+                        instance.appendChild(newComment);
+                    }
                 }
             }
         }
@@ -915,7 +925,7 @@
         }
     }
 
-    private void injectParameters(Element element, Map params, String soapNs, Set<QName> nils) {
+    private void injectParameters(Element element, Map params, String soapNs, Set<QName> nils) throws IOException, SAXException {
         NodeList children = element.getChildNodes();
         int childCount = children.getLength();
 
@@ -975,6 +985,14 @@
                     childCount -= 2;
                     i -= 2;
                 }
+            } else if ((node != null) && (node.getNodeType() == Node.COMMENT_NODE)
+                && node.getTextContent().equals(OGNLUtils.SOAPUI_ANYTYPE_COMMENT)) {
+                String ognl = OGNLUtils.getOGNLExpression(element, soapNs);
+                Object param = OGNLUtils.getParameter(ognl, params);
+                if (param != null) {
+                    Document fragment = YADOMUtil.parse(param.toString());
+                    element.replaceChild(element.getOwnerDocument().importNode(fragment.getDocumentElement(), true), node);
+                }
             }
         }
 

Added: labs/jbossesb/branches/JBESB_4_11_CP/product/services/soapui-client/src/test/java/org/jboss/soa/esb/services/soapui/AnyTypeSoapUIClientServiceMBeanUnitTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/services/soapui-client/src/test/java/org/jboss/soa/esb/services/soapui/AnyTypeSoapUIClientServiceMBeanUnitTest.java	                        (rev 0)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/services/soapui-client/src/test/java/org/jboss/soa/esb/services/soapui/AnyTypeSoapUIClientServiceMBeanUnitTest.java	2012-06-18 06:10:45 UTC (rev 38125)
@@ -0,0 +1,113 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ * (C) 2005-2006, JBoss Inc.
+ */
+package org.jboss.soa.esb.services.soapui;
+
+import java.io.ByteArrayInputStream;
+import java.io.File;
+import java.io.IOException;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Properties;
+
+import javax.xml.parsers.ParserConfigurationException;
+
+import junit.framework.TestCase;
+
+import org.jboss.internal.soa.esb.util.XMLHelper;
+import org.jboss.soa.esb.ConfigurationException;
+import org.jboss.soa.esb.dom.YADOMUtil;
+import org.jboss.soa.esb.http.HttpClientFactory;
+import org.xml.sax.SAXException;
+import org.w3c.dom.Document;
+
+/**
+ *
+ * @author <a href="mailto:mageshbk at jboss.com">Magesh Kumar B</a>
+ */
+public class AnyTypeSoapUIClientServiceMBeanUnitTest extends TestCase {
+
+    private static final String WSDL_LOCATAION = "src/test/java/org/jboss/soa/esb/services/soapui";
+    private Properties properties;
+
+    protected void setUp() throws Exception {
+        properties = new Properties();
+    }
+
+    public void test_anytype_in_request() throws IOException, SAXException, ParserConfigurationException, ConfigurationException {
+        File wsdlFile = new File(WSDL_LOCATAION + "/anytypehelloworld.wsdl");
+        SoapUIClientService mbean = new SoapUIClientService();
+        String request = 
+                        "<books>\n" +
+                        "   <book>\n" +
+                        "      <name>JBoss ESB Beginners Guide</name>\n" +
+                        "   </book>\n" +
+                        "</books>\n";
+
+        Map map = new HashMap();
+        map.put("sayHi", request);
+        map.put("dumpSOAP", "true");
+        String expected = "anytype_request.xml";
+
+        properties.setProperty(HttpClientFactory.TARGET_HOST_URL, wsdlFile.toURI().toString());
+
+        String message = mbean.buildRequest(wsdlFile.toURI().toString(), "HelloWorldPubServiceOp", "{http://soa.jboss.org/ESBServiceSample}HelloWorldPubServiceService", map, properties, null, null);
+
+        assertTrue("Generated SOAP message not as expected. See " + expected + ".  Generated message: \n" + 
+                    message, XMLHelper.compareXMLContent(getClass().getResourceAsStream(expected), new ByteArrayInputStream(message.getBytes())));
+    }
+
+    public void test_anytype_in_response() throws IOException, SAXException, ParserConfigurationException, ConfigurationException {
+        File wsdlFile = new File(WSDL_LOCATAION + "/anytypehelloworld.wsdl");
+        SoapUIClientService mbean = new SoapUIClientService();
+        String response = 
+                        "<books>\n" +
+                        "   <book>\n" +
+                        "      <name>JBoss ESB Beginners Guide</name>\n" +
+                        "      <authors>\n" +
+                        "         <author>Len DiMaggio</author>\n" +
+                        "         <author>Kevin Conner</author>\n" +
+                        "         <author>Tom Cunningham</author>\n" +
+                        "         <author>Magesh Kumar B</author>\n" +
+                        "      </authors>\n" +
+                        "   </book>\n" +
+                        "</books>\n";
+
+        Map map = new HashMap();
+        map.put("sayHiResponse", response);
+        map.put("dumpSOAP", "true");
+        String expected = "anytype_response.xml";
+        String expectedMerged = "anytype_response_merged.xml";
+
+        properties.setProperty(HttpClientFactory.TARGET_HOST_URL, wsdlFile.toURI().toString());
+
+        String message = mbean.buildResponse(wsdlFile.toURI().toString(), "HelloWorldPubServiceOp", "{http://soa.jboss.org/ESBServiceSample}HelloWorldPubServiceService", map, properties, null, null);
+
+        assertTrue("Generated SOAP message not as expected. See " + expected + ".  Generated message: \n" + 
+                    message, XMLHelper.compareXMLContent(getClass().getResourceAsStream(expected), new ByteArrayInputStream(message.getBytes())));
+
+        String mergedMessage = mbean.mergeResponseTemplate(wsdlFile.toURI().toString(), "HelloWorldPubServiceOp", "{http://soa.jboss.org/ESBServiceSample}HelloWorldPubServiceService", message, properties, null, null);
+
+        // This comparison ignores comments
+        assertTrue("Merged SOAP message not as expected. See " + expected + ".  Generated message: \n" + 
+                    message, XMLHelper.compareXMLContent(getClass().getResourceAsStream(expectedMerged), new ByteArrayInputStream(mergedMessage.getBytes())));
+        // Test if the comment was added
+        assertTrue(mergedMessage.indexOf("<!--You may enter ANY elements at this point-->") > 0);
+    }
+}
\ No newline at end of file

Added: labs/jbossesb/branches/JBESB_4_11_CP/product/services/soapui-client/src/test/java/org/jboss/soa/esb/services/soapui/anytype_request.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/services/soapui-client/src/test/java/org/jboss/soa/esb/services/soapui/anytype_request.xml	                        (rev 0)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/services/soapui-client/src/test/java/org/jboss/soa/esb/services/soapui/anytype_request.xml	2012-06-18 06:10:45 UTC (rev 38125)
@@ -0,0 +1,13 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
+              xmlns:hello="http://www.jboss.org/sayHi">
+    <env:Header/>
+    <env:Body>
+        <hello:sayHi>
+            <books>
+                <book>
+                    <name>JBoss ESB Beginners Guide</name>
+                </book>
+            </books>
+        </hello:sayHi>
+    </env:Body>
+</env:Envelope>
\ No newline at end of file

Added: labs/jbossesb/branches/JBESB_4_11_CP/product/services/soapui-client/src/test/java/org/jboss/soa/esb/services/soapui/anytype_response.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/services/soapui-client/src/test/java/org/jboss/soa/esb/services/soapui/anytype_response.xml	                        (rev 0)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/services/soapui-client/src/test/java/org/jboss/soa/esb/services/soapui/anytype_response.xml	2012-06-18 06:10:45 UTC (rev 38125)
@@ -0,0 +1,19 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
+              xmlns:hello="http://www.jboss.org/sayHi">
+    <env:Header/>
+    <env:Body>
+        <hello:sayHiResponse>
+            <books>
+                <book>
+                    <name>JBoss ESB Beginners Guide</name>
+                        <authors>
+                            <author>Len DiMaggio</author>
+                            <author>Kevin Conner</author>
+                            <author>Tom Cunningham</author>
+                            <author>Magesh Kumar B</author>
+                        </authors>
+                </book>
+            </books>
+        </hello:sayHiResponse>
+    </env:Body>
+</env:Envelope>
\ No newline at end of file

Added: labs/jbossesb/branches/JBESB_4_11_CP/product/services/soapui-client/src/test/java/org/jboss/soa/esb/services/soapui/anytype_response_merged.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/services/soapui-client/src/test/java/org/jboss/soa/esb/services/soapui/anytype_response_merged.xml	                        (rev 0)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/services/soapui-client/src/test/java/org/jboss/soa/esb/services/soapui/anytype_response_merged.xml	2012-06-18 06:10:45 UTC (rev 38125)
@@ -0,0 +1,21 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
+              xmlns:hello="http://www.jboss.org/sayHi">
+    <env:Header/>
+    <env:Body>
+        <hello:sayHiResponse>
+            <!--You may enter ANY elements at this point-->
+            <books>
+                <book>
+                    <name>JBoss ESB Beginners Guide</name>
+                        <authors>
+                            <author>Len DiMaggio</author>
+                            <author>Kevin Conner</author>
+                            <author>Tom Cunningham</author>
+                            <author>Magesh Kumar B</author>
+                        </authors>
+                </book>
+            </books>
+        </hello:sayHiResponse>
+    </env:Body>
+</env:Envelope>
\ No newline at end of file

Added: labs/jbossesb/branches/JBESB_4_11_CP/product/services/soapui-client/src/test/java/org/jboss/soa/esb/services/soapui/anytypehelloworld.wsdl
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/services/soapui-client/src/test/java/org/jboss/soa/esb/services/soapui/anytypehelloworld.wsdl	                        (rev 0)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/services/soapui-client/src/test/java/org/jboss/soa/esb/services/soapui/anytypehelloworld.wsdl	2012-06-18 06:10:45 UTC (rev 38125)
@@ -0,0 +1,71 @@
+<wsdl:definitions targetNamespace='http://soa.jboss.org/ESBServiceSample' xmlns:ns1='http://www.jboss.org/sayHi' xmlns:ns2='http://www.jboss.org/sayHi' xmlns:ns3='http://www.jboss.org/sayHi' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:tns='http://soa.jboss.org/ESBServiceSample' xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'>
+ <wsdl:types>
+  <xs:schema elementFormDefault='qualified' targetNamespace='http://www.jboss.org/sayHi' version='1.0' xmlns:x1='http://www.jboss.org/sayHi' xmlns:xs='http://www.w3.org/2001/XMLSchema'>
+   <xs:element name='sayHi' type='x1:sayHi'/>
+   <xs:complexType name='sayHi'>
+    <xs:sequence>
+     <xs:any namespace="##other" processContents="lax"/>
+    </xs:sequence>
+   </xs:complexType>
+
+  </xs:schema>
+  <xs:schema elementFormDefault='qualified' targetNamespace='http://www.jboss.org/sayHi' version='1.0' xmlns:x1='http://www.jboss.org/sayHi' xmlns:xs='http://www.w3.org/2001/XMLSchema'>
+   <xs:element name='sayHiResponse' type='x1:sayHiResponse'/>
+   <xs:complexType name='sayHiResponse'>
+    <xs:sequence>
+     <xs:any namespace="##other" processContents="lax"/>
+    </xs:sequence>
+   </xs:complexType>
+  </xs:schema>
+
+  <xs:schema elementFormDefault='qualified' targetNamespace='http://www.jboss.org/sayHi' version='1.0' xmlns:x1='http://www.jboss.org/sayHi' xmlns:xs='http://www.w3.org/2001/XMLSchema'>
+   <xs:element name='sayFault' type='x1:fault'/>
+   <xs:complexType name='fault'>
+    <xs:sequence>
+     <xs:element name='code' type='xs:string'/>
+     <xs:element name='faultString' type='xs:string'/>
+    </xs:sequence>
+   </xs:complexType>
+  </xs:schema>
+
+ </wsdl:types>
+ <wsdl:message name='HelloWorldPubServiceReq'>
+  <wsdl:part element='ns1:sayHi' name='in'></wsdl:part>
+ </wsdl:message>
+ <wsdl:message name='HelloWorldPubServiceRes'>
+  <wsdl:part element='ns1:sayHiResponse' name='out'></wsdl:part>
+ </wsdl:message>
+ <wsdl:message name='HelloWorldPubServiceFault1'>
+  <wsdl:part element='ns1:sayFault' name='fault1'></wsdl:part>
+
+ </wsdl:message>
+ <wsdl:portType name='HelloWorldPubServicePortType'>
+  <wsdl:operation name='HelloWorldPubServiceOp'>
+   <wsdl:input message='tns:HelloWorldPubServiceReq' name='HelloWorldPubServiceReq'></wsdl:input>
+   <wsdl:output message='tns:HelloWorldPubServiceRes' name='HelloWorldPubServiceRes'></wsdl:output>
+   <wsdl:fault message='tns:HelloWorldPubServiceFault1' name='HelloWorldPubServiceFault1'></wsdl:fault>
+  </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name='HelloWorldPubServiceBinding' type='tns:HelloWorldPubServicePortType'>
+
+  <soap:binding style='document' transport='http://schemas.xmlsoap.org/soap/http'/>
+  <wsdl:operation name='HelloWorldPubServiceOp'>
+   <wsdl:input>
+    <soap:body use='literal'/>
+   </wsdl:input>
+   <wsdl:output>
+    <soap:body use='literal'/>
+   </wsdl:output>
+   <wsdl:fault name='HelloWorldPubServiceFault1'>
+
+    <soap:fault name='HelloWorldPubServiceFault1' use='literal'/>
+   </wsdl:fault>
+  </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name='HelloWorldPubServiceService'>
+  <wsdl:port binding='tns:HelloWorldPubServiceBinding' name='HelloWorldPubServicePortType'>
+   <soap:address location='http://127.0.0.1:8080/Quickstart_helloworld_pub_service/ESBServiceSample/HelloWorldPubService'/>
+  </wsdl:port>
+ </wsdl:service>
+
+</wsdl:definitions>
\ No newline at end of file



More information about the jboss-svn-commits mailing list