Retrieving ServerHost and ServerPort in Server with Web Dispatcher

Hi,
I am using IWDRequest to get server host and port in my Web Dynpro DC.
This is the code which I am using for it.
IWDRequest req = WDProtocolAdapter.getProtocolAdapter().getRequestObject();
String l_str_host = req.getServerName();
int l_int_port = req.getServerPort();
In our NW landscape, some servers have Web Dispatcher for load balancing purpose. Hence in this case, what would I get in l_str_host, l_int_port ?
I need them to prepare KM URL to a specific location.
Thanks and regards,
Amey Mogare

Hi,
I finally managed to achieve it through following :-
          IURLGeneratorService ug = (IURLGeneratorService)ResourceFactory.getInstance().getServiceFactory().getService(IServiceTypesConst.URLGENERATOR_SERVICE);
          l_str_kmurl = ug.getAbsoluteUri(PathKey.CONTENT_ACCESS_PATH).toExternalForm()

Similar Messages

  • FTP Server with WEB FTP function

    Hi,
    which is the best solution for a FTP Server with WEB FTP Service?
    kind regards
    Piero

    No, I am not running this solution at a corporate level; I'm just using this one for home use by maybe a dozen people. At any rate, I looked around for several and this one seemed to work best for me. Here's some others I checked into. I did use PFPFileNavigator before I found AjaXplorer. I went with AjaXplorer because I liked the interface better and it has LDAP support.
    PHPfileNavigator
    http://pfn.sourceforge.net/
    Relay
    http://ecosmear.com/relay/
    Mollify --- Probably the most "Mac looking" one
    http://www.mollify.org/
    QuiXplorer
    http://quixplorer.sourceforge.net/
    eXtplorer
    http://extplorer.sourceforge.net/
    Rumpus
    http://www.maxum.com/Rumpus/HomePage.html
    BarracudaDrive Web Server
    http://barracudaserver.com/products/BarracudaDrive/
    I hope this gives you some ideas. I spent about a week Googling, installing, and testing before settling on AjaXplorer. I tried PHPFileNavigator (but didn't have LDAP support, other than that I liked it), Rumpus (didn't like this as it is commercial, and, uses it's own built-in web server), Relay (not enough features), and Mollify (again, no LDAP support).
    Best regards,

  • Infopath 2007 and SharePoint 2007 error with Web Service Submit and Recieve

    I have an InfoPath form with code. The code submits the form to SharePoint and to SQL DB through Web Service. The form has some workflow. When form is in a "New" state if submits to SharePoint and Database through custom web service. Works fine
    from both Client and SharePoint browser form. The database ID is returned to the form and then stored in a field. In second stage of workflow additional fields are shown for Supervisor to fill out. I then have an "update" web service to update the
    database. I set all the field values in the Web service then execute both the update Web Service and the SharePoint submit. I get an error (both if running from desktop or SharePoint) Error is
    "The string '' is not a valid AllXsd value"     
    I know sometimes this happens with dates. But I've got all the dates set. The funny thing is in the first submit there are 2 dates in the second submit there is one date. All are set the same and on the first submit no problem submits correct dates to SQL
    database through web Service. Second submit has 2 Boolean fields that I also default to a value of false. I've debugged and looked at all the values and everything has a value. I use delete NIL to make sure value in Web Service is set. I can save the data
    in the form but not submit it because I get the web service error. If I save the data in form and download it and copy all the values in the XML to my Web Service and invoke the web service works fine. So there is no error in the web service. The first
    submit submits both dates and some integer values. The only difference in second is the Boolean value but it is set to default of false for all checkboxes.  I'm going out of mind trying to see what could be wrong.   Also difference with second
    is it sends in the ID of the record that was set in form by result of first submit query sending back the DB value. That value is an integer but I also set correctly.
    Susan J. Swanger

    Hi Somatco,
    According to your description, my understanding is that you got an error when you ran report with xml type datasource.
    Please set the xml datasource credential to Use Windows Authentication (integrated security). More information, please refer to the link:
    http://social.technet.microsoft.com/Forums/sqlserver/en-US/530c29ab-7ed5-4c36-816a-910c0b51f4bd/xml-data-source-unable-to-authenticate-using-windows-authentication?forum=sqlreportingservices
    Here are some similar posts for you to take a look at:
    http://www.symantec.com/business/support/index?page=content&id=TECH190935
    http://social.msdn.microsoft.com/Forums/en-US/285e4e8c-d05c-48f8-b4f3-9d87988d823e/an-error-has-occurred-during-report-processing-rsprocessingaborted-query-execution-failed-for?forum=sqlreportingservices
    In addition, as this issue is related to SQL Server Reporting, I commend you create a new thread in SQL Server Reporting forum, more experts will assist you with SQL Server Reporting.
    SQL Server Report forum:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?forum=sqlreportingservices
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Non-central adapter engine setup with web dispatcher

    Our PI setup is working perfectly in our private zone, now the requirement is to expose our PI to public zone to do our B2B transactions. We have proposed a solution but I need your expert suggestion on this. Solution proposed 
    Public Zone -|Semi public zone| Semi private zone |----Private zone
    |>>>Application gateway >>>>>>>>| Non-Central Advanced<==========>|------ PI 7.1
    |>>>(For Inbound message) >>>>>>| Engine (For both Inbound and<=====>|------(IS, central AAE, IE)
    |<<<<< Proxy<<<<<<<<<<<<<<<<<<|Outbound message and<==========>|                                               
    |<<<<<For outbound)<<<<<<<<<<<<|Load balancing for B2B)<=========>|                                                                               
    Non-central AAE will be in semi private DMZ. It will send/receive all B2B messages from/to semi public DMZ via Application gateway for inbound messages and proxy for outbound messages.
    Then Non-central AAE will work with the PI central instance running in Private DMZ to receive and send messages.
    My Questions:
    1) Do we need a SAP web dispatcher to work in between (Application gateway, Proxy) and (Non-central AAE)   ?
        My understanding: SAP web dispatcher balances the load which will enhance the performance but it is not mandatory. Non-central AAE can work independently with Application gateway and Proxy to receive and send messages.
    2) What is the configuration we need at non-central AAE to exchange messages with the application gateway and proxy?
    Thanks
    Amaresh

    what is use of non central Adapter engine in Java server proxy?
    The collaboration profile agreement service (CPA service) does not read the CPA cache from the Integration Directory.
    You define the user that is to send the messages to the Integration Server in a service parameter. When the Integration Server receives the message with this user, it checks the user using the access control list. This check is not performed for the technical user XIAFUSER.
    pls refer below link:
    http://help.sap.com/saphelp_nw73/helpdata/en/48/d7fb415ba90783e10000000a42189d/frameset.htm

  • Problem with Web Dispatcher with Double Stack

    We have the latest version of Web Dispatcher - 7.0 with latest patch.
    I'm having a problem where I am trying to use the web dispatcher for load balancing in a double stack (ABAP/JAVA) system.  The person who did the install pointed the installation to the wrong server (which I assume can be easily changed in the profile).  However, on the page where it indicates to activate the SICF services he left the box unchecked (but I checked that necessary ones were activated per note 552286).  I now get these kind of errors when pointing to the http message server on a different system (he installed it assuming it was just for portal (java):
    [Thr  5] *** ERROR => ICP_StructValue: illegal struct reference: wdisp_host_info.capacityIsFi
    xed [icpvalue_mt. 257]
    [Thr  5] *** ERROR => caught ICP exception (eval): ICP_StructValue: illegal struct reference:
    wdisp_host_info.capacityIsFixed [icpvalue_mt.cpp 257] [http_adm_mt. 1488]
    I get the above error when I go to "monitor server" groups in the web dispatcher admin console.
    Here is my profile:
    SAPSYSTEMNAME = PW4
    SAPSYSTEM = 01
    INSTANCE_NAME = W01
    DIR_CT_RUN = $(DIR_EXE_ROOT)/run
    DIR_EXECUTABLE = $(DIR_CT_RUN)
    Accesssability of Message Server
    rdisp/mshost = <fully qualified hostname>
    ms/http_port = 8101
    Configuration for medium scenario
    icm/max_conn = 500
    icm/max_sockets = 1024
    icm/req_queue_len = 500
    icm/min_threads = 10
    icm/max_threads = 50
    mpi/total_size_MB = 80
    SAP Web Dispatcher Ports
    icm/server_port_0 = PROT=HTTP,PORT=81$$
    Any insight is greatly appreciated!!

    Hi,
    I've never seen this error but some thing seems strange to me :
    You use the same port (8101) for the listening port of the web dispatcher and the listening port of the message server of you back office system.
    Is it really the case ?
    Is PW4 the SID of you web disptcher ?
    Is SAPSYSTEM = 01 the sysnr of your web dispatcher ?
    I hope that the info of the web disptcher is not mixed up with the back office info ?
    Regards,
    Olivier

  • X-Forwarded-For HTTP header behaviour with web dispatcher

    can anybody specify the behavior of Web Dispatcher regarding the X-Forwarded-For HTTP header?
    When a client accesses SAP EP via proxy1, proxy2 and Web Dispatcher in
    this order, is it guaranteed that the format of the X-Forwarded-For
    HTTP header that I can refer at SAP EP becomes the following forms?
    X-Forwarded-For: client, proxy1, proxy2
    In other words, is it guaranteed by Web Dispatcher that the rightmost
    IP address, proxy2 in this example, is the closest downstream client?
    thanks in advance.

    Hi Jane
    I am not sure what exactly are you looking for but the following link is a general doc on administration of web dispatcher.Please see if this helps.
    http://help.sap.com/saphelp_nw70/helpdata/en/f5/51c7d170bc4a98b1b5a0339213af57/content.htm
    Regards
    Chen

  • Build a dicom server with web logic and Oracle Multimedia DICOM

    Its it possible, build My own dicom server...only using web logic + java + Oracle Multimedia DICOM ?

    Hi,
    In The LDAP side you need to increase:
    MaxPageSize - This value controls the maximum number of objects that are returned in a single search result, independent of how large each returned object is. To perform a search where the result might exceed this number of objects, the client must specify the paged search control. This is to group the returned results in groups that are no larger than the MaxPageSize value. To summarize, MaxPageSize controls the number of objects that are returned in a single search result.
    Default value: 1,000
    For more informations please refer to : http://support.microsoft.com/kb/315071
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com (WebLogic Wonders Are Here)

  • Retrieving Chinese Characters from SQL Server with JDBC

    Im having problems correctly recieving Simplified Chinese from the database (SQL Server 2000).
    Driver: sun.jdbc.odbc.JdbcOdbcDriver
    It seems that I cannot force the Results Set's getString(String s) method to the correct character encoding UTF-16. Java claims to have 16-bit characters but the native windows encoding cp1242 (somehting like that) seems to not be working for me.
    I can read it in from a unicode text file using the InputStreamReader object, and it will display correctly.
    All I ask is this: Has anyone successfully retrieved information from a database and displayed it correctly in a Swing application?
    Any help is welcome

    Thanks for the help.
    I was suspecting there was a problem with the driver. Microsoft's Driver worked perfectly for SQL 2000, but my target database is SQL 7 and the driver is not reverse compatible.
    I am looking for a Free liscenced JDBC driver that will work with SQL 7 (other than the sun.jdbc.odbc.JdbcOdbcDriver)
    Nothing fancy needs to be supported, just scrollable result sets, and basic insert, update, select, exec commands.

  • Difference between compiling locally and on the server with FDS

    Hi,
    I am doing soming very basic testing with remote Java objects
    and I am finding that if I create a FDS project and compile on the
    server the code runs, if I create a FDS project and compile locally
    it gives me the following error :
    [RPC Fault faultString="Send failed"
    faultCode="Client.Error.MessageSend"
    faultDetail="Channel.Connect.Failed error
    NetConnection.Call.Failed: HTTP: Failed"]
    what gives?
    The compiler in Flex Builder string is :
    -services "C:\Archivos de programa\Apache Software
    Foundation\Tomcat
    5.5\webapps\flex\WEB-INF\flex\services-config.xml" -locale en_US
    Any insights?
    David

    Hi,
    I am also facing an issue regarding compiling mxml using
    remote objects using flex sdk. The error I am getting is
    [RPC Fault faultString="Send failed"
    faultCode="Client.Error.MessageSend"
    faultDetail="Channel.Security.Error error Error #2048: Security
    sandbox violation:
    http://localhost:9080/iReports/flexFiles/mxml/AdminServices.swf
    cannot load data from
    http://localhost:9080iReports/messagebroker/amf."
    Can u help me?
    Thanks,
    Cheree

  • X Pro and Flash Player Error with web-based PDF readbook

    Everytime I try to view a web-based PDF book (with multiple PDF files) I get an error/alert that reads:
    "To View the Flash technology content in this PDF file, please install this version of Flash Player that supports Adobe Reader and Acrobat."
    I am currently using:
    IE Explorer 9.0.8112.16421
    Adobe Reader X 10.1.7
    Adobe Acrobat X Pro 10.1.4
    Shockwave 12.0.2 Development
    I have all of the appropriate settings enabled/disabled in the browser. Before I installed Adobe Acrobat Pro the files opened perfectly in IE9. I believe, but am unsure, that I was just using Reader X at that point.
    Of note...the PDF books in question still open perfectly if I DOWNLOAD the file and open it from the desktop. The issue is when I try to view it in the browser(a setting enabled in the preferences). This is an issue because I don't have the time or space to download these files and need to view them in the browser for efficiency.

    JohnPublic wrote:
    "To View the Flash technology content in this PDF file, please install this version of Flash Player that supports Adobe Reader and Acrobat."
    You would usually get this message if you don't have the Flash Player plugin installed.  However I do not quite understand why you get that message when viewing a PDF in the browser, but not when viewing it from your local disk.

  • Hello, i use a LAN and access the server with its url, when i have to relogin using a different userid, am not able to do so. the session does not end even if i reopen the browser.

    we have a server and all of use the server's url to work on it. when i log out from the application, the session with the server doesnt end.
    mailto : [email protected]

    If the old ID is yours, and if your current ID was created by editing the details of this old ID (rather than being an entirely new ID), go to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iDevice, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • Torrent server with web gui

    i am currently using deluge on my workstation for torrents, i keep leaving it on to finish downloads, now this seems crazy when i already have a server on 24/7.
    Does anyone know of a torrent client for my server (has to be x-less) that has a webgui i can access on my workstation.  For instance i know rtorrent and deluge have a webgui, but they need x installed which i really don't wan to do.
    A solution would be nice not only could i get my download finished, i can do my bit when it comes to seeding more sucessfully.
    Thanks
    Gaz
    Last edited by gazj (2007-12-13 15:33:22)

    have any of you guys gotten torrentflux-b4rt to work with transmission 1.00? some trackers require me to use that specific version, but torrentflux-b4rt doesn't work with it. heres what i found
    [2008/01/11 - 20:36:41] transmission-start : omg-some-torrent.torrent
    [2008/01/11 - 20:36:41] setting sharekill-param to 0
    [2008/01/11 - 20:36:42] executing command :
    cd '/stor/torrents/seshu/'; HOME='/stor/torrents/'; export HOME;cd '/stor/torrents/seshu/'; nohup '/usr/pkg/bin/transmissioncli' -d '0' -u '80' -p '49160' -r '0' -c '0' -o 'seshu' -n '/stor/torrents/.transfers/omg-some-torrent.torrent' 1>>
    '/stor/torrents/.transfers/omg-some-torrent.torrent.log' 2>> '/stor/torrents/.transfers/omg-some-torrent.torrent.log' &
    Transmission 1.00 (4482) - http://www.transmissionbt.com/
    Usage: /usr/pkg/bin/transmissioncli [-car[-m]] [-dfinpsuv] [-h] file.torrent [output-dir]
    Options:
    -c, --create-from <file> Create torrent from the specified source file.
    -a, --announce <url> Used in conjunction with -c.
    -r, --private Used in conjunction with -c.
    -m, --comment <text> Adds an optional comment when creating a torrent.
    -d, --download <int> Maximum download rate (-1 = no limit, default = -1)
    -f, --finish <shell script> Command you wish to run on completion
    -h, --help Print this help and exit
    -i, --info Print metainfo and exit
    -n --nat-traversal Attempt NAT traversal using NAT-PMP or UPnP IGD
    -p, --port <int> Port we should listen on (default = 51413)
    -s, --scrape Print counts of seeders/leechers and exit
    -u, --upload <int> Maximum upload rate (-1 = no limit, default = 20)
    -v, --verbose <int> Verbose level (0 to 2, default = 0)
    -V, --version Print the version number and exit
    -y, --recheck Force a recheck of the torrent data

  • File upload and download in server through web Dynpro

    Hai all,
             i want to store one document in SQL Server 2000 through Webdyn pro. I inserted
    one document through java into SQL Server 2000 using the following method which name is
    insertFile(...).
    void insertFile(FileDBTransfer fdb, Connection cn, String FileName)throws IOException, FileNotFoundException, SQLException
              int FileLength;
              FileInputStream fis;
              PreparedStatement pstmt;
              int last=FileName.lastIndexOf("/");
              String docname=FileName.substring(last+1,FileName.length());
              fis = fdb.getFileInputStream(FileName);
              FileLength= fdb.getFileLength(FileName);
              pstmt = cn.prepareStatement("insert into ReportArchive values(?,?)");
              pstmt.setString(1,docname);
              pstmt.setBinaryStream(2, fis, FileLength); //method to insert a stream of bytes
              pstmt.executeUpdate();
         }// end insertZipFile
         Here i have given file name like "c:\test\test.pdf" it's work fine.
         My J2EE server is running different machine and my Netweaver is another machine.
    If both server and IDE in same machine it's work fine. But both are in different machine,
    i have some problems.
         If i try like this server always go and check his own path, not client machine
    so it will error like "given source not found". So if i get client machine's path
    then i will store easily into SQL Server 2000.
         Whenever i run, it should check the client machine path instead of server path. 
    Thanks in advance,
    K.Saravanan.

    Hi Saravan,
    Data
    Determines the data drain, that is, the location of the data, of the file to be uploaded in the context. The system can only read this data value.
    fileName
    Gives exact filename
    Refer IWDFileUpload also
    http://help.sap.com/saphelp_nw04/helpdata/en/5a/90ff4cd0c8cd48a69b836e5e550880/content.htm
                          Regards
                            Kisgor Gopinathan
    Message was edited by: Kishor Gopinathan
    Message was edited by: Kishor Gopinathan

  • Is p03 smtp the correct and current  iCloud server with osx 10.9.2 ? having problems and seems very slow

    I have only seen it inrelation to a pc....I dont have outlook or  a pc and this is the only connection my mac found for icloud that finally did work, if slow....but is it right? all my mail is landing in my archive folder . I cant figure out  how on earth that happened. Any helpful insights from you "Wise" guys or girls ? I need some!

    Activity Monitor - Mavericks
    Activity Monitor in Mavericks has significant changes
    Performance Guide
    Why is my computer slow
    Why your Mac runs slower than it should
    Slow Mac After Mavericks
    Things you can do to resolve slowdowns  see post by Kappy
    Try running this program and then copy and paste the output in a reply. Please use copy and paste as screen shots can be hard to read.
    Etrecheck – System Information
    Did you just upgrade to IOS 7/7.1? I have some programs that are not compatible and won't down load. Perhaps the tones are the same.

  • Install database server with the existance of 9iAS and internet directory

    I want install the 9i database to a Sun Unix system. But that system already has the internet directory and 9i application server with the infrastructure. What are those steps I should follow to install the database?
    Where can I find any documentation about the coexistance of internet directory, 9i AS and 9i database?
    Thank you for your help.
    Xiaoyun

    Just install it in a separate ORACLE_HOME.

Maybe you are looking for

  • Help needed regarding getting jnlp

    Hi all, we need help regading java web start. We are downloadng some set of jar files to the client side using JNLP. With these jar files jnlp launches a swing base application in the client side and interacts with server application depoyed in WebSp

  • Can i connect a games controller to mac to play games, ie fifa, f1. if so where to purchase

    can i connect a games controller to mac to play games, ie fifa, f1. if so where to purchase?

  • Live Type

    Please Help me how to resolve these problem, When i open live type program i do not see any live fonts preview under the live font tab.

  • Non blocking socket: GUI hangs

    Hello, i have made a swing based GUI. It sends a request to the local server and the server keep sending response to it. Basically request is sent once, but response is in the form of stream. But my problem is that GUI hangs after getting the respons

  • Working with 'nibbles' in java

    Hi, Im storing values in bytes containing two nibbles (4 bits) packed into a vector of bytes. I have two values between 0 and 15 for each nibble, I create two bytes and set each value to these, I then shift the first byte 4 places and and add the res