Understanding Proxy Response.

Hi,
Iam new to Networking in Java. My code resides in a Firewall protected envirnoment. I would need to access the Internet for which i need to pass the credentials to the proxy server.
Can anybody help me talking to the ProxyServer and giving the necessary credentials to pass the data outside proxy fire wall.
Thanks

better off using httpClient for this, Unless you "have" to write the code yourself
http://jakarta.apache.org/commons/httpclient/.
(I`ve used this for SSL tunnelling dunno about plain connection.)

Similar Messages

  • Webservice to proxy - response back to webservice

    Hello expert,
    I am working on webservice to proxy scenario. When request to create purchase order received by PI thru webservice, PI will do proxy call to create purchase order in ECC and send response back.
    We don't want to send ECC response back to Webservice, but we would like to send positive response back as soon as PI recieve the message irrespective of what happens in ECC.
    Need some advise.
    thanks.

    >We don't want to send ECC response back to Webservice, but we would like to send positive response back as soon as PI recieve the message irrespective of what happens in ECC.
    One way of doing is after sending request to ecc, you can code in proxy as response in the same interface with single field element like mesg receiveed and map that response to soap response on the sender side. (in this case you dont really process the soap request in ecc directly. you do it at later or convenient time or after sending success transfer message).  Basically you handle logic in abap proxy side.
    Mapping 1 soap request to proxy request (Per business requirement)
    Mapping 2  proxy response (status : messg received ) to soap response
    Rest are all same. Basically you do SOAP (sender) to PRoxy (receiver)   synchronous mode
    If you dont want to pass the soap request message directly to ECC and within that timeframe want to send successful mesg from pI itself then you have to design to store the mesg temporarily. What will happen if your ecc is down? How do you handle that situation.

  • Understanding proxy server

    Hi there,
    No, i don't want any code or examples to be shown. I am doing this to understand proxy servers, so I just need some help from you guys, NO CODE NEEDED.
    I am writing this small app. where I've written a client, a server and need to write a proxy server. Its a very simple app where client sends a line of text to proxy, proxy forwards it to server, server reads it and sends "welcome" or wutever back to the client through the proxy server.
    What I need to know is, if the client needs to be listening to the server's reply on a different port then the one it used to send request to the proxy? and same thing for proxy and server. do they all use different ports to communicate with each other? for example, is this the rite approach
    client
    create serverSocket at port:1000
    create a listenSocket at port: 1001
    send text to proxy using port 1000
    and listen for the reply at port 1001
    proxy (multithreaded)
    listen to client at port 1000
    listen to server at port 1003
    send msg from client to server at port 1002
    send reply from server to client at port 1001
    server
    listen for client connection at port 1002
    send msg back at port 1003
    Hope I am making any sense. again, for all of those who are gonna tell me to do my homework on my own, I AM NOT ASKING FOR CODE, just a little help in understanding this
    thank you for your help

    ok, I was thinking about this and I came up with the followng solution, plz tell me if that sounds about right
    client
    create a socket to send and receive msgs (port: 1000)
    send a msg to proxy and wait for the answer
    proxy
    create two sockets, one for client (port: 1000) and one for server (port: 1001)
    receive client's msg and send it to the server and wait for the server's reply (at port: 1001)
    receive server's reply and send it back to the client (at port 1000)
    server
    create a socket (port: 1001)
    wait for client (proxy), read the msg send by the client and send a reply
    this sounds like the right approach, what do you think??
    thanks :)

  • How Client Browser Understand Server response

    Hi Experts,
    Iam new to java advance Technology. I hava a simple doubt, that "How Client Browser Understand Server response".
    suppose if u open multiple Browsers and u typing same URL in all browser window(www.rediffmail.com). The server will generate response for requested resources. I dont no how the response will received by client browser without any conflit.
    I need to know, whether the browser attach any ID to requested URL (or) any other machanism which helps the identification.
    plz reply with example
    Thank u

    Hi praks_it,
    "How Client Browser Understand Server response".
    I dont no how the response will received by client browser without any conflit.
    I need to know, whether the browser attach any ID to requested URL (or) any other machanism which helps the identification.
    The answers to all the above of ur questions is the HTTP (Hyper Text Transfer Protocol).
    It is a mechanism developed and documented by the W3C (World Wide Web Consortium) which specifies all needs for internet and browsers.
    Check out the following links and u'll gain more on the subject :
    1) http://www.google.co.in/search?hl=en&lr=&oi=defmore&q=define:HTTP
    2) http://www.w3.org/Protocols/rfc2616/rfc2616.html (recommended).
    Hope this helps.
    Cheers !!
    Sherbir

  • ABAP Proxy response not showing data in SXMB_MONI

    hi all,
    We have a scenario of web service to abap proxy,synchronous.
    when the response comes back from ABAP,the xml in SXMB_MONI is not coming fully.Only the top level xml node and the Message type node are being dispalyed.the data nodes are not coming into xi.
    when the proxy is executed in R/3,the xml is generating correctly.but after coming into xi,only the top nodes are visible with no data.
    wht could be the reason?
    Regards,
    Anu.

    Hi,
    Also set the Parameters in SXMB_ADM to see the Sync Messages in MONI
    Configuration of a Central Integration Server
    REgards
    Seshagiri

  • Client Proxy - Response Message does not populate table type element

    Hi,
    I came cross the situation:
    Sync Client ABAP Proxy --->PI -
    > Web Service Provider
    In our response structure, there are some single value (0:1) and table value (0:unbound).
    While testing proxy, we can see response message has one value for table type element, however, input structure table is not populated with the value.
    Any advice or idea ?
    Thanks
    Liang

    Thanks for your advice.
    The proxy is in green status. Anyway, I regenerate it and activate it again.
    The problem still exist.
    For all single elment value, I do not have problem, it seems the proxy treat the table element as single element.
    Regards
    Liang

  • CDATA in ABAP Proxy response

    Hi all,
    has someone an approach to set parameters of an ABAP Proxy winthin a CDATA section?
    I have generated an ABAP server proxy for providing a synchronous webService. The response consists mainly of one element of type string where some text is set. Now I want this text within a CDATA section, so that no escape characters (like &) are set by the SRT.
    Someone an idea?
    Reards
    Olli

    The following thread might help you-
    File with ASCII Control Characters causes runtime exception in mapping

  • Can't understand proxy created in Application Panel Components

    Hi,
    For nearly two weeks I have been unable to connect to an SAP
    web service. I am using the Dreamweaver > Application Panel >
    Components Tab to create a web services proxy. When it creates the
    ColdFusion proxy, I see 15 functions under the "structs" expandable
    sublist. As far as I believe, I need to access the 15th function -
    it contains the data I need. When dragging and dropping the proxy
    into a web page, I only get a return variable related to the first
    function.
    As a note, in the WSDL, there is an input variable called
    "result" that also exists as an output variable. And this also
    seems to be a problem. There should only be two required inputs:
    first name and last name. So, why does the proxy create a
    cfinvokeargument for "result"?
    Can anyone explain why there are so many functions that get
    listed when the proxy is created? Are the functions something that
    can be used? Can I drag and drop them? How do I specify an invoke
    argument for a result?
    Thanks.
    Brian

    I have figured out how to solve my problems and answer my
    questions. I have provided a solution to this question on the
    ColdFusion Forum under Advanced Techniques, Topic: "Can’t
    consume SAP web service with ColdFusion" at the thread listed
    below.
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?threadid=1359259&catid=7&CFID =22608545&CFTOKEN=6cfb266357f5bdf5-7813476C-FFDD-A9AF-64DF359C37B43CD0&jsessionid=48301c32 9e1a2d253360

  • Understanding proxy indirection for one-to-one mappings

    The developer's guide states the following for proxy indirection:
    To use proxy indirection, your domain model must satisfy all of the following criteria:
    ** The target class of the one-to-one relationship must implement a public interface.
    ** The one-to-one attribute on the source class must be of the interface type.
    ** If you employ method accessing ("Configuring Method Accessing"), then the getter and setter methods must use the interface.
    My current descriptors all have get/set methods for their attributes. So does this mean that I need to create an interface for each descriptor that has corresponding get/set methods?
    If so, this seems to add a little overhead to maintaining the descriptors. Anytime an attribute is added, removed or modified in a way that would change the method signature; the interface must also be updated to reflect the change. Is there any way to avoid this overhead?

    The recommended approach for lazy loading one to ones is generally to use ValueHolders.
    Proxy indirection is a solution for lazy loading one to ones, not requiring TopLink classes (i.e. ValueHolders) to be imported and referenced in the Domain model. It also doesn't require code generation, or static byte code enhancement.
    In both solutions (regular ValueHolders or Proxy Indirection), TopLink needs to build the Domain objects with empty Place Holders. When the place holder is accessed, addition SQL and Object Building occurs. Coding to an interface in Proxy Indirection allows for the 'place holders' to be used under the interface without the user directly referencing ValueHolders. Without this interface TopLink couldn't do this. Proxy Indirection is not a perfect solution however.
    Using TopLink's JPA support (10.1.3 in preview mode, or 10.1.3.1) ValueHolders are dynamically put into the byte codes of the classes at runtime, allowing the user to have lazy loading without proxy indirection or putting ValueHolders in the Object model.
    Peter

  • Sync Java Proxy Server response in XML

    Hi !
    We've this scenario: File1 <-> XI <-> Java Proxy <-> File2
    Using a BPM, we made a Async/Sync workflow. It works ok. It uses a SYNC Java Proxy Server.
    The problem is that inside the java proxy, we query an http source that returns already XML formated data. We need this data to be mapped from the java proxy response message type to the File2 message type.
    We know that we can parse the XML data inside the java proxy and fill the response message type structures (creating items, and array items for nested records), or directly   code the mapping here.
    But, is there any alternative to pass the received XML from the HTTP directly to XI, and map that XML structure with the File2 message type using graphical mapping ? instead of programming the xml parsing and creating the response structure?
    If we create a message type for the response of the java proxy, as 1 field that contains the whole XML code, then we would not map it....Is there any way to complete or to add  something to the received XML code, to convert it to the XI message format..so XI could interpret it as a true XI message and map it transparently via graphical mapping?
    Thanks,
    Matias

    Hi Akshay !
    That's exactly what I don't know how to do it.
    Inside the java proxy function I have a string variable, let's call it xmlResponse, that contains:
    <customer>
    <name>Matias</name>
    <country>China</country>
    </customer>
    I also have a message type created in XI (let's call it MT_Response), that has the same fields as the above message structure. And my java proxy function is declared something like this:
    public MT_Response.Type myFunction(MT_Request.Type myRequest) {
    String xmlResponse="";
    // http connection code goes here..
    xmlResponse = httpConnection.getResponse();
    return ??????? what ????
    I don't want to parse the xmlResponse variable in order to fill the MT_Response structure. I need a more direct way, because the content of xmlResponse is already XML !
    Thanks.

  • Not getting response from Client Proxy

    Hi,
    We are developing a scenario - File->PI->Proxy using ABAP Proxies.We are posting a file thru PI 7.0 to R/3 .In R/3 the server proxy(Inbound Asynchronous) will receive the message and BAPI will be called. The response from the BAPI will be reaching the server proxy and passed to the client proxy(Outbound Asynchronous).
       Server Proxy(request) --> BAPI --> Server Proxy(response) --> Client Proxy(response)
    The response from the client proxy has to be send to PI and a file will be generated as the output.
    Can anyone provide me suggestions to call client proxy from a server proxy by passing the response message to client proxy???
    Thanks in advance.
    Regards,
    Dibyajyoti

    Hi,
    I hope, you are done till the Implementation of Server Proxy, where you are calling a Bapi and passing the Input variables the Interface received and BAPI is giving a response back.
    Now your question, how to send the response back Asynchronously.
    I think, you have to do the same, what you do for a client proxy  and at last  call the method EXECUTE_ASYNCHRONOUS before the Final Commit Staement. I think this should work.
    But using Synchronous Interface in such cases is always a handy and easier option.
    Regards,
    Subhendu

  • Response from Synchronus Proxy

    Hi ,
    I am sending data from FILE-XI-R/3 through ABAP Proxy to create purchase order.
    I want to send back response(PO number created) from Proxy to XI .I want to
    keep the response in XI itself.
    Do I need BPM to achieve this scenario since FILE adapter is asynchronus?
    Thanx.
    Rekha.

    Hi,
    your BPM can look like this:
    receive step (FTP adapter) -> transformation step 
    (mapping from file message to proxy.request) -> send step
    (send proxy message) sync step so you can get the
    request -> then if you want you can put another
    transformation step to map proxy.response to something
    else and send it or not...
    you have to create one mapping (file to proxy.request)
    if you want you can also do proxy.response to something else)
    the same goes with interfaces mappings one or two
    if you want you can also use BAPI (wrapped) instead of
    usinf proxies as most probaby you'll be using the same
    BAPI inside your proxy call
    the scenario would be the same but you would use RFC
    apdater in the send step
    BTW
    the bapi you'd have to wrap is: BAPI_PO_CREATE
    Regards,
    michal

  • OEL 6.1 YUM proxy problem

    Hi all,
    I have some issue with OEL 6.1 YUM proxy.
    *[root@rac1 tmp]# uname -a*
    Linux rac1.oracle.cloud 2.6.32-100.34.1.el6uek.x86_64 #1 SMP Wed May 25 17:46:45 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
    *[root@rac1 tmp]# rpm -qa | grep yum*
    yum-metadata-parser-1.1.2-16.el6.x86_64
    yum-3.2.29-17.0.1.el6.noarch
    yum-rhn-plugin-0.9.1-26.0.2.el6.noarch
    yum-utils-1.1.30-6.el6.noarch
    PackageKit-yum-plugin-0.5.8-19.0.1.el6.x86_64
    PackageKit-yum-0.5.8-19.0.1.el6.x86_64
    *[root@rac1 tmp]# cat /etc/yum.repos.d/public-yum-ol6.repo*
    [ol6_ga_base]
    name=Oracle Linux 6 GA - $basearch - base
    baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/0/base/$basearch/
    gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
    gpgcheck=0
    enabled=1
    [ol6_u1_base]
    name=Oracle Linux 6 U1 - $basearch - base
    baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/1/base/$basearch/
    gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
    gpgcheck=0
    enabled=1
    *[root@rac1 tmp]# cat /etc/yum.conf*
    [main]
    cachedir=/var/cache/yum/$basearch/$releasever
    debuglevel=2
    sslverify=false
    logfile=/var/log/yum.log
    pkgpolicy=newest
    distroverpkg=redhat-release
    tolerant=1
    exactarch=1
    # The proxy server - proxy server:port number
    proxy=http://xxx.xxx.xxx.xxx:3128
    # The account details for yum connections
    proxy_username=xxx
    proxy_password=@$xxx
    *[root@rac1 tmp]# yum update*
    http://public-yum.oracle.com/repo/OracleLinux/OL6/0/base/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 5 - "Couldn't resolve proxy '[email protected]'"
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: ol6_ga_base. Please verify its path and try again
    [root@rac1 tmp]#
    In OEL5.7 this works fine without any problem. I think this related to OEL6.1, maybe YUM does not understand proxy, my password for proxy starting with @$ but I changed my password and
    output is changed to
    *[root@rac1 tmp]# yum update*
    http://public-yum.oracle.com/repo/OracleLinux/OL6/0/base/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 407"
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: ol6_ga_base. Please verify its path and try again
    [root@rac1 tmp]#
    If anyone can help me please reply.
    ./thanks

    Avi Miller wrote:
    __OUTSIDER___ wrote:
    No this will not help. Problem is not related to password I changed it and response is It might help, it's worth trying. Try this:
    # export http_proxy='http://proxy.domain.com:3128'
    # wget --proxy-user="xxx" --proxy-password="xxx" http://public-yum.oracle.com/repo/OracleLinux/OL6/1/base/x86_64/repodata/repomd.xmlIf that works, it is a yum problem. If it doesn't work, it's a proxy problem.Yes it works , interesting that user and password parameters not working with double quotes only with single.
    I also checked this with YUM but YUM is having problem with passwords that starting
    with "@" symbol. I try to set
    export http_proxy="http://username:\@$passwd@IP:PORT"
    for ignoring "@" symbol but no sucess. With OEL5 this is not a problem. In /etc.yum.conf same username and same password.
    Perhaps I should change my password :)
    and last one thing in my home network I have OEL6.1 ( where fortunately with no proxy :) ) I try update linux with "yum update" command
    and it returns that no packages to update , can you tell me why because there are new kernel avalable and I can download and install this new kernel with command "yum install kernel".

  • Idoc to proxy scenario with an acknowledgment

    Hi ;
    I have to implement a IDoc to abapProxy scenario but an application acknowledgment must be return so IDOC status will be set.
    How can i understand whether an application error exists while abapProxy is executing or not in status of IDOC?
    Do I need to create and sent back new IDOC to the sender system in abapProxy code?
    Thanks.

    Hi,
    See if you just want the ack for your IDOC coming from r/3 to XI, then you can use ALEAUD01 IDOC and you can configure it by running report IDX_NOALE in XI system..........
    But if you want status change for appl error occuring in ABAP proxy system, then i think you will have to use a BPM for it.........you will have a recive step for getting your IDOC, then a transforamtion step for IDOC to proxy mapping, then a synch send step for sending proxy req and getting proxy response, then a transformaton step for mapping the proxy response to SYSTAT01 IDOC in r/3 for changing the IDOC status depending on success or error for your proxy response, then a send step to send this IDOC to r/3 system...............keep teh IDOC number in proxy req and proxy response so that you can use it in SYSTAT01 IDOC for sending it to r/3 and changing your IDOC status.
    Regards,
    Rajeev Gupta

  • Message processing is stopped - Exactly Once Async Abap Proxy

    Hi Guys
    I have two JDBC->Xi->Abap Proxy scenarios. The Abap Proxiy server is in a BW 3.1 with SAP WebAS 6.20 (XI 2.0) and the XI is the XI 3.0 (NetWeaver 2004s).
    First scenario is synchronous. It works without problem.
    Second scenario is asynchronous and a processing of message stops at the Receiver Grouping stage.
    So, there are only 3 stages in Integration Engine:
    1. Inbound Message (CENTRAL)
    2. Receiver Grouping
    3. Response (I don't understand why Response is appeared!!!)
    Message don't go to BW. Nevertheless message status is successful !
    Can somebody help me?
    Best regards,
    Denis.
    Edited by: Denis Vezhov on Feb 5, 2008 1:01 PM

    hi
    in bw, check tcode
    sxi_monitor and see if message passed to bw, here, the status could be error, but in XI success.
    if no message, in proxy define next code
    data: i_aux type int value 1
    while  i_aux EQ 1
    endwhile
    execute your scenario, them in bw go to SM50 and look for your proxy ZAIIXXX.
    go to programs/session --> program --> debugging and chek the proxy execution.
    also verify the configuration of your CC
    Addressing type: URL Address
    Target Host: the host you create the proxy (bi,bw)
    service number: Port http, you can get it in TCODE SMICM
    Path: /sap/xi/engine?type=receiver
    QoS = EO
    Hope it helps.
    Thanks
    Rodrigo
    Edited by: Rodrigo Pertierra on Feb 5, 2008 9:43 AM

Maybe you are looking for

  • BUG FOUND!! in Airport Disk programming

    I'm betting this is having a bigger issue then most poeple realize as it effects reconnecting to the Airport disk. Ok after lots of testing I've figured out a major bug in the Airport Disk Programming for Security. This has only been verified with th

  • No Presets in Lightroom 4

    I am a nes Lightroom user and have just input my license key into the download version of Lightroom 4 I had been exploring but there are no presets loaded as standard. Am I right in assuming that there should be a standard selection of presets loaded

  • Ghost images in Browser windows

    I now have may thousands of photos and iPhotos is struggling to cope. I am trying to use Aperture but find it very frustrating. Whenever I try and look at images on browser they are ghost images (just dotted lines around) and I can only see them if d

  • Self register

    Hi all, i start having problem with self register it was working find but now when you click on self register link this error msg appear " User Management Exception  An exception occurred. Inform your system administrator.  Suggested Options  userAdm

  • About 1.6, I have a question .............

    Hi Everybody, I am using 1.6 for the Swing feature--JTable sort and filtering, but I have an issue with IE6, when I am running the application. Its not displaying the table values on IE6 but its working fine with IE7 and Mozilla. I want to know wheth