Author: richard.opalka(a)jboss.com
Date: 2012-11-27 04:49:36 -0500 (Tue, 27 Nov 2012)
New Revision: 17042
Modified:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/saaj/jbws3084/JBWS3084TestCase.java
Log:
fixing test case
Modified:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/saaj/jbws3084/JBWS3084TestCase.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/saaj/jbws3084/JBWS3084TestCase.java 2012-11-27
09:31:16 UTC (rev 17041)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/saaj/jbws3084/JBWS3084TestCase.java 2012-11-27
09:49:36 UTC (rev 17042)
@@ -22,22 +22,19 @@
package org.jboss.test.ws.saaj.jbws3084;
import java.net.URL;
-import java.util.Arrays;
import java.util.Iterator;
import javax.xml.namespace.QName;
-import javax.xml.soap.AttachmentPart;
import javax.xml.soap.MessageFactory;
import javax.xml.soap.SOAPConnection;
import javax.xml.soap.SOAPConnectionFactory;
import javax.xml.soap.SOAPElement;
-import javax.xml.soap.SOAPFactory;
import javax.xml.soap.SOAPMessage;
import junit.framework.Test;
+import org.jboss.wsf.test.JBossWSCXFTestSetup;
import org.jboss.wsf.test.JBossWSTest;
-import org.jboss.wsf.test.JBossWSCXFTestSetup;
/**
* [JBWS-3084] Enable control of chunked encoding when using SOAPConnection.
@@ -58,7 +55,10 @@
SOAPConnection con = conFac.createConnection();
URL endpoint = new URL(serviceURL);
- SOAPMessage response = con.get(endpoint);
+ MessageFactory msgFactory = MessageFactory.newInstance();
+ SOAPMessage msg = msgFactory.createMessage();
+ msg.getSOAPBody().addBodyElement(new
QName("http://www.jboss.org/jbossws/saaj", "greetMe"));
+ SOAPMessage response = con.call(msg, endpoint);
QName greetMeResp = new
QName("http://www.jboss.org/jbossws/saaj",
"greetMeResponse");
Iterator<?> sayHiRespIterator =
response.getSOAPBody().getChildElements(greetMeResp);