NSURL/NSURLRequest for a Proxy Request

I'm trying to rewrite a NSURLRequest (for, say, "http://www.google.com") into a proxy request (for, say, a proxy of 'myproxy.com:3333'. I can't seem to accomplish this with NSURL. Any suggestions?
Based on the HTTP specification, the request to a proxy looks like:
bq. GET http://www.google.com/index.html HTTP/1.0
The path has a full URI which allows the proxy server to determine the destination. A regular request (to www.google.com) would look like
GET /index.hml HTTP/1.0
Programmatically, this could be as simple as (using '{' to avoid '[' wiki formatting):
{{NSURL alloc} initWithScheme: @"http" host: @"myproxy.com:3333" path: @"http://www.google.com/index.html"}
unfortunately NSURL raises an exception rejecting the path. Trying as:
{NSURL URLWithString: @"http://myproxy.com:3333/http://www.google.com/index.html"}
fails as well because the request becomes
GET /http://www.google.com/index.hmtl HTTP/1.0
and the leading '/' (before 'http') causes the proxy server to reject the URI.

Ed Gamble wrote:
Programmatically, this could be as simple as (using '{' to avoid '[' wiki formatting):
Wrap your code between two lines of
[[NSURL alloc] initWithScheme: @"http" host: @"myproxy.com:3333" path: @"http://www.google.com/index.html"]
I think what you are supposed to do is compose the URL with the full path and then send it over a connection to your proxy server.

