test_class.file: taverna-wsdl-generic/src/test/java/org/apache/taverna/wsdl/soap/LiteralBodyBuilderTest.java
test_class.identifier: LiteralBodyBuilderTest
test_class.superclass: extends WSDLTestHelper
test_case.body: @Test
  	public void testUnwrappedArray() throws Exception {
  		BodyBuilder builder = createBuilder(wsdlResourcePath("TestServices-unwrapped.wsdl"), "countStringArray");
  		
  		assertTrue("Wrong type of builder, it should be Literal based",builder instanceof LiteralBodyBuilder);
  		
  		Map<String,Object> inputMap = new HashMap<String, Object>();
  		inputMap.put("array", "<array><item>1</item><item>2</item><item>3</item></array>");
  		
  		SOAPElement body = builder.build(inputMap);
  		
                  assertTrue("Outer element should be named {http://testing.org}array ", "array".equals(body.getLocalName()) && "http://testing.org".equals(body.getNamespaceURI()));
                  
                  assertTrue("There must be three child nodes in array", body.getChildNodes().getLength() == 3);
  
                  Iterator<Node> items = body.getChildElements(new QName("", "item"));
                  assertTrue("Array element should be named item", items.hasNext());
                  
                  assertTrue("First Array element should have the value '1'", "1".equals(items.next().getTextContent()));
  	}
test_case.class_method_signature: LiteralBodyBuilderTest.testUnwrappedArray()
test_case.full_signature: @Test public void testUnwrappedArray()
test_case.identifier: testUnwrappedArray
test_case.invocations: createBuilder wsdlResourcePath assertTrue put build assertTrue equals getLocalName equals getNamespaceURI assertTrue getLength getChildNodes getChildElements assertTrue hasNext assertTrue equals getTextContent next
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testUnwrappedArray()
focal_class.declarator: logger = Logger.getLogger(LiteralBodyBuilder.class)
focal_class.modifier: private static
focal_class.original_string: private static Logger logger = Logger.getLogger(LiteralBodyBuilder.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: TYPE = "type"
focal_class.modifier: private static final
focal_class.original_string: private static final String TYPE = "type";
focal_class.type: String
focal_class.var_name: TYPE
focal_class.file: taverna-wsdl-generic/src/main/java/org/apache/taverna/wsdl/soap/LiteralBodyBuilder.java
focal_class.identifier: LiteralBodyBuilder
focal_class.class_method_signature: LiteralBodyBuilder.LiteralBodyBuilder(String style, WSDLParser parser, String operationName, List<TypeDescriptor> inputDescriptors)
focal_class.full_signature: public  LiteralBodyBuilder(String style, WSDLParser parser, String operationName, List<TypeDescriptor> inputDescriptors)
focal_class.identifier: LiteralBodyBuilder
focal_class.modifiers: public
focal_class.parameters: (String style, WSDLParser parser, String operationName, List<TypeDescriptor> inputDescriptors)
focal_class.signature:  LiteralBodyBuilder(String style, WSDLParser parser, String operationName, List<TypeDescriptor> inputDescriptors)
focal_class.class_method_signature: LiteralBodyBuilder.getUse()
focal_class.full_signature: @Override protected Use getUse()
focal_class.identifier: getUse
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: Use
focal_class.signature: Use getUse()
focal_class.class_method_signature: LiteralBodyBuilder.build(Map inputMap)
focal_class.full_signature: @Override public SOAPElement build(Map inputMap)
focal_class.identifier: build
focal_class.modifiers: @Override public
focal_class.parameters: (Map inputMap)
focal_class.return: SOAPElement
focal_class.signature: SOAPElement build(Map inputMap)
focal_class.class_method_signature: LiteralBodyBuilder.createSkeletonElementForSingleItem(
  			Map<String, String> namespaceMappings, TypeDescriptor descriptor,
  			String inputName, String typeName)
focal_class.full_signature: @Override protected Element createSkeletonElementForSingleItem(
  			Map<String, String> namespaceMappings, TypeDescriptor descriptor,
  			String inputName, String typeName)
focal_class.identifier: createSkeletonElementForSingleItem
focal_class.modifiers: @Override protected
focal_class.parameters: (
  			Map<String, String> namespaceMappings, TypeDescriptor descriptor,
  			String inputName, String typeName)
focal_class.return: Element
focal_class.signature: Element createSkeletonElementForSingleItem(
  			Map<String, String> namespaceMappings, TypeDescriptor descriptor,
  			String inputName, String typeName)
focal_class.class_method_signature: LiteralBodyBuilder.fixTypeAttributes(Node parent)
focal_class.full_signature: private void fixTypeAttributes(Node parent)
focal_class.identifier: fixTypeAttributes
focal_class.modifiers: private
focal_class.parameters: (Node parent)
focal_class.return: void
focal_class.signature: void fixTypeAttributes(Node parent)
focal_class.class_method_signature: LiteralBodyBuilder.createElementForArrayType(
  			Map<String, String> namespaceMappings, String inputName,
  			Object dataValue, TypeDescriptor descriptor, String mimeType,
  			String typeName)
focal_class.full_signature: @Override protected Element createElementForArrayType(
  			Map<String, String> namespaceMappings, String inputName,
  			Object dataValue, TypeDescriptor descriptor, String mimeType,
  			String typeName)
focal_class.identifier: createElementForArrayType
focal_class.modifiers: @Override protected
focal_class.parameters: (
  			Map<String, String> namespaceMappings, String inputName,
  			Object dataValue, TypeDescriptor descriptor, String mimeType,
  			String typeName)
focal_class.return: Element
focal_class.signature: Element createElementForArrayType(
  			Map<String, String> namespaceMappings, String inputName,
  			Object dataValue, TypeDescriptor descriptor, String mimeType,
  			String typeName)
focal_class.class_method_signature: LiteralBodyBuilder.addElementToBody(String operationNamespace, SOAPElement body, Element el)
focal_class.full_signature: @Override protected SOAPElement addElementToBody(String operationNamespace, SOAPElement body, Element el)
focal_class.identifier: addElementToBody
focal_class.modifiers: @Override protected
focal_class.parameters: (String operationNamespace, SOAPElement body, Element el)
focal_class.return: SOAPElement
focal_class.signature: SOAPElement addElementToBody(String operationNamespace, SOAPElement body, Element el)
focal_class.superclass: extends AbstractBodyBuilder
focal_method.body: @Override
  	public SOAPElement build(Map inputMap) throws WSDLException,
  			ParserConfigurationException, SOAPException, IOException,
  			SAXException, UnknownOperationException {
  
  		SOAPElement body = super.build(inputMap);
  
  		if (getStyle() == Style.DOCUMENT) {
  			fixTypeAttributes(body);
  		}
  
  		return body;
  	}
focal_method.class_method_signature: LiteralBodyBuilder.build(Map inputMap)
focal_method.full_signature: @Override public SOAPElement build(Map inputMap)
focal_method.identifier: build
focal_method.invocations: build getStyle fixTypeAttributes
focal_method.modifiers: @Override public
focal_method.parameters: (Map inputMap)
focal_method.return: SOAPElement
focal_method.signature: SOAPElement build(Map inputMap)