on 08-16-2011 10:20 AM
Hi expert:
We have a problem about this synchronous scenario: ECC(ABAP Proxy)>PI>P6(SOAP), In P6,it need additional soap header as below:
<soapenv:Header>
<wsse:Security mustUnderstand="0" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:UsernameToken wsu:Id="UsernameToken-5700630" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:Username>admin</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">admin</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
How can i add this header to the receiver message?
Hi,
You can use JAVA or XSLT mapping to achive this.
refer this
http://knbintegration.com/blog/?p=181
Or
The axis adapter comes with a convenient header insertion handler where you can insert an arbitrary header using a template.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for everyone,I have solved this problem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Create an XSL file like below and use in your mapping.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<soapenv:Header>
<wsse:Security mustUnderstand="0" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:UsernameToken wsu:Id="UsernameToken-5700630" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:Username>admin</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">admin</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<xsl:copy-of select=""/>*
</xsl:template>
</xsl:stylesheet>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>How can i add this header to the receiver message?
You want custom header. So check the option "Do not use Envelope" in the soap receiver channel. You can create soap header using Java or XSLT mapping. You need web service security features like Username token so better go with Java mapping. Refer Apache Axis open source API for coding. If the requirement is simple and the values are pretty static then go with XSLT mapping.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.