SOAP Header authentication in receiver SOAP
Hi,
we are interfacining a scenario where in receiver soap we are getting user name and pwd in header.
my scenairo is proxy to soap and it is asyncronous.
could you please tell me the solution how to do that. without header information it is working fine. i want what configuration i have to do to get the header information.
thanks
Laxmi Bhushan
Hi Laxmi,
follow this guide last section deploying SDA file using JSPM .
If you are not able to see your SDA file then run the comand which i have mentioned iin last section.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00b4a020-4ae6-2c10-5a95-fed4ad9a4b60?quicklink=index&overridelayout=true
Also take care of the extension of .SDA file.
Extract it properly in a folder . After adding content again create SDA and start deployement
thanks
sandeep
Similar Messages
-
Error: Could not read Header Mapping in Receiver Agreement
Dear SAP experts,
Newly installed SAP G7A PI 7.1(Acceptance box) was already released to customer.
We are doing an initial test (BAT phase), wherein, our end-to-end scenario is, from a EP Portal application ---> G7A PI 7.1 --> Trading Partner via AS2 protocol.
G7A PI is connected to Trading Partner via AS2 protocol.
Currently, our EP Portal application is in-active at the moment, that's why we used 'manual XI submitter', to send a message from G7A PI itself going to Trading Partner.
The message was success in the Integration engine of G7A PI, and the output message was produced.
As the message reached the Adapter Engine layer of G7A PI, we encountered a specific error,
Delivering the message to the application using connection AS2_http://seeburger.com/xi failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: javax.resource.ResourceException: Fatal exception: com.seeburger.xi.connector.queue.TaskBuildException: Could not create CPAObjectMapper: InvocationTargetException caused by Could not read Header Mapping in Receiver Agreement: while trying to invoke the method com.sap.aii.af.service.cpa.Party.getParty() of an object returned from com.sap.aii.af.service.cpa.NormalizationManager.getXIParty(java.lang.String, java.lang.String, java.lang.String), Could not create CPAObjectMapper: InvocationTargetException caused by Could not read Header Mapping in Receiver Agreement: while trying to invoke the method com.sap.aii.af.service.cpa.Party.getParty() of an object returned from com.sap.aii.af.service.cpa.NormalizationManager.getXIParty(java.lang.String, java.lang.String, java.lang.String)
Basically, "Could not create CPAObjectMapper - InvocationTargetException caused by Could not read Header Mapping in Receiver Agreement"
I am thinking, one of the possible cause is that we used manual XI submitter, in G7A PI, instead of the utilizing the actual Sending system (EP Portal application).
Or possible cause is that the AS2 adapter in G7A is not yet stable, thus causing the issue.
We've already done successful connection when we're in GDD PI (Development box) during our SIT phase.
Objects in G7A were mirror of GDD PI.
Kindly advise for your inputs.
Thanks!
GerbertoHi,
It seems that the cause of the error is the unstable performance of the PI box, since, this was newly installed and there were patches that were not yet added.
Thanks for the support!
Gerberto -
Header Mapping in Receiver agreement.?
Hi All,
When we do B2B scenarios using AS2 adapters.
1. Is it mandatory to use Header Mapping in Receiver agreement.?
2. If yes, is it enough if we provide Party Names? or we need to provide Business system or Business service names as well?
3. What is the purpose of this Header Mapping?
Kindly share your answers.
Regards
Deepthi.
Edited by: deepthi reddy on Jan 31, 2008 6:49 AMHi Deepthi,
1) Is it mandatory to use Header Mapping in Receiver agreement?
https://www.sdn.sap.com/irj/sdn/forums
2)What is the purpose of this Header Mapping?
The header mapping is important when configuring cross- company processes in which the business partners want to replace the names of their internal business systems with neutral representatives (party, business service).
Example
if you are doing a file to IDoc scenario, now while mapping the data to IDoc in mapping if you map the IDoc segment called EDI_DC40 with all required data then you have to user the Header mapping in the agreement so that whatever data you have mapped will be picked from payload. And if you do not use this header mapping then then XI will take care of it.
You can do the following in the header mapping:
● Specify fixed values
● Define that the conversion of the field values is to be determined dynamically from the message payload
To specify the header mapping for an address field, select the check box for the field name (for example, sender service) and choose Display List of Permitted Values (This graphic is explained in the accompanying text).
There are different editors for specifying the party and service:
● Use the party editor to specify a party
● Use the service editor to specify a service
Caution
Header mappings are only supported by the following receiver adapters at runtime:
IDoc Adapter
Plain HTTP adapter
RNIF Adapter 2.0
RNIF Adapter 1.1
CIDX Adapter
3)If yes, is it enough if we provide Party Names? or we need to provide Business system or Business service names as well?
http://help.sap.com/saphelp_nw04/helpdata/en/5d/112d20f6ce6c46ba66afb98d278fbd/frameset.htm
Regards
Azeez khan. -
HEADER MAPPING in RECEIVER AGREEMENT use.?
Hi folks,
Can anyone explain me about the HEADER MAPPING in RECEIVER AGREEMENT. In which cases we go for this header mapping.
Give me an example if possible or any links regarding this.
Thanks in advance
Srinivas Reddy.Dear Srinivas,
Go through the following link and you may get some idea on this.
http://help.sap.com/saphelp_nw70/helpdata/en/b2/1f17419b24f06fe10000000a1550b0/content.htm
Regards,
JP. -
Header Authentication (Number III)
I am stuck with the header authentication
First I tried to follow the "Secure Guide" and using authschemes.xml. But I could not make sense of the authschemes requirements. Both, header and userid/pw needs to work in the same scheme.
I implemented header authentication using the example in the pdf from Mr. Wulftange. This one was configured using only the Visual Admin as a login module.
Do I need to make changes in the authschemes.xml as well or is it just enough to configure the security provider?
I really wish someone had a step by step guide for this header authentication. It is like hunting piece by piece for information, everybody knows something but nobody knows the whole truth
We have a Juniper Systemen for VPN and Sign on, and Juniper needs to make a header based connection to the EP.Hi,
i have a problem with header authentification. Can you fwd the pdf guitde to me?
Tanks and regards
Hüsniye -
Siteminder timeout when IISProxy used for header authentication
Hi,
I'm wondering if anybody came across similar problem. I'm testing "header authentication" with J2EE 6.40. It works, but Sitemider is timing-out user session too fast (within 5 min) due to missing SMSESSION cookie.
Environment
- Windows 2000, IIS 5.0, SiteMinder ISAPI WebAgent, Version 5.00 QMR07, Update HF-04, Label 228
Scenario:
- Siteminder ISAPI agent is installed as the highest filter in ISAPI stack and agent is setup to protect a URL /webdynpro
- Iisproxy filter below Sitemider acts as proxy that redirects requests for /webdynpro to J2EE serverSAP Note No. 664988
IisProxy: Problem analysis
1. Edit the log file
\inetpub\scripts\IisProxy.xml and change all entries that refer to the log level as follows: log level=3
2. Restart the 'World Wide Web Publishing' service.
3. Reproduce the problem to be analyzed.
check the logs to determine whether the SMSESSION header is handled properly by IISProxy.
Nick -
SOAP -Client Certificate Authentication in Receiver SOAP Adapter
Dear All,
We are working on the below scenario
SAP R/3 System -> XI/PI -> Proxy -> Customer
In this, SAP R/3 System sends a IDOC and XI should give that XML Payload of IDOC to Customer.
Cusomer gave us the WSDL file and also a Certificate for authentication.
Mapping - we are using XSLT mapping to send that XML payload as we need to capture the whole XML payload of IDOC into 1 field at the target end ( This was given in the WSDL).
Now, how can we achieve this Client Certificate authentication in the SOAP Receiver Adapter when we have Proxy server in between PI/XI and Customer system.
Require your inputs on Client Certificate authentication and Proxy server configuration.
Regards,
SriniHi
Look this blog
How to use Client Authentication with SOAP Adapter
http://help.sap.com/saphelp_nw04/helpdata/en/14/ef2940cbf2195de10000000a1550b0/content.htm
Also refer to "SAP Security Guide XI" at service market place.
ABAP Proxy configuration
How do you activate ABAP Proxies? -
We need a small SSIS package to pass a SOAP message to a SOAP server and receive the response xml message.
We have the SOAP Endpoint, SOAP Action, and SOAP Message (which contains authentication elements). They work in a Talend Data Integration job (using
Talend's tSOAP component). A screenshot showing the Talend job and the configuration of the tSOAP component
is attached.
We need to implement the same thing in a Microsoft SQL Server 2012 SSIS package but haven't been able to get an SSIS Web Services task to work.
We haven't been able to configure it to pass the SOAP Action and SOAP Message.
How should this be accomplished in SSIS?
kholbergerI guess I was not clear. The Talend job works perfectly (and it took only a few minutes to configure).
I need to replicate the SOAP request function in an SSIS package. I've been trying to configure an SSIS Web Services Task to do that without success.
The SSIS Web Service Task asks for the .wsdl file, which I provide (though the Talend component
does not ask for it), but the SSIS WST does not ask for the SOAP Action or SOAP message. The target web service is protected by a security gateway that rejects the SSIS WST request. Somehow, the Talend tSOAP component sends the
SOAP message, which contains the security definition and authentication credentials (you can see part of that in the screen shot) which the endpoint accepts.
The question is: "How does one implement a SOAP web service request in an SSIS package that sends the SOAP Message".
Thanks.
kholberger -
Configure Client Authentication for Receiver SOAP Adapter
Hi,
Can you please tell me what i should give in receiver soap channel for KeyStoreEntry and KeyStoreView after checking Configure Client Authentication checkbox,as I have got certificate from third party.
Thanks in advance
Best Regards,
Harleen Kaur ChadhaHi,
Keystore Entry:
Login to Visual Admin --> Server --> Services --> KeyStorage --> TrustedCAs --> Load --> Select the location where you have stored the certificate on your local system
Load function is used as you have already got the certificate....
Once this is done you will find an entry for your certificate in the Entries tab of your TrustedCAs section.
This is your Keystore Entry...in other words it the name of your certificate.
Keystore View:
http://help.sap.com/saphelp_webas630/helpdata/en/16/c0503e1dac5b46e10000000a114084/content.htm
Are you going to consume Logon tickets of the Third party system (which is other than SAP J2ee engine of your XI)? If yes, then you may also need to do some more settings in the J2ee Engine.
Regards,
Abhishek. -
Soap header authentication in as2
Is there any way to pass a SOAP header with Uname/password in Actionscript 2 webservice.
I need to authenticate the SOAP request.
Please help me..............Hi Laxmi,
follow this guide last section deploying SDA file using JSPM .
If you are not able to see your SDA file then run the comand which i have mentioned iin last section.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00b4a020-4ae6-2c10-5a95-fed4ad9a4b60?quicklink=index&overridelayout=true
Also take care of the extension of .SDA file.
Extract it properly in a folder . After adding content again create SDA and start deployement
thanks
sandeep -
SAP PI: Using Variable Header Binding in Receiver Mail Adapter
Hello,
I try to use Variable Header Bindings in the Receiver Mail Adapter. Therefore I wrote the following User-Defined-Function in a mapping:
Java Function Start -
DynamicConfiguration conf = (DynamicConfiguration) container
.getTransformationParameters()
.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key1 = DynamicConfigurationKey.create(
"http://sap.com/xi/XI/System/Mail",
"XHeaderName1");
DynamicConfigurationKey key2 = DynamicConfigurationKey.create(
"http://sap.com/xi/XI/System/Mail",
"XHeaderName2");
DynamicConfigurationKey key3 = DynamicConfigurationKey.create(
"http://sap.com/xi/XI/System/Mail",
"XHeaderName3");
conf.put(key1, new String("Test1"));
conf.put(key2, new String("Test2"));
conf.put(key3, new String("Test3"));
Java Function End -
As expected I see the Attributes and Parameters in the Dynamic Configuration in the SAP XI Monitor:
Dynamic Configuration Informattion Start -
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Mapping der Request-Message
-->
- <SAP:DynamicConfiguration xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="XHeaderName3">Test3</SAP:Record>
<SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="XHeaderName2">Test2</SAP:Record>
<SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="XHeaderName1">Test1</SAP:Record>
</SAP:DynamicConfiguration>
Dynamic Configuration Informattion End -
Now I configure my Receiver eMail Communication Channel and set the Variable Header Fields as follows:
Adapter Specific Attributes: Checked
Variable Transport Binding: Checked
Variable Header (XHeaderName1): TSender
Variable Header (XHeaderName2): TReceiver
Variable Header (XHeaderName3): TOther
With this configuration I would have expected three new Header fields in the Header of the eMail, the reicever gets. But they are not there.
When I set standard attributes like THeaderTO, THeaderSubject a.s.o this works fine and the values are also set accordingly. Where it the mistake here?
The PI version we are working with is PI 7.0 SP10.
Your help will be highly appreciated.
Thank you,
SteffenHi Luciana,
Honestly, I cant really remember how or if it was resolved and I was just helping out on the issue, but another consultant continued with it, so unfortunately I cant be any help on this.
Good luck!
Cheers,
Brad -
Attributes passed in HTTP Header but not received in my application!! Help
Hi all,
I am running Sun Directory Server 5.2, Access Manager 7.0 and Policy Agent 2.1 on an IBM Websphere 5.0 web server.
I am using a "shared" authorization model where I am using the AM only for the authentication part.
The way my application is structured, it is supposed to receive certain attributes from the LDAP and then based on these attributes the application does the authorization.
I am trying to receive the values using
request.getHeader("app_variable1").
However, sometimes the attribute picks the value and at other times it becomes null. It is not working consistently.
I have done the necessary changes required in the amAgent.properties file:
1. I have disabled the agent realm in websphere
2. com.sun.am.policy.amFilter.mode = SSO_ONLY
com.sun.am.policy.agents.do_sso_only = true
3. com.sun.am.policy.amFilter.ldapattribute.mode = HEADER
4.
com.sun.am.policy.amFilter.ldapattribute.map[attribute1]=app_variable1
com.sun.am.policy.amFilter.ldapattribute.map[attribute2]=app_variable2
// where attribute1 is an existing attribute in the LDAP
// where app_variable1 is the variable name which is mapped to the ldap attribute for getting the value in my application
// request.getHeader("app_variable1")
The values appear on the index.jsp page when I getHeader() there, but as soon as I forward to the Servlet which does the authorization, it behaves erraticaly - sometimes system.out.log has a "null" value for the attributes and at other times it gets the values and works fine.
Can somebody PLEASE tell me what is going on? I have tried out everything but just cant break through this one.
ANY help would be really appreciated....
Thanks...
Note: I also tried using cookies for passing values, and they work absolutely fine - consistently, but cookies are disabled in many browsers and hence carry a disadvantage. I HAVE to use headers - which are not giving the value consistently
--------Bernhard:
Actually the headers are not set to null. I have an intermediate index.jsp page which is the first page that is redirected to by the AM - it is this page which calls my LoginServlet.
The value appears consistently on this index.jsp page but after it is forwarded to the LoginServlet it starts behaving inconsistently. I check the system.out log in my websphere /logs folder and that tells me that LoginServlet does not consistenly get these values from the header.
The wierd part is that if I use cookies or attributes, it works perfectly - each time every time. However, only in the case of headers (which is the method i am required to do) it behaves inconsistently.
ANY feedback/help on this would be really appreciated bern.. thanks..
~saahil -
Multiple Header line in Receiver File adapter
Hi,
I have an issue in Receiver File adapter with multiple header lines. I am able to get only 1 header lines in the receiver file but not multiple header lines with 'nl' since it is static in file mode
[CommunityTag:Header]
empNo,EmpName,Age
[CommunityTag]
I tried with the below in content conversion one as below with no luck
Root.addHeaderLine=1
Root.headerLine=[CommunityTag:Header] 'nl' empNo,EmpName,Age 'nl' [CommunityTag]
Root.fiedSeparator=,
Root.endSeparator='nl'
I am getting the Header line as same row as static text.
Can you advise this.Hi Gabriel, I suggest to produce the header lines from additional nodes in the message payload. That means you need to modify the data type of the target message in order to generate an extra structure in the payload. Use constants in message mapping to generate the header column names, e.g.
<Header>
<H1>CommunityTag:Header</H1>
<H2>empNo,EmpName,Age</H2>
<H3>CommunityTag</H3>
</Header>
In content conversion you have to convert the Header row with
Header.endSeparator='nl'
You won't need parameter addHeaderLine anymore then.
Regards, Martin -
Put Date Before Header Line in Receiver FCC
Hi,
I have to create a csv file with format :
Date : dd/mm/yyyy to dd/mm/yyyy
PRODUCT_CODE,NAME,ADDRESS
123,ABC,xyz
123,ABC,xyz
123,ABC,xyz
123,ABC,xyz
123,ABC,xyz
How should i achieve putting the date before header line?
What should be my target structure format?
What parameters to enter in receiver FCC?Hi,
have you tried..
Have you tried:
(http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm)
● NameA.enclosureSign
Specify a string that acts as a text delimiter.
Text enclosed by such delimiters is transferred to the target structure unchanged, although the default setting is to remove all text delimiters. Separators within such texts are ignored.
This parameter is optional. The default setting is an empty value (no text delimiter).
● NameA.enclosureSignEnd
If the text delimiters for the beginning and end of the text are different, specify the text delimiter for the end of the text here.
If you do not make an entry here, the entry from NameA.enclosureSign is used.
● NameA.enclosureSignEscape
Specify a string that replaces the text delimiter if it occurs within a text that it delimits.
When the text is transferred the string is replaced by the value specified in NameA.enclosureSign .
● NameA.enclosureSignEndEscape
Specify a string that replaces the text delimiter for the end of the text if it occurs within a text that it delimits.
When the text is transferred the string is replaced by the value specified in NameA.enclosureSignEnd.
● NameA.enclosureConversion
To remove the delimiter upon transfer, or to replace it with escape characters, enter YES. This is the default value.
To transfer the characters unchanged enter NO.
Note
If you specify xml.enclosureSign= and xml.enclosureSignEsc=, text enclosed in quotation marks is transferred unchanged and the quotation marks are removed.
If the escape character for a quotation mark () occurs in the text itself, it is replaced by the quotation mark during the transfer.
Thanks,
Vijaya. -
How to supress HTTP Header in AS2 Receive
I am trying to setup an AS2 connection (my first ever). My setup is an asynchronous receive and send port combination. Things are working fine and my trading partner is receiving the MDN. Trading partner does not want the HTTP header information when they
send the EDI over AS2. How can I suppress the below text from the successful http response from my receive location? I am guessing this would be something at the IIS layer. I got this link but this seems to be a thing of last resort.
http://blogs.msdn.com/b/varunm/archive/2013/04/23/remove-unwanted-http-response-headers.aspx
Content-Length: 0
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Tue, 26 Aug 2014 12:31:13 GMT
Please help!Last resort or only option, either way, you have to follow the methods provided in that article.
The only other way to accomplish this would be writing a completely custom Adapter.
Maybe you are looking for
-
hello everyone, I have created an alv report using MARA table. but i am unable to edit any field and save the changes back to the table in the database. I
-
Mpeg video plays in iTunes, but no audio on iPod
I have a 10 minute video that plays fine in iTunes 7.0.1.8 on Widows XP. I did the "Convert Selection for iPod", which then allowed me to download the video. However, when I play the video on the iPod, there is no sound. The article "iPod plays video
-
What's on your wish list for the NIke+ sportkit?
Here's my wish list so far. What's on your wish list for the Nike+ Nano sportkit? (Already sent to Apple and Nike+ feedback so please don't tell me to do that. Apple & Nike+ do read the forum. ) Nike+: I would like to see: -- a date on the start of m
-
I purchased quick time pro, and attempted to download quick time 7, but it says I have quick time x installed. I deleted quick time x but it still says it is there and will not let me install.
-
How to Include Feedback in Your Website without Using the Blog or Podcast
Hi All, I have been looking at the websites that people have created using iWeb and some have included feedback forms with boxes where visitors can enter their e-mail addresses and then comments in individual boxes and then click on a send button. Ho