HTTP  Interface.

hi experts!!!
i am working in a class builder work for HTTp Interface.in that i have implimented the Create,Get Comads using open dataset which opens /create files in server.
now i want to set Mime type. in Create i am not getting the Mime type where i have folwoing code:
l_entity = m_server->request.
l_data = l_entity->get_data( ).
l_mimetype = l_entity->get_header_field(
name = 'Content-Type' ).
can any one please help me how to set Mime type and please send mr some documents on this task..
please help me...
mahesh

Hi
depends what point in the end to end communication path you are considering. Certainly at your web server you will see HTTP over TCP/IP. But at the device, things are not so simple. In Telecomms terms, your device has a number of communications bearers that it supports. These are not protocols, more entire comms systems. So for example, SMS text messaging in GSM networks is often described as a bearer and it can be used to provide the transport for http or wtp (WAP)traffic. The same is true of GPRS or of CSD (circuit switched data). Each of these is a wireless telecomms system of some sort and your device will support one or more of them (my examples are all GSM ones, if you're in the US you have other, similar systems such as CDMA and TDMA networks... either way, the principal is the same). So, a kind of tunneling approach is taken at the device, usually refered to as "bearer adaptation". Your MIDLet uses HTTP, but the comms stack ultimately will result in this being handled by one of the underlying bearers.
As for Socket support, well I guess you have your answer. It may be difficult or impossible to provide a true socket interface if the underlying bearer(s) are not suited to this.
Some MIDP devices do support socket communications. This is non-standard however and you should not expect to find this support on every device.

Similar Messages

  • Sending MATMAS05 IDOC via XML-HTTP Interface (without XI)

    Dear all,
    I have to send the MATMAS05 IDOC via XML-SOAP-HTTP Interface to a subsystem. Sending works (the sub-system receives the SOAP-Request with the MATMAS05 as Body). So far so good. Now the SAP System is waiting for an answer (synchronous communication). How should this answer look like?
    We receive the Error EA390 "Problem with SOAP Class" - execute_processing: entry result table
    Can anybody give me a hint how the response should look like.
    Many thanks and best regards
    Roman

    Hello Sven,
    we find a solution. As far as I remember, there is a flag to send without waiting for answer (or technical better to not rely on SOAP standard).
    Look in WE21 and the XML_HTTP Port you use. Uncheck the "SOAP Protocol" flag. Then it should work.
    HTH and Best regards
    Roman

  • Content Server HTTP interface

    We need to implement HTTP interface for Archivelink. Is it possible to use BSP for this purpose? The interface uses standard GET and POST request with modified HTTP header (for detail see [documentation|http://help.sap.com/saphelp_nwpi71/helpdata/en/9b/e8c186eaf811d195580000e82deb58/frameset.htm]). Other thing is multipart/form-data handler necessary for manipulation with multi-file documents. The basic functionality is easy to implement for example in PHP (ASP, ...), but we prefer SAP-only solution. Otherwise,  an additional interface between SAP and PHP application has to be written.
    Thanks.
    m.

    yes it is very much possible both from BSP as well as from plain ABAP (using cl_http_client class)

  • VLC - http interface error

    I've searched the web and found very few clues to why this happens. To run vlc -I http --media-library works fine as to connect. The problem is that in the play-list I get nothing most of the time. At times my library suddenly may appear, but 95% of the time it won't. Some clicks in the play-list menu give this output: http interface error: this needs to be fixed to use the new playlist framework.
    Since I see few reports about this it might indicate that I'm doing something wrong here. I really want it to work because this is a very easy way of getting a remote box (it like a music media system) to play mms streams. I've tried the current version and also the git version from AUR. I tried to build the nightly build but the connection doesn't work at the moment. Anyway same problem with both.
    Any suggestions?

    I haven't been able to understand why the http code of VLC fail to show playlist and medialibrary. My own solution is simply to edit VLC's index.html and add whatever radio-streams I want. I can't spend more time on this anyway, so more important is that it's working the way I want it to.

  • XML/HTTP interface for AccessManager 7.1

    Hello,
    I'm using the XML/HTTP interface of Access Manager 7.1
    (such as: http://server_name.domain_name:port/service_deploy_uri/authservice)
    and it works fine, not only the interface for authservice
    but policyservice and sessionservice. This is good.
    (For some reason I can't use Java/C API, nor the policy agent)
    Problem is, I couldn't find any description about the XML/HTTP interface for policyservice and sessionservice in the Access Manager 7.1 documents.
    (for authservice, I found at
    http://docs.sun.com/app/docs/doc/819-4675/adufv?a=view
    and
    http://docs.sun.com/source/817-7644/appB_sessionlifecycle.html
    though the latter one is the document for older version of Access Manager)
    Is there any documents for XML/HTTP interface of Access Manager 7.1?
    or, officially we should not use this interface?
    Windsor

    Thanx again. We will continue to use Access Manager 7.1 for a certain period of time so we can't use REST interfaces nor Identity Services.
    If we can use these XML/HTTP interface in AM7.1, we will be very happy. Otherwise we have to build a proxy server (talk to Access Manager by C API and talk to clients by XML/HTTP way) but technically it seems completely wasteful because you can talk to Access Manager by XML/HTTP directly.
    Is it possible to get any (paid) support
    about these XML/HTTP interfaces from Sun Microsystems?
    (we don't need any "version-up" support, but just only AM7.1 support for these interfaces)

  • Http interface with class

    HI EXPRTS!
    i am working on the Class which is the copy of CL_HTTP_EXT_CSIF
    BUT I HAVE USED OPEN DATASET for Create,Get and delete comands. which is used to interface with HTTP.
    when i execute the same with using Url i am geeting correct resules but when i try to create file using RSHTTP80/90/70/71 standerd reports its creating a file but giving a status as 500 internal server/time out error.
    can you please tell me what might be the proble,.
    answers will be rewarded
    mahesh

    Problem solved. The key is that every ejbCreate method NEEDS ejbPostCreate iwth exactly the same signature.
    Solution source: http://www.thatsjava.com/java-enterprise/24282/ see comment #4

  • RFC to HTTP Interface - Access using NULL object reference is not possible

    Hi All,
    I am working on a Interface RFC to HTTP where in I am sending the data to a third party system.
    Using PI 7.3 and Adapter type XI to send this data.
    I am getitng an error Short dump occured when executing message in qRFC queue <Queuename>: Date/time 02.12.2011 08:44:57, user XXXXX, runtime error: Access using NULL object reference is not possible.
    <SAP:Code area="INTERNAL">QRFC_SYSTEM_DUMP</SAP:Code>
    I am entering the parameters such as target host,service number,path correctly with addrseing type as URL.
    The message is failing in the call adapter step with the above error.
    There are no messages stuck in SMQ2 as well.
    Now on the other if I use the  adapter type HTTP_AAE the messages is getting successfully delivered with the same parameters mentioned above.But as we know it is a plain adapter and will not have the SOAP envelope.
    We would want to send the data using the XI adapter.
    Any idea as why this issue is happening?
    Helpful answers will be rewarded points.
    Thanks & Regards,
    RK

    Hi,
    please go through below threads,
    Error for all the interfaces
    Access via NULL object reference not possible., error key: RFC_ERROR_SYSTEM
    hope it will help you
    regards,
    ganesh

  • HTTP timeout issue in synchronous Proxy to HTTP interface

    Hi All,
    I am working on an Proxy(interface - TCode-sproxy) to HTTP Synchronous scenario.
    In few cases the target API link takes 15-30 minutes to respond back.
    But I'm getting timeout error saying that connection timed out within 5-6 minutes only.
    What parameters(eg.integration engine configuration) I need to set in SAP CRM as well as in SAP PI so that the correct response should get updated into SAP CRM system and for not having timeout problems?
    Regards,
    Amit P

    Hi All,
    I have got below mentioned error response after 10 minutes in SAP PI PRD system. But HTTP_TIMEOUT value is set as 72,00,000 in sxmb_adm. Is there any other parameter set which is overwriting the above parameter value.
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
      <!--  Call Adapter
      -->
      <SAP:Error SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="PLAINHTTP_ADAPTER">ATTRIBUTE_CLIENT</SAP:Code>
      <SAP:P1>402</SAP:P1>
      <SAP:P2>ICM_HTTP_TIMEOUT</SAP:P2>
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>HTTP client code 402 reason ICM_HTTP_TIMEOUT</SAP:Stack>
      <SAP:Retry>A</SAP:Retry>
      </SAP:Error>
    Also in SAP CRM system, (after 7 minutes) response not received has got updated in the database table. Don't know about parameters set in SAP CRM system.
    But my target HTTP system is still processing the request and yet to respond. Mostly it'll respond after around 30 minutes.
    We'r monitoring in the target system also.
    Please guide me to resolve this issue at the earliest since this is the Production system's issue.
    Regards,
    Amit P

  • Http interface(behind the seen is it tcp/ip)

    Well we use connection framework for to talk with webserver(Behind the seen is it using tcp/ip.If it is using tcp/ip then why midp don't give access to directly use socket class also.and who give the implementation of Connection object.I mean all are interfaces under the Connector interface.
    HttpConnection c = (HttpConnection)Connector.open(url);
    Can any body tell the reason for it.
    Thanks
    Jawwad Ahmed

    Hi
    depends what point in the end to end communication path you are considering. Certainly at your web server you will see HTTP over TCP/IP. But at the device, things are not so simple. In Telecomms terms, your device has a number of communications bearers that it supports. These are not protocols, more entire comms systems. So for example, SMS text messaging in GSM networks is often described as a bearer and it can be used to provide the transport for http or wtp (WAP)traffic. The same is true of GPRS or of CSD (circuit switched data). Each of these is a wireless telecomms system of some sort and your device will support one or more of them (my examples are all GSM ones, if you're in the US you have other, similar systems such as CDMA and TDMA networks... either way, the principal is the same). So, a kind of tunneling approach is taken at the device, usually refered to as "bearer adaptation". Your MIDLet uses HTTP, but the comms stack ultimately will result in this being handled by one of the underlying bearers.
    As for Socket support, well I guess you have your answer. It may be difficult or impossible to provide a true socket interface if the underlying bearer(s) are not suited to this.
    Some MIDP devices do support socket communications. This is non-standard however and you should not expect to find this support on every device.

  • SOAP or HTTP interface

    Hello,
    I'd like to use Berkeley DB XML remotely. Has anyone released a REST or SOAP wrapper around it ?
    Thanks,
    Fabrice

    Hi,
    I just checked out and compiled against dbxml-2.2.13, and it seems to run with no problems.
    I haven't run a full test suite, since sourceforge is currently down and the Maven build of the test suite is unable to download dependancies.
    Perhaps you forgot to pass it a configuration file?
    If not, make sure the db-home in the xml file is correctly set and exists with the correct permissions.
    There is an example configuration file in the sources : <wsroot>/server/src/server/nxqd-config.xml
    I started the server with the command :
    src/server/nxqd -d -f ./src/server/nxqd-config.xml
    Nxqd Server V0.1.6
    Built on Sleepycat Software: Berkeley DB 4.3.29: (September 6, 2005)
    Check http://nxqd.sourceforge.net for updates.
    [info] Starting nxqd daemon
    [info] Socket connection successful 4
    [info] 10 worker threads started
    Hope this helps.
    (nxqd developer)

  • SAP Content Server HTTP Interface ignores secKey

    Hello.
    I try to implement an own Content Server with the help of this url: http://help.sap.com/saphelp_nw04/helpdata/DE/f5/9561f5f3b111d1955b0000e82deb58/frameset.htm
    The problem is, if try to test these functions on the SAP CS, secKey will always be ignored. The parameters 'docProt', 'security' and 'Protection' are set to on.
    The function 'putCert ' also does not work and always show the error 'security.cpp(615): SsfVerfiyError 12'.
    Thanks for the help.
    Best Regards
    René

    Hi Alexander,
    SAP KM always has to access on the architecture level where the document object model is defined. There is no generic repository manager (the connectory from KM to xy) for ArchiveLink or SAP Content Server.
    Repository managers access e.g. on the level of mySAp PLM DMS for which one of these connectors is available.
    Regards,
    Karsten

  • Help! with creating a J2ME program using the http connectivity interface

    So this is what I have to do using the http connectivity interface:
    1.Creating two threads – one for communication (receiving and sending) and the other (main) thread will be for interaction with the user.
    2.The main thread will make use of three midlet forms. The first form will ask for web page address (URL) and separately for a delimiter which will separate the words in the URL document, the third form will display the ratio of all symbols on the page and the number of occurrences of the delimiter specified
    3.The second thread should perform http connectivity to the WWW, utilise the web page address supplied and connect to the appropriate web page and read its content, count all symbols on the chosen page, count the number of occurrences of the delimiter given as user input on the same form as the web page address, calculate the ratio between the two and pass this information to the first thread to display.
    I have many questions but my main concerns are:
    *1. How to communicate using HTTP interface within a thread*
    *2. What is a delimiter in the context above and how should it be implemented*
    I've been thrown in at the deep end with little programming experience with this assignment. If anyone can share a similar example or answer my concerns I'd be more than happy.
    Thanks in advance.

    thelane wrote:
    hi thanks for the response.
    As I said I have coded in other languages before, but this is a new for me in java. I needed to get it working quickley. Now I can clean up.
    I will have a look at method and see how I get on.
    ANy similiar examples would be great.
    Thanks.I can certainly give you a similar example.
    Say you have code such as this:
      int a = 10, b = 11;
      int temp = 1;
      for(int i = 2; i < a; ++i) {
       temp *= i;
      System.out.println(a + " factorial is " + temp);
      temp = 1;
      for(int i = 2; i < b; ++i) {
       temp *= i;
      System.out.println(b + " factorial is " + temp);Each section of code takes the factorial of the current variable an outputs it. The factorial code can be placed within a method to be called more easily, as such:
    public void factorial(int num) {
    int temp = 1;
    for(int i = 2; i < num; ++i) {
      temp *= i
    System.out.println(num + " factorial is " + temp);
    }Then, whenever you need to call it, you can just do so:
    int a=10,b=11,c=12;
    factorial(a);
    factorial(b);
    factorial(c);

  • PI 7.11 - Sync HTTP receiver adapter with response XML file

    Hi
    We have a File to HTTP scenario in which we need a sync HTTP interface. We send a file to the HTTP address and receive a XML acknowledge. As I read in this forum: sync HTTP interfaces are not possible with the "standard" HTTP adapter. So I found an entry which recommended to use the SOAP adapter instead.
    I configured it:
    - Do Not Use SOAP envelope
    - modules: RequestResponseBeans, CallSapAdapter, ResponseOneWayBean
    If i use this scenario, i get following error in the RWB - Message Display Tool:
    Delivering the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.lang.NullPointerException: while trying to invoke the method com.sap.engine.interfaces.messaging.api.Message.getMessageId() of an object loaded from local variable 'message1'.
    I testet this scenario using CURL and it worked properly. Should this kind of scenario work with the SOAP adapter or do I need to buy/develop an own adapter? Is in NW7.3 possible to configure sync HTTP scenarios?
    Thanks in advance
    Michael

    Hi
    actually i use a simple HTTP receiver CC with the setting "XI Payload in HTTP Body" to send a XML datafile to a webpage (java servlet). This part works fine by now. But, this servlet would also send back a status information to the state of the received datafile, which I like to catch.
    e.g. HTTP response from the servlet (catched using CURL):
    HTTP/1.0 403 Forbidden
    Server: Apache-Coyote/1.1
    X-Powered-By: Servlet 2.4; JBoss-4.3.0.GA (build: SVNTag=JBPAPP_4_3_0_GA date=200801031548)/Tomcat-5.5
    Set-Cookie: JSESSIONID=OALHMomjR9TVgIATi8SrPQ**.ajp13_ls_1; Path=/ls
    Content-Type: text/xml
    Date: Tue, 06 Mar 2012 16:19:56 GMT
    X-Cache: MISS from proxy.xxxx.com
    Via: 1.0 proxy.xxxx.com:xxxx (http_scan/4.0.2.6.19)
    Proxy-Connection: close
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?><!DOCTYPE transportordersfromls [ <!ELEMENT transportordersfromls (userid, clntid, msgid, (transportorderfromls+ | error))> <!ATTLIST transportordersfromls vers CDATA #REQUIRED> <!ELEMENT userid (#PCDATA)> <!ELEMENT clntid (#PCDATA)> <!ELEMENT msgid (#PCDATA)> <!ELEMENT transportorderfromls (refid, status)> <!ELEMENT refid (#PCDATA)> <!ELEMENT status (ok | error+)> <!ELEMENT ok EMPTY> <!ELEMENT error EMPTY> <!ATTLIST error reason (XMLError | SystemNotAvailable | ApplicationError | OTHER) #REQUIRED message CDATA #REQUIRED> ]>
    <transportordersfromls vers="1.0">
        <userid/>
        <clntid>XXXXX</clntid>
        <msgid>0</msgid>
        <error reason="OTHER" message="Access denied"/>
    </transportordersfromls>
    Michael

  • Employee Photo - External HTTP service

    Hi all,
    currently I trying to setup the Employee photo dysplay in the portal Iview photo and in PA20/30 transaction. My problem is that I have the requirement to use an external http service that doesn't supports SAP Content Server HTTP Interface and it requires Basic authentication.
    The access to the picture can be done by a direct url http://hostname/path/pernr.jpg ou using a dll service, http://hostname/path/service.dll?docid=pernr.
    Does anyone ever face a similar problem, is there a way to implement this using "standard" features?
    For example put the access logic to the picture in a function module or other object, and setup the z* object has the content server implementation.
    Thanks and best regards,
    Paulo Ruivo

    Hello
    Where are you trying to store the photos? In an external storage system or in the database?
    If you are using an external storage system, please note that you must use either a different content server installation for each system, or at least a different content repository.
    In case you are using the database storage, then make sure you have followed all the instructions from the note 595563 to do this. In case everything is fine, please go to OAC0 and test the connection to your content repository.
    Additionaly please ensure that you have the lastest version of SAPHTTP installed on your system. Please review the SAP  note 615354 for more information on this.
    Thanks and Kind Regards
    Ramana

  • HTTP adapter: where to see the transformed output message

    All,
    I am a beginner in Webservices/HTTP interfaces in PI. I have to make changes on an existing custom interface which uses HTTP adapter. I have done the changes in the message mapping and tested it using the test tool. It seems OK.
    However when we do end-to-end testing, data is flowing but  bussiness needs a copy of the transformed data that has been sent out from PI.
    I checked RWB->Message Monitoring-> Integration server(Database) and it showed the successful message. When I drilled further into this message, it showed the SOAP message (Version 0 and Version 1 with payload). The payload showed the data that ECC had sent to PI and not the transformed data that went out from PI to 3rd party via HTTP adapter.
    Appreciate if you could guide me in right direction regarding where to see the Output/Transformed data that is actually sent to third parties.
    I have checked SXI_MONITOR as well in PI but that also shows the payload only and not the transformed data.
    Regards
    SK
    Edited by: Shirin K on Feb 18, 2010 3:10 PM

    Hi ,
    Go to particular message in SXI_MONITOR. In Message there will be window on left hand side. There will be Technical Routing.
    Technical Routing> Payloads->Maindocument. This shows the Output data.
    If you are not able to see Technical Routing inform you basis team they need to do some configuration in SXMB_ADM
    Edited by: Rajhans Abhay on Feb 18, 2010 4:29 PM

Maybe you are looking for

  • Javascript alert script needed when calculation does not equal 100

    I have created a fillable form and have a total box which I've set to calulate the sum of Field1, Field2, Field3 and Field4 which works well. I would like to add a javascript alert if the total amount does not add to exactly 100 to stop the user subm

  • Family Sharing Approval of App keeps Looping

    I have my son and daughter setup for Family Sharing. My son has requested for two apps from his iMac (OS 10.10). On My iMac (also OS 10.10) I have selected one notification and have hit "APPROVE' button. It prompts me to sign in to purchase the app (

  • Settle part of production order to cost center

    When settling a production order, the balance of some accounts in the production order should be settled to a certain cost center (the rest of the order balance settle to material).  The requirement is to settle the balance amount while settlement ru

  • OS X 10.5.7 and ATV 2.3.1

    Each time I upgrade my ATV to 2.3.1 after doing a factory restore, it seems that the ATV will disappear from the device list... Weird, but as long as I leave it 2.0.2 the ATV seems to be working fine. Any ideas in this issue. Thanks in advance.

  • XML Schema Substitution Group

    Hi, Can anybody please explain what are ***Substitution Groups*** in XML Schema with a simple example as this concept is little bit fuzzy for me. Thanks.