websphere使用总结

本文档详细介绍了如何在Web应用中配置LTPA ( Lightweight Third Party Authentication ) 令牌生成器,包括在web.xml和webservices.xml文件中的具体步骤。此外,还提供了SOAP请求中的LTPA令牌实例。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

Create LTPA Token Generator

1 Create LTPA Token(web.xml->WS Extensions tab)

2 Create LTPA Token Generator(web.xml->WS Binding tab)


 Web Service Consumer


1 Create LTPA Token Generator(webservices.xml->Extensions tab)

2 Create  Caller Part(webservices.xml->Extensions tab)

3 Create Token Consumer(webservices.xml->Binding Configurations tab)

 

soap请求

<soapenv:Header>

              <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soapenv:mustUnderstand="1">

                     <wsse:BinarySecurityToken xmlns:wsst="http://www.ibm.com/websphere/appserver/tokentype/5.0.2" ValueType="wsst:LTPA">eKShOD99SFHQdKk951/SAa5Nc8wtEKeBK0Xt6T9+37lM10U9/lvRwiLPIIMo9+6LgIpCUrGa6TZ8NqskExFklEaKU3WO6TCdp+y74FJiY1rWSO1Nnkaj8oDKl3U/lZwGczwd9ic6upkZ8QopvxGBLyvmQRY1S3oVG79usOESrl/OwnP3xgdyuBreqStm32GdnWoIBQEZ2+d9kmqjna3bZtZaCK+bSywuxv9QgJWBepX02KDJpuXFQS7LCDj1DIMdSTsHGWWvdolyjQvDXjiJIv/NJ1Xhg/BA/sagc/LD9wZQu45KInNUMDlSvwm0nnO8TRfkYQSUv/0Zh1BhcnnNCkUuMc5mnrZe</wsse:BinarySecurityToken>

                     <wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">

                            <wsu:Created>2008-05-02T20:28:47.62Z</wsu:Created>

                     </wsu:Timestamp>

              </wsse:Security>

 </soapenv:Header>


web.xml

 

<service-ref>

        <description>WSDL Service WorkflowTaskInteractionServiceExport_WorkflowTaskInteractionPortTypeHttpService</description>

        <service-ref-name>service/WorkflowTaskInteractionServiceExport_WorkflowTaskInteractionPortTypeHttpService</service-ref-name>

        <service-interface>com.hanover.WorkflowTaskInteractionServiceExport_WorkflowTaskInteractionPortTypeHttpService</service-interface>

        <wsdl-file>WEB-INF/wsdl/WorkflowTaskInteractionServiceExport_V1_2.wsdl</wsdl-file>

        <jaxrpc-mapping-file>WEB-INF/WorkflowTaskInteractionServiceExport_V1_2_mapping.xml</jaxrpc-mapping-file>

        <service-qname xmlns:pfx="http://hanover.com/cl/workflow/WorkflowTaskInteractionService/Binding">pfx:WorkflowTaskInteractionServiceExport_WorkflowTaskInteractionPortTypeHttpService</service-qname>

        <port-component-ref>

            <service-endpoint-interface>com.hanover.WorkflowTaskInteractionPortType</service-endpoint-interface>

        </port-component-ref>

    </service-ref>

 

ibm console后台设置(一些配置直接copy)

 

 

 

 

整个项目目录结构

 

 

On source machine with a working WAS/PLUS:

Start WAS

C:/IBMSOA/SDP70/runtimes/base_v61/bin>wsadmin -port 8882

wasdmin>$AdminTask exportWasprofile {-archive c:/zzz.car}

wasdmin>quit

 

On target machine:

Create a new AppSrvWSFP01 profile

Start WAS

C:/IBMSOA/SDP70/runtimes/base_v61/bin>wsadmin -port 8882

wasdmin>$AdminTask importWasprofile {-archive c:/zzz.car}

wasdmin>$AdminConfig save

wasdmin>quit

Restart WAS

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值