Sending XML via http post, using servlet
Corey Crandell <[email protected]> Mon, 13 Mar 2006 12:26:56 -0800
| Newsgroups | gmane.comp.java.sun.servlet |
|---|---|
| Message-ID | <!&!AAAAAAAAAAAYAAAAAAAAAP7fDzKXru5GkikM3gLgzkXCgAAAEAAAADTxHV9DL9FFs7WtgwuZY6UBAAAAAA==@comcast.net> |
This is a multi-part message in MIME format.
------=_NextPart_000_0000_01C64699.6B709A00
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Hey I am hopeing someone may be able to help. I am trying to send and xml
stream via http post. I am using a servlet using goPost. The server I am
sending the request to will return with a response as long as the stream is
sent via http post, as of right now I am getting an error from the remote
server saying im not sending the xml stream via post.
my imports are :
import java.io.*;
import java.net.*;
import javax.servlet.*;
import javax.servlet.http.*;
throws:
throws ServletException, IOException {
and using goPost:
protected void doPost(HttpServletRequest request, HttpServletResponse
response)
whats included in the xml stream is a simple domain search, when a client
types in a domain search on my website the servlet grabs that info and sends
it to the remote server via sendRedirect basically temp files.. here is
where the xml doc is being sent to:
response.sendRedirect("
<http://pirin.names4ever.com/TestXAPI/Pirin2Test.exe?>
http://pirin.names4ever.com/TestXAPI/Pirin2Test.exe?"+test);
Maybe somewhere there I need make another POST call.. not sure..
Can someone send me in the right direction please, I would certainly
appriciate it. If you need more info let me know.
Corey C
___________________________________________________________________________
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
------=_NextPart_000_0000_01C64699.6B709A00
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2900.2838" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2><SPAN class=3DspnMessageText =
id=3Dmsg>Hey I am hopeing=20
someone may be able to help. I am trying to send and xml stream via http =
post. I=20
am using a servlet using goPost. The server I am sending the request to =
will=20
return with a response as long as the stream is sent via http post, as =
of right=20
now I am getting an error from the remote server saying im not sending =
the xml=20
stream via post.<BR><BR>my imports are :<BR><BR><FONT color=3Dred>import =
java.io.*;<BR>import java.net.*;<BR><BR>import =
javax.servlet.*;<BR>import=20
javax.servlet.http.*;</FONT><BR><BR>throws:<BR><BR><FONT =
color=3Dred>throws=20
ServletException, IOException {</FONT><BR><BR>and using =
goPost:<BR><BR><FONT=20
color=3Dred>protected void doPost(HttpServletRequest request, =
HttpServletResponse=20
response)</FONT><BR><BR>whats included in the xml stream is a simple =
domain=20
search, when a client types in a domain search on my website the servlet =
grabs=20
that info and sends it to the remote server via sendRedirect basically =
temp=20
files.. here is where the xml doc is being sent to:<BR><BR><FONT=20
color=3Dred>response.sendRedirect("<A=20
href=3D"http://pirin.names4ever.com/TestXAPI/Pirin2Test.exe?" =
target=3D_blank><FONT=20
color=3D#000000>http://pirin.names4ever.com/TestXAPI/Pirin2Test.exe?</FON=
T></A>"+test);</FONT><BR><BR>Maybe=20
somewhere there I need make another POST call.. not sure..<BR><BR>Can =
someone=20
send me in the right direction please, I would certainly appriciate it. =
If you=20
need more info let me know.</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV align=3Dleft><SPAN=20
style=3D"FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Verdana; =
mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times =
New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; =
mso-bidi-language: AR-SA"><STRONG>Corey=20
C </STRONG></SPAN></DIV></BODY></HTML>
___________________________________________________________________________
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff SERVLET-INTEREST".
<p>
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
<p>
------=_NextPart_000_0000_01C64699.6B709A00--