• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

request object failing to pass in parameters correctly

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Getting married means "We're in love, so let's tell the police!" - and invite this tiny ad to the wedding:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic