Http Connection for UIViewController

Hi guys.
I am developing an application with Http connection.
This application has 5 UIViewControllers.
Each UIViewController can create a Http Connection.
In this case, Do I need to code NSURLConnection for each UIViewController ?
Or, Do need to code one NSURLConnection for 5 UIViewControllers?
If so, How to make a transition between one NSURLConnection and 5 UIViewControllers ?
Which one is better ?
Thanks in advance.

Thanks for reply.
hat is hard to tell without knowing what each of these connections are supposed to do. I would >definitely create a separate class that handles the HTTP request, check connectivity etc. and use >that from each controller.
If so, Do I need to define 5 UIViewControllers as static variable in separate class that handles the HTTP request ?
I am trying yours idea. To do that, defines static variable for each UIViewController in AppDelegate.m.
Actually i wanna do it as local variable. But I have one separate class that handles. So, I defined these 5 UIViewControllers as static.
If need to define as local variable, what do I need to ?
Any suggestion ?
Thanks in advance.

Similar Messages

  • How  to create and test HTTP connection for proxy

    HI
    Can anybody help me by providing step by step guide for how to create a HTTP connection for inbound abap proxy?
    How i will get sure that connection is working properly?
    Thanks
    Debraj

    Hi Debraj,
       You should be able to do that in SM59 of the XI Box.
    Create the connection under "HTTP Connections to R/3 System".
    Provide the Target Host IP Address.Service Number and Path Prefix.
    Select the logon procedure as SAP Standard.
    SSL Inactive.
    Provide Logon details.
    Regards,
    Ravi

  • HTTP Connection for Solution manager

    Dear Experts,
    SAP support team asked to create a http connection for solution manager for service check.We already created a R/3 connection for solution manager.why they are asking for HTTP connection? Really they required HTTP connection ?,Is they are any problem with this type of connections.What are the transaction codes which are not run in SAP GUI. Please clarify my doubts.
    Thanks and regards,
    Patan Thavaheer.

    Hi Patan,
    Solution Manager transaction codes open in http browser. You can check the behaviour yourself by making a login to solution manager and execute transaction code solman_setup.
    For SAP support to open http browser within remote support, they need to have http connection opened along with HTTP url maintained.
    Refer to the SAP help link above for the procedure.
    Hope this helps.
    Regards,
    Deepak Kori

  • HTTP Connection For Proxies

    Hi all,
    Can anyone explain me how to create the http connection in SM59.
    Here iam getting a status error as HTTP_CONNECTION_FAILED
    here my scenario is File to Proxy
    Suggest me where i have to make this connection means in XI or SAP system regarding this scenario (file to proxy)?
    Any suggestions.
    thanx,
    krishna.

    Hi Krishna,
    When you create a RFC in SM59 provide/check the following info
    Provid the RFC destination
    Provide connection type as G HTTP connection to external server
    In description tab provide at least one description
    In technical settings provide target host name and provide service no then provide the path prefix
    Leave the  HTTP proxy options empty
    In Logon&Security tab choose basic authentication in logon procedure
    In Status of Secure Protocol choose SSL as Inactive then choose SSL Client Certificate as DEFAULT SSL Client(standard)
    In Special Options tab choose and set Specify time out 900 msec
    In HTTP Settings choose HTTP 1.0
    Compression Status choose as inactive
    Choose compression status inactive then choose compressed response as YES
    In HTTP Cookies choose Accept Cookies choose NO
    Save the connection and do a test connection it will prompt for Response from Web Server Contains Cookies Accept?  Accept all further cookies tick the box and say YES
    If you still have problem please paste the error.
    You can refer the XI trouble shooting doc at https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bd5950ff-0701-0010-a5bc-86d45fd52283
    Cheers,
    Shyam

  • Outlook 2010 makes unexpected HTTPS connection for unrelated profile

    I originally posted this in the Outlook forum, but was pointed here instead.
    I have a number of different Outlook profiles, for unrelated Exchange accounts.
    I recently noticed that a client's firewall log was showing unexpected failed logon attempts to port 443, from my IP, using my PC name and username. I eventually found that these connections corresponded to my starting Outlook 2010 on my PC, loading my usual
    Outlook profile (unrelated to the client, although I do have another Outlook profile for this client's Exchange server.)
    Recreating my usual profile didn't fix it. Eventually I created a test profile that contains just an empty PST file and the Fax service, and even opening this profile causes a failed HTTPS (presumably RPC over HTTPS) connection to the client.
    Why would Outlook be making HTTPS connections (presumably RPC over HTTPS) to a server that isn't referenced in a profile? How can I remove such references?
    Thanks.

    This was marked as the answer, but it is not.
    I use RPC-over-HTTP for all the accounts, so I can't disable it.
    The question is why is Outlook attempting to connect to the server referenced in profile X when I'm connecting (successfully) to a entirely different server referenced in different profile Y?
    Thanks.

  • Setting up http connection for ADS in sm59

    I have a problem setting up the http connection.
    I created ADSUser and ADScallers role, but when i click on test connection in sm59, first i get a popup window: response from web server contains cookies. Accept?
    I didn't get this window before, this looks strange.
    I have to click twice on yes, to proceed, which is also weird.
    Then i get an enter logon data window:
    enter your user name and ID
    Resource: WS Navigator
    Username:
    Password:
    I tried the ADSUser username/pwd here, but it did not work
    Which username/pwd should i use and how can i set those?
    This already worked once before, and this is the simplest thing, I don't know why it doesn't work anymore.
    If this would work, then i coud try FP_PDF_TEST_00 report, and then go on with configuring ADS.
    Can anyone help please?

    There are many ways.
    The easiest would be over the useradmin:
    http://<your_javaserver>:5xx00/useradmin
    Murat

  • Http connection for Palm OS4x

    any way to do this for Palm 125?
    (connection to PC is via USB)
    can i confirm that can use mochasoft if its via serial?
    anyone got any idea if its for USB connection?
    thanks in advance

    I have the same problem.
    I have a laptop with only USB connection, no built in com ports.
    It is configured as follow:
    -Internal 56K modem is mapped in com3.
    -I have a virtual COM1 port from a USB-COM adapter, and there I have connected a PalmIIIc
    -I have a ADSL modem connected to the USB
    The best goal would be surfing the web through the ADSL modem...is it just a dream?
    The second possibility would be the connection through the 56K modem.
    This would be a COM to COM operation and it should be possible.
    ....it should!!
    I have tried mochasoft, pilotnet and pilot redirector with the same result: Modem error (no data recived).
    Any idea?
    Thank you

  • Passing Values to URL Parameters in HTTP Connection SCOT

    Hi ,
    I have created a new node in SCOT as HTTP. In that i am using one URL as HTTP Connection , for that URL have to pass some input values ( eg: User name , password ). Right now i am hardcoding these values in the URL, But i need to pass these input values to the URL dynamically. Is there any way to pass the values to the URL parameters .
    Regards
    Bala..

    Hi Bala,
    Did you ever get this resolved? I have a similar requirement but still cant find a way to do it. I even thought about creating an RFC Destination of type H and entering the user name and pwd in the logon details. But the problem wih this is that the URL for the RFC destination is static and cant really be changed.
    Be interested to hear your thoughts.
    Alon

  • CProjects Roles, HTTP Connection, RABAX_STATE error

    Hi All,
    1. Which are the standard cProjects Roles to be maintained ? Where we can have that list ?
    2. How to maintain or say configure the HTTP connection for cProjects (steps for doing it)?
    3. Getting the termination type error : RABAX_STATE, how to resolve it ?
    Points for userful information.
    Thanks and regards,
    Nishit

    Hi
    Answer to your 1 question is given below
    The following single roles are delivered with cProjects:
    SAP_CPR_PROJECT_ADMINISTRATOR     :Create projects (project definitions).
    SAP_CPR_TEMPLATE_ADMINISTRATOR     :Create, change, read, and delete all templates in cProjects.
    SAP_CPR_USER     :Use cProjects, but no authorization to perform any activities in a particular project. To do this users need project-specific authorizations, which can be distributed either directly or through their assignment to a role.
    The following composite roles are delivered with cProjects:     
    SAP_CPR_DECISON_MAKER     :cProjects decision maker. Contains the role SAP_CPR_USER.
    SAP_CPR_INTERESTED     :cProjects interested party. Contains the role SAP_CPR_USER.
    SAP_CPR_MEMBER     :cProjects team member. Contains the role SAP_CPR_USER.
    SAP_CPR_PROJECT_LEAD     :cProjects project manager. Contains the role SAP_CPR_PROJECT_ADMINISTRATOR and SAP_CPR_USER
    SAP_CPR_TEMPLATE_RESPONSIBLE     :cProjects template responsible. Contains the roles SAP_CPR_TEMPLATE_ADMINISTRATOR and SAP_CPR_USER
    Edited by: Yogesh  Pande on Dec 18, 2008 5:38 AM
    Edited by: Yogesh  Pande on Dec 18, 2008 5:41 AM
    Edited by: Yogesh  Pande on Dec 18, 2008 5:43 AM

  • HTTP Proxy Connection for sharepoint-webservice endpoint in  SMP

    hi all,
         I want to consume share-point services(soap based) through SMP. for that i am creating HTTP Proxy Connection for sharepoint web service endpoint in
    SMP. i have done with creation of proxy connection without any error but while testing (on REST_CLIENT add-ons) it showing following error :
    Status Code: 400 <?xml version="1.0" encoding="utf-8"?> <error ><message xml:lang="en">Error occurred while connecting to the Gatewaynull</message> </error>
    Can anyone help me....
    Thanks in advance.

    hii Andrew,
    Here are screenshots of proxy connection configuration,
    security configuration:
    Application creation:
    connection white listing :
    Error message in Rest Client:
    Regards,
    SupriyaD

  • Http connection timeout for business services from proxy service?

    I've only done limited experiments in ALSB (2.1) at this point, but a question occurred to me, and I can't find this mentioned in the docs anywhere.
    When a proxy service configures a connection to a downstream business service through HTTP, is it possible to configure an http connection timeout value? This will cause the connection attempt to fail if it takes too long to determine whether the connection attempt succeeded or failed.
    I've heard that this is one advantage that Axis has over JAXRPC/SAAJ, as a connection timeout value can be specified.

    Hello Billy
    Thanks for the reply. I thought there may be some implementation of begin_request in another environment that had the option to specify a connect timeout. But as you have explained, it doesn't work like that. As always, I learn something every day!
    So realistically if I want to stop the calling process hanging in the event of the server not being available, I need use the message based approach...send a message containing the request to another process via a message queue and attach to the reply queue and wait for a message comming back with a timeout. Does that sound like a reasonable approach?
    Thanks
    David

  • MI Client 7.1 - No credentials for HTTP connection

    Hi Everybody!
    I´ve been testing Mobile 7.1 . I installed SAP MI Client for Laptop, configured all connection parameters (server, port, client)  and when I try to synchronize with DOE, I get the error:
    m="Cannot determine reason for not authorized response from server --&gt; com.sap.tc.mobile.exception.standard.SAPIllegalStateException: No credentials for HTTP connection
         at com.sap.tc.mobile.cfs.sync.synchronizer.http.HttpSynchronizer.createNewServiceConnection(HttpSynchronizer.java:1095)
         at com.sap.tc.mobile.cfs.sync.synchronizer.http.HttpSynchronizer.checkReasonForNotAuthorized(HttpSynchronizer.java:1277)
         at com.sap.tc.mobile.cfs.sync.synchronizer.http.HttpSynchronizer.readHttpResponse(HttpSynchronizer.java:1323)
         at com.sap.tc.mobile.cfs.sync.synchronizer.http.HttpSynchronizer.exchangeStatusWithServer(HttpSynchronizer.java:340)
         at com.sap.tc.mobile.cfs.sync.synchronizer.http.HttpSynchronizer.synchronize(HttpSynchronizer.java:591)
         at com.sap.tc.mobile.cfs.sync.SyncManagerImpl.synchronizeOnce(SyncManagerImpl.java:622)
         at com.sap.tc.mobile.cfs.sync.SyncManagerImpl.synchronize(SyncManagerImpl.java:452)
         at com.sap.tc.mobile.cfs.sync.spi.SyncManagerSPI.synchronize(SyncManagerSPI.java:694)
         at com.sap.tc.mobile.cfs.sync.spi.SyncManagerSPI.synchronizeStart(SyncManagerSPI.java:676)
         at com.sap.tc.mobile.cfs.sync.spi.impl.SyncCoordinator.startSync(SyncCoordinator.java:133)
         at com.sap.tc.mobile.mwd.laptop.container.SyncProgress$SyncThread.run(SyncProgress.java:580)
         at java.lang.Thread.run(Unknown Source)
    I´ve searched, but i haven´t got anything. I also created the Device on DOE Administrator and I configured the DOE following  SAP Help (http://help.sap.com/saphelp_nwmobile71/helpdata/en/45/17a790d8000064e10000000a1553f7/frameset.htm)
    I thought that the problem could be role, but i set all possible DOE roles to the user. I´m trying synchronize with the same password that I log in DOE.
    has anyone any idea?
    Thanks.
    Edited by: Rogério Tambellini on Nov 13, 2009 6:25 PM

    Hi,
    I´ve solved the problem following the link:
    Thanks for your attention.

  • Load balance for HTTP Connection to ABAP System (Type H) RFC connection

    Experts,
    For proxy we are using HTTP Connection to ABAP System (Connection type H) RFC connection in PI to get connected to ECC. I only see the option to use Target host in the Target system settings than Load balance option. In general ABAP Connection (Connection type 3) has Load balancing status option in Target system settings.
    My requirement is I should use a logon group with the message server when PI connects to ECC. How can we achieve this? At the moment I can only use the Central Instance or any dialog server (App server) in RFC but not a logon group.
    Thanks in advance.
    Mahesh

    Hi Naga
    Could you check the link below?
    http://help.sap.com/saphelp_nwmobile71/helpdata/en/47/c5935087b62d66e10000000a42189c/content.htm
    https://service.sap.com/sap/support/notes/1040325

  • ACE maintenance page for HTTPS connection (non offloaded mode)?

    Hello experts
    how do we configure a "redirected" maintenance page for HTTPS Serverfarm when the serverfarm is down/probefailed?
    lets say users are accessing https://xyz.com, and if the serverfarm is down, I want users to get redirected to https://abc.com or even http://abc.com
    (getting a certificate error or a https to http redirection error is acceptable)
    What i understand from TAC, since we are not terminating SSL on ACE, we have few restrcitions on using redirect. Thereafter, TAC hasnt been too helpful on this query.
    HTTPS connection is directly terminated on Server with certificate.  And we are using SSL Session Stickyness on ACE  (I know not the best thing to do..)
    Pls. assist.

    so do i assume there is no way to do this without using ACE for SSL termination?
    In our case, not using ACE for termiating SSL connections is to draw a line between Network and System administration, a business requirement.
    Thanks for your replies.

  • Hassle free connections for HTTPS

    Hi,
    I am trying to make http requests for https. Currently I am doing this on TCP/IP socket. From socket, send request headers over StreamReader and StreamWriter;
    "POST mypage/myone.htm HTTP/1.1\r\n"+...
    I tried using Socket created with the recommended;
    SSLSocketFactory sslFact = (SSLSocketFactory)SSLSocketFactory.getDefault();
    SSLSocket s = (SSLSocket)sslFact.createSocket(addr, port);
    Doesn't seem to doing as I expected. Do you have some hassle free codes that work always without manual settings, etc? There is no need to validate providers or use CA.
    Thanks in advance.

    I am getting exceptions like this;
    java.lang.ClassCastException:
    com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl
    cannot be cast to javax.net.ssl.HttpsURLConnectionfrom the following line;
    HttpsURLConnection conn =
    (HttpsURLConnection)new java.net.URL("https://....").
    openConnection();If I change this to HttpURLConnection, error comes to the following;
    javax.net.ssl.SSLHandshakeException: sun.security.validator.
    ValidatorException: No trusted certificate foundCurrently I am testing with Tomcat without CA certificates. It is intended to be used with and without certificates. There is no risk being hacked for doing so. I tested with 1.4, 1.5, and 1.6.

Maybe you are looking for

  • 04 inspection lot with status SPST

    Dear Experts, We are using Handling Unit (HU) functionality in FG material, 1. We create HU's (say 50 HU's) using tcode COWBPACK, 2. On creation of HU, an inspection lot of type 04 is created for 50 HU's. 3. In regular scenario, we do GR of all 50 HU

  • [SOLVED] Drag to edge to maximize: new stupid feature in KWin

    There's a new feature in KWin (KDE 4.4) where dragging a window to the edge of the screen maximizes the window. I keep activating it by accident and it's really annoying. I can't find an option to disable it. Anyone know how I can disable it? Last ed

  • Field explorer in CRXI disappeared - How do I get it back?

    Field explorer window in CRXI disappeared and I don't know how to get it back. I tried choosing the button on the tool bar and nothing happens. I also tried selecting from View menu and still nothing. How can I get it to show back up? I really do wan

  • When I am on Stubhub's site and try to click on the venue map, can not bring up tickets in the sections anymore, it used to work.

    I sell tickets on StubHub, and now when I click on specific section on their venue map, the list of tickets in that section won't come up. This has been happening since I did my last Firefox update. When I use Windows Internet explorer, there is no p

  • Column sizes in views

    Hopefully someone can help. When I look at a concatenated view, the column sizes of the view are much larger than when I run a describe of the view. Does anyone know why ? in sqlplus or sql editior in sql developer desc t1 SOURCE_ID NOT NULL VARCHAR2