POST HTTP/1.1 via GPRS

Hi,
I'm developing an MIDP 2.0 app to use on a Palm device, which use GPRS to connect to a server. I've got a problem using POST requests. By using HTTP1.1, packets are chunked. The problem is that at the server, by tracing incoming packets, I realized that HTTP headers of incoming packets are malformed (except of the first).
Does anyone have a clue about it?
Thanks by advance.
zak

Hi,
Thanks for your response,but actually I use a separate thread; For content-type, it's set to "text/xml" since data sent is in XML (in fact, I do webservices calls using kSOAP)
I searched forums for similar problems. I heard about problems with WAP gateways that don't support HTTP trafic. maybe it's about that ??
zak

Similar Messages

  • XML IDOC post to R/3 Via WAS - want to see error content with JavaScript

    Hi,
    I am posting XML IDOCs to our R/3 system via a webpage that I have built with JavaScript.  I am posting to the WAS, which is configured to read the XML IDOC with SAP's standard class handler CL_HTTP_IDOC_XML_REQUEST.  We are on basis 620 support pack SAPKB62041.
    In my webpage, I have the JavaScript code set to read the status and statusText so I can see the response from WAS when I post my XML IDOC.  However, I am getting back very generic information when I encounter a 409 error.  THe statusText is always "input_not_found".  So I debugged the class handler code and found that SAP is returning back the more descriptive error info in HTML format.
    I ran a packet sniffer to see what WAS returns and the info looks like this:
    <html><head><title>IDoc-XML-inbound not ok</title><h1>IDoc-XML-inbound not ok</h1></head><body>
    E:Table Lookup Error:300 Cannot map value for field MESCOD in table ZFI_IF_IDOCORG using values
    SNDSAD = |TE|  and RCVLAD = |GL|  and MESTYP = |ACC_DOCUMENT|</body></html>
    I want to know how I can get my webpage to read this HTML info and store that into an alert so I can read this text that I'm returning back to the HTTP post.
    This is how my script looks.  I'm using IE6.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
         <title>Test XML</title>
    <SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
    <!--
    function XMLHTTPButton_onclick(DataToSend) {
         var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
         xmlhttp.Open("POST","http://some_server:1089/sap/bc/zxml_idoc?sap-client=200&sap-language=EN",false);
         xmlhttp.setRequestHeader("Content-Type", "text/xml");
         xmlhttp.send(DataToSend);
            alert(xmlhttp.Status);
            alert(xmlhttp.statusText);
         alert(xmlhttp.responseXML.xml);
    //-->
    </SCRIPT>
    </head>
    <body>
    <BR>
    This page posts to
    <BR>
    http://some_server:1089/sap/bc/zxml_idoc?sap-client=200&sap-language=EN
    <FORM name=xmlform method=post >
    <P><TEXTAREA style="WIDTH: 623px; HEIGHT: 369px" name=xmlData rows=23 cols=77>
    </TEXTAREA>
    <P>
    <INPUT type="button" value="Submit XMLHTTP" id=XMLHTTPButton name=XMLHTTPButton
    LANGUAGE=javascript onclick="return XMLHTTPButton_onclick(document.xmlform.xmlData.value)">
    </form>
    Previously with this class handler, SAP returned the detailed info back to the "alert(xmlhttp.statusText)" and I had no problem seeing the return info.  But now they have decided to format it in HTML and I don't know how to view this text since it has no ID on it to pull this into an alert box.
    If anyone has any ideas, please let me know.
    Thanks,
    Andrea

    Ok!
    I have solve the problem. So, I was trying to connect via SSO within an user that was not registered in R/3 and I forgot it.
    Sorry for the inconvenience.

  • Video calling in x6 via gprs internet

    sir,can u tell me how can i do video calling via gprs internet like lumia 710 skype video calling,you can tell me about the software like skype which can do video calling in nokia x6 or email the link.

    Hi jpbk,
    Welcome to the Nokia discussion boards!
    You can actually download Skype here from the Nokia store and installing either through Nokia Suite, or by sending an SMS to your device. You will need to have a Nokia store account to download applications from there.
    Let us know how you get on.
    Regards,
    haZey
    If you find this post helpful, a click upon the white star at bottom would always be appreciated.
    If it also solves your problem, clicking ACCEPT AS SOLUTION below it will benefit other users!

  • Send text via GPRS to MIDlet

    I want to send message text via GPRS to my MIDlet
    But I wonder how to 'push' it...
    I've got the IP address of the MIDlet, but i dont think simply push the message to the IP address will do...coz IP is 'shared' by every application in the mobile phone right?
    I wonder should i have an indicator to verify that message is for my MIDlet.
    Or I should write a class to be a 'listener' in JAVA to read the data if any?
    Any advice will be very very much appreciated!

    U can do one think Write Servlet or JSP Application on server.And MIDLEt open one HTTP Connection which access the servlet of the server Then that servlet read the file from anywhere and write the data on outputstream of the httpconnection object

  • How to connect j2me game to another j2me game via gprs

    i create a simple game like tic tac toe, but i still confuse how can i play with my friend via gprs. need help in server configuration, and what connection should i use http connection or socket connection. if anyone know the script for my j2me and server please tell me.

    If you're using MIDP 1, which is what you need if you plan on deploying the game on an available phone, then the only protocol that you can count on being supported is Http. So if you're looking for portability across a large number of devices then that's what you should use (HttpConnection specifically). Also, since there is no push architecture in MIDP 1, you'll need to use the technique called "polling", which means you're clients are going to have to send requests to the server every few seconds to check for updates in the game.
    I actually did a little 2 player tic tac toe to teach myself MIDP, and the code is available at planet source code:
    http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=3398&lngWId=2
    (If the link doesn't work just make a search for MIDP under the Java section).
    You have to add a line to the JAD file that has the URL of the servlet, or you can replace:
    String url = getAppProperty("TicTacToe.URL");in sendMessage() with a hard-coded string.
    The servlet is very very crude, since I have little experience using Java on the server side and I was more interested in doing the client, and it just links the first two available players and automatically starts a game. But I think it might serve as good starting point for you. And of course, if you are more comfortable with other server-side technologies then you should use them instead of a servlet.

  • Synchronization via GPRS not stable

    Hi all,
    we're working on MI 7.0 SP11 with MAU 1.0. For synchronization we will use cradle as well as GPRS. Using cradle, sync works fine. But when we sync via GPRS, the connection doesn't seem to be stable.
    Since a loss of connection causes the device to sync endless, we set the following parameters:
    MobileEngine.Sync.TerminateConnectionEnabled true
    MobileEngine.Sync.ConnectionTimeout               180000   (3 minutes)
    MobileEngine.Sync.WaitForResultsTimeout         1800000 (30 minutes)
    MobileEngine.Packaging.Activated                      TRUE
    MobileEngine.Packaging.MaxPackageSize          2
    Still we're not really happy with synchronization via GPRS. Terminating connection seems to work only between upload and download and timeout doesn't really work as well.
    Does anyone have experience with sync via GPRS and is willing to share her/his knowledge on that topic? Any help is appreciated.
    Thanks an Best Regards,
    Uwe

    Hi Karthik,
    we're working with Vodafone cda (CorporateDataAccess). We use the same access for quite a lot of employees with mobile mail and intranet access (Nokia Communicator). With that, I haven't heard about any problems regarding reliability.
    We were able to reproduce the sync problem yesterday. What we found out, is that the sync stops after sending the outboud file. The device then usually waits for the inbound file. In our case, the inbound file is received but the mobile device doesn't recognize this. Is get's stuck in the following loop and then just stops (doesn't refresh the screen anymore):
    [20070613 08:55:12:261] D [MI/Sync                  ] End: Dumping file /MI/sync/HOERTER.U/out/package.out
    [20070613 08:55:12:265] I [MI/Sync                  ] Outbound file size for user HOERTER.U is 20087
    [20070613 08:55:12:268] P [MI/Sync                  ] Do not use http proxy (system properties update)
    [20070613 08:55:12:281] P [MI/Sync                  ] Use following gateway for synchronization: http://sapwie.xxxxxx.de:8043
    [20070613 08:55:12:289] I [MI/Sync                  ] GzipDataCompression: Gzip data compression is switched on
    [20070613 08:55:13:001] P [MI/Sync                  ] Sending outbound file compressed to server.
    [20070613 08:55:13:020] P [MI/Sync                  ] Outbound file was compressedly sent.
    [20070613 08:55:20:944] D [MI/Core                  ] Set current application to 'MOBILEENGINE_JSP'
    [20070613 08:55:20:947] D [MI/API/Runtime/JSP       ] AbstractMEHttpServlet:doGet(...) called
    [20070613 08:55:20:951] D [MI/API/Runtime/JSP       ] AbstractMEHttpServlet:getEvent() done with event name = ''
    [20070613 08:55:20:957] D [MI/API/Runtime/JSP       ] AbstractMEHttpServlet:dispatch request to '/jsp/home/home.jsp'
    [20070613 08:55:31:221] D [MI/Core                  ] Set current application to 'MOBILEENGINE_JSP'
    [20070613 08:55:31:224] D [MI/API/Runtime/JSP       ] AbstractMEHttpServlet:doGet(...) called
    [20070613 08:55:31:228] D [MI/API/Runtime/JSP       ] AbstractMEHttpServlet:getEvent() done with event name = ''
    [20070613 08:55:31:235] D [MI/API/Runtime/JSP       ] AbstractMEHttpServlet:dispatch request to '/jsp/home/home.jsp'
    [20070613 08:55:41:511] D [MI/Core                  ] Set current application to 'MOBILEENGINE_JSP'
    [20070613 08:55:41:516] D [MI/API/Runtime/JSP       ] AbstractMEHttpServlet:doGet(...) called
    [20070613 08:55:41:519] D [MI/API/Runtime/JSP       ] AbstractMEHttpServlet:getEvent() done with event name = ''
    [20070613 08:55:41:527] D [MI/API/Runtime/JSP       ] AbstractMEHttpServlet:dispatch request to '/jsp/home/home.jsp'
    [20070613 08:55:51:827] D [MI/Core                  ] Set current application to 'MOBILEENGINE_JSP'
    [20070613 08:55:51:831] D [MI/API/Runtime/JSP       ] AbstractMEHttpServlet:doGet(...) called
    [20070613 08:55:51:835] D [MI/API/Runtime/JSP       ] AbstractMEHttpServlet:getEvent() done with event name = ''
    [20070613 08:55:51:842] D [MI/API/Runtime/JSP       ] AbstractMEHttpServlet:dispatch request to '/jsp/home/home.jsp'
    [20070613 08:56:02:146] D [MI/Core                  ] Set current application to 'MOBILEENGINE_JSP'
    [20070613 08:56:02:149] D [MI/API/Runtime/JSP       ] AbstractMEHttpServlet:doGet(...) called
    [20070613 08:56:02:153] D [MI/API/Runtime/JSP       ] AbstractMEHttpServlet:getEvent() done with event name = ''
    [20070613 08:56:02:160] D [MI/API/Runtime/JSP       ] AbstractMEHttpServlet:dispatch request to '/jsp/home/home.jsp'
    [20070613 08:56:12:462] D [MI/Core                  ] Set current application to 'MOBILEENGINE_JSP'
    [20070613 08:56:12:467] D [MI/API/Runtime/JSP       ] AbstractMEHttpServlet:doGet(...) called
    [20070613 08:56:12:471] D [MI/API/Runtime/JSP       ] AbstractMEHttpServlet:getEvent() done with event name = ''
    [20070613 08:56:12:479] D [MI/API/Runtime/JSP       ] AbstractMEHttpServlet:dispatch request to '/jsp/home/home.jsp'
    [20070613 08:56:24:954] D [MI/Core                  ] Set current application to 'MOBILEENGINE_JSP'
    [20070613 08:56:24:959] D [MI/API/Runtime/JSP       ] AbstractMEHttpServlet:doGet(...) called
    [20070613 08:56:24:963] D [MI/API/Runtime/JSP       ] AbstractMEHttpServlet:getEvent() done with event name = ''
    [20070613 08:56:24:971] D [MI/API/Runtime/JSP       ] AbstractMEHttpServlet:dispatch request to '/jsp/home/home.jsp'
    [20070613 08:56:35:347] D [MI/Core                  ] Set current application to 'MOBILEENGINE_JSP'
    [20070613 08:56:35:350] D [MI/API/Runtime/JSP       ] AbstractMEHttpServlet:doGet(...) called
    [20070613 08:56:35:353] D [MI/API/Runtime/JSP       ] AbstractMEHttpServlet:getEvent() done with event name = ''
    [20070613 08:56:35:359] D [MI/API/Runtime/JSP       ] AbstractMEHttpServlet:dispatch request to '/jsp/home/home.jsp'
    [20070613 08:56:45:757] D [MI/Core                  ] Set current application to 'MOBILEENGINE_JSP'
    [20070613 08:56:45:760] D [MI/API/Runtime/JSP       ] AbstractMEHttpServlet:doGet(...) called
    [20070613 08:56:45:764] D [MI/API/Runtime/JSP       ] AbstractMEHttpServlet:getEvent() done with event name = ''
    [20070613 08:56:45:770] D [MI/API/Runtime/JSP       ] AbstractMEHttpServlet:dispatch request to '/jsp/home/home.jsp'
    In case of a successful sync, it should continue like this:
    [20070613 10:42:01:472] P [MI/Sync                  ] Receiving inbound file compressed from server.
    [20070613 10:42:01:674] P [MI/Sync                  ] Inbound file was compressedly received.
    [20070613 10:42:01:678] I [MI/Sync                  ] Inbound file size for user HOERTER.U is 26957
    [20070613 10:42:01:680] P [MI/Sync                  ] Synchronisation successfully connected
    [20070613 10:42:01:685] D [MI/Sync                  ] Begin: Dumping file /MI/sync/HOERTER.U/in/inbound.sync
    Any idea why the device stops? We have that problem with different devices so it shouldn't be related to modem or hardware. We also tried to change parameter icm/conn_timeout but that didn't really have an effect.
    Best Regards,
    Uwe

  • How to STOP syncing with Outlook via GPRS?

    I use an unlocked iPhone 3G with a prepaid mobile card.
    Everytime I open my Calendar function on the iPhone (just to see the days and dates) the iPhone attempts to sync over the air with my Outlook account calendar via GPRS.
    This costs a bomb on the prepaid card, and I want to stop the sync function.
    Would someone kindly tell me how to STOP the iPhone from syncing with my Outlook Calendar?

    If calendar events are synced over the air, this means you are accessing an Exchange account or a MobileMe account.
    If you don't want to sync calendar events over the air with the account, you need to turn Calendars off for over the air syncing for the account preferences on your iPhone. This will erase all calendars and calendar events from your iPhone and you will need to sync direct with a supported application on your computer via the iTunes sync process. If an Exchange account with Outlook on a Winblows PeeCee, this will not be possible.

  • Connecting MBP to internet via gprs/bluetooth 6630

    hello guys,
    I'm having an unusually problem
    my mobile phone Nokia 6630 surfs the web well and it get connected to a PC to browse the web too just great.
    when going Mac, it doesn't do any of this except Syncing in iSync good enough.
    every time I try getting MBP connected to internet via gprs& blutooth via Nokia 6630 the system displays an error message which is normally PPP error
    I've filled the APN with the correct provider's access point and number with *99#
    my provider didn't fill me with the DNS nor PPP setting...
    what shall I do to fix this?

    No.

  • POST http(s) request with xml content in Power Query

    I have a POST http request which works good in HttpRequester (Firefox plugin). I know that it is possible to call POST request in Power Query but cannot find working solution. Here is the original request:
    POST https://svcs.ebay.com/FeedbackService
    X-EBAY-SOA-OPERATION-NAME: createDSRSummaryByPeriod
    X-EBAY-SOA-SERVICE-VERSION: 1.0.0
    X-EBAY-SOA-SERVICE-NAME: FeedbackService
    X-EBAY-SOA-APP-NAME: ***
    X-EBAY-SOA-SITEID: 0
    X-EBAY-SOA-SECURITY-TOKEN: ***
    Content-Type: text/xml
    <?xml version="1.0" encoding="UTF-8"?>
    <createDSRSummaryByPeriodRequest xmlns="http://www.ebay.com/marketplace/services">
    <dateRange>
    <dateFrom>2013-12-01T00:00:00.000Z</dateFrom>
    <dateTo>2013-12-31T23:59:59.999Z</dateTo>
    </dateRange>
    <dateRangeEventType>ListingDate</dateRangeEventType>
    </createDSRSummaryByPeriodRequest>
    Power Query WebContent() function is capable to handle headers and xml content, however, there is no any documentation about its syntax.
    In Power Query I use this request:
    = Xml.Tables(Web.Contents(“https://svcs.ebay.com/FeedbackService”,
    [Headers =[" X-EBAY-SOA-OPERATION-NAME"= "createDSRSummaryByPeriod",
    "X-EBAY-SOA-SERVICE-VERSION="1.0.0",
    "X-EBAY-SOA-SERVICE-NAME"="FeedbackService",
    "X-EBAY-SOA-APP-NAME"="***","X-EBAY-SOA-SITEID"="0",
    "X-EBAY-SOA-SECURITY-TOKEN"="***"],
    Content=["<?xml version="1.0" encoding="UTF-8"?>
    <createDSRSummaryByPeriodRequest xmlns="http://www.ebay.com/marketplace/services">
    <dateRange>
    <dateFrom>2013-12-01T00:00:00.000Z</dateFrom>
    <dateTo>2013-12-31T23:59:59.999Z</dateTo>
    </dateRange>
    <dateRangeEventType>ListingDate</dateRangeEventType>
    </createDSRSummaryByPeriodRequest>"]]))
    However, it returns "Expression.SyntaxError: Invalid identifier." Maybe anyone has at least examples of analogous working syntax?

    Task is solved. First of all I updated PowerQuery since previous version does not support Headers option for Web.Contents function. Here is a correct syntax:
    =Xml.Document(Web.Contents("https://api.ebay.com/ws/api.dll",[Headers=[#"X-EBAY-API-COMPATIBILITY-LEVEL"= "871",#"X-EBAY-API-SITEID"="0",#"X-EBAY-API-CALL-NAME"="GetMyeBaySelling",#"CONTENT-TYPE"="text/xml"], Content=Text.ToBinary("<?xml version="&Character.FromNumber(34)&"1.0"&Character.FromNumber(34)&" encoding="&Character.FromNumber(34)&"utf-8"&Character.FromNumber(34)&"?>
    <GetMyeBaySellingRequest xmlns="&Character.FromNumber(34)&"urn:ebay:apis:eBLBaseComponents"&Character.FromNumber(34)&">
    <RequesterCredentials><eBayAuthToken>***</eBayAuthToken></RequesterCredentials><SoldList><DurationInDays>60</DurationInDays><Pagination><EntriesPerPage>100</EntriesPerPage><PageNumber>1</PageNumber></Pagination></SoldList></GetMyeBaySellingRequest>")]))

  • How to post to a blog via e-mail?

    Hi, is it possible to post to the blog via e-mail? I am referring to the blog that comes with 10.5.

    Currently there's no way to do this out-of-the-box, although groups which have a mailing list will archive all of that mail content online.
    There may be tools out there to do this, as we support Meta-weblog and Atom posting APIs.

  • Http client------ XI  (via HTTP with SSL),

    hi forum,
    we have a http client that sends a http erquest to XI, by using sap/xi/adapter_plain
    service,  i mean plain http adapter
    but for scurity reasons i need HTTPS communication,
    can u tell me how to enable HTTPS (HTTP with SSL) communiaction in the same scenario,
    http client------>XI  (via HTTP with SSL)

    hi sudeep,
    u need to create a comm ch of adapter type http n set the security level there.
    refer this for help:
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    [reward if helpful]
    regards,
    latika.

  • Business Connector 4.8 post http 1.0 1.1

    Hello,
    I have one problem,
    I must post an xml file to a external server wich only use post http 1.1
    I have traced my tcp stream an i see, that the BC service "http" use http 1.0.
    Is it possible to give this service any paramter so that he use 1.1
    Or have anyone build an new java service the use http 1.1?
    regards
    Florian Martin
    Edited by: Florian Martin on May 18, 2009 1:34 PM

    The source code of the http service is not available.
    But i think i can write a new Java service.
    I don't now why it is not compatible.
    This is the first time we have this problem.
    The customer tells me, that his server only understand http 1.1
    4.7 and 4.8 are nearly the same
    In 4.8 a lot of the java services will updatet.
    The most of the changes are bugfix.
    Thanky for your answers guys.
    Then i will try to create a new java service
    Regards
    Florian
    Edited by: Florian Martin on May 19, 2009 1:16 PM

  • Low bandwith distributed network via GPRS

    Hi!
    I'm currently designing a distributed network which will consist of about 7 nodes, 3 of which are the water plants of small villages, and the others are wells on the field.
    Each node has about 8-10 digital inputs and max. 2 analog input channels.
    The system's primary goal is to acquire the state (running/ready/error) of some devices (pumps,freq. converters), display them at a central location and report any errors via SMS.
    Local control of the plants is already implemented, as they are complete WILO systems.
    Only a minimal control is needed (for each plants to command it's wells if the water level is low or high in the basin).
    So I think there should be no need for a lot of data transfer as digital signals should change only few times a day, and it is enough to read even analog signals once per minute.
    The project is quite limited financially, so it is not possible to put a cFP controller on each points.
    My current plan is to use a central cFP or cRIO controller at the largest plant and place ethernet expansion modules (such as cFP-1804 or NI 9144) on all other (6) points.
    The problem is, that the only possible way of communication is via GPRS IP network, so the available bandwith is about 50-60 kbit/s, however the devices will "see" a 100Mbit connection to the routers.
    Does anyone have any experience with such a bandwith limited ethernet network?
    I'm not sure if the FP Read and Write VIs and/or Shared variables on the central controller bound to expansion modules' channels are using PSP protocol. If so, I assume the required bandwith could be lowered by changing deadband of analog channels. Am I right with this?
    The other problem I face with is the possibility of connection errors. Is it possible to setup expansion modules to periodically check a gateway or any network device, and set their outputs to a predefined state?
    I also would like to ask if it is possible to use cRIO expansion chassis (NI 9144, which uses EtherCAT) in such a topology, where I have to route packets through a slow GPRS network?
    Thank you in advance for any help!
    Peter Kovacs

    I had an android phone for a couple years and i think there is a compatible remote application similar to apples remote app which works with itunes DJ so those students with android can access itunes dj. That should significantly increase the particiation. With that being said, i just updated to itunes 11, and the interface is much differnt.... and i just noticed there is not more itunes dj that i could find! loved that the voting feature.  I may be missing it so i've emialed apple feedback about it.  I hope that add that feature back on. Anyway, if you use an older version of itunes, dj should be there and i would search for the adroid app i discussed earlier.  sorry, i forget what it was called exactly...

  • Invalid key predicate error while running http method get via tcode /IWFND/MAINT_SERVICE

    Hi,
    I am facing an error which says "Invalid Key predicate"while running http method get via tcode /IWFND/MAINT_SERVICE.
    The same works fine for sdata .The SICF nodes are active.But when the url has odata it does not seem to work as expected .This is the url I am trying to execute.
    /sap/opu/odata/sap/QMLSINSPECTIONLOT/MATERIALDETAIL(MaterialNumber='1706',FROMDATE='20120303',TODATE='20120708')?$format=xml
    (does not work -error invalid predicate)
    /sap/opu/sdata/sap/QMLSINSPECTIONLOT/MATERIALDETAIL(MaterialNumber='1706',FROMDATE='20120303',TODATE='20120708')?$format=xml(works fine)
    Could you help me with this error?
    Regards,
    Ann

    Ann,
    FROMDATE is a date field? Then you need to specify while providing value.
    Example: Check it here.
    How to use OData Date filter query to filter data from OData NetWeaver Gateway Service?
    Thanks
    Krishna

  • SMS via GPRS

    Does anyone know how to make a MIDLET that can send sms through GPRS?
    Can i use HTTPConnection to do that and how....
    Please Help...

    Dear printisor,
    Based on your reply, does it means that i should send parameters through gprs to my php script, then php script process parameters sent by j2me, then sends it through sms gateway??? Does the process runs like this???
    i'm able to send parameters via gprs to php, but i dont know how to send sms via php... :-D

Maybe you are looking for