@Test public void testUnqualifiedNamespaces() throws Exception { BodyBuilder builder = createBuilder(wsdlResourcePath("whatizit.wsdl"), "queryPmid"); assertTrue("Is is the wrong type, it should be LiteralBodyBuilder",builder instanceof LiteralBodyBuilder); String parameters = "<parameters xmlns=\"http: Map<String,Object> inputMap = new HashMap<String, Object>(); inputMap.put("parameters", parameters); SOAPElement body = builder.build(inputMap); assertTrue("Wrong wrapping element name", "queryPmid".equals(body.getLocalName()) && "http: Iterator<Node> pipelineNames = body.getChildElements(new QName("","pipelineName")); assertTrue("No pipelineName defined", pipelineNames.hasNext()); assertTrue("Wrong pipelineName value (must be 'swissProt')", "swissProt".equals(pipelineNames.next().getTextContent())); Iterator<Node> pmids = body.getChildElements(new QName("","pmid")); assertTrue("No pmid defined", pmids.hasNext()); assertTrue("Wrong pmid value (must be '1234')", "1234".equals(pmids.next().getTextContent())); }
@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);  }