Boris,
You were correct. The biggest problem was part 2 setting up for reading an output
stream from Orion. Once I told Orion I wished to do input also "setDoInput( true )" and
requested the input stream "conn.getInputStream()" everything worked like it should. I
also changed the println to print
OK, I still doubt some of your code lines.
1. When you do
out.println( "cmd=" + URLEncoder.encode( xml ) );
it is not getting exactly URL-encoded becaouse of the newline symbol
added by "println".
2. Your client sends HTTP request but there is no line in code to get
InputStream back.
Th
Thank you for your suggestion.
I just tried it but it doesn't perform a connection either. The only difference
between what Hunter is doing in his code and mine is he is using a
DataOutputStream and I am using a PrintWriter which shouldn't make any
difference. He is also using the URLEncoder.enco
It looks like you are not properly supplying arguments for "POST" method
The right order based on Jason Hunter book example is below:
To use it in your case just put your xml string into Properties object
as a value against "cmd" as a name
public static final InputStream sendPostMessage(Properti
Orion Interest Group,
I have written a Java class to test server to server communication for a
servlet running on Orion 1.5.2. Nothing seems to happen when I run the
class while the same URL sent from the address/location edit box on a
browser works perfectly. The host URL I am using is
"http://d