> i have two questions about this (and i think they're > actually kinda > offtopic and stupid):
> 1) doesn't GET have a limit of something like 255 > characters? if so, how do > i create a POST action/request with the XML as a > parameter (using java)? > > 2) don't the request-parameters have to be in a > key=value layout? say the > 'reciever' is a JSP or servlet, then i can't do > something like > request.getAttribute(key)? Well. Let me see here... According to the HTTP/1.1 spec ( http://www.ietf.org/rfc/rfc2616.txt ) "The HTTP protocol does not place any a priori limit on the length of a URI. Servers MUST be able to handle the URI of any resource they serve, and SHOULD be able to handle URIs of unbounded length if they provide GET-based forms that could generate such URIs. A server SHOULD return 414 (Request-URI Too Long) status if a URI is longer than the server can handle (see section 10.4.15). Note: Servers ought to be cautious about depending on URI lengths above 255 bytes, because some older client or proxy implementations might not properly support these lengths." Since you're in control of both the http client (the code issuing the "GET") and the server (the remote server), you can likely get away with whatever length you want - assuming you don't have a proxy between them that can't handle GET's longer than 255 chars. If you needed to do use a PUT, you could just use the form http://blahblah/myApp?cmd=<xml><record></record> To do this from Java, use the java.net package: http://java.sun.com/products/jdk/1.2/docs/api/java/net/package-summary.html It would go something like: URL myUrl = new URL("http://blahblah/xml/cmd=<xml><cmd></cmd>"); HttpURLConnection httpCon = new HttpURLConnection(myUrl); httpConn.setRequestMethod("POST"); // or "GET" String myXML = (String) httpConn.getContent(); In reality, it's a little bit more complicated. But not much. This should give you some thoughts on how to proceed. I'd consider crafting a Servlet the receive the requests using a "GET" from the client. The servlet could parse the XML and connect to EJB's in the back-end if desired. The servlet could then craft its response as straight XML. Kevin __________________________________________________ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
