How to provide credentials for outbound HTTP connection
Hi all,
My outbound request requires basic authentication How to provide credentials within xsjs for outbound request.
My .xshttpdest file has authType=basic:
host = "host";
port = 80;
description = "decription";
pathPrefix = "/geoserver/";
authType = basic;
useProxy = false;
proxyHost = "proxy";
proxyPort = 8080;
timeout = 0;
Correspondent xsjs class create request:
var request = new $.net.http.Request($.net.http.GET, "");
Is any possibility to provide request with credentials?
Thanks.
Slava
You provide credentials by configuring for the HTTP destination via the XSAdmin tool. Directly supplying credentials in the XSJS code itself would not be sure.
Similar Messages
-
How to set password for Local are connection?
How to set password for Local are connection?
do you mean the 802.1x authentication?
check out links below:
http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2950/software/release/12-1_9_ea1/configuration/guide/scg/Sw8021x.html
http://technet.microsoft.com/en-us/network/bb545365.aspx
Every second counts..make use of it. Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
IT Stuff Quick Bytes -
Outbound HTTP - Connection fails
Hello,
We are using Oracle 10.1.2 B2B Integration to test outbound XML messaging over HTTP 1.1. We get the following error when we try a outbound flow.
Message Transmission Transport Exception
Transport Error Code is OTA-HTTP-SEND-1005
Stack trace
=========
StackTrace oracle.tip.transport.TransportException: [IPT_HttpSendConnectionRefused] HTTP connection is refused.
at oracle.tip.transport.TransportException.create(TransportException.java:91)
at oracle.tip.transport.basic.HTTPSender.send(HTTPSender.java:443)
at oracle.tip.transport.b2b.B2BTransport.send(B2BTransport.java:283)
at oracle.tip.adapter.b2b.transport.TransportInterface.send(TransportInterface.java:665)
at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1217)
at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequest(Request.java:701)
at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:832)
at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:531)
at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:344)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.<init>(Socket.java:309)
at java.net.Socket.<init>(Socket.java:153)
at HTTPClient.HTTPConnection.getSocket(HTTPConnection.java:3041)
at HTTPClient.HTTPConnection.doConnect(HTTPConnection.java:3773)
at HTTPClient.HTTPConnection.sendRequest(HTTPConnection.java:2849)
at HTTPClient.HTTPConnection.handleRequest(HTTPConnection.java:2778)
at HTTPClient.HTTPConnection.setupRequest(HTTPConnection.java:2564)
at HTTPClient.HTTPConnection.Post(HTTPConnection.java:963)
at oracle.tip.transport.basic.HTTPSender.send(HTTPSender.java:414)
We are trying to POST to a HTTP URL in the internet. The end point details are
oracle.tip.adapter.b2b.transport.TransportInterface:send TO Endpoint: 501 http://as2.preprod.1sync.org:4080/exchange/8380160030003
Protocol = HTTP
Version = 1.1
Transport Header
1Sync-TestHTTP
Content-Transfer-Encoding:binary
FROM:Oracle Development
MESSAGE-ID:0A0A0A0A1132FF680DB000001904E0F0
DATE:Fri, 15 Jun 2007 15:18:04 GMT
Content-Type:text/plain; charset=us-ascii
Connection:close
We tried the following options
#1
oracle.tip.adapter.b2b.ProxyHost =
oracle.tip.adapter.b2b.ProxyPort =
#2
oracle.tip.adapter.b2b.ProxyHost =www-proxy.us.oracle.com
oracle.tip.adapter.b2b.ProxyPort = 80
But in both cases the outbound fails with the same error.Ramesh,
Thx again for your help.
We were able to resolve the HTTP outbound errors by setting the following java.net properties to the opmn.xml file.
http.proxySet
http.proxyHost
http.proxyPort
E.g. -- here is a modified XML fragment.
<category id="start-parameters">
<data id="java-parameters" value="-server -Xms8M -Xmx512M -Dhttp.proxySet=true -Dhttp.proxyHost=www-proxy.us.oracle.com -Dhttp.proxyPort=80"/>
</category>
We still have one doubt though --
There are several XML sections where there "start-parameters" are defined.
Eg. -
ias-component = OC4J, B2B, b2bmid.10.10.10.10
Process-type = OC4J_B2B, B2BServer
As of now we have added "-Dhttp.proxySet=true -Dhttp.proxyHost=www-proxy.us.oracle.com -Dhttp.proxyPort=80" to every of these sections.
But which is the exact section to be modified for Outbound HTTP? -
How to provide hyperlink for a particular field in ALV
Hi,
How to provide hyperlink for a particular field in alv report.
Regards,
Ramu.Yes you can do that. using the fieldcatalog there is an option for that. give HOT_SPOT = 'X'. for the column you want.
wa_field-hotspot = 'X'.
REPORT ztest_alv.
TYPE-POOLS:slis.
DATA:it_fieldcat TYPE slis_t_fieldcat_alv,
wa_field LIKE LINE OF it_fieldcat.
DATA: BEGIN OF it_likp OCCURS 0,
vbeln TYPE likp-vbeln,
END OF it_likp.
DATA: layout TYPE slis_layout_alv.
wa_field-fieldname = 'VBELN'.
wa_field-tabname = 'IT_LIKP'.
wa_field-hotspot = 'X'.
wa_field-outputlen = 10.
wa_field-no_zero = 'X'.
wa_field-seltext_l = 'Sales'.
APPEND wa_field TO it_fieldcat.
SELECT vbeln FROM likp
UP TO 10 ROWS
INTO TABLE it_likp.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
is_layout = layout
i_callback_user_command = 'USER_COMMAND'
it_fieldcat = it_fieldcat
TABLES
t_outtab = it_likp
EXCEPTIONS
program_error = 1.
*& Form user_Command
* text
* -->UCOMM text
* -->SELFIELD text
FORM user_command USING ucomm TYPE sy-ucomm
selfield TYPE slis_selfield.
CASE ucomm.
WHEN '&IC1'.
SET PARAMETER ID 'VL' FIELD selfield-value.
CALL TRANSACTION 'VL02N' AND SKIP FIRST SCREEN.
ENDCASE.
ENDFORM. "user_Command -
Why is Firefox asking for outbound DTN connections?
Quite specifically, Firefox is requesting and outbound DTS connection. I don't need to allow this connection for Firefox to function normally as far as I can tell. Why is this happening. I have a fully updated Windows 7 64bit OS without java installed and the only plugin I use is flash. I have the most barebones clean system you can imagine with the few apps I have installed blocked from internet access inbound and outbound. I think you get the picture. Thanks and I look forward to your reply.
hello, if this happened after the update to firefox 36 for the first time, then it's most probably the [https://support.mozilla.org/en-US/kb/how-stop-firefox-automatically-making-connections#w_send-video-to-device Send Video To Device] feature.
-
Outbound HTTP Connection Configuration
Hi
I need to invoke a REST service from HANA. Is there any way to configure the outbound connection as opposed to hardcode the connection paramteres in the code?
Thanks,
Diego VinasI just did this with HTTPS, I used this series of blogs on SCN as a good resource for getting configured with HTTPS, I assume that the steps for HTTP would be much easier because you don't need to setup the Trust Store:
http://scn.sap.com/community/developer-center/hana/blog/2013/11/02/outbound-https-with-hana-xs-part-1--set-up-your-hana-box-to-use-ssltls -
How to provide formulae for the columns in report based on date column
Hi,
How can we provide formulae for the columns in report, where each column is based on another Date Column.
Can anyone suggest on this.
ThanksHi Manu,
I think you a logical column X on which you created another Logical Column Y.
Now you want 'Y' to be filtered based on Date Column.
1. If, my assumption is right - You can do your requirement i.e. Filtering the logical col. 'Y' on Reports.
Else,
2. See - Your Logical column 'Y' While creating log. column 'Y' make sure you use any expression builder to filter across Date column. (i.e. using any case statements or where clause).
Else,
3. Make sure your First Logical column comes from Table by default (i.e. Create the same col. in d/b so it would be your Physic col. )
Thank you.
Edited by: GRK on Jan 28, 2013 7:48 AM -
How to write code for outbound proxy
hi all,
i /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
ied the link for outbound code i got it but i want to get data for multiple values. what changes i need to do in that.
Moderator message : Duplicate post locked.
Edited by: Vinod Kumar on Sep 26, 2011 4:09 PMHi Satya,
I am working on ABAP HR. Currently i am working on supporting project.
I had done many interfaces. But still i am not confident on interfaces.
Currently i don't have requirement, i want general explanation about outbound and inbound interface processing.
If you have free time, please explain to me.
Cheers,
Guru. -
How to provide credentials in MS Infopath for authenticaing Web Services?
I have created a form in MS INFOPATH where it simply queries a Customer ID and return the Customer Address using Web Services(SIEBEL CRM ON DEMAND).The Webservices requires Username and Password for authentication purpose.I searched the whole MS Infopath and their is no way to provide the credentials.If i run my query on Infopath the following error messgae is dispalyed
The SOAP response indicates that an error occurred on the server:
Server
<detail><ErrorCode>SBL-ODU-01006</ErrorCode><ErrorMessage>Internal Error: Session is not available. Aborting.</ErrorMessage></detail>
How can this be done?
Plz help
-SankalpHi ,
My problem is still not resolved. I tried applying the people picker property and set a specific field(an email id field) to be available to only admins. Now the field is not visible to the normal users but only admins which is good but that email field
should be able to take normal users as wel as admin's email ID. currently due to the people picker property it only takes admin's ID and not normal user's ID - which is not as per expectation.
What this email ID field does is - when a normal user is logged in he/she wont see this field in that view. But when an admin logs in he/she can switch to admin view and see this field . The admin can put any user's ID in this field and pull out the required
resource's Time Report for modification.
Please let me know how do i overcome my problem. Detailed step description will be very helpfull .
As per Cameron's suggestion (add a rule on the "additional admin section") , i am not sure how exactly that is done. Would help a lot if i got to know how this works.
Regards,
Guru -
Can I use a userKeyFile/userConfigFile as credentials for a JMX connection?
All,
Using a wlst script I created a userKeyFile and userConfigFile so that I can run weblogic scripts without providing the weblogic password. I'd like to use these for my MBean calls from Java as well but I cannot find documentation on using creds other than username/password. All examples I found are similar to (example taken from oracle documentation):
Hashtable h = new Hashtable();
h.put(Context.SECURITY_PRINCIPAL, username);
h.put(Context.SECURITY_CREDENTIALS, password);
h.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES,
"weblogic.management.remote");
connector = JMXConnectorFactory.connect(serviceURL, h);
connection = connector.getMBeanServerConnection();
in wlst scripts, to use the key files I call (example taken from http://blogs.oracle.com/bala/entry/encrypt_the_credentials_when_r):
connect(userConfigFile='/usr/home/user1/configfile.secure', userKeyFile='/usr/home/user1/keyfile.secure', url='t3://host:port')
So how to I provide these in the Map used by JMXConnectorFactory?
thanksYes, it can be made to work. The Mini would become a media server on your local network.
-
How to provide validation for a particular field of screen
Hi Experts,
For my project, I have created a screen. In the screen, we have one field. For this field we have provided F4 help. When the user clicks on the F4 list of values is displayed.
I have to provide following condition for this field.
User should only select values from this F4 list only. If the user tries to enter any data which is not contained in the list, system should throw message that 'Invalid data. Select valid values".
Can you please let me know how I can do so?
The relevant portion of code is
CASE save_ok_code.
WHEN 'EXIT'.
LEAVE PROGRAM.
WHEN 'BACK'.
PERFORM exit.
WHEN 'CANCEL'.
LEAVE PROGRAM.
WHEN 'SAVE'.
CALL FUNCTION 'MESSAGES_INITIALIZE'.
PERFORM check_batch CHANGING fl_error.
IF fl_error IS INITIAL.
PERFORM save.
IF sy-subrc EQ 0.
CLEAR gv_deleted.
PERFORM update_alv_grid_display.
***for message display
CALL FUNCTION 'MESSAGES_SHOW'.
ENDIF.
ELSE.
CALL FUNCTION 'MESSAGE_STORE'
EXPORTING
arbgb = 'ZEX_MYPROJECT'
msgty = 'S'
txtnr = '053'
msgv1 = text-008
EXCEPTIONS
OTHERS = 3.
CHECK sy-subrc = 0.
CALL FUNCTION 'MESSAGES_SHOW'.
ENDIF.
WHEN OTHERS.
CALL METHOD cl_gui_cfw=>dispatch.
I am totally new for ABAP. So, please help me out.
Thanks
SmithHi,
Try this.
Create an internal table and populated it with the values present in the F4 help of the field. Then in AT SELECTION-SCREEN event check the value of the field with the values in the internal table and display the appropriate message.
Sharin. -
Good morning everybody,
I am writing on behalf of not being able to implement a desired outcome in our company network. In fact the situation is as follows:
What I want to do is to be able to authenticate users (802.1x authentication) in our company radius server and authorize them access by having a dynamic VLAN assignment in a multi-user environment on one and the same port of a Cisco 2960 switch. So far, the authentication and authorization has been working completely smoothly (there are no problems with itself). The concept involves the configuration of both DATA and VOICE VLANs as I there is also phone authentication implemented. In order to simulate this environment I introduce a Dumb switch connected to my Cisco 2960 Catalyst.
What I have successfully managed to get to work so far is this:
1) On one switch port I have tried the “authentication host-mode multi-domain” and it worked perfectly for a PC behind a telephone, or with one PC connected to a the dumb switch + the telephone connected to another port of the dumb switch. Logically it is the same situation as there is a separation in two domains – DATA and VOICE. Bellow is an output from show authentication sessions for this scenario.
Interface MAC Address Method Domain Status Session ID
Fa0/23 0021.9b62.b79b dot1x DATA Authz Success C0A8FF69000000F3008E (user1)
Fa0/23 0015.655c.b912 dot1x VOICE Authz Success C0A8FF69000000F9009F (phone)
2) On the other hand, when I try the same scenario with the “authentication host-mode multi-auth”, the switch still separates the traffic in two domains and is able to authenticate all users, AS LONG AS they are in the same VLAN.
show authentication sessions:
Interface MAC Address Method Domain Status Session ID
Fa0/23 0021.9b62.b79b dot1x DATA Authz Success C0A8FF69000000F3008E (user1)
Fa0/23 b888.e3eb.ebac dot1x DATA Authz Success C0A8FF69000000F8008C (user2)
Fa0/23 0015.655c.b912 dot1x VOICE Authz Success C0A8FF69000000F9009F (phone)
However, I cannot succeed authentication of many users from DIFFERENT VLANs, neither in multi-auth nor in multi-domain modes.
What I want to get is an output like this:
Interface MAC Address Method Domain Status Session ID
Fa0/23 0021.9b62.b79b dot1x DATA Authz Success C0A8FF69000000F3008E (user1)
Fa0/23 b888.e3eb.ebac dot1x DATA Authz Success C0A8FF69000000F8008C (user2)
Fa0/23 0015.655c.b912 dot1x VOICE Authz Success C0A8FF69000000F9009F (phone)
I want the switch to authenticate the users anytime they connect to itself and for them to have an instant access to the network. (I tell this because I tried scenario 1) with multi-domain mode and authentication violation replace, and it worked but, two users never had access to the “Internet” simultaneously!!!
The configuration of the interface connected to the Dumb switch is as follows.
interface FastEthernet0/x
description Connection to DUMBswitch
switchport mode access
switchport voice vlan XXX
switchport port-security maximum 10
switchport port-security
switchport port-security violation protect
authentication host-mode multi-auth
authentication priority dot1x
authentication port-control auto
authentication timer reauthenticate 4000
authentication violation replace
dot1x pae authenticator
dot1x timeout tx-period 10
spanning-tree portfast
The way I see it is explained in the following steps:
- PC1 connects to the Dumb switch. This causes the Cisco switch to authenticate user1. This creates an auth. session with its MAC address linked to a domain DATA.
- When PC2 connects to the Dumb switch, this causes the violation replace which replaces the recent authenticated MAC address with the MAC of PC2. I would like it once authenticated to appear in the authentication sessions with a link to a new DATA domain linked to the VLAN assigned from the RADIUS server.
Is this possible? I think (in theory) this is the only way to provide authenticated access to multiple users connecting through Dumb switch to the network.
Has anybody ever succeeded in such a configuration example and if yes, I would be love to get some help in doing so?
Thank you
Stoimen HristovHi Stoimen,
I have done a setup similar to yours with the only exception being VLAN assignment. When I used dACLs only, it makes things somewhat easier as the VLAN no longer matters. Remember that the switchport is in access mode and will only allow a single VLAN across it (with the exception of the voice VLAN). I think that is the real cause of your problem.
From what I can see, you have 2 options available to you:
1) Use dACLs instead of VLAN assignment. This means that an access list will be downloaded from the radius server straight to the authenticated user's session. I have tested this and it works perfectly. Just Google Cisco IBNS quick reference guide and look for the section that deals with Low Impact mode.
2) Get rid of the dumb switches and use managed switches throughout your network. Dumb switches will always be a point of weakness in your network because they have no intelligence to do advanced security features like port security, 802.1x, DHCP snooping, etc.
Hopefully someone else will chime in with another option.
Xavier -
How to provide hyperlink for CSN message in email notification
Hi,
I have the following requirement, could anyone provide some ideas/solution on this.
We integrated Change Notification Service to portal as transaction iView. once the CSN is raised and assigned to resopnsible person, the message will be notified through email. The requirement is in the email notification a hyperlink should be provided so that on clicking on the link it should open the page with respective CSN message.
Could any one provide solution how to achieve this?
Thanks in advance.
Regards,
Ravi.Yes you can do that. using the fieldcatalog there is an option for that. give HOT_SPOT = 'X'. for the column you want.
wa_field-hotspot = 'X'.
REPORT ztest_alv.
TYPE-POOLS:slis.
DATA:it_fieldcat TYPE slis_t_fieldcat_alv,
wa_field LIKE LINE OF it_fieldcat.
DATA: BEGIN OF it_likp OCCURS 0,
vbeln TYPE likp-vbeln,
END OF it_likp.
DATA: layout TYPE slis_layout_alv.
wa_field-fieldname = 'VBELN'.
wa_field-tabname = 'IT_LIKP'.
wa_field-hotspot = 'X'.
wa_field-outputlen = 10.
wa_field-no_zero = 'X'.
wa_field-seltext_l = 'Sales'.
APPEND wa_field TO it_fieldcat.
SELECT vbeln FROM likp
UP TO 10 ROWS
INTO TABLE it_likp.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
is_layout = layout
i_callback_user_command = 'USER_COMMAND'
it_fieldcat = it_fieldcat
TABLES
t_outtab = it_likp
EXCEPTIONS
program_error = 1.
*& Form user_Command
* text
* -->UCOMM text
* -->SELFIELD text
FORM user_command USING ucomm TYPE sy-ucomm
selfield TYPE slis_selfield.
CASE ucomm.
WHEN '&IC1'.
SET PARAMETER ID 'VL' FIELD selfield-value.
CALL TRANSACTION 'VL02N' AND SKIP FIRST SCREEN.
ENDCASE.
ENDFORM. "user_Command -
How to provide F4 for inputfield in ABAP Webdynpro ALV
Hi Friends,
I am displaying records in Editable ALV Gridd in webdynpro.
I need to provide search help(F4) for few fields which are editable.
Please help me, how I can achieve this functionality in ALV .
Regards,
Xavier.phi Xavier.
to display the data in alv you must have binded it to some context node / attribute rite?.......now to get an input help to the fields you can first make the search help using transaction se11...after making the search help return to the web dynpro component go to the conttext tab.... click on the particular attribut where you want to have the search help....check in the property below...you will find that the " INPUT SEARCH help" is set to automatic ....set it to " dictionary search help".....and below it mention the name of search help you created....save it and activate the component again...the search help will be reflected automatically in the output.
in case of any further query regarding this kindly reply.
thanks,
sahai.s -
How configure analysis services for remote excel connection
Hi I haved tried connecting me from a Excel client to analysis services server but I have this problema when I use the connection assistant wizzard
appears this error :"Analysis error in line 1, column 9, DTD is denied.
I haved seen this video
https://www.youtube.com/watch?v=tJGGyg1dDHY for configurate the http server.
Thanks!!Hi Juanweb,
According to your description, you configure HTTP access to Analysis Services on Internet Information Services, and then connect it in Excel using HTTP access with the error "Analysis error in line 1, column 9, DTD is denied."
In Microsoft Excel, we can connect to AS cube directly, why do you use HTTP access to connect it?
Data>select From Other Sources. After that, select the From Analysis Services option.
For the detail information about it, please refer to the link below.
http://www.mssqltips.com/sqlservertip/2828/using-excel-to-interact-with-a-ssas-cube/
Regards,
Charlie Liao
TechNet Community Support
Maybe you are looking for
-
Hp 110-124 pc compatibility with 1920 X 1020 monitor
I just hooked up my new acer monitor g247hl full hd to my hp 110-124 desktop. My monitor only works with the vga cable. I have a dvi-d cable hooked up and went into the monitor menu and changed the input from vga to dvi. Even though I press enter to
-
Swf conflicts with menu generated through javascript
Hi all. I have a menu generated through the SoThink menu builder with drop downs. The drop-downs come over a media file (swf) that has a slideshow playing. When the image on the slideshow changes, I lose my drop downs that fall in that basic area. He
-
Out of Memory error when inserting Captivate demo
When trying to insert an Adobe Captivate demo into a topic, I get an error message that simply says "Out of Memory". I thought this might have something to do with our SharePoint source control, so I tried adding the same .SWF file to a project NOT i
-
Satellite L450D-11G - Hangs after recovery installation
The recovery disk supplied does not work. After installing all the files, it goes into a loop from booting up with "Installing Windows for the first time, through "Please wait", to flashing up the home screen then logging off and rebooting. Is there
-
Error while trying to open report
Hi Friends, i am getting below error when i run a report. odbc driver returned an error (sqlexecdirectw) Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [n