HTTP URL problem

Hi all,
       I am trying to get the data from the Siebel server.For this I am using Siebel sender adapter using HTTP transport protocol.
        In sender adapter it is asking port number. I have given here abap port...is it correct?
        To trigger the data in siebel I have build a workflow.In workflow we have to supply method name and URL. I have given method as POST.
       Could anybody give me the inputs for build the URL.
Thanks,
sekhar

Hi Sekhar,
I have exactly similar scenario as yours. I am also using the sender iWay adapter using HTTP Transport protocol.
The HTTP port defiend in SMICM is 8001. Do we have to use this port in the CC configuration for sender iWay Adapter.
Will it use the sender agreement or the message will be directly posted to XI pipeline if i use the HTTP port of the ABAP stack.
At present the HTTP port defiend in SMICM is not working for me and the messsge goes directly to the XI pipeline without using the Communication Channel.
Instead of siebel sytem i am using HTTP Client to send the data as siebel system is not available now.
Regards,
Nilesh

Similar Messages

  • HTTP URL problem: Security issue

    Hello all,
    The HTTP URL for calling XI contains lots of information, including the username and password for accessing XI.  I feel quite uncomfortable exposing those info to external parties.  Is there any way to work around?
    Regards,
    Steve

    Steve,
    Like mentioned one option would be to use SOAP + Do Not use SOAP Envelope and then turn of Authentication for SOAP adapters.
    From the thread , <b>User Names and Passwords in SOAP adapter
    <i>in order to turn off the authentication for SOAP interface, please remove the authentication
    restriction in web.xml for aii_af_soapadapter.sda.
    Extract the SOAP-adapters WAR-file from the corresponding sda. Then extract the deployment-descriptor from the war-file and delete the related security-constraint, login-config and security-role sections (makes absolutely sense to save the original descriptor beforehand). ZIP the files again with the new deployment descriptor and deploy the SDA via SDM.
    comment the following portion.( It's already commented below).
    <! security-constraint >
    <><security-constraint>
    <display-name>message</display-name>
    <web-resource-collection>
    <web-resource-name>message</web-resource-name>
    <url-pattern>MessageServlet</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>xi_adapter_soap_message</role-name>
    </auth-constraint>
    </security-constraint>
    <security-constraint>
    <display-name>helper</display-name>
    <web-resource-collection>
    <web-resource-name>helper</web-resource-name>
    <url-pattern>HelperServlet</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>xi_adapter_soap_helper</role-name>
    </auth-constraint>
    </security-constraint>
    >
    <! login-config >
    <><login-config>
    <auth-method>BASIC</auth-method>
    <realm-name>XISOAPApps</realm-name>
    </login-config>
    >
    <! security-role >
    <><security-role>
    <role-name>xi_adapter_soap_message</role-name>
    </security-role>
    <security-role>
    <role-name>xi_adapter_soap_helper</role-name>
    </security-role>
    >
    The safest way to change this web.xml is described as followed, you
    could do the changes also direct on the file system, but it will need
    reboot of J2EE and does not guarantee to work.
    The web.xml is located in the aii_af_soapadapter.sda, please extract
    this sda file with normal zip function. There is one
    aii_af_soapadapter.war inside, please extract this war file again,
    change the web.xml as described above. Please zip the folder with
    modified web.xml for aii_af_soapadapter.war and than for the
    aii_af_soapadapter.sda. Please do not modify the folder structure.
    Deploy this modified sda with SDM. After the deployment you can double
    check whether changes for web.xml is done on the file system, this
    web.xml is located under
    /usr/sap/xxx/DVEBMGS00/j2ee/cluster/server0/apps/sap.com/com.sap
    .aii.af.soapadapter/servlet_jsp/XISOAPAdapter/root/WEB-INF.
    I am not sure whether you will need to restart the J2EE after this
    deployment to make the changes from web.xml active, please try it out.</i>
    Regards,
    Bhavesh

  • Testing  HTTP URL that causes a network problem

    Hi all,
    I'm developping an applet for multiple unlimited files downloading using HttpConnection .
    i want to implement the following feature :
    In the case of an error occurring due to network problems during file download; the applet must be able to reconnect and resume the data transfer without downloading the entire file(s).
    well i need to test this feature ; so i'm looking for some HTTP URL that can cause network probs so i can catch the error and retry connection etc...
    can someone point me where to find such HTTP files for my test ?
    thanks.

    >
    I can do this with FTP since it has commands to do
    this but I don't know of any using HTTP unless one
    uses a Servlet (or some other agent on the server) to
    process a download request for a file starting at
    some offset.
    Actually i did it only using HttpConnetion class and inputstream using some work arounds to keep track of the offset during download (actually i'm saving the offset to a temporary proprieties file that i'm reading again to get specific offset and resuming the download from last point)
    That is one way. You could also use an HTTP 'tunnel'
    that forwards all requests to an HTTP server but
    within the 'tunnel' you could at random close the
    connection.I will go for throwing exception manually ; but i'm curious to know how an HTTP tunnel works.
    thanks.

  • Problems with SAP BC to post a request to https URL

    Hello,
    in a integration scenario one of our partners wants to send a xml to our server via https.<br/>
    I tried this internal with a test business connector. I simple use the WmPublic.pub.client http service.<br/>
    I try to post a record to an https:// URL and get an error. It seems that there is some trouble with the ssl handshake. However it is working in the browser.<br/>
    The option Security -> Certificates -> Trusted Certificates -> CA Certificates Directory is 'unspecified'. Therefore no server certificate should be reject.<br/>
    <br/>
    Now I got an 'iaik.security.ssl.SSLException: Peer sent alert: Alert Fatal: handshake failure<br/>
    ' error. I do not find any helpful entries in this forum. Did anyone solve this issue?<br/>
    <br/>
    Thank you,<br/>
    Nils<br/>
    <br/>
    error:<br/>
    2009-08-03 10:08:13 CEST iaik.security.ssl.SSLException: Peer sent alert: Alert Fatal: handshake failure<br/>
         at iaik.security.ssl.r.f(Unknown Source)<br/>
         at iaik.security.ssl.x.b(Unknown Source)<br/>
         at iaik.security.ssl.x.a(Unknown Source)<br/>
         at iaik.security.ssl.r.d(Unknown Source)<br/>
         at iaik.security.ssl.SSLTransport.startHandshake(Unknown Source)<br/>
         at iaik.security.ssl.SSLTransport.getInputStream(Unknown Source)<br/>
         at iaik.security.ssl.SSLSocket.getInputStream(Unknown Source)<br/>
         at com.wm.net.NetURLConnection.trySSLConnect(NetURLConnection.java:691)<br/>
         at com.wm.net.NetURLConnection.httpsConnect(NetURLConnection.java:562)<br/>
         at com.wm.net.NetURLConnection.connect(NetURLConnection.java:171)<br/>
         at com.wm.net.HttpURLConnection.getOutputStream(HttpURLConnection.java:419)<br/>
         at com.wm.net.HttpContext.getOutputStream(HttpContext.java:578)<br/>
         at com.wm.net.HttpContext.getOutputStream(HttpContext.java:554)<br/>
         at com.wm.net.HttpContext.post(HttpContext.java:338)<br/>
         at pub.client.http(client.java:512)<br/>
    <br/>
    SAP BC Info:<br/>
    Software <br/>
    Product webMethods Integration Server <br/>
    Version 4.6 (Standard Encryption)    Release Notes  <br/>
    Updates BC46_CoreFix7  <br/>
    Build Number 940 + CoreFix 7 [Fixes 1-205 + SP1-3] <br/>
    SSL Standard (40-bit), Provider: IAIK 2.6 <br/>
      <br/>
    Server Environment <br/>
    Java Version 1.3.1_20 (47.0) <br/>
    Java Vendor Sun Microsystems Inc. <br/>
    Java Home /usr/jdk1.3.1_20/jre <br/>
    Java VM Version 1.3.1_20-b03 <br/>
    Java VM Info Java HotSpot(TM) Client VM (mixed mode) <br/>
    Classpath /usr/local/sapbc46/server/updates/BC46_CoreFix7.jar<br/>
    /usr/local/sapbc46/server/lib/server.jar<br/>
    /usr/java/lib/i18n.jar<br/>
    /usr/java/jre/lib/rt.jar<br/>
    /usr/java/lib/i18n.jar<br/>
    /usr/java/jre/lib/rt.jar<br/>
    /usr/java/lib/i18n.jar<br/>
    /usr/java/jre/lib/rt.jar<br/>
    /usr/java/lib/i18n.jar<br/>
    /usr/java/jre/lib/rt.jar<br/>
    /usr/java/lib/i18n.jar<br/>
    /usr/java/jre/lib/rt.jar<br/>
    /usr/java/lib/i18n.jar<br/>
    /usr/java/jre/lib/rt.jar<br/>
    /usr/local/sapbc46/server/lib/classes<br/>
    /usr/local/sapbc46/server/lib/client.jar<br/>
    /usr/local/sapbc46/server/lib/mail.jar<br/>
    /usr/local/sapbc46/server/lib/server.jar<br/>
    packages/SAP/code/classes<br/>
    packages/SAP/code/jars/static/inqmyxml.jar<br/>
    packages/SAP/code/jars/static/jARM.jar<br/>
    packages/SAP/code/jars/static/jCO.jar<br/>
    packages/SAP/code/jars/static/sapjco.jar<br/>
    packages/SAP/code/jars/static/sapxmltoolkit.jar<br/>
    packages/WmPartners/code/classes<br/>
    packages/WmWin32/code/classes <br/>
    OS Linux <br/>
    OS Platform i386 <br/>
    OS Version 2.6.18.8-0.13-default <br/>
    Current User sapbc <br/>
    Working Dir /usr/local/sapbc46/server<br/>

    Ok - in this case you need to include to session based SSL setup in your flow (scenario).
    The pub.security:setKeyAndChain and pub.security:clearKeyAndChain services are used to control which client certificate
    the SAP BC server presents to remote servers. You need to use these services to switch between certificates and
    certificate chains if you are not using aliases for remote servers.
    List of services to be used:
    pub.security:clearKeyAndChain
    -- Associates the default key and certificate chain with the subsequent set of invoked services.
    pub.security:setKeyAndChain
    -- Processes a digital signature to make sure that the provided data has not been modified. The signature input is the DER encoding of the PKCS#7 SignedData object.
    pub.security.pkcs7:sign
    -- Creates a PKCS7 SignedData object.
    pub.security.pkcs7:verify
    -- Processes a digital signature to make sure that the provided data has not been modified.
    pub.security.util:createMessageDigest
    -- Generates a message digest for a given message.
    pub.security.util:getCertificateInfo
    -- Retrieves information (e.g., serial number, issuer, expiration date) from a digital certificate.
    pub.security.util:loadPKCS7CertChain
    -- Converts a certificate chain that is in PKCS7 format to a list (a one-dimensional array) of byte arrays.
    Example:
    Invoke pub.client:http to send data to Company D.
    Invoke pub.security:setKeyAndChain using the key and certificate chain for Company B.
    Invoke pub.client:http to send data to Company B.
    Invoke pub.security:setKeyAndChain using the key and certificate chain for Company C.
    Invoke pub.client:http to send data to Company C.
    Invoke pub.security:clearKeyAndChain to revert back to the default key and certificate chain for Company
    Au2019s server.
    Invoke pub.client:http to send data to Company D.
    Edited by: Kai Lerch-Baier on Aug 3, 2009 1:47 PM

  • Problem while creating partner link using https URL

    Hi,
    To create the partnerlink using https URL, I had done the following:
    -Imported the self signed certificate into the OraBPELPM_\jdk\jre\lib\security\cacert
    -Added following entries in OraBPELPM_1\integration\jdev\jdev\bin\jdev.conf
    AddVMOption -Djavax.net.ssl.keyStore=E:\OraBPELPM_1\jdk\jre\lib\security\cacert
    AddVMOption -Djavax.net.ssl.keyStorePassword=esbtest123
    I am not able to create partner link using URL https://localhost/orabpel/default/ErrorHandlerBPEL/1.0/ErrorHandlerBPEL?wsdl .
    Able to create partnerlink using same URL if I replace https with http.
    Did I miss any other configuration that needs to done to create partnerlink using https in JDeveloper BPEL Designer.
    Thanks,
    -Vidya

    Hi,
    I  too have the same issue. Appriciate if you share some knowledge on this issue.
    Thanks
    Aravinda

  • Safari 5.0.5 (6533.21.1) - Lost ability to browse "https" urls, "http" fine

    Bizarre occurrence in Safari for me that I was hoping someone may have come across before:
    Tonight for some reason it will not accept any https url whatsoever - it produces the following error:
    can't open the page  <https://url> The error is: “The operation couldn't be completed. Operation not permitted” (NSPOSIXErrorDomain:1) Please choose Safari > Report Bugs to Apple, note the error number, and describe what you did before you saw this message
    I've not installed anything recently or made any config changes.  All I do is stay up-to-date with the software updates from Apple.
    I've tried moving the app to the Trash, rebooting and then re-installing but with no luck
    I tried restoring a previous version of Safari (5.0.4) from early April Time Machine version but still had the same problem.  Wondering if there are files outwith the Safari App that may be the cause and not the app itself.
    I have checked that my firewall and content filtering allow access - (this is the unchanged config I mention above) - and they do and am accessing this discussion site (ironically https so Safari couldn't get to it after my initial Google search) from Firefox.
    I've nothing against Firefox as a browser but I was happy enough with Safari and would like to keep using it.
    In trawling the web I couldn't see anything that directly matched what I was experiencing.
    If anyone has any hints or tips that might help I'd be really grateful.
    Thanks
    Steve

    Mac OS X (10.5.2)  <---   your profile.
    Which Mac OS X are you running?
    If you haven't tried, reinstall Safari.
    http://support.apple.com/kb/DL1070
    Then repair disk permissions.
    Launch Disk Utility. (Applications/Utilities) Select MacintoshHD in the panel on the left, select the FirstAid tab. Click: Repair Disk Permissions. When it's finished from the Menu Bar, Quit Disk Utility and restart your Mac. If you see a long list of "messages" in the permissions window, it's ok. That can be ignored. As long as you see, "Permissions Repair Complete" when it's finished... you're done. Quit Disk Utility and restart your Mac.  If you see any warnings re: SUID messages, they can be safely ignored, information here: http://support.apple.com/kb/TS1448?viewlocale=en_US

  • Accessing BSP File Download using HTTPS URL

    Hi,
    I'm struggling with a problem of downloading a file from a https url. I wrote a BSP App for downloading a file from a unix server.. It works fine when I use a http URL with port 8080 and does not work when I use https.!!
    Example:
    https://comms.gmsanet.co.za/supplier [ download does not work ]
    http://comms.gmsanet.co.za:8080/supplier [ download works ]
    When I try to download using https.. it does not pull the file name and path
    see code  below and suggest me if anything to be chnaged.
    In the Form Initialization method:
    event handler fr data retrieval
    DATA: i_file        type string,
          s_fields      TYPE tihttpnvp,
          s_fields_line TYPE ihttpnvp,
          multipart_form type ref to if_http_entity,
          file_upload    type xstring,
          lv_backend     type string,
          success        type string,
          entity         type ref to if_http_entity,
          file           type xstring,
          content_type   type string,
          content_filename type string,
          content_length type string,
          content_disposition type string,
          num_multiparts type i,
          i              type i value 1,
          doEcho         type string value 'X',
          value          type string,
          filename       type ZFILETAB-fileinfo,
          ext1           type string,
          ext2           type string,
          dsn            type string,
          bptype         like sy-uname,
          itab           TYPE ZFILETAB,
          itab_line      TYPE ZFILETABLINE,
          file_ext       type ZFILETABLINE,
          fileinfo       type c,
          zcount         type i.
        filename = '/NewMessge.doc'.
        content_filename = filename.
    Check the extension and assign the content type
        split filename at '.' into ext1 ext2.
        case ext2.
          when 'zip'.
            content_type = 'application/x-zip-compressed'.
          when 'doc'.
            content_type = 'application/msword'.
          when 'txt'.
            content_type = 'text/plain'.
          when 'ppt' or 'pps'.
            content_type = 'application/vnd.ms-powerpoint'.
          when 'xls' or 'exe'.
            content_type = 'application/octet-stream'.
          when 'gif'.
            content_type = 'image/gif'.
          when 'jpg' or 'jpeg'.
            content_type = 'image/pjpeg'.
          when 'htm' or 'html'.
            content_type = 'text/html'.
        endcase.
        dsn = filename.
        OPEN DATASET dsn FOR INPUT IN BINARY MODE.
        IF sy-subrc NE 0.
          zmessage = 'Error opening file'.
          navigation->set_parameter( name = 'zmessage' value = zmessage ).
          navigation->goto_page( 'downloaderror.htm' ).
          exit.
        ENDIF.
        DO.
          READ DATASET dsn INTO <b>file</b>.
          EXIT.
        ENDDO.
        CLOSE DATASET dsn.
    set response data to be the file content
      runtime->server->response->set_data( <b>file</b> ).
      runtime->server->response->set_header_field(
                                    name  = 'Content-Type'
                                    value = content_type ).
      concatenate 'attachment; filename=' filename into content_disposition.
      runtime->server->response->set_header_field(
                                    name = 'Content-Disposition'
                                    value = content_disposition ).
    set the file size in the response
      content_length = xstrlen( file ).
      runtime->server->response->set_header_field(
                                name  = 'Content-Length'
                                value = content_length ).
      runtime->server->response->delete_header_field(
                                name = 'Cache-Control' ).
      runtime->server->response->delete_header_field(
                                name = 'Expires' ).
      navigation->response_complete( ).
    Thanks
    Ajay

    Hi Brian,
    I have the same problem as Ajay Yeluguri. In http mode I can generate a download of an Excel document but when we use the portal in https it doesn't work.
    When I try to download using https it does not pull the file name and path and when I choose download I have a error message : "Internet Explorer cannot download from ..."
    I've test the point 3.2 "... including file up/download" of the BSP application IT00 and it works fine in http and https mode. My problem is not the upload but the download. And in this application the uploaded document is opened in the Internet Explorer window but I want to generate a Save as... window to download the file.
    Have you an idea what i can do to solve my problem.
    Thanks
    Yann

  • Accessing https url EBS R12.1.3 leads to "Internet Explorer cannot display the webpage"

    Hi all,
    DB:11.2.0.3.0
    EBS:12.1.3
    O/S:Solaris SPARC 64 bits
    I.E Browser: 9.0
    Problem Description
    Cloned target database TEST1 from source database TEST2 RMAN full backup. But on accessing https url EBS R12.1.3 leads to "Internet Explorer cannot display the webpage"?
    Autoconfig completes successfully on both DB and Apps Tier and have also ran ojspcompile but still the same issue.
    $ perl ojspCompile.pl --compile --flush -p 2
    logfile set: /t000/test1/inst/apps/TEST1_Hostname/logs/appl/rgf/ojsp/ojsp
    starting...(compiling all)
    using 10i internal ojsp ver: 10
    synchronizing dependency file:
      loading deplist...8095
      enumerating jsps...8095
      updating dependency...0
    initializing compilation:
      eliminating children...6024 (-2071)
    translating and compiling:
      translating jsps...6024/6024 in 7m50s
      compiling jsps...6024/6024 in 35m17s
    Finished!
    Bounced the services there after still the same issue. Could anyone please share the fix if encountered such an issue before.
    Thanks for your time,
    user10088255

    Apache logs have the below entry:
    [Sun Oct 27 02:30:11 2013] [notice]  configured -- resuming normal operations
    [Sun Oct 27 02:30:11 2013] [notice] Accept mutex: fcntl (Default: fcntl)
    [Sun Oct 27 03:03:02 2013] [notice]  configured -- resuming normal operations
    [Sun Oct 27 03:03:02 2013] [notice] Accept mutex: fcntl (Default: fcntl)
    [Sun Oct 27 04:04:59 2013] [notice]  configured -- resuming normal operations
    [Sun Oct 27 04:04:59 2013] [notice] Accept mutex: fcntl (Default: fcntl)
    [Sun Oct 27 04:29:54 2013] [notice]  configured -- resuming normal operations
    [Sun Oct 27 04:29:54 2013] [notice] Accept mutex: fcntl (Default: fcntl)

  • Create a Client Proxy for consume wsdl via https URL return a 110 HTTP code

    Dear all.
    I has new in this forum, and i have a problem when trie to create a client proxy from external WSDL, using https URL, system returns me a 110 http code. For others externs WSDL called via http don´t have any problem, and create client proxy perfect
    Someone can help please.
    best regards in advance.

    Dear Anton I download de WSDL definition in a local file, but when I trie to use, the error persist.
    If I test de URL via WebService navigation option, this work correctly, but if I put this URL thats begins with https, in se80--> create client proxy -->insert URL and then system returns the message HTTP error (return code 110, message "") 
    What it´s happen?.
    Best regards in advance.
    Juliá

  • Resolving non http urls in JSP

    When I include an html hyperlink in my JSP as follows :
    Yahoo
    then the hyperlink on the web page points to
    http://www.yahoo.com
    However if I write the hyperlink as
    Yahoo
    then the hyperlink on the web page is wrongly created as
    http://<hostname>/www.yahoo.com
    This seems to be an issue with the JSP engine. I am using weblogic.
    Is there any way to resolve the non http urls?

    This has nothing to do with the JSP engine.
    <a href="www.yahoo.com">Yahoo</a> IS not a JSP tag and is not touched by the JSP engine.
    The problem you have is just your WEBBROWSER interpreting the url wrongly mainly becasue you have forgotten to provided the protocol your webbrowser has to use.

  • Start a scenario with a http url

    I try to launch a scenario by using an http url witthout success. ( NullPointer exception)
    I use Tomcat 4.1 and I have deployed Matadata Navigator on it
    I send the followings parameters to the URL http://localhost:8080/oracledimn/startscen.do
    name="agent_name" value="192.168.2.12"
    name="agent_port" value="20910"
    name="master_driver" value="oracle.jdbc.driver.OracleDriver"
    name="master_url" value="jdbc:oracle:thin:@manet:1521:std9devb"
    name="master_user" value="odimait_devb"
    name="master_psw" value="d,yayCGpmzmfTBoS38I2zFS,r"
    name="work_repository" value="REF TRAVAIL INVS DEV BORDEAUX"
    name="snps_user" value="SUPERVISOR"
    name="snps_psw" value="fDyXGs0FL,8E6hRhgIVs"
    name="scen_name" value="INVS_PMSI"
    name="scen_version" value="1"
    name="context_code" value="INVS_PMSI"
    name="log_level" value="5"
    name="http_reply" value="HTML"
    I have no problem to run the scenario thru the Metadata Interface itself.
    any idea ?
    thanks for your response
    jbl

    I have found the solution :
    the scenario version was : 001, one have to keep de leadings 0

  • Http URL.openConnection() - URLConnection, not HttpURLConnection

    Is there any way of calling openConnection on an http URL object, and not getting a HttpURLConnection?
    HttpURLConnection extends the URLConnection class in frequently-useful ways, for example by defaulting the Accept and Content-Type headers on requests (plus the frequently baffling getOutputStream/getErrorStream behaviour). However in some contexts, these extensions are profoundly unhelpful.
    In particular, if I'm writing test code, I want to be able to make HTTP requests with missing Content-Type or Accept headers -- that is, without the default values which HttpURLConnection adds -- and there appears to be no way to do that, short of writing my own HTTP protocol handler.
    Failing that, is there any way of deleting request headers from a HttpURLConnection? The obvious connect.setRequestProperty("header", null) doesn't do it (and isn't documented to).
    Best wishes,
    Norman

    Thanks for that. The apache.commons.net classes look useful, but I think they end up being a little too low-level. The URLConnection class does usefully abstract the boring details of the HTTP transaction -- the only problem is that HttpURLConnection tries a little too hard.
    I think my question really boils down to the following: is there a way of switching off the extra functionality/defaults in HttpURLConnection? (if so, it's insufficiently clearly documented).
    I remember submitting an RFE to this effect a while ago, but can't find the entry in the bugs database (I apparently can't search for 'submitter').

  • Convert file url to http url in jsp

    Hi, is there a way to convert file url (file:/opt/test/test.pdf) to http url? I have tried so hard and still stuck on it. Please give help. Thanks in advance!

    I found another solution to dispaly my pdf file on browser without storing the pdf file to application real path. My application generated PDF file and stored it to some place like /opt/report/**.pdf. Then define ContentType("application/vnd.fdf"), use java InputStream and outputStream to operater file.
    I deeply appreciate the help from everyone in this forum. I hope my solution could help someone who have the problem like me.
    Here is the code:
    response.setContentType("application/vnd.fdf");
    File f = new File(filename);
    DataInputStream dis = new DataInputStream(new FileInputStrea(filename));
    OutputStream osout = response.getOutputStream() ;
    int data=0;
    long count=f.length();
    try
    while(count !=0)
    data = dis.readByte();
    osout.write(data);
    count--;
    }catch(Exception e)
    System.out.println(e.toString());
    dis.close();
    osout.flush();
    osout.close();

  • About https certificate problem

    Hi,All
        I change my OS datetime bakc to 2010,and send https request to my website api,https://api.xxxxxx.com,the httpService always fault,the fault detaial as
    FaultEvent fault=[RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: IO Error。 URL: https://api.xxxxxx.com"].
    Is there anyway to prevent this error , thanks.

    Thanks for reply.
    Code like this
    var http:HTTPService=new HTTPService();
    http.url ="https://api.xxxxxx.com/getSomething?p1=x" ;
    http.method = HTTPRequestMessage.GET_METHOD;
    http.requestTimeout = requestTimeout;
    var token:AsyncToken = http.send();
    I think the code is ok.
    The code work correctly when the computer datetime setting is right.
    But when i change the computer to a few year ago,the http request always fualt.
    And  open the url in ie explorer,and was told the certificate is expire,so i think the problem is all about certificate.
    Is anyway can make it work without change the system time?

  • Insert images using HTTP url

    Hi,
    I would like to know whether or not it is possible to place an image in a rectangle block using an http url to call the image? I have an xml file I want to layout automatically, it has
    elements with href attributes which contain the url's. The problem is when I use images on my local hard drive with href="file:///url" it works fine, but when I use images on a web server with href="http://www.domain.com/images-directory/image.jpg" it doesn't work.
    Can anybody help me with this?

    Sure!
    You can get one of these very recommendable books:
    http://foundationphp.com/egdwcs3/
    http://foundationphp.com/phpsolutions/
    Though if you don't want to pay try this, although not very
    easy to read:
    http://www.php.net/manual/en/
    Good luck!

Maybe you are looking for