Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

request object failing to pass in parameters correctly  RSS feed

 
clyles
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
During the process of someone sending an xml request, there are three simple fields that need to be passed in. The three fields are userid, password, and xmloutput.
Usually, when the request is being sent, the servlet asks for those values by name, using java's request object, and get the following:
Example:
userid=<b>myid</b>
password=<b>mypassword</b>
xmloutput=<b><?xml version="1.0" standalone="no"?><!DOCTYPE iprequest SYSTEM "http://localhost:8080/dtd/ipxmlrequest.dtd">
<iprequest><serviceavailability><servicephone>9152646032</servicephone></serviceavailability></iprequest></b>
Here is the problem today when the same request is sent.
userid=<b>myid</b>
password=<b>mypassword</b>
xmloutput=<?xml version="1.0" standalone=<b>"no"?><!DOCTYPE iprequest SYSTEM "http://localhost:8080/dtd/ipxmlrequest.dtd"><iprequest><serviceavailability><servicephone>9152646032</servicephone></serviceavailability></iprequest></b>
The difference is that <b>xmloutput</b> is no longer being seen as the name. The name is seen as "<b>xmloutput=<?xml version="1.0" standalone</b>", which is obviously causing problems.
This syntax was working correctly under Weblogic5.1, but seems to not run correctly under Weblogic6.1. I'm hoping this could be a configuration problem with Weblogic, but I would like to do some research before posting a problem with Weblogic.
Any help would be good.
thx.
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at JavaRanch's naming policy. . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly do you mean by xml request, and how is it sent? Is this a HttpServlet and a HttpServletRequest or what?
Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!