Similar Messages

  • Approval cycle for a proxy request

    Hi
    Can I create an approval process for proxy request?
    Ex:
    If a user x assigns user y as a proxy server, Administrator should get a request to approve this proxy request. If he approves then only proxy allocation will take place elae proxy request will be rejected.
    Thanking You
    Kiran Thakkar

    With OIM there's always a way. Since there is no trigger when a user sets the proxy, i would suggest the following.
    Create a generic resource object for selecting a new proxy. Your approval form would need to contain whatever details to base your approval on. But once the approval is completed, you could populate the users proxy information on the provisioning side. I haven't checked the APIs but i'm sure there's a way to perform the set user's proxy. There would be no revoke process, just let it complete since you have to submit an end date as well.
    If you go this route, i would suggest not letting users have the set proxy option on their menu.
    -Kevin

  • Port/s used for Proxy requests between ACS SE

    I am setting up a new ACS SE and will use this ACS to proxy TACACS requests to another ACS SE in another network tier. I know TACACS uses TCP 49 for authentication. What ports/protocol do the ACS SE use to communicate between one another for the proxy requests? I need to know in order to open the firewall policy to allow access.

    I think the other commonly used ports are 1645 and 1812. If you select TACACS+ in the AAA Server Type field, this RADIUS Authentication Port field is dimmed.

  • Apache configuration for proxying requests to Weblogic SSL port

    Hello Everyone,
    I want to proxy requests from Apache to Weblogic server on its SSL Port 7002. I am using the default SSL demo version provided by Oracle/BEA.
    Both my Apache and Weblogic instances are running on same machine.
    This is the procedure I followed. I enabled SSL port on Weblogic. Added below configuration to Apache conf file. I am passing trusted.crt file inside WL_HOME/server/lib as parameter to TrustedCAFile .
    <Location "/">
    SetHandler weblogic-handler
    </Location>
    <IfModule mod_weblogic.c>
    SetHandler weblogic-handler
    WebLogicHost ServerHostMame
    WebLogicPort WLInstanceSSLPort
    SecureProxy ON
    TrustedCAFile "C:/trusted.crt"
    RequireSSLHostMatch false
    Debug ALL
    WLLogFile "C:/wl_proxy.log"
    </IfModule>
    When I start the Apache instance and try to access the webpage I see below exception in proxy log.
    Thu Apr 09 10:38:05 2009 <735212392878852> Hdrs to WLS:[WL-Proxy-Client-IP]=[10.149.181.55]
    Thu Apr 09 10:38:05 2009 <735212392878852> Hdrs to WLS:[Proxy-Client-IP]=[10.149.181.55]
    Thu Apr 09 10:38:05 2009 <735212392878852> Hdrs to WLS:[X-Forwarded-For]=[10.149.181.55]
    Thu Apr 09 10:38:05 2009 <735212392878852> Hdrs to WLS:[X-WebLogic-KeepAliveSecs]=[30]
    Thu Apr 09 10:38:05 2009 <735212392878852> Hdrs to WLS:[X-WebLogic-Force-JVMID]=[unset]
    Thu Apr 09 10:38:05 2009 <735212392878761> INFO: No session match found
    Thu Apr 09 10:38:05 2009 <735212392878852> INFO: SSL certificate chain validation failed: 3015
    Thu Apr 09 10:38:05 2009 <735212392878852> trusted certs = 0
    Thu Apr 09 10:38:05 2009 <735212392878852> dumping cert chain
    Thu Apr 09 10:38:05 2009 <735212392878852> commonName is testmachine-us
    Thu Apr 09 10:38:05 2009 <735212392878761> INFO: DeleteSessionCallback
    Thu Apr 09 10:38:05 2009 <735212392878852> ERROR: SSLWrite failed
    Thu Apr 09 10:38:05 2009 <735212392878852> SEND failed (ret=-1) at 789 of file ../nsapi/URL.cpp
    Thu Apr 09 10:38:05 2009 <735212392878852> *******Exception type [WRITE_ERROR_TO_SERVER] raised at line 790 of ../nsapi/URL.cpp
    Thu Apr 09 10:38:05 2009 <735212392878852> Marking 10.149.181.55:40011 as bad
    Thu Apr 09 10:38:05 2009 <735212392878852> got exception in sendRequest phase: WRITE_ERROR_TO_SERVER [os error=0,  line 790 of ../nsapi/URL.cpp]: at line 2994
    Thu Apr 09 10:38:05 2009 <735212392878852> INFO: Closing SSL context
    Thu Apr 09 10:38:05 2009 <735212392878852> INFO: Error after SSLClose, socket may already have been closed by peer
    Thu Apr 09 10:38:05 2009 <735212392878852> Failing over after WRITE_ERROR_TO_SERVER exception in sendRequest()
    Thu Apr 09 10:38:05 2009 <735212392878852> attempt #1 out of a max of 5
    Thu Apr 09 10:38:05 2009 <735212392878852> general list: trying connect to '10.149.181.55'/40011/40011 at line 2619 for '/'
    Thu Apr 09 10:38:05 2009 <735212392878852> New SSL URL: match = 0 oid = 22
    Thu Apr 09 10:38:05 2009 <735212392878852> Connect returns -1, and error no set to 10035, msg 'Unknown error'
    Thu Apr 09 10:38:05 2009 <735212392878852> EINPROGRESS in connect() - selecting
    Thu Apr 09 10:38:05 2009 <735212392878852> Setting peerID for new SSL connection
    Please advice if I am missing anything here?
    - - Tarun

    I'm using WL9 and Apache2.2
    I had exact same issue as above (which I solved with these directions) in additiion to another issue, that only showed once I enabled full logging, since it shows as warning/info, not as error
    First to enable full logging, add this
    Debug ALL
    WLLogFile "C:/wl_proxy.log"
    Then after a failure (even after fixing the above), look at the log, and if you see this INFO/WARN:
    Thu Apr 23 00:48:27 2009 <235612404369072> INFO: Host (comp1) doesn't match (192.168.0.229), validation failed
    Thu Apr 23 00:48:27 2009 <235612404368911> WARN: DeleteSessionCallback: No match found!!
    Thu Apr 23 00:48:27 2009 <235612404369072> ERROR: SSLWrite failed
    Thu Apr 23 00:48:27 2009 <235612404369072> SEND failed (ret=-1) at 795 of file ../nsapi/URL.cpp
    Thu Apr 23 00:48:27 2009 <235612404369072> *******Exception type [WRITE_ERROR_TO_SERVER] raised at line 796 of ../nsapi/URL.cpp
    Thu Apr 23 00:48:27 2009 <235612404369072> Marking 192.168.0.229:7002 as bad
    that means you have same problem as I do. The WeblogicHost inside the Location descriptor should match the actual host name for the machine. I believe it's easer because the certificate created by weblogic during its installation will encapsulate the machine host name, or because the SSL validation mechanism expects the machine host name, nothing else.
    Here's how the config would like (my hostname is comp1)
    <IfModule mod_weblogic.c>
    SecureProxy on
    TrustedCAFile "C:/tools/bea9/weblogic92/server/lib/CertGenCA.pem"
    Debug ALL
    WLLogFile "C:/wl_proxy.log"
    EnforceBasicConstraints off
    </IfModule>
    <Location /EnterpriseCMP>
    SetHandler     weblogic-handler
    WebLogicHost      comp1
    WebLogicPort     7002
    ConnectTimeoutSecs     1000
    ConnectRetrySecs     1000
    </Location>
    I believe the

  • Firefox keeps requesting logon credentials for the proxy server, though they are eneterd in the connection settings.

    Every time you go to a new page, Firefox prompts for the proxy server login credentials, this has already been entered in the Network settings in Firefox.

    Hi thefrostycat,
    It could also be the proxy set up on the network. There is an app for proxy settings: [https://play.google.com/store/apps/details?id=com.lechucksoftware.proxy.proxysettings on the play store] as well as an add on [https://addons.mozilla.org/en-us/firefox/addon/proxy-selector/?src=search Proxy Selector]
    Android troubleshooting for GSM device(I do not know if your nexus is, most likely it is not): Access Point Name (APN). Go to Settings > Wireless and Networks > More > Mobile Networks > Access Point Names > [Your data APN] (your device's menu may differ slightly). Check the Proxy field.

  • Creating Activity object for a Service Request object...

    <b>[This thread was migrated from the On Demand Developer Forum in the old Siebel Community] </b>
    drangineni
    New Contributor
    Ho do we use Activity object of a Service Request object. I am trying to
    create an Activity object for a existing Service Request object.
    I am looking for some sample code.
    I greatly appreciate your help.
    Product: CRM OnDemand
    11-26-2006 12:40 PM
    Re: Creating Activity object for a Service Request object...
    BigSlick
    Valued Contributor
    drangineni, What programming language are you using?
    BS
    12-04-2006 10:56 AM
    Re: Creating Activity object for a Service Request object...
    drangineni
    New Contributor
    Hi, I am using C# .
    12-04-2006 07:40 PM
    Re: Creating Activity object for a Service Request object...
    BigSlick
    Valued Contributor
    drangineni, assuming you know the service requestid or externalId of the
    Sr you are dealin gwith you would first set that value.
    ServiceRequest1[] objSRList =new ServiceRequest1[1];
    objSRList[0] = new ServiceRequest1();
    objSRList[0].ServiceRequestId = <YourSRId>;
    Then you create an array of activities and initialize the first one:
    objSRList[0].ListOfActivity = new Activity[1];
    objSRList[0].ListOfActivity[0] = new Activity();
    Now set the data fields
    objSRList[0].ListOfActivity[0].Subject ="My Subject";
    objSRList[0].ListOfActivity[0].Description ="My Description";
    objSRList[0].ListOfActivity[0].Display = "Task"; //valid values are either
    "Task" or "Appointment"
    Then call the ServiceREquestInsertOrUpdate method on the ServiceRequest
    WebService and pass in the above variable.
    BS
    12-06-2006 12:36 PM
    Re: Creating Activity object for a Service Request object...
    drangineni
    New Contributor
    Thank you BigSlick.
    The following error is thrown when I use the
    ServiceRequestInsertOrUpdate(objInput)
    "No user key can be used for the Integration Component instance 'Service <br/>
    Request_Action'.(SBL-EAI-04397)"
    When I use the prxySrvcRequest.ServiceRequestInsert(objInput), no error is
    thrown and the Activity gets added, but a new Service Request object is
    created, but the Activity gets added to an existing Service Request
    object. I greatly appreciate your help.
    The following is the code:
    int ActivityLength = 0;
    WSOD_ServiceRequest.ServiceRequest1[] ServiceRequest = new
    WSOD_ServiceRequest.ServiceRequest1[1];
    ServiceRequest[0] = new WSOD_ServiceRequest.ServiceRequest1();
    ServiceRequest[0].ServiceRequestId = this.Request.QueryString["id"];
    ServiceRequest[0].ListOfActivity = new
    WebSelfService.WSOD_ServiceRequest.Activity[ActivityLength + 1];
    ServiceRequest[0].ListOfActivity[0] = new WSOD_ServiceRequest.Activity();
    ServiceRequest[0].ListOfActivity[ActivityLength].Description =
    this.txtDescription.Text;
    ServiceRequest[0].ListOfActivity[ActivityLength].Display = "Task";
    ServiceRequest[0].ListOfActivity[ActivityLength].Subject = "My Subject";
    WSOD_ServiceRequest.ServiceRequest prxySrvcRequest = new
    WebSelfService.WSOD_ServiceRequest.ServiceRequest();
    WSOD_ServiceRequest.ServiceRequestWS_ServiceRequestInsertOrUpdate_Input
    objInput = new
    WebSelfService.WSOD_ServiceRequest.ServiceRequestWS_ServiceRequestInsertOrUpdate_Input();
    WSOD_ServiceRequest.ServiceRequestWS_ServiceRequestInsertOrUpdate_Output
    objOutput = new
    WebSelfService.WSOD_ServiceRequest.ServiceRequestWS_ServiceRequestInsertOrUpdate_Output();
    objInput.ListOfServiceRequest = ServiceRequest;
    Session objSession;
    objSession = (Session) Application["Session"];
    prxySrvcRequest.Url = objSession.GetURL();
    try
    objOutput = prxySrvcRequest.ServiceRequestInsertOrUpdate(objInput);
    catch(Exception e)
    12-09-2006 09:53 AM
    Re: Creating Activity object for a Service Request object...
    drangineni
    New Contributor
    Thank you BigSlick.
    The following error is thrown when I use the
    ServiceRequestInsertOrUpdate(objInput)
    "No user key can be used for the Integration Component instance 'Service <br/>
    Request_Action'.(SBL-EAI-04397)"
    When I use the prxySrvcRequest.ServiceRequestInsert(objInput), no error is
    thrown and the Activity gets added, but a new Service Request object is
    created, but the Activity gets added to an existing Service Request
    object. I greatly appreciate your help.
    The following is the code:
    int ActivityLength = 0;
    WSOD_ServiceRequest.ServiceRequest1[] ServiceRequest = new
    WSOD_ServiceRequest.ServiceRequest1[1];
    ServiceRequest[0] = new WSOD_ServiceRequest.ServiceRequest1();
    ServiceRequest[0].ServiceRequestId = this.Request.QueryString["id"];
    ServiceRequest[0].ListOfActivity = new
    WebSelfService.WSOD_ServiceRequest.Activity[ActivityLength + 1];
    ServiceRequest[0].ListOfActivity[0] = new WSOD_ServiceRequest.Activity();
    ServiceRequest[0].ListOfActivity[ActivityLength].Description =
    this.txtDescription.Text;
    ServiceRequest[0].ListOfActivity[ActivityLength].Display = "Task";
    ServiceRequest[0].ListOfActivity[ActivityLength].Subject = "My Subject";
    WSOD_ServiceRequest.ServiceRequest prxySrvcRequest = new
    WebSelfService.WSOD_ServiceRequest.ServiceRequest();
    WSOD_ServiceRequest.ServiceRequestWS_ServiceRequestInsertOrUpdate_Input
    objInput = new
    WebSelfService.WSOD_ServiceRequest.ServiceRequestWS_ServiceRequestInsertOrUpdate_Input();
    WSOD_ServiceRequest.ServiceRequestWS_ServiceRequestInsertOrUpdate_Output
    objOutput = new
    WebSelfService.WSOD_ServiceRequest.ServiceRequestWS_ServiceRequestInsertOrUpdate_Output();
    objInput.ListOfServiceRequest = ServiceRequest;
    Session objSession;
    objSession = (Session) Application["Session"];
    prxySrvcRequest.Url = objSession.GetURL();
    try
    objOutput = prxySrvcRequest.ServiceRequestInsertOrUpdate(objInput);
    catch(Exception e)
    12-10-2006 08:49 AM
    Re: Creating Activity object for a Service Request object...
    BigSlick
    Valued Contributor
    Ah yes, I forgot you also need to specify a unquie Id for the activity.
    It's kinda strange.
    Try adding this:
    ServiceRequest[0].ListOfActivity[ActivityLength].ActivityId = "DummyId";
    //OD will overwrite this with a real Id
    Or if you have a unquie ID for your Activities you can use:
    ServiceRequest[0].ListOfActivity[ActivityLength].ExternalSystemId = <Your
    Unique Value>;
    Hope that helps,
    BS
    12-11-2006 10:52 AM
    Re: Creating Activity object for a Service Request object...
    surgientweb
    New Contributor
    Hi all,
    I have a similar problem, but mine is returning a message that field
    "Display" is required. Looking at this post and the documentation it is
    obvious that Display is a required field, but my WSDL did not include a
    field called "Display", so my proxy did not generate one.
    I tried adding a field called Display to the WSDL and the proxy class, but
    I get a different error... I figure I maybe cannot add it manually like
    that - but I think the bigger problem is it is not part of the WSDL that
    Siebel OD generates for me in my admin account.
    On top of that Display is not shown in the list of fields for Activity
    through the admin interface.. is it possible my account is bugged? Am I
    missing something simple here? BigSlick, I see you mention a .Display in
    your code sample so I thought you might understand what is wrong. Here is
    my code (I am trying to add a activity to a lead).
    Thanks for any insight into this!
    private void InsertLeadActivity(Session session, NameValueCollection data,
    string leadID)
    try
    if (blnDebug)
    Response.Write("Setting up Activity<br>";
    // instantiate the proxy service
    Activity_Service.Activity activityProxy = new Activity_Service.Activity();
    // set up the target URL
    activityProxy.Url = session.GetURL();
    activityProxy.CookieContainer = session.GetCookieContainer();
    // set up input argument
    ActivityNWS_Activity_Insert_Input input = new
    ActivityNWS_Activity_Insert_Input();
    input.ListOfActivity = new Activity1[1];
    input.ListOfActivity[0] = new Activity1();
    if (blnDebug)
    Response.Write("Getting Data<br>";
    // dg note: name value
    // input.ListOfActivity[0].MrMrs = data["MrMrs"];
    input.ListOfActivity[0].LeadId = leadID.ToString();
    input.ListOfActivity[0].Description = DataToString(data);
    input.ListOfActivity[0].Subject = "Website Submission Activity";
    input.ListOfActivity[0].Priority = "3-Low";
    //input.ListOfActivity[0].DueDate =
    DateTime.Now.AddDays(7).ToShortDateString();
    input.ListOfActivity[0].Owner = this.defaultLeadOwner;
    input.ListOfActivity[0].Type = "Call";
    //input.ListOfActivity[0].Display = "Task";
    input.ListOfActivity[0].ActivityId = "DummyId";
    input.ListOfActivity[0].ExternalSystemId = "web";
    activityProxy.Activity_Insert(input);
    catch (Exception exInsertActivity1)
    if (blnDebug)
    Response.Write("<br>Error inserting activity.<br><br>" +
    exInsertActivity1.ToString() + "<br>";
    01-06-2007 05:05 PM
    Re: Creating Activity object for a Service Request object...
    surgientweb
    New Contributor
    Figured it out.. the field "Display" is also known as "Activity"........
    Here are some notes for other people.. good luck and feel free to write me
    at raskawa-at-gmail-com if you want a code sample.
    Some unpublished nice to knows for Siebel On Demand Activities....
    In summary:
    - .Activity is also known as Display in documentation and on the error
    messages coming back from the WS. Also, it appears based on these boards
    some people actually have a .Display field. Maybe different accounts
    generate different WSDL's.... buggy.
    - If a error message is thrown saying "Description is required" it really
    means "Subject is required" (make sure .Subject has a value)
    - If a error message is thrown complaining that ActionType is not right..
    that is really .Type.. make sure it's lookup value is valid for the
    dropdown values in your CRM OD system.
    My code/values that worked..
    input.ListOfActivity[0].LeadId = leadID.ToString();
    input.ListOfActivity[0].Description = DataToString(data);
    input.ListOfActivity[0].Subject = "Website Submission Activity";
    input.ListOfActivity[0].Priority = "3-Low";
    //input.ListOfActivity[0].DueDate =
    DateTime.Now.AddDays(7).ToShortDateString();
    input.ListOfActivity[0].Owner = this.defaultLeadOwner;
    input.ListOfActivity[0].Type = "Call";
    input.ListOfActivity[0].ActivityId = "DummyId";
    input.ListOfActivity[0].ExternalSystemId = "web";
    //input.ListOfActivity[0].Display = "Task"; //doesn't work
    input.ListOfActivity[0].Activity = "Task"; //does work.
    01-06-2007 05:17 PM
    Re: Creating Activity object for a Service Request object...
    raskawa
    First Time Contributor
    Hi,
    This is surgientweb (under my own login now..)
    Anyway, I wanted to add that I figured out that there are two ways to add
    a Activity to a Lead. Via the Lead object (by getting a ListOfActivities)
    OR by creating a Activity directly and just adding your "LeadID" to it (or
    you can also add a "ContactID" to relate the activity to a Contact.)
    Feel free to email me for a code example (raskawa....at....gmail)
    -David
    01-09-2007 02:58 PM

    Hi Stephane,
    You can definitely read the categories using Tables in CRM. The logic is a bit complicated though.
    Use the following steps to retrieve Categories using Std. CRM Tables:
    1. Pass transaction GUID in field GUID of table CRMV_REPORT_SUBJ and get KATALOGART, CODEGRUPPE and CODE field values in lv_catalog, lv_codegrp and lv_code.
    2. Now you need to concatenate these 3 fields values carefully like this:
    CONCATENATE lv_catelog lv_codegrp '    ' lv_code into lv_category1.
    Remember there are 4 spaces between lv_codegrp and lv_code.
    3. Now pass this lv_category1 in field OBJEXT in table CRMC_ERMS_CAT_OK and get OBJGUID in field lv_objguid.
    4. Pass this lv_objguid in field OBJ_GUID and LNK_TYPE = 'IS_CODE' in table CRMC_ERMS_CAT_LN and get value of CAT_GUID in lv_cat_guid.
    5. Pass this lv_cat_guid in field CAT_GUID in table CRMC_ERMS_CAT_CA and get value of CAT_ID in field lv_cat_text.
    Remember this lv_cat_text is the text value of your last level of category of transaction.
    6. To get its upper cateogry level value, simply use table CRMC_ERMS_CAT_HI and get parent guid value and pass this as CAT_GUID again in table CRMC_ERMS_CAT_CA to get its text.
    Alternatively, you can also use class method cl_crm_ml_category_util=>get_parse_all to get all levels of categories.
    Hope this helps.
    Thanks
    Vishal

  • How to configure systems for ABAP Proxy use

    Can somebody please point me to the documentation regarding the configuration settings for the use of ABAP proxies, on both the XI and client sides? I have performed readiness checks as specified by SAP, the ABAP Proxy tests all pass, yet when I write a program with a proxy, the message does not appear in the integration engine monitor.
    I think I have missed something in configuration settings, but don't know for sure. hence the request.
    Kind Regards,
    Tony.

    Hi,
    Please follow the below configuration steps for ABAP proxy:
    ABAP Proxy configuration:
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    Thnx
    Chirag

  • [RPC Fault faultString="HTTP/1.1 415 Unsupported Media Type" faultCode="Server.Proxy.Request.Failed"

    Hi,
    Posting in the 'General' forums as well. Did not yet get any response for the topic posted in the 'Configuration and Getting Started Discussion' forum.
    I am having nightmares to call the POST method of a REST service thru Flex. Initially tried with the HTTPService without any proxy server. Wasn't able to call POST, though the GET method was successfully called. Please see the post here (http://www.flexdeveloper.eu/forums/actionscript-3-0/how-to-acces-post-method-of-rest-web -service-thru-flex/)
    b THEN I tried with BlazeDS
    , but with the same results!
    I have set up BlazeDS with the integrated Tomcat option. I have also set up the Flex project as mentioned in the instructions. It is working fine when I run the sample projects.
    But the problem is that
    i when I try to access a
    b POST for a REST service,
    i I get the "HTTP/1.1 415 Unsupported Media Type" fault.
    b The complete fault I'm getting is: [RPC Fault faultString="HTTP/1.1 415 Unsupported Media Type" faultCode="Server.Proxy.Request.Failed" faultDetail="HTTP/1.1 415 Unsupported Media Type"]
    at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev \3.1.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:218]
    at mx.rpc::Responder/fault()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:53 ]
    at mx.rpc::AsyncRequest/fault()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\AsyncRequest .as:103]
    at HTTPMessageResponder/resultHandler()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\messagin g\channels\HTTPChannel.as:871]
    at HTTPMessageResponder/completeHandler()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\messag ing\channels\HTTPChannel.as:940]
    at ChannelRequestLoader/callEventCallback()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\mess aging\channels\HTTPChannel.as:1155]
    at ChannelRequestLoader/completeHandler()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\messag ing\channels\HTTPChannel.as:1191]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()
    I have added correct entry to the policy-config.xml (I know this because the GET for the same REST service is working).
    b Only the POST thing is giving me the fault!
    Appreciate any inputs. (am in need of 'em badly)
    thanks
    BJG

    My guess is that the Server/Rest service doesn't like the content type of the request. HTTPService uses a content type of application/x-www-form-urlencoded by default. Maybe the Rest service is expecting the request to be XML? If that's the case, you need to set the contentType property of the HTTPService to application/xml.
    Sometimes an HTTP sniffer/proxy such as Charles can be useful for debugging these kinds of issues. If my suggestion doesn't help, capture the HTTP request and response using a HTTP sniffer like Charles and post back to this thread with it and someone will take a look at it for you. Thanks.
    -Alex

  • Connection timeout when using iPlanet web-server uses Weblogic 6.1 proxy server to proxy requests to an HTTP server

    Hi all,
    My configuration is as follows: I have an iPlanet web-server that uses a WebLogic
    6.1 (sp1) server to proxy requests to another HTTP server. The HTTP request runs
    for 120 seconds. This causes Weblogic to timeout after a while. The error I get
    is as follows:
    <Aug 25, 2003 3:37:09 PM GMT+00:00> <Warning> <HttpClient> <Couldn't open connection
    java.net.ConnectException: Connection timed out
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
    at java.net.Socket.<init>(Socket.java:273)
    at java.net.Socket.<init>(Socket.java:127)
    at weblogic.net.http.HttpClient.openServer(HttpClient.java:194)
    at weblogic.net.http.HttpClient.openServer(HttpClient.java:254)
    at weblogic.net.http.HttpClient.<init>(HttpClient.java:117)
    at weblogic.net.http.HttpClient.New(HttpClient.java:149)
    at weblogic.net.http.HttpURLConnection.connect(HttpURLConnection.java:109)
    at com.db.gmr.dcm.DebtIssueServlet.getVectorFromConnection(DebtIssueServle
    t.java:285)
    at com.db.gmr.dcm.IssuesUSThread.run(IssuesUSThread.java:29)
    >
    I get the same error when I added the following plug-in configuration parameters
    (in obj.conf):
    ConnectTimeoutSecs="170" ConnectRetrySecs="170".
    What do I need to do to extend this timeout? Any help you can provide will be
    greatly appreciated..
    Thanks
    Manish

    Hi all,
    My configuration is as follows: I have an iPlanet web-server that uses a WebLogic
    6.1 (sp1) server to proxy requests to another HTTP server. The HTTP request runs
    for 120 seconds. This causes Weblogic to timeout after a while. The error I get
    is as follows:
    <Aug 25, 2003 3:37:09 PM GMT+00:00> <Warning> <HttpClient> <Couldn't open connection
    java.net.ConnectException: Connection timed out
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
    at java.net.Socket.<init>(Socket.java:273)
    at java.net.Socket.<init>(Socket.java:127)
    at weblogic.net.http.HttpClient.openServer(HttpClient.java:194)
    at weblogic.net.http.HttpClient.openServer(HttpClient.java:254)
    at weblogic.net.http.HttpClient.<init>(HttpClient.java:117)
    at weblogic.net.http.HttpClient.New(HttpClient.java:149)
    at weblogic.net.http.HttpURLConnection.connect(HttpURLConnection.java:109)
    at com.db.gmr.dcm.DebtIssueServlet.getVectorFromConnection(DebtIssueServle
    t.java:285)
    at com.db.gmr.dcm.IssuesUSThread.run(IssuesUSThread.java:29)
    >
    I get the same error when I added the following plug-in configuration parameters
    (in obj.conf):
    ConnectTimeoutSecs="170" ConnectRetrySecs="170".
    What do I need to do to extend this timeout? Any help you can provide will be
    greatly appreciated..
    Thanks
    Manish

  • Mac OS X Server Forward Proxy(Web Caching)...setup a website for the proxy???

    My office is a Mac environment with a couple of windows pcs. To save on bandwidth i would like to setup a Mac OS X Snow leopard server with a web caching proxy, forward proxy. I read this link from apple
    Server Admin 10.6 Help: Configuring Web Service Proxy Settings
    i understand that to set this up i must enable it on my Mac Server and also on the clients(end user) web browser. What i don't understand is this part:
    "When setting up a forward proxy, make sure you create and enable a  website for the proxy. You might want to disable logging                      on the proxy site or configure the site to record  its access log in a separate file from your other sites’ access logs.  The                      site does not need to be on port 80 but setting up  web clients is easier if its browsers use port 80 by default."
    Create and enable a website for the proxy??? I don't understand, why do i need a website for web caching? Shouldn't the settings in the web browser direct the http requests to the mac server and it does the rest, what has a website got to do with it and what type of website?How?
    Please help, thank you in advance

    SL Server

  • ISG Debug - IP configuration missing for radius proxy session initiation

    Folks,
    We are trying to configure the ISG as a Radius-Proxy for EAP Authentication. I have configured aaa server radius proxy, clients and aaa auth radius-proxy group as per the guide. I have my interface config as follows:
    interface TenGigabitEthernet0/2/0.205
    encapsulation dot1Q 205
    ip vrf forwarding CS
    ip address 10.20.0.1 255.255.224.0
    ip helper-address global 172.X.X.X
    no ip redirects
    no ip proxy-arp
    ip tcp adjust-mss 1420
    service-policy type control DEFAULT_RULES
    ip subscriber l2-connected
      initiator dhcp
      initiator radius-proxy
      arp ignore local
    When I try to connect a wifi client to an AP, I can see that the AP is forwarding the Access-Request to the ISG but the ISG does not forward it to the AAA. In the ISG debug I see the following message:
    RADIUS: IP configuration missing for radius proxy session initiation
    Can any one help to identify what is missing here pls?
    Thank You in advance!

    Kiran,
    Did you follow this guide? It looks like the interface configuration is there but you didnt include the actual radius configuration does it follow the guide here -
    http://www.cisco.com/en/US/docs/ios/isg/configuration/guide/isg_radius_proxy.html#wp1055053
    Thanks,
    Tarik Admani

  • OWSM user name token service policy for a proxy service at OSB

    Hi Friends,
    I am facing an issue while trying for the OWSM user name token service policy Authentication for a proxy service at OSB. I am using the PS4 SOA suite with AIA foundation pack. very first I am login into the EM console and choose the domain<soaosb_domain> form web logic domain I moved to security->security provide configuration. Inside the security provide configuration we have to key store section and I expand that and we have a configure button inside the keys tore. I click that button and it open a new page. In that page I got the Java key store (JKS) as the default key store and in the access Attributes I keep the default key store path and fill password and confirm password fields. Then in Identity certificates I fill the signature key and Encryption key with key Alias as 'orakey' and same password which I am mentioned at access Attributes. I got the message like the key store is created successfully. Then I restarted the server and again I am login into the EM console and choose the domain<soaosb_domain> form web logic domain I moved to security. In security I choose the credentials. In credentials we have create key. In the create key I add the key as hari-key and provide the hari as a user and his password.
    While trying to test the proxy service i am getting the [OSB Security - OWSM: 387253] Failed to initialize OWSM Credential Manager. Please validate the Key store Configuration.
    can anyone please look at this and suggest me how can I proceed for this.
    Thanks
    Hari

    anyone please respond to the above request.
    Thanks
    Hari

  • Credentials for the proxy

    So, people, are there any way to set the credentials for the proxy server?
    I'm using E60 with v2.0618 firmware. And I wasn't able to find the way to do that. In the access point -> advanced settings dialog you can set only proxy IP address and port. And there is no way to set the credentials
    More over, most applications (and surely all Nokia applications) do not recognize situations when proxy requests login/password and report a connection error.
    There a re very few apps which handle it correctly (like opera/miniOpera).
    Also I wonder if this was changed in v3 firmware for E60.

    I've got the same deal, and apparently the internet proxy option is not available in the Safari 3 for Windows version, despite not mentioning this anywhere.
    So far I've checked:
    The help files (no hits on the word proxy, proxies, etc)
    Under Preferences the Proxies button is grayed out.
    Clicking the '?' next in the Advanced settings tabs lists
    information about every other setting except for proxies
    What's puzzling is that this is one of the very features touted (reason 12 of 12 reasons you'll love Safari):
    "Safari also supports a variety of proxy protocols — services that help firewalls control what flows in and out of the network — including Automatic Proxy configuration, FTP Proxy, Web Proxy (HTTP), Secure Web Proxy (HTTPS), Streaming Proxy (RTSP), SOCKS Proxy, and Gopher Proxy."
    ..apparently just not in the BETA
    Apple, in the future PLEASE include a 'readme' that explains what is and is not included in the Beta. It saves all of us early adopters the pain of not being able to play with your new toys behind a proxy.
    eMac 1.25Ghz G4, iBook G4, Treo 650   Mac OS X (10.4.9)   HP nc6000 at work

  • Synchronous Inbound Proxy: Request Responce Type

    Hi,
    I am new to ABAP and i have to work on a inbound proxy which is synchronous
    ie a request-responce scenario has to be implemented.
    Can some one guide me how to initiate.
    Regards,
    vickey
    Any replys will be highly appreciated and rewarded.

    hi
    check with this wiki page:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/09/19/request-responseSCENARIOININBOUNDPROXY 
    If there is a scenario in which the request coming from the other system and based on that request, a response is to be send from ABAP to that system, inbound proxy with Synchronous method is used.
    The class is created by the XI and in the method execute_synchronous, the ABAP code is written.
    The XI provides the input and output structures.
    The ABAP side receives the request from the input structure and sends back the response to the output structure. We will go through these steps one by one. If clearly understood the whole concept is very easy.
    Step1: To declare the internal table/work area of the type of input structure:
            wa_input like input-mt_get_notification-message_payload.
    (Here we have given the whole path as highlighted through ovals in the figure above)
    Step2:  To move the data coming from the input structure to the defined workarea/internal table:
           move input-mt_get_notification-message_payload to wa_input.
    Now the input data is in the desired internal table /work area which can be used to fetch the desired values and send the result back to XI through output structure.
    2) To send the data to XI through output structure.
    Step1: Like input structure, the naming convention for output structure also follows the
    whole path
    call method me->get_notif_or_task_details
            exporting
              p_input         = wa_input
            importing
              p_output        =
           output-mt_notification_response-message_payload-sapresponse
            changing
              it_l_bapiret2   = it_bapiret2
            exceptions
              errors_occurred = 1
              others          = 2
          if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          endif.
    (Code Snippet for Method)
    Here this method fetches the required data in the table p_output and assign it to the internal table
    SAPRESPONCE of the output structure which goes to XI.
    In this way, the synchronous method can be used for inbound proxy in case of request-response scenario.
    regards
    Manish

  • WLS 6.0 sp2 Apache fail to proxy request

    Hi
    IHAC who is going live soon and I am involved in configuring
    apache plug-in for them.
    The thing is that the plug-in is proxying request to admin server instead of
    the
    managed server. When I turn debug on, the request has admin server in the
    preferred list
    of server.
    I do not have any admin server ip or port in apache config and I am not
    using 8001 for admin port.
    I have also clear all cookies on my browsers. Does anybody has any clues.
    regards
    Eng Guan

    Hi
    IHAC who is going live soon and I am involved in configuring
    apache plug-in for them.
    The thing is that the plug-in is proxying request to admin server instead of
    the
    managed server. When I turn debug on, the request has admin server in the
    preferred list
    of server.
    I do not have any admin server ip or port in apache config and I am not
    using 8001 for admin port.
    I have also clear all cookies on my browsers. Does anybody has any clues.
    regards
    Eng Guan

