当前位置: 首页>>代码示例>>Java>>正文


Java SOAPAddressImpl类代码示例

本文整理汇总了Java中com.ibm.wsdl.extensions.soap.SOAPAddressImpl的典型用法代码示例。如果您正苦于以下问题:Java SOAPAddressImpl类的具体用法?Java SOAPAddressImpl怎么用?Java SOAPAddressImpl使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


SOAPAddressImpl类属于com.ibm.wsdl.extensions.soap包,在下文中一共展示了SOAPAddressImpl类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createBindingTemplateForSOAP11

import com.ibm.wsdl.extensions.soap.SOAPAddressImpl; //导入依赖的package包/类
/**
 * Create binding template for a WSDL port that has soap:address
 *
 * @param bindingTemplate bindingTemplate reference
 * @param port            WSDL port
 * @param address         Endpoint address
 * @return bindingTemplate object
 */
private BindingTemplate createBindingTemplateForSOAP11(BindingTemplate bindingTemplate,
                                                       PortImpl port,
                                                       Object address) {
    bindingTemplate = new BindingTemplate();

    SOAPAddressImpl soapAddress = (SOAPAddressImpl) address;
    String endpoint = soapAddress.getLocationURI();
    AccessPoint accessPoint = new AccessPoint();
    accessPoint.setValue(endpoint);
    accessPoint.setUseType(UDDIConstants.END_POINT);
    bindingTemplate.setAccessPoint(accessPoint);

    TModelInstanceDetails tModelinstanceDetails = constructTModelInstanceDetails(port);
    bindingTemplate.setTModelInstanceDetails(tModelinstanceDetails);

    return bindingTemplate;
}
 
开发者ID:wso2,项目名称:carbon-registry,代码行数:26,代码来源:UDDIPublisher.java

示例2: getPortAddress

import com.ibm.wsdl.extensions.soap.SOAPAddressImpl; //导入依赖的package包/类
private String getPortAddress(Definition definition, String serviceName, String portName)
{
   Port port = definition.getService(new QName(NAMESPACE, serviceName)).getPort(portName);
   return ((SOAPAddressImpl)port.getExtensibilityElements().get(0)).getLocationURI();
}
 
开发者ID:jbossws,项目名称:jbossws-cxf,代码行数:6,代码来源:JBWS2150TestCase.java

示例3: deriveServiceEPR

import com.ibm.wsdl.extensions.soap.SOAPAddressImpl; //导入依赖的package包/类
private void deriveServiceEPR(DeploymentUnitDir du, ExtensionContext extensionContext)
        throws FaultException {
    DeployDocument deployDocument = du.getDeploymentDescriptor();
    BpelRuntimeContext runTimeContext = extensionContext.getInternalInstance();

    //TODO neeed to extend ExtentionContext
    OProcess oProcess = runTimeContext.getProcessModel();

    TDeployment.Process hiProcess = null;
    List<TDeployment.Process> processList = deployDocument.getDeploy().getProcessList();
    for (TDeployment.Process process : processList) {
        if (process.getName().equals(oProcess.getQName())) {
            hiProcess = process;
            break;
        }
    }

    if (hiProcess == null) {
        throw new FaultException(BPEL4PeopleConstants.B4P_FAULT, "Related process: " +
                oProcess.getQName() + " not found");
    }

    List<TInvoke> tInvokeList = hiProcess.getInvokeList();
    for (TInvoke tInvoke : tInvokeList) {
        if (tInvoke.getPartnerLink().equals(partnerLinkName)) {
            serviceName = tInvoke.getService().getName();
            servicePort = tInvoke.getService().getPort();
            break;
        }
    }

    if (serviceName == null || servicePort == null) {
        log.error("service and port for human interaction is not found in the deploy.xml");
        throw new FaultException(BPEL4PeopleConstants.B4P_FAULT,
                "Service or port for human interaction is not found in the deploy.xml");
    }

    //get the callback information for the TASK
    if (activityType.equals(InteractionType.TASK)) {
        List<TProvide> tProvideList = hiProcess.getProvideList();
        for (TProvide tProvide : tProvideList) {
            if (tProvide.getPartnerLink().equals(partnerLinkName)) {
                callbackServiceName = tProvide.getService().getName();
                callbackServicePort = tProvide.getService().getPort();
                break;
            }
        }
        if (callbackServiceName == null || callbackServicePort == null) {
            throw new FaultException(BPEL4PeopleConstants.B4P_FAULT,
                    "Service or port for human task callback is not found in the deploy.xml");
        }
    }

    hiWSDL = du.getDefinitionForService(serviceName);

    Service service = hiWSDL.getService(serviceName);
    Port port = service.getPort(servicePort);
    List extList = port.getExtensibilityElements();
    for (Object extEle : extList) {
        if (extEle instanceof SOAPAddressImpl) {
            SOAPAddressImpl soapAddress = (SOAPAddressImpl) extEle;
            serviceURI = soapAddress.getLocationURI();
            break;
        }
    }

    if (serviceURI == null) {
        throw new FaultException(BPEL4PeopleConstants.B4P_FAULT, "Service URI is not available");
    }
}
 
开发者ID:wso2,项目名称:carbon-business-process,代码行数:71,代码来源:PeopleActivity.java


注:本文中的com.ibm.wsdl.extensions.soap.SOAPAddressImpl类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。