POST data as parameter but not in content?

I need to send some data from a PDA to a server. This works ok via SOAP but is rather slow, so I want to use a more efficient approach: sending a custom XML directly to a servlet. For this I use the URLConnection and POST the XML directly.
The data arrives in the servlet, but I am not able to extract it from the request. For some reason it is seen als a parameter but not in the content. I have captured the actual HTTP request being sent (stripped the remaining XML):
POST /xxx/PdaOrder1Servlet HTTP/1.1
User-Agent: Java1.3.0_02
Host: localhost:8181
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-type: application/x-www-form-urlencoded
Content-length: 541
+<pdaorder pdaOrderNr="2" ...+
As said, this arrives at the servlet, because when I print the parameter it has the data the was sent:
DEBUG PdaOrder1Servlet.doPost(PdaOrder1Servlet.java:74) - -------------------------
DEBUG PdaOrder1Servlet.doPost(PdaOrder1Servlet.java:75) - Processing request: POST http://localhost:8181/xxx/PdaOrder1Servlet / [<pdaorder  pdaOrderNr=>{"2" ...
It maps the start of the XML "<pdaorder pdaOrderNr" as the key in the parameter and the remainder of the XML document as the value. But if I try to read the data using the reader:
               BufferedReader in = new BufferedReader(request.getReader());
               String decodedString;
               while ((decodedString = in.readLine()) != null) System.out.println(decodedString);
               in.close();I get nothing. How do I access the raw content being sent in the HTTP request? Why is the content of a POST interpreted as parameters?

Sometimes typing a problem out helps: the content type of the request needed to be set to text/xml

