@Test public void testQualifiedUnwrapped() throws Exception { BodyBuilder builder = createBuilder(wsdlResourcePath("TestServices-unwrapped.wsdl"), "countString"); assertTrue("Is is the wrong type, it should be LiteralBodyBuilder",builder instanceof LiteralBodyBuilder); Map<String,Object>inputMap = new HashMap<String, Object>(); inputMap.put("str", "bob"); SOAPElement body = builder.build(inputMap); assertEquals("Wrong localName","str", body.getLocalName()); assertEquals("XML should containe qualifed namespace for str","http: }
@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; }
LiteralBodyBuilder extends AbstractBodyBuilder { @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; } }
LiteralBodyBuilder extends AbstractBodyBuilder { @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; } LiteralBodyBuilder(String style, WSDLParser parser, String operationName, List<TypeDescriptor> inputDescriptors); }
LiteralBodyBuilder extends AbstractBodyBuilder { @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; } LiteralBodyBuilder(String style, WSDLParser parser, String operationName, List<TypeDescriptor> inputDescriptors); @Override SOAPElement build(Map inputMap); }
LiteralBodyBuilder extends AbstractBodyBuilder { @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; } LiteralBodyBuilder(String style, WSDLParser parser, String operationName, List<TypeDescriptor> inputDescriptors); @Override SOAPElement build(Map inputMap);  }