Java HTTP adapter - without Authentication
Hello Experts,
is it possible to set Java HTTP adapter on sender CC to request no login and password?
I tried to look at documentation but didnt found any setting for that.
Standard case is - when I create sender HTTP channel it requires Basic Http authorization/authentification using popup window to enter login/password.
I`m on SAP PO 7.4
Thank you
vbalko
Hi Vladimir -
There is one blog which talks about how to disable basic authentication on soap adapter.
I assume you can follow the same approach if you want to disable for HTTP adapter. But please note that it disables the authentication for all the channels.
Please refer to William's reply in the below therad for more details.
User Names and Passwords in SOAP adapter
Path for HTTP Adapter WEB-Inf file is :
/usr/sap/<<SID>>/DVEBMGS<<SYS_NO>>/j2ee/cluster/apps/sap.com/com.sap.aii.adapter.http.app/servlet_jsp/HttpAdapter/root/WEB-INF
Similar Messages
-
Java HTTP adapter in PI 7.3?
Hi Experts,
Anyone adivse me how to implement the java HTTP to File scenario via PI?especially explain me the HTTP sender side and how to test as well.
thanks in advance.HTTP adapter now comes in AAE in Pi 7.3. Except that there is no big difference between PI 7.3 and lower versions. You can go to component monitoring --> adapter engine --> test message and paste your payload and test. You are going to test in adapter engine level instead of abap stack (integration engine).
-
Sender SOAP adapter without authentication
Dear All,
I am working on one of our customer requirement where i need to send data to SAP ECC 6.0 using SOAP (Sender) and RFC (Receiver).
My scenario is SOAP (Sender) to RFC (Receiver). While configuring the SOAP sender adapter i am selecting 'HTTP' and my QOS is 'Best Effort' as it is a synchronous call.
The Web service URL looks like as follows :
http://xiserver:50000/XISOAPAdapter/MessageServlet?channel=:BS_WROUTE:SOAP_SEN_ROUTE_DATA&version=3.0&Sender.Service=BS_WROUTE&Interface=http%3A%2F%2Fxxx.com%2Froute%5EMI_WROUTE_ROUTE_OUT
The problem i am facing is while testing this web service {generated by PI 7.0 (in ID)} it is asking for user name and Password.
Can somebody suggest me while testing :
1) how can we avoid user name and Password?
2) Can we attach user name and Password in our SOAP URL? if yes so please suggest me how to attach this.
Thanks
HoneyDear Stefan,
Thanks for your reply.
If I am using ABAP Port 8000 for my scenario and my URL is as follows :
http://xiserver:8000/XISOAPAdapter/MessageServlet?channel=:BS_WROUTE:SOAP_SEN_ROUTE_DATA
Can i not use this additional string &sap-user=user&sap-password to provide the user name and password in wsdl??
my new URL would be like this:
http://xiserver:8000/XISOAPAdapter/MessageServlet?channel=:BS_WROUTE:SOAP_SEN_ROUTE_DATA&sap-user=user&sap-password
Please suggest how can i avoid the credentials.
Thanks
Honey -
Enabling HTTPS with Client Authentication for Sender SOAP Adapter on PI7.1
Hello All,
We are currently building up a HTTPS message exchange with an external client.
Our PI 7.1 recieved over HTTPS messages on an already configured Sender SOAP Adapter.
The HTTPS (SSL) connectivity works fine and was completely configured on the ABAP Stack at Trust Manager (TC=STRUSTSSO2)
Login to Message Servlet "com.sap.aii.adapter.soap.web.MessageServlet is required and works fine with user ID and password.
Now we have to configure the addtional Client Authentication.
At SOAP Adapter (Sender Communication Channel) under "HTTP Security Level"you are able to configure "HTTPS with Client Authentication".
But what are the next steps to get this scenario successfully in place?
Many thanks in advance!
JochenHi Colleagues,
following Steps still have to be done:
- Mapping public key to technical user at Java Stack
As preparation you have to activate value "ume.logon.allow.cert" with true under "com.sap.security.core.ume.service" under Config Tool. At NWA under Identity Management at for repecively technical user the public key certificate
- Be sure CA root certivicate at Database under STRUSTSSO2
- Import intermediate Certificate under Certificate List at Trast Manager for the Respecive Server Note
- use Login Module "client_cert" which you have to configure under NWA\Configuration Management\Authentication for Components "sap.com/com.sap.aii.adapter.soap.app*XISOAPAdapter".
Many thanks to all for support!
Regards,
Jochen -
How to config receiver http adapter for HTTP POST without XML tags ??
Hi All,
Can you please provide some infornation on How to config receiver http adapter for HTTP POST (Request) without XML tags ?? Our receiving product doesn't support XML formats.
Is there any option to bypass server authentication on the XI?
If anybody has the same experience or know how to please provide inputs.
Thanx
NavinHi,
you can use xsl mapping for this in which u xtract
the contents only but not the xml tag.
Ranjit -
Hi Team,
I need to access Java web service which is simple service and accepts and returns XML over HTTP. No credentials are needed to access the service. We need to pass following two HTTP headers (Content-Type and Authorization) along with XML request message:
<GetStatus> message is being constructed in the orchestration and URI is constant to access.
Which adapter shall I use to get the response back? I tried using WCF-WSHttp with Security Mode = Transport, and different options of client credential types but every time, error returned stating:
System.Net.WebException:
The HTTP request is unauthorized with client authentication scheme 'Basic'. The
authentication header received from the server was 'Basic realm='.
Authentication failed for principal Basic. Message payload is of type:
String
In Fiddler, request looks line following
POST <https://URL/GetServiceReopnse HTTP/1.1
Content-Type: application/xml
Authorization: Basic cmVmU3RhdHN2Y19kgeRfsdfs=
Host: <Server name>
<GetStatus XMLNS="http://server.com/.....">
<OrgId>232323</OrgId>
<HubId>3232342323</HubId>
</GetStatus>
MMK-007First, you should not use the HTTP Adapter because it's been deprecated and replaced by WCF.
Start with the WCF-Custom Adapter and select the customBinding.
You should start with the textMessageEncoder and httpTransport and go from there. -
Plain HTTP Adapter (XML return without namespace)
Hello Experts,
I'm very new at XI.
I'm using XI 7.0 SP9.
I wanna make interface with public website using plain HTTP adapter.
The receiver url is
http://openapi.naver.com/search?key=cdb64b1f218b55acbb73105b3b6f68a9&query=news&target=rank
It returns XML like
<?xml version="1.0" encoding="UTF-8" ?>
<result>
<item>
<R1>
<K>CHOICE</K>
<S>new</S>
<V>0</V>
</R1>
</item>
</result>
How I can specify namespace and root document type ?
I learned that I can specify namespace and root document type in JDBC communication channel.
In plain HTTP, Is there any possibility to specify namespace like JDBC?Ji,
look at this it will help u.
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii
/people/stefan.grube/blog/2006/10/23/testing-and-debugging-java-mapping-in-developer-studio
/people/alessandro.guarneri/blog/2007/03/25/xi-java-mapping-helper-dom
Sreeram Reddy -
SOAP Adapter - HTTPS w/ client authentication -SSL termination @ dispatcher
Hi,
We have a SOAP client sending SOAP message over SSL to PI. We are using client cert for authentication, but terminating SSL at web dispatcher. In this scenario, i) do we need to configure security for XISOAPADAPTER in Visual admin on PI and ii) do we need to set HTTPS with client authentication security option in SOAp Sender communication channel?
My understanding is that since we are terminatinating SSL at web dispatcher (Server authentication happens between third-party gateway and our gateway and when web dispatcher terminates SSL, client cert for auth is passed via httpheader to PI where it is mapped to UME user with sufficient authorizations) we don't need to set the XISOAPADAPTER security (if it is end-to-end ssl we would i guess set up in V. Admin>Security provider service>clientcertloginmodule for XISOAPADAPTER) and we don't need to set the sender channel as https with client authentication ( it should just be http in SOAP sender channel).
Is my understanding correct? I will really appreciate any clues?
Thanks,
SaurabhHi saurabh
follow these links to SAP note
these will be helpful for you
Note 856597 - FAQ: XI 3.0 / PI 7.0 / PI 7.1 SOAP Adapter
https://websmp102.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=856597&_NLANG=E
Note 856599 - FAQ: XI 3.0 / PI 7.0 / PI 7.1 Mail Adapter
https://websmp102.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=856599&_NLANG=E
Note 870845 - XI 3.0 SOAP adapter SSL client certificate problem
https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=916664&nlang=EN&smpsrv=https%3a%2f%2fwebsmp102%2esap-ag%2ede
https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=870845&nlang=EN&smpsrv=https%3a%2f%2fwebsmp102%2esap-ag%2ede
regards
Sandeep
If helpful kindly reward points -
Http-adapter: Convert html-post to JAVA-post?
Hello everybody,
unfortunately I am not a java programmer. But I am testing the http adapter.
Is it possible to convert the following html-post into JAVA code?
<html><head>
<body>
<form action="http://myserver" method="post">
<p>Interface Namespace<br>
<input name="namespace" value="http://mum.mappings" size="40"></p>
<p>(Sender-) Service:<br>
<input name="service" value="MUMHTTP" size="40"></p>
<p>Interface Name:<br>
<input name="interface" value="MI_Merge_1" size="40"></p>
<p>Text:<br>
<textarea name="Text" rows="5" cols="50"></textarea></p>
<p><input type="submit" value="Send"></p>
</form>
</form>
</body>
</head>
</html>
For me it is important to send the values of the <input> values.
How has the code look like?
Many regards, marioHi Mario,
I Have once used this code snippet to send a payload to XI engine. Please change the parameters like XI server URL,
Namespace,senderservice etc..
Please let me know if you need any further help.
Regards,
Ananth
public static void main(String[] args) throws Exception {
try {
URL sapURL = null;
String urlString = "http://"+serverHost+":"+serverPort+"/sap/xi/adapter_plain?namespace="+senderNamespace+"&interface="
+senderInterface+"&service="+senderservice+"&party=&agency=&scheme=&QOS="+QOS+"&sap-user="+sapUser+"&sap-password="+
sapPWD+"&sap-client="+client+"&sap-language=E";
sapURL= new URL(urlString);
HttpURLConnection xi = (HttpURLConnection)sapURL.openConnection();
xi.setRequestMethod("POST");
xi.setRequestProperty("Content-Type","text/xml");
xi.setDoOutput(true);
generateXML(xi.getOutputStream());
System.out.println(urlString);
System.out.println("Resp Msg:"+xi.getResponseMessage()+" -- Resp Msg:"+xi.getResponseCode());
xi= null;
} catch (Exception e) {
e.printStackTrace();
public static void generateXML(OutputStream out){
try {
PrintWriter prt = new PrintWriter(out,false);
//Create XML tags
prt.println("<?xml version= "1.0"?>");
prt.print("<"+resp_MsgType+" xmlns:ns=""+resp_NameSpace+"">");
prt.print("<"+xml_tag1+">");
prt.print(xml_tagValue1);
prt.print("</"+xml_tag1+">");
prt.print("<"+xml_tag2+">");
prt.print(xml_tagValue2);
prt.print("</"+xml_tag2+">");
prt.print("</"+resp_MsgType+">");
prt.flush();
prt.close();
out.close();
prt=null;
out=null;
}catch(Exception e){
e.printStackTrace(); -
HTTPS with Client Authentication in SOAP sender Adapter
Hi All,
In SOAP Sender communication channel. When I generate WSDL with HTTP Security Level = HTTP: it works when third party tries to send data to XIwebservice.
But when I tried with HTTPS with Client Authentication option its giving error
InfoPath either cannot connect to the data source, the service has timed out, or the server has an invalid certificate.
Please guide how to use HTTPS with Client Authentication option, and what all configuration need to apply in XI & in third party to use this.
RegardsRohan,
With spy you can trace the entire route, since you are using client authentication using certificate, it would be a better option to verify with the certificate.
You also have the option of using a username/pwd combo though that is not advocated as it lowers security levels and is permeable to passive sniffing.
So the answer to your question is yes, after importing the certificate with sender and third party reciever a test would reveal the complete scenario along with any issues that you could encounter..
Regards
Ravi Raman -
Busine Process Monitoring: define alert in XI for HTTP adapter
Hi Experts,
Iu2019m working with SAP XI 7.0 and solution manager 701. Iu2019m configuring BPM.
I want to monitor the error in XI. I have three systems:
Legacy System --> SAP PI --> ECC
The legacy System, communicate whit SAP PI with HTTP request so the adapter sender in PI is an HTTP Adapter.
I want to monitor the errors in the http adapter so I created the alert category HTTP_ERROR_ADAPTER in the abap stack (transaction alrtcatdef).
When I try to configure the alert in the Runtime WorkBanch I canu2019t find u201CHTTP Adapteru201D in the field u201CAdapter Engineu201D . I can see only jdbc, rfc, mail u2026. Adapters.
I think that I canu2019t see the http adapter because the HTTP Adapter is not a java adapter.
So, how can I monitor the errors in the HTTP adapter sender in SAP PI? Can I monitor the http adapter sender errors using the field u201CIntegration Engineu201D (u201Cerror categoryu201D = * and u201Cerror codeu201D = * )?
Thank you a lot in advance for collaboration.
Best regards
Giou2019how can I monitor the errors in the HTTP adapter sender in SAP PI?
Alert category option you are trying won't work. The only thing you may check in PI perspective is whether http service is running in smicm. I am not sure but CCMS monitoring could take care of this specific category. Other way without thinking about alerts could be using manual TCPGateway procedure to trace http calls.
Can I monitor the http adapter sender errors using the field u201CIntegration Engineu201D (u201Cerror categoryu201D = * and u201Cerror codeu201D = * )?
Integration Engine category here won't be actually the http related error, it would be pipeline steps related error.
Regards,
Prateek -
HTTP adapter as receiver to POST name-value pairs - How to?
Hi,
Scenario: HTTP Sender <> XI <> HTTP receiver (Sync throughout; no BPM)
In this scenario, a HTTP channel is configured to the target URL to post data.
The message mapping results in a XML. HTTP posts the same XML to the target URL.
However,the target URL expects data Posted as name-value pairs.
eg. eid=45678&zip=11011&ename=Tom%20Lee
How can we configure HTTP adapter channel to post XML data as
name-value pairs (as in standard HTTP Form Post)?
Any pointers?
thanx,
PopsHi Udo,
I currently have a solution (simpler than having a BP), but do not expect it to be the right way of doing.
I am using Java Mapping to convert the XML structure into Name-Value pair. So the output of Mapping is a string like how HTTP post is expected. So the interface mapping having multiple mappings - firstly, the original Message mapping, and then the Java mapping to do the conversion. So, with a small extension, the solution is still kept simple.
However, I thought the POST requirement to HTTP URLs would be a common requirement, and expected the HTTP adapter doing this conversion. So, I am still looking for a straight solution (without any custom extensions).
Any one else faced this situation?
Can't this be handled by HTTP Adapter?
-- Pops V -
HTTPS With Client Authentication
Hi,
I've created a simple Web Service in PI 7.11 SP 4 when trying to connect to the Web Service from Soap UI I get the following error:
java.security.AccessControlException: client certificate required
In the the transaction scim the following can be seen:
[Thr 5061] <<- SapSSLSessionInit()==SAP_O_K
[Thr 5061] in: args = "role=2 (SERVER), auth_type=1 (ASK_CLIENT_CERT)"
[Thr 5061] out: sssl_hdl = 1117534b0
[Thr 5061] <<- SapSSLSetSessionCredHdl(sssl_hdl=1117534b0)==SAP_O_K
[Thr 5061] in: sssl_hdl = 1117534b0
[Thr 5061] in: cred_hdl = 116cfc110
[Thr 5061] NiIBlockMode: set blockmode for hdl 271 TRUE
[Thr 5061] SSL NI-sock: local=XX.XX.XX.XX:50001 peer=XX.XX.XX.XX:2310
[Thr 5061] <<- SapSSLSetNiHdl(sssl_hdl=1117534b0, ni_hdl=271)==SAP_O_K
[Thr 5061] <<- SapSSLSessionStart(sssl_hdl=1117534b0)==SAP_O_K
[Thr 5061] status = "resumed SSL session, NO client cert"
The fault is not at the Soap UI end as I've fired the request at a Tomcat server and confirmed that a certificate is sent when requested.
Sender Communication Channel,
Transport Protocol: HTTP,
Message Protocol: Soap 1.1,
Adapter Engine: Central Adepter Engine,
HTTPS with Client Authentication,
Keep Headers
Any ideas?
Kind regards,
JohnHi Peter,
If memory serves we did not find a solution to this problem. I think, and a quick check of the configuration suggests I'm right, that we're handling the HTTPS connection on an IIS box and passing it through to a non encrypted HTTP sender on PI.
It may be that Soap UI is not configured correctly, however when I was getting the 'client certificate required', as mentioned in the original post, I'd confirmed that soap UI was correctly configured by connecting to an alternative Web Service. I also used Wireshark to see whether or not a certificate was being requested, or sent. It's invaluable if you're using Soap UI.
All the best,
John -
Displaying java applet using webseal authentication
Hi all,
i'm facing a problem about displaying Java applet using Webseal junction for accessing an application Server based on Websphere.
I've defined a webseal ACL on accessing a http url that contains link to Java applet: after webseal authentication, the homepage is loaded; in the home page are presented links to java applet, but when I try to load these applets, it seems not working.
If I load the same applets without Webseal authentication, it seems working.
Is there any sort of configuration to make for applet regarding Webseal?
Thanks in advance
DaniloHi all,
i'm facing a problem about displaying Java applet using Webseal junction for accessing an application Server based on Websphere.
I've defined a webseal ACL on accessing a http url that contains link to Java applet: after webseal authentication, the homepage is loaded; in the home page are presented links to java applet, but when I try to load these applets, it seems not working.
If I load the same applets without Webseal authentication, it seems working.
Is there any sort of configuration to make for applet regarding Webseal?
Thanks in advance
Danilo -
Want to send information in Header dynamically using HTTP adapter using post method
Hi ,
I have a requirement to send below information in http Adapter header dynamically using post method. which will be authenticated by third party system.
Authorization : WSSE realm="SDP", profile="UsernameToken", type="AppKey" X-WSSE : UsernameToken Username="XXXX", PasswordDigest="Qd0QnQn0eaAHpOiuk/0QhV+Bzdc=", Nonce="eUZZZXpSczFycXJCNVhCWU1mS3ZScldOYg==", Created="2013-09-05T02:12:21Z"
I have followed below link to create UDF
http://scn.sap.com/thread/3241568
As if now my third party system is not available while sending request I am getting 504 gateway error. is there any approach I can validate my request is working fine?
Regards,Hi Abhay,
Correct me if I'm wrong but I think WSSE requires a SOAP Envelope. If that is the case, there are two approaches: the first one is to use SOAP Axis and the second one is just to build SOAP Envelope via Java mapping.
You also need to test it successfully externally, capture the request and replicate it in XI.
Hope this helps,
Mark
Maybe you are looking for
-
Page numbering in rtf templates
Hi All, I have an rtf template and what I want is to display page numbers. I can achieve this with the following : <?fo:page-number?> but I want to display it by different way: For example if the total pages in the output is 10 pages I want the page
-
PS CS6 on the mac pro: the bruch in hard and soft is the circle of the bruch bigger than then the effect. How can i bring it to normale?
-
Multiple lines in a fillable PDF
I have made and successfully saved a fillable PDF. I can open it and type in it, but it is in a paragraph form and I can't get the cursor to go from one line to the next. When I get to the end of line the print just gets smaller. The cursor does n
-
Method to create Player directly from the mp3 bytes array
I was checking JMF and didn't find any method to play a mp3 informing its byte array Wouldn't it be an interesting method ? Ok, URL is much easier, but I am talking about ID3 files that has sequences of mp3 chuncks in the same file... Anyone knows a
-
HT1926 Error message during iTunes upgrading
I try to upgrade iTunes on my PC to the latest version but in the middle of the installation process a box appears asking: "do you want iTunes to make changes to your computer?". Regardless of what I press, the installation process gets interrupted