Maybe you are looking for

  • Itunes crashing at startup while trying to access Itunes Store

    Hey all, below is a reply I wrote in another thread.  I found a workaround to this issue that's working for me.. thought I'd also create this new thread... hopefully will work for you too until (hopefully) Itunes update/patch fixes the issue.  Hello,

  • Seeburger OFTP/ ISDN adapter

    Hello, Does anyone have an experience with configuring OFTP_ISDN adapter from Seeburger? I have a problem to configure an inbound channel (Sender) when the same dataset name can come from four different ISDN numbers (One MAIN ISDN MSN and three SUB I

  • OT: help converting image from Illustrator .eps file to

    I have 2 files that were sent to me as (supposedly) full vector-based format from Illustrator. When I view these in FW, I see only a bitmap. I know it is possible to convert these to a FW png where each element of the graphic is a separate object but

  • No sound effects on games or keyboard sound since downloaded 8.1.3 this morning on iPad airanyone any ideas pl ? 

    no sound effects on games or keyboard click since downloading 8.1.3 this morn. At first no sound on anything then played about in setting and switched off and now no sound effects despite being on full volume. If I reset will I lose my games pl ?

  • How to restore image after cropping

    void cropLayer(PIActionDescriptor descPosition, int32 layerIndex, PIActionDescriptor  currLayer)         // get "currLayer" layer bounds        error = sPSActionDescriptor->GetFloat(descPosition, keyTop, &top);        error = sPSActionDescriptor->Get