test_class.file: taverna-wsdl-generic/src/test/java/org/apache/taverna/wsdl/soap/EncodedBodyBuilderTest.java
test_class.identifier: EncodedBodyBuilderTest
test_class.interfaces: implements LocationConstants
test_case.body: @Test
  	public void testStringArray() throws Exception {
  		Map<String,Object> inputMap = new HashMap<String, Object>();
  		
  		BodyBuilder builder = createBuilder(wsdlResourcePath("TestServices-rpcencoded.wsdl"), "countStringArray");
  		
  		assertTrue("Wrong type of builder created",builder instanceof EncodedBodyBuilder);
  		List<String> array = new ArrayList<String>();
  		array.add("one");
  		array.add("two");
  		array.add("three");
  		inputMap.put("array", array);
  		SOAPElement body = builder.build(inputMap);
                  
                  Iterator<SOAPElement> children = body.getChildElements();
                  assertTrue("missing body element", children.hasNext());
                  SOAPElement child = children.next();
                  assertTrue("wrong body element (must be '{}array')", "array".equals(child.getLocalName()) && child.getNamespaceURI() == null);
                  String type = child.getAttributeNS(XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI, "type");
                  assertNotNull("missing xsi:type", type);
                  assertTrue("wrong xsi:type", "soapenc:Array".equals(type));
  
                  Iterator<Element> elements = child.getChildElements();
                  for (int i = 0, n = array.size(); i < n; i++) {
                      assertTrue("missing array element", elements.hasNext());
                      Element element = elements.next();
                      assertTrue("wrong array element (must be '{}string')", "string".equals(element.getLocalName()) && element.getNamespaceURI() == null);
                      assertTrue("wrong array text content", array.get(i).equals(element.getTextContent()));
                  }
  	}
test_case.class_method_signature: EncodedBodyBuilderTest.testStringArray()
test_case.full_signature: @Test public void testStringArray()
test_case.identifier: testStringArray
test_case.invocations: createBuilder wsdlResourcePath assertTrue add add add put build getChildElements assertTrue hasNext next assertTrue equals getLocalName getNamespaceURI getAttributeNS assertNotNull assertTrue equals getChildElements size assertTrue hasNext next assertTrue equals getLocalName getNamespaceURI assertTrue equals get getTextContent
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testStringArray()
focal_class.file: taverna-wsdl-generic/src/main/java/org/apache/taverna/wsdl/soap/EncodedBodyBuilder.java
focal_class.identifier: EncodedBodyBuilder
focal_class.class_method_signature: EncodedBodyBuilder.EncodedBodyBuilder(String style, WSDLParser parser, String operationName, List<TypeDescriptor> inputDescriptors)
focal_class.full_signature: public  EncodedBodyBuilder(String style, WSDLParser parser, String operationName, List<TypeDescriptor> inputDescriptors)
focal_class.identifier: EncodedBodyBuilder
focal_class.modifiers: public
focal_class.parameters: (String style, WSDLParser parser, String operationName, List<TypeDescriptor> inputDescriptors)
focal_class.signature:  EncodedBodyBuilder(String style, WSDLParser parser, String operationName, List<TypeDescriptor> inputDescriptors)
focal_class.class_method_signature: EncodedBodyBuilder.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: EncodedBodyBuilder.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: EncodedBodyBuilder.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: EncodedBodyBuilder.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: EncodedBodyBuilder.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 result = super.build(inputMap);
                  
  		for (Iterator iterator = namespaceMappings.keySet().iterator(); iterator.hasNext();) {
  			String namespaceURI = (String) iterator.next();
  			String ns = namespaceMappings.get(namespaceURI);
  			result.addNamespaceDeclaration(ns, namespaceURI);
  		}
                  
                  result.setAttributeNS(SOAPConstants.URI_NS_SOAP_1_1_ENVELOPE, "soapenv:encodingStyle", SOAPConstants.URI_NS_SOAP_ENCODING);
  
  		return result;
  	}
focal_method.class_method_signature: EncodedBodyBuilder.build(Map inputMap)
focal_method.full_signature: @Override public SOAPElement build(Map inputMap)
focal_method.identifier: build
focal_method.invocations: build iterator keySet hasNext next get addNamespaceDeclaration setAttributeNS
focal_method.modifiers: @Override public
focal_method.parameters: (Map inputMap)
focal_method.return: SOAPElement
focal_method.signature: SOAPElement build(Map inputMap)