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 testSimpleCase() throws Exception {
  		Map<String,Object> inputMap = new HashMap<String, Object>();
  		
  		BodyBuilder builder = createBuilder(wsdlResourcePath("TestServices-rpcencoded.wsdl"), "countString");
  		
  		assertTrue("Wrong type of builder created",builder instanceof EncodedBodyBuilder);
  		
  		inputMap.put("str", "Roger Ramjet");
  		SOAPElement body = builder.build(inputMap);
                  
                  Iterator<SOAPElement> children = body.getChildElements();
                  
                  assertTrue("empty body content", children.hasNext());
                  
                  SOAPElement child = children.next();
                  
                  assertTrue("wrong body content (must be '{}str')", "str".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", "xsd:string".equals(type));
                  assertTrue("wrong text value", "Roger Ramjet".equals(child.getTextContent()));
  	}
test_case.class_method_signature: EncodedBodyBuilderTest.testSimpleCase()
test_case.full_signature: @Test public void testSimpleCase()
test_case.identifier: testSimpleCase
test_case.invocations: createBuilder wsdlResourcePath assertTrue put build getChildElements assertTrue hasNext next assertTrue equals getLocalName getNamespaceURI getAttributeNS assertNotNull assertTrue equals assertTrue equals getTextContent
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSimpleCase()
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)