本文整理汇总了Java中com.sun.xml.internal.ws.api.model.wsdl.editable.EditableWSDLBoundOperation类的典型用法代码示例。如果您正苦于以下问题:Java EditableWSDLBoundOperation类的具体用法?Java EditableWSDLBoundOperation怎么用?Java EditableWSDLBoundOperation使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EditableWSDLBoundOperation类属于com.sun.xml.internal.ws.api.model.wsdl.editable包,在下文中一共展示了EditableWSDLBoundOperation类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: parseInputBinding
import com.sun.xml.internal.ws.api.model.wsdl.editable.EditableWSDLBoundOperation; //导入依赖的package包/类
private void parseInputBinding(XMLStreamReader reader, EditableWSDLBoundOperation bindingOp) {
boolean bodyFound = false;
extensionFacade.bindingOperationInputAttributes(bindingOp, reader);
while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) {
QName name = reader.getName();
if ((SOAPConstants.QNAME_BODY.equals(name) || SOAPConstants.QNAME_SOAP12BODY.equals(name)) && !bodyFound) {
bodyFound = true;
bindingOp.setInputExplicitBodyParts(parseSOAPBodyBinding(reader, bindingOp, BindingMode.INPUT));
goToEnd(reader);
} else if ((SOAPConstants.QNAME_HEADER.equals(name) || SOAPConstants.QNAME_SOAP12HEADER.equals(name))) {
parseSOAPHeaderBinding(reader, bindingOp.getInputParts());
} else if (MIMEConstants.QNAME_MULTIPART_RELATED.equals(name)) {
parseMimeMultipartBinding(reader, bindingOp, BindingMode.INPUT);
} else {
extensionFacade.bindingOperationInputElements(bindingOp, reader);
}
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:19,代码来源:RuntimeWSDLParser.java
示例2: parseOutputBinding
import com.sun.xml.internal.ws.api.model.wsdl.editable.EditableWSDLBoundOperation; //导入依赖的package包/类
private void parseOutputBinding(XMLStreamReader reader, EditableWSDLBoundOperation bindingOp) {
boolean bodyFound = false;
extensionFacade.bindingOperationOutputAttributes(bindingOp, reader);
while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) {
QName name = reader.getName();
if ((SOAPConstants.QNAME_BODY.equals(name) || SOAPConstants.QNAME_SOAP12BODY.equals(name)) && !bodyFound) {
bodyFound = true;
bindingOp.setOutputExplicitBodyParts(parseSOAPBodyBinding(reader, bindingOp, BindingMode.OUTPUT));
goToEnd(reader);
} else if ((SOAPConstants.QNAME_HEADER.equals(name) || SOAPConstants.QNAME_SOAP12HEADER.equals(name))) {
parseSOAPHeaderBinding(reader, bindingOp.getOutputParts());
} else if (MIMEConstants.QNAME_MULTIPART_RELATED.equals(name)) {
parseMimeMultipartBinding(reader, bindingOp, BindingMode.OUTPUT);
} else {
extensionFacade.bindingOperationOutputElements(bindingOp, reader);
}
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:19,代码来源:RuntimeWSDLParser.java
示例3: getBinding
import com.sun.xml.internal.ws.api.model.wsdl.editable.EditableWSDLBoundOperation; //导入依赖的package包/类
/**
* Gets the {@link ParameterBinding} for a given operation, part name and the direction - IN/OUT
*
* @param operation wsdl:[email protected] value. Must be non-null.
* @param part wsdl:[email protected] such as value of soap:[email protected] Must be non-null.
* @param mode {@link Mode#IN} or {@link Mode#OUT}. Must be non-null.
* @return null if the binding could not be resolved for the part.
*/
public ParameterBinding getBinding(QName operation, String part, Mode mode) {
EditableWSDLBoundOperation op = get(operation);
if (op == null) {
//TODO throw exception
return null;
}
if ((Mode.IN == mode) || (Mode.INOUT == mode))
return op.getInputBinding(part);
else
return op.getOutputBinding(part);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:20,代码来源:WSDLBoundPortTypeImpl.java
示例4: getOperation
import com.sun.xml.internal.ws.api.model.wsdl.editable.EditableWSDLBoundOperation; //导入依赖的package包/类
public EditableWSDLBoundOperation getOperation(String namespaceUri, String localName) {
if(namespaceUri==null && localName == null)
return emptyPayloadOperation;
else{
return payloadMap.get((namespaceUri==null)?"":namespaceUri,localName);
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:WSDLBoundPortTypeImpl.java
示例5: freeze
import com.sun.xml.internal.ws.api.model.wsdl.editable.EditableWSDLBoundOperation; //导入依赖的package包/类
public void freeze() {
portType = owner.getPortType(portTypeName);
if(portType == null){
throw new LocatableWebServiceException(
ClientMessages.UNDEFINED_PORT_TYPE(portTypeName), getLocation());
}
portType.freeze();
for (EditableWSDLBoundOperation op : bindingOperations.values()) {
op.freeze(owner);
}
freezePayloadMap();
owner.finalizeRpcLitBinding(this);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:16,代码来源:WSDLBoundPortTypeImpl.java
示例6: freeze
import com.sun.xml.internal.ws.api.model.wsdl.editable.EditableWSDLBoundOperation; //导入依赖的package包/类
public void freeze(EditableWSDLBoundOperation root) {
assert root != null;
EditableWSDLOperation op = root.getOperation();
if (op != null) {
for (EditableWSDLFault f : op.getFaults()) {
if (f.getName().equals(name)) {
this.fault = f;
break;
}
}
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:13,代码来源:WSDLBoundFaultImpl.java
示例7: parseFaultBinding
import com.sun.xml.internal.ws.api.model.wsdl.editable.EditableWSDLBoundOperation; //导入依赖的package包/类
private void parseFaultBinding(XMLStreamReader reader, EditableWSDLBoundOperation bindingOp) {
String faultName = ParserUtil.getMandatoryNonEmptyAttribute(reader, "name");
EditableWSDLBoundFault wsdlBoundFault = new WSDLBoundFaultImpl(reader, faultName, bindingOp);
bindingOp.addFault(wsdlBoundFault);
extensionFacade.bindingOperationFaultAttributes(wsdlBoundFault, reader);
while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) {
extensionFacade.bindingOperationFaultElements(wsdlBoundFault, reader);
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:RuntimeWSDLParser.java
示例8: parseSOAPBodyBinding
import com.sun.xml.internal.ws.api.model.wsdl.editable.EditableWSDLBoundOperation; //导入依赖的package包/类
private static boolean parseSOAPBodyBinding(XMLStreamReader reader, EditableWSDLBoundOperation op, BindingMode mode) {
String namespace = reader.getAttributeValue(null, "namespace");
if (mode == BindingMode.INPUT) {
op.setRequestNamespace(namespace);
return parseSOAPBodyBinding(reader, op.getInputParts());
}
//resp
op.setResponseNamespace(namespace);
return parseSOAPBodyBinding(reader, op.getOutputParts());
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:RuntimeWSDLParser.java
示例9: parseMimeMultipartBinding
import com.sun.xml.internal.ws.api.model.wsdl.editable.EditableWSDLBoundOperation; //导入依赖的package包/类
private static void parseMimeMultipartBinding(XMLStreamReader reader, EditableWSDLBoundOperation op, BindingMode mode) {
while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) {
QName name = reader.getName();
if (MIMEConstants.QNAME_PART.equals(name)) {
parseMIMEPart(reader, op, mode);
} else {
XMLStreamReaderUtil.skipElement(reader);
}
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:RuntimeWSDLParser.java
示例10: parseMIMEPart
import com.sun.xml.internal.ws.api.model.wsdl.editable.EditableWSDLBoundOperation; //导入依赖的package包/类
private static void parseMIMEPart(XMLStreamReader reader, EditableWSDLBoundOperation op, BindingMode mode) {
boolean bodyFound = false;
Map<String, ParameterBinding> parts = null;
if (mode == BindingMode.INPUT) {
parts = op.getInputParts();
} else if (mode == BindingMode.OUTPUT) {
parts = op.getOutputParts();
} else if (mode == BindingMode.FAULT) {
parts = op.getFaultParts();
}
while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) {
QName name = reader.getName();
if (SOAPConstants.QNAME_BODY.equals(name) && !bodyFound) {
bodyFound = true;
parseSOAPBodyBinding(reader, op, mode);
XMLStreamReaderUtil.next(reader);
} else if (SOAPConstants.QNAME_HEADER.equals(name)) {
bodyFound = true;
parseSOAPHeaderBinding(reader, parts);
XMLStreamReaderUtil.next(reader);
} else if (MIMEConstants.QNAME_CONTENT.equals(name)) {
String part = reader.getAttributeValue(null, "part");
String type = reader.getAttributeValue(null, "type");
if ((part == null) || (type == null)) {
XMLStreamReaderUtil.skipElement(reader);
continue;
}
ParameterBinding sb = ParameterBinding.createAttachment(type);
if (parts != null && sb != null && part != null)
parts.put(part, sb);
XMLStreamReaderUtil.next(reader);
} else {
XMLStreamReaderUtil.skipElement(reader);
}
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:37,代码来源:RuntimeWSDLParser.java
注:本文中的com.sun.xml.internal.ws.api.model.wsdl.editable.EditableWSDLBoundOperation类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论