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