Similar Messages

  • Node display off , Central data cache configured but not active

    Hi
    We get an error "Node display off , Central data cache configured but not active" in Central system while trying to display the monitored the abap instance of system.We just completed the CCMS configuration.
    we are getting this error in RZ20 (central system)
    Agent regristration is complete in monitored system and it is running fine.connection from central to monitored (abap instance) system is also ok.Please help asap.
    Operating System --AIX
    Sap version--ECC 6
    Database-db2
    Regards
    Shashi

    Hi,
    central data cache to improve the performance of the Alert Monitor when creating the alert monitoring trees.
    Check [This link|http://help.sap.com/saphelp_sm32/helpdata/en/de/13622d770b5e4f8398fc536b690e93/content.htm]
    And [This link|http://help.sap.com/saphelp_sm32/helpdata/en/10/75ea3b6d73e807e10000000a11402f/content.htm]
    Hope this solves your problem.
    Feel free to revert back.
    --Ragu

  • Node display off ,  Central data cache configured but not active while tryi

    Hi
    We get an error "Node display off ,  Central data cache configured but not active" in Central system while trying to display the monitored the abap instance of system.We just completed the CCMS configuration.
    Agent regristration is complete in monitored system and it is running fine.connection from central to monitored (abap instance) system is also ok.Please help asap.
    Operating System --AIX
    Sap version--ECC 6
    Database-db2
    Regards
    Chamba Shashi
    Edited by: SHASHI SAMAL on Apr 28, 2009 6:25 AM

    Hi,
    central data cache to improve the performance of the Alert Monitor when creating the alert monitoring trees.
    Check [This link|http://help.sap.com/saphelp_sm32/helpdata/en/de/13622d770b5e4f8398fc536b690e93/content.htm]
    And [This link|http://help.sap.com/saphelp_sm32/helpdata/en/10/75ea3b6d73e807e10000000a11402f/content.htm]
    Hope this solves your problem.
    Feel free to revert back.
    --Ragu

  • Central data cache configured but not active

    Hi,
    I am currently at a customer site and am configuring the solution manager system as a CEN.
    The sapccm4x en ccmsr agents have been registered and memory has been allocated in the CEN system for the central data cache, but whenever I open a monitor the following message is listed at the top of the screen:
    Central data cache configured but not active
    Suggestions on how to configure this cache and the impact of not doing so will be rewarded.
    Regards,
    Sander

    Hi,
    central data cache to improve the performance of the Alert Monitor when creating the alert monitoring trees.
    Check [This link|http://help.sap.com/saphelp_sm32/helpdata/en/de/13622d770b5e4f8398fc536b690e93/content.htm]
    And [This link|http://help.sap.com/saphelp_sm32/helpdata/en/10/75ea3b6d73e807e10000000a11402f/content.htm]
    Hope this solves your problem.
    Feel free to revert back.
    --Ragu

  • How do you know what the data usage was for and why?  It shows you date and usage but not the reason.

    How can you see what data usage was for on the bill?  It only shows the date and usage but not the reason for the usage.

    You can not see this info on VZW's site. There are apps for smartphones that will break down the info though, but by site or what was downloaded

  • Is it possible to apply conditional formatting to a cell (or range) based upon a LOOKUP query to cell values in another sheet.? I want to alter the formatting (i.e., text and/or cell background color), but not cell content.

    Is it possible to apply conditional formatting to a cell (or range) based upon a LOOKUP query to cell values in another sheet.?
    I want to alter the formatting (i.e., text and/or cell background color), but not the content, of the target cell(s).

    Hi Tom,
    Your LOOKUP formula will return a value that it finds in the "other" table. That value can be used in conditional highlighting rules. (Numbers 3 calls it conditional highlighting, not conditional formatting. Just to keep us awake, I guess, but it works the same).
    Please explain what you are trying to do.
    Regards,
    Ian.

  • Idoc data passed OK but not transferred

    Hi all
    I have to SAP clients connected via ALE for Payroll Posting (between HR client and FI client). When the HR use post the payroll, the last status of Idoc is 03 - Data passed to port OK  (WE05). Somehow there is no created FI document in FI client. I check BDM2 tcode and seeing that the 3 Idoc Not transferred yet in HR client.
    How can I make this Idoc transferred automatically after the posting? ( The Output Mode is already 2 = Transfer Idoc immediately).
    Thanks!

    Thanks Juan,
    It did appear in SM21, the ALE user lack of authorization to post. I have corrected it. Some posting works fine. But some others, get error message "Required GL Account was not transferred in parameter Account GL".
    From technical perspective, do you have any ideas why? According to functional team, they have config. whats needed...
    Thanks!

  • HTTP POST works on browser but not socketically

    I can post info using a simple html but i cant post using sockets..
    InetAddress addr = InetAddress.getByName(hostname);
                Socket socket = new Socket(addr, port);
                String path = postpath;
                BufferedWriter wr = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream(), "UTF8"));
                wr.write("POST "+path+" HTTP/1.0\r\n");
                wr.write("Content-Length: "+data.length()+"\r\n");
                wr.write("Content-Type: application/x-www-form-urlencoded\r\n");
                wr.write("\r\n");
                wr.write(data);
                wr.flush();
                BufferedReader rd = new BufferedReader(new InputStreamReader(socket.getInputStream()))
    /code]
    it works on my local web server but not on the remote web server. what could be the problem and explanation?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    100% right way is to catch request from browser and create your our in same way. Completely except content length and content itself :)
    If you can't then try to:
    add Host field
    add Cookies if present
    add Referer
    add User-Agent
    Some clever servers check all these fields for some reasons (prevent silly attacks for example and successfully as I can see...)
    Then ask again.
    One more - are you sure you use correct content format? And last - how do you know it doesn't work with remote server? Exactly?

  • Abnormal, Same query get data in sql but not working on Fron-end

    Dear,
    Version :Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    We have created packed in oracle database befor two months ago & was working fine, but since morning select statment in package is not working while running via application which mentioned below and raise not data found but surprising thing is that same query is getting data when we execut on sql plus return one record.
    i don't know either it's abnormal behaviour or sth else becuase the same query run without changing any singl column in where_clause work in sql but not getting data while submition request through oracle application and raising not data found.
    --thankse
    Edited by: oracle0282 on Dec 29, 2011 2:20 AM

    Actully when i run this query in sql it return one record on the same parameter, while when we exeucte this select in pl/sql on the same parameter oracle raise no data found error.
    so i got confused the same query with same parameter retur record in sql but when we call it fron-end through packege raise 'no data found error'.
    hope you understand now.
    --thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Right Click to convert webpage to pdf creates pdf with website headers but not iframe content

    Hello
    We are having a problem converting webpages to pdf with Acrobat.  Out website uses Iframes to view the website we are converting to pdf.  When I right click on the webpage and click convert to pdf everything works fine. But the pdf that is created is only the header of the page not the content of the iframe I right clicked on.  If you go to file and print to pdf it works fine we get the content of the iframe in the pdf and not the rest of the webpage. But the users prefer to right click. Is there some way to fix this so we can right click to convert to pdf?
    Thanks
    Jason

    I dont think acrobat can convert iframes to pdf (need to check). It can convert html, some javascript, images and swfs for example. Data driven pages, depending of the programming cant be converted too.

  • Posting date for rebate credit note document

    Hi friends,
    This is with reference to settlement of rebate agreement. There is a background job executed say today, but the posting date was backdated to 31/08/2011. The financial posting period for current month starts from 27th of Aug and the posting was done in current period only. The validity of the Rebate agreement ends on 31/08/2011.
    My query is what is the reason behind the system posted the document on 31/08/2011.
    Is it because the validity ends on 31/08/2011.
    Quick responses are appreciated.
    Thanks & regards,
    Praveen.

    Hi Praveen,
    You are correct.  The final settlement credit memo request uses the last day of the agreement validity period as the billing date.
    Please refer to the 29th Page  first and second lines of the Matthias white paper of Rebate management. Below is the link.
    http://www.erpgenie.com/publications/saptips/052005.pdf
    Hope this helps

  • Why does my IMAC super drive recognize data dvd's but not movies?

    My 27" Intel Imac recently stopped playing dvd movies. The drive still recognizes data disks but not movies. When I insert a dvd movie the drive makes noises for 30 seconds then eject the disk.

    Have you changed region codes on movies?  It will only change for a total of 5 codes.
    Regards,
    Captfred

  • I can see my external Hard Drive on AEBS and the folders on it but not the contents of the folders

    I have a MacBook Pro running OS X 10.7.2 connected to my wireless and wired network through my AEBS.  Connected through a USB hub I have a printer and Digital Research external HDD.  When I click on the shared folder I see my HDD and can even click on it to see the folders but am unable to see the contents of any folders.  I have checked permissions on all folders when connected directly to the laptop and all seems fine.  When connected directly to the laptop I can view all files on the HDD.  I can view the contents of all the folders from my iPad when using FileBrowser but not through the MacBook.
    Does anyone have any ideas as to why the contents of the folders are not showing when accessing through AEBS?
    Help is appreciated.

    Did you map the drive? It won't show up in Explorer automatically like a jump drive or an external drive plugged directly into the PC will.
    You didn't mention the OS you're running, but what you want to do is choose "Map a network drive" and you'll see the router listed as a network device. Click on it and you should see the external drive listed. You can map it from there. 

  • Data In File  But Not Lightroom MetaData

    Here is a section of the one of my image files with some of the metadata vsiible. (I opened it with a plain text editor)
    </crs:ToneCurvePV2012Blue>
       <dc:creator>
        <rdf:Seq>
         <rdf:li>David_Thorpe</rdf:li>
        </rdf:Seq>
       </dc:creator>
       <dc:title>
        <rdf:Alt>
         <rdf:li xml:lang="x-default">BY8FD4</rdf:li>
        </rdf:Alt>
       </dc:title>
       <dc:rights>
        <rdf:Alt>
         <rdf:li xml:lang="x-default">David Thorpe</rdf:li>
        </rdf:Alt>
       </dc:rights>
       <dc:subject>
    The BY8FD4 entry is what I want to display. It used to but now doesn't.
    I have nearly 2,000 images where this data has ceased to display. Is there any way of pulling it in? Otherwise I have to enter the reference by hand on each image....

    Hi,
    I able to see a record in InfoCube but not able to see that record in DSO which is under it.
    <<< Someone would have deleted the request in DSO or the record in Infocube was loaded frm a different datasource.
    From where does RSA3 gets data, Is it Setup table?
    >>> Yes,  RSA3, extractor checker fetch the data from the setup table.
    Regards,
    Srinivas

  • Pings work but not the content

    Hi All,
    I have a server 10.56.3.40 trying to access a page 10.56.10.11 which is the VIP address for the content delivered by 10.56.3.50, 60 and 70.
    I can ping 10.56.10.11 from 10.56.3.40 but when I access the webpage www.net.com (DNS resolves this to the VIP address 10.56.10.11), I cannot access it.
    I have the load balancer sitting in between a firewall and the server vlan203 (10.56.3.x).
    The VIP address for the contents are 10.56.10.x. The CSS has 2 interfaces (one to fw with ip 10.56.10.3 and one to server vlan 203 with ip 10.56.3.3.). I have the following config
    !************************* INTERFACE ********
    interface 1/1
    bridge vlan 999
    description "Failover link to secondary"
    interface 2/1
    bridge vlan 210
    description "Link to VIP vlan (firewall)"
    interface 2/2
    bridge vlan 203
    description "Link to dmz servers"
    !************************** CIRCUIT *********
    circuit VLAN999
    ip address 10.56.99.3 255.255.255.0
    redundancy-protocol
    circuit VLAN210
    redundancy
    ip address 10.56.10.3 255.255.255.0
    circuit VLAN203
    redundancy
    ip address 10.56.3.3 255.255.255.0
    !************************** SERVICE **************
    service 10.56.3.50-443
    ip address 10.56.3.50
    port 443
    keepalive frequency 10
    keepalive type ssl
    keepalive port 443
    active
    service 10.56.3.50-80
    ip address 10.56.3.50
    port 80
    keepalive frequency 10
    keepalive type http
    keepalive port 80
    keepalive uri "/lbcheck.asp"
    active
    service 10.56.3.60-443
    ip address 10.56.3.60
    port 443
    keepalive frequency 10
    keepalive type ssl
    keepalive port 443
    active
    service 10.56.3.60-80
    ip address 10.56.3.60
    port 80
    keepalive frequency 10
    keepalive type http
    keepalive port 80
    keepalive uri "/lbcheck.asp"
    active
    service 10.56.3.70-443
    ip address 10.56.3.70
    port 443
    keepalive frequency 10
    keepalive type ssl
    keepalive port 443
    active
    service 10.56.3.70-80
    ip address 10.56.3.70
    port 80
    keepalive frequency 10
    keepalive type http
    keepalive port 80
    keepalive uri "/lbcheck.asp"
    active
    !*************************** OWNER ****************
    content www.net.com
    add service 10.56.3.50-80
    vip address 10.56.10.11
    add service 10.56.3.60-80
    add service 10.56.3.70-80
    protocol tcp
    port 80
    active
    !**************************** ACL ***********
    acl 1
    clause 1 bypass any 10.0.0.0 255.0.0.0 destination 10.56.3.0 255.255.255.0
    clause 2 bypass any 192.168.0.0 255.255.0.0 destination 10.56.3.0 255.255.255.0
    clause 100 permit any any destination any
    apply circuit-(VLAN210)
    acl 2
    clause 10 permit tcp 10.16.3.0 255.255.255.0 destination 10.16.10.0 255.255.255.0 eq 80
    clause 20 permit tcp 10.56.3.0 255.255.255.0 destination 10.56.10.0 255.255.255.0 eq 443
    clause 30 bypass any 10.56.3.0 255.255.255.0 destination any
    clause 25 permit tcp 10.56.3.0 255.255.255.0 destination 10.56.10.0 255.255.255.0 eq 25
    apply circuit-(VLAN203)
    acl 3
    clause 1 permit any any destination any
    I do not see any asymetric routing. But not sure why port 80 traffic is not accessible from vlan203.

    classic nat issue.
    When x.x.3.40 goes to the vip, the destination address is changed to one of the servers ie: x.x.3.50.
    Now, the response from x.x.3.50 must be sent to....x.x.3.40
    They are on the same subnet, so x.x.3.50 responds directly to x.x.3.40, bypassing the CSS.
    You need to do client naton the css to nat request from the servers.
    service servicex40
    ip address 10.56.3.40
    active
    group servernat
    vip address 10.56.10.11
    add service servicex40
    active
    If more addresses need to be nated, you may want to use acl to do this.
    This has been discussed many times, so you should be able to find sample configs and documentation.
    Regards,
    Gilles.

Maybe you are looking for

  • Sky Sports 1 and 2 and BT in general - Absolutely ...

    I would like to start by stating this will be a bit of an essay but I hope anyone who opens this thread up takes the time and consideration to read and takes it on-board, I am particurlarly aiming that at prospective BT customers who may be here to c

  • Iphone hardware

    how do you know if your iphone is roaming outside the u.s.

  • Creating ABAP class in XI for ABAP mapping

    Hi All, While creating ABAP class in SE80 XI I am getting following message. “You are not registered as a developer. Please register in the Online Service System (OSS). In the OSS you will receive an access key.” Plz guide which role I required to do

  • JFrame switching to JPanel

    My JFrame is working perfectly. Its got a button on it that when pressed I want my panel to appear. I don't mind if the other one dissapears or stays there. I have created a JPanel in a seperate java file. Its fine aswell, but now I want it to appear

  • I Tunes General Question

    Hi, Have recently purchased an I phone 4,have installed I tunes,have ripped a CD using I tunes and the tracks are shown in "Library Music" but when I try to drag the tracks into "My Device" it wont let me,any advice please,Tartdog.