public static MethodType findOperationFromServiceDesc(String methodName, ServiceDescriptionType serviceDescType) throws GFacWSDLException { PortTypeType portType = serviceDescType.getPortType(); if (serviceDescType.getPortType().getMethod().getMethodName().equals(methodName)) { serviceDescType.getPortType().getMethod(); } if (isInbuiltOperation(methodName)) { MethodType builtInOperationType = portType.addNewMethod(); builtInOperationType.setMethodName(methodName); return builtInOperationType; } throw new GFacWSDLException("Method name " + methodName + " not found"); }
public static MethodType findOperationFromServiceDesc(String methodName, ServiceDescriptionType serviceDescType) throws GFacWSDLException { PortTypeType portType = serviceDescType.getPortType(); if (serviceDescType.getPortType().getMethod().getMethodName().equals(methodName)) { serviceDescType.getPortType().getMethod(); } if (isInbuiltOperation(methodName)) { MethodType builtInOperationType = portType.addNewMethod(); builtInOperationType.setMethodName(methodName); return builtInOperationType; } throw new GFacWSDLException("Method name " + methodName + " not found"); }
String methodName = serviceDesc.getPortType().getMethod().getMethodName(); WSDLMessageBean wsdlMsgBean = new WSDLMessageBean(); wsdlMsgBean.setNamespace(typens);
String methodName = serviceDesc.getPortType().getMethod().getMethodName(); WSDLMessageBean wsdlMsgBean = new WSDLMessageBean(); wsdlMsgBean.setNamespace(typens);
public static String getWSDL(ServiceDescription service) throws Exception{ try { ServiceType type = service.getType().addNewService(); ServiceType.ServiceName name = type.addNewServiceName(); name.setStringValue(service.getType().getName()); name.setTargetNamespace("http://airavata.apache.org/schemas/gfac/2012/12"); if(service.getType().getPortType() == null){ PortTypeType portType = service.getType().addNewPortType(); MethodType methodType = portType.addNewMethod(); methodType.setMethodName("invoke"); }else{ MethodType method = service.getType().getPortType().getMethod(); if (method == null) { MethodType methodType = service.getType().getPortType().addNewMethod(); methodType.setMethodName("invoke"); } else { service.getType().getPortType().getMethod().setMethodName("invoke"); } } WSDLGenerator generator = new WSDLGenerator(); Hashtable table = generator.generateWSDL(null, null, null, service.getType(), true); return (String) table.get(WSDLConstants.AWSDL); } catch (Exception e) { throw new RuntimeException(e); } }
PortTypeType portType = serviceDesc.getPortType(); MethodType method = portType.getMethod(); QName portTypeName = serviceQName; Binding binding = addBinding(def, nameSpaceURI, wsdlPortType, serviceLevelPolicRef, dImpl); String methodDesc = serviceDesc.getPortType().getMethod().getMethodDescription(); String methodName = serviceDesc.getPortType().getMethod().getMethodName(); OutputParameterType[] outputParams = serviceDesc.getOutputParametersArray();
PortTypeType portType = serviceDesc.getPortType(); MethodType method = portType.getMethod(); QName portTypeName = serviceQName; Binding binding = addBinding(def, nameSpaceURI, wsdlPortType, serviceLevelPolicRef, dImpl); String methodDesc = serviceDesc.getPortType().getMethod().getMethodDescription(); String methodName = serviceDesc.getPortType().getMethod().getMethodName(); OutputParameterType[] outputParams = serviceDesc.getOutputParametersArray();