wood burning stoves 2.0*
The moose likes Servlets and the fly likes http parsing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "http parsing" Watch "http parsing" New topic
Author

http parsing

lian_a
Greenhorn

Joined: Apr 30, 2004
Posts: 1
Hi all,
If I invoke the URL ...
http://localhost/eai/start.swe?SWEExtSource=wf&SWEExtCmd=Execute&UserName=ADMIN&Password=ADMIN&SWEExtData=<SiebelMessage
MessageId="" MessageType="Integration Object" IntObjectName="Service
Request"><ListOfServiceRequest><ServiceRequest><SRNumber>SMS-0036</SRNumber><RequestorName>-</RequestorName><Source>SMS</Source><Description>Hello
my friend.</Description><Owner>ARLCA</Owner><OwnerGroup>Call
Center</OwnerGroup></ServiceRequest></ListOfServiceRequest></SiebelMessage>
... and the transaction is successful, I get an html doc with only the
following content:
<h1>Update Completed</h1>
... otherwise I get a "Page cannot be displayed".
My question: How do I catch the "<h1>Update Completed</h1>" from a servlet?
Thanks.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

"lian-a"-
Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it
here.
Thanks! and welcome to the JavaRanch!
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
friso dejonge
Ranch Hand

Joined: Jul 11, 2002
Posts: 162
hi,
i dont have the exact code for you, that would be too easy anyway....
but try the follwoing link and read the tutorial
http://jakarta.apache.org/commons/httpclient/
regards,
friso


swimming certificate (A & B), shoelaces diploma, and some useless java ones.
 
 
subject: http parsing