public String getTargetNamespace() { String targetNamespace = null; if ((this.axisServices != null) && (this.axisServices.size() > 0)) { targetNamespace = this.axisServices.get(0).getTargetNamespace(); } return targetNamespace; }
mime = ele.declareNamespace(MIME_NAMESPACE, MIME_PREFIX); wsaw = ele.declareNamespace(AddressingConstants.Final.WSAW_NAMESPACE, "wsaw"); String prefix = WSDLSerializationUtil.getPrefix(axisService.getTargetNamespace(), namespaceMap); if (prefix == null || "".equals(prefix)) { namespaceMap.put(prefix, axisService.getTargetNamespace()); tns = ele.declareNamespace(axisService.getTargetNamespace(), prefix); definition.addAttribute("targetNamespace", axisService.getTargetNamespace(), null);
private static Definition getWSDLDefinitionFromAxisService(final AxisService service) { Definition wsdlDefinition = (Definition) service .getParameter(BPELConstants.WSDL_4_J_DEFINITION).getValue(); QName serviceName = new QName(service.getTargetNamespace(), service.getName()); if (wsdlDefinition == null) { throw new NullPointerException("No WSDL Definition was found for service " + serviceName.getLocalPart() + "."); } checkWhetherServiceDefinitionIsAvailable(wsdlDefinition, serviceName); return wsdlDefinition; }
mime = ele.declareNamespace(MIME_NAMESPACE, MIME_PREFIX); wsaw = ele.declareNamespace(AddressingConstants.Final.WSAW_NAMESPACE, "wsaw"); String prefix = WSDLSerializationUtil.getPrefix(axisService.getTargetNamespace(), namespaceMap); if (prefix == null || "".equals(prefix)) { namespaceMap.put(prefix, axisService.getTargetNamespace()); tns = ele.declareNamespace(axisService.getTargetNamespace(), prefix); definition.addAttribute("targetNamespace", axisService.getTargetNamespace(), null);
/** * Gets an element representing the operation names * * @param doc * @return Returns Element. */ protected Element getOpNames(Document doc) { Element root = doc.createElement("opnames"); Element elt; for (Iterator operationsIterator = axisService.getOperations(); operationsIterator.hasNext();) { AxisOperation axisOperation = (AxisOperation) operationsIterator.next(); elt = doc.createElement("name"); String localPart = axisOperation.getName().getLocalPart(); elt.appendChild(doc.createTextNode(JavaUtils.xmlNameToJava(localPart))); //what needs to be put here as the opertation namespace is actually the //traget namespace of the service addAttribute(doc, "opnsuri", axisService.getTargetNamespace(), elt); root.appendChild(elt); } return root; }
descriptionElement.declareNamespace(axisService.getTargetNamespace(), axisService.getTargetNamespacePrefix()); wsaw = descriptionElement.declareNamespace(AddressingConstants.Final.WSAW_NAMESPACE, "wsaw"); axisService.getTargetNamespace()); descriptionElement.addAttribute(targetNamespace); .createOMNamespace(axisService.getTargetNamespace(), axisService.getTargetNamespacePrefix()); if (nameSpacesMap != null && nameSpacesMap.containsValue(WSDL2Constants.URI_WSDL2_SOAP)) {
getTargetNamespace(), operationName.getLocalPart())); log.debug("Target namespace: " + getTargetNamespace());
descriptionElement.declareNamespace(axisService.getTargetNamespace(), axisService.getTargetNamespacePrefix()); wsaw = descriptionElement.declareNamespace(AddressingConstants.Final.WSAW_NAMESPACE, "wsaw"); axisService.getTargetNamespace()); descriptionElement.addAttribute(targetNamespace); .createOMNamespace(axisService.getTargetNamespace(), axisService.getTargetNamespacePrefix()); if (nameSpacesMap != null && nameSpacesMap.containsValue(WSDL2Constants.URI_WSDL2_SOAP)) {
getTargetNamespace(), operationName.getLocalPart())); log.debug("Target namespace: " + getTargetNamespace());
if (result != null) { AxisService service = msgContext.getAxisService(); result.declareNamespace(service.getTargetNamespace(), service.getTargetNamespacePrefix()); envelope.getBody().addChild(result);
OMElement methodElement = inMessage.getEnvelope().getBody() .getFirstElement(); String messageNameSpace = inMessage.getAxisService().getTargetNamespace(); String methodName = methodElement.getLocalName();
this.targetNamespace = axisService.getTargetNamespace();
this.targetNamespace = axisService.getTargetNamespace();
if (request_Identifier == null || request_Identifier.equals(theService.getTargetNamespace())) {
protected Document createDOMDocumentForSkeleton(boolean isSkeletonInterface) { Document doc = getEmptyDocument(); Element rootElement = doc.createElement("interface"); String serviceCName = makeCClassName(axisService.getName()); String skelName = C_SKEL_PREFIX + serviceCName + C_SKEL_SUFFIX; // only the name is used addAttribute(doc, "name", skelName, rootElement); addAttribute(doc, "caps-name", skelName.toUpperCase(), rootElement); addAttribute(doc, "package", "", rootElement); String serviceName = axisService.getName(); String serviceTns = axisService.getTargetNamespace(); addAttribute(doc, "prefix", skelName, rootElement); //prefix to be used by the functions addAttribute(doc, "qname", serviceName + "|" + serviceTns, rootElement); fillSyncAttributes(doc, rootElement); loadOperations(doc, rootElement, null); //attach a list of faults rootElement.appendChild(getUniqueListofFaults(doc)); doc.appendChild(rootElement); ///////////////////////////////////////////////////// // System.out.println(DOM2Writer.nodeToString(rootElement)); ///////////////////////////////////////////////////// return doc; }
if (request_Identifier == null || request_Identifier.equals(theService.getTargetNamespace())) {
serviceName = new QName(axisService.getTargetNamespace(), axisService.getName());
protected Document createDOMDocumentForServiceSkeletonXML() { Document doc = getEmptyDocument(); Element rootElement = doc.createElement("interface"); String localPart = makeCClassName(axisService.getName()); String svcSkelName = C_SVC_SKEL_PREFIX + localPart + C_SVC_SKEL_SUFFIX; String skelName = C_SKEL_PREFIX + localPart + C_SKEL_SUFFIX; // only the name is used addAttribute(doc, "name", svcSkelName, rootElement); addAttribute(doc, "caps-svc-name", skelName.toUpperCase(), rootElement); addAttribute(doc, "prefix", svcSkelName, rootElement); //prefix to be used by the functions String serviceName = axisService.getName(); String serviceTns = axisService.getTargetNamespace(); addAttribute(doc, "qname", serviceName + "|" + serviceTns, rootElement); addAttribute(doc, "svcname", skelName, rootElement); addAttribute(doc, "svcop_prefix", skelName, rootElement); addAttribute(doc, "package", "", rootElement); fillSyncAttributes(doc, rootElement); loadOperations(doc, rootElement, null); // add SOAP version addSoapVersion(doc, rootElement); //attach a list of faults rootElement.appendChild(getUniqueListofFaults(doc)); doc.appendChild(rootElement); return doc; }
String serviceTns = axisService.getTargetNamespace(); String serviceCName = makeCClassName(axisService.getName()); String stubName = C_STUB_PREFIX + serviceCName + C_STUB_SUFFIX;
addAttribute(doc, "namespace", axisService.getTargetNamespace(), rootElement); addAttribute(doc, "interfaceName", coreClassName, rootElement); if (codeGenConfiguration.isPackClasses()) {