Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Extract ResponseStream or ResponseText Record without the carrier retun


Message #1 by patrick.low@k... on Fri, 22 Feb 2002 04:06:13
Hi Guys,



I am using the Msxml2.serverXMLHTTP.4.0 to get response.  The response is 

as follow: -



**************************************************************************

<QueryString>AppID=POD02&Password=PODAP87&MsgType=broadcast&Message=POD01+2

55781%23&OrigType=3&ProvidedLabel=SO255781&RecipientNo=6598513619

<Result>OK

<MessageID>343925

<ErrorCode>

<ErrorMessage>

***************************************************************************



I need to extract all the value after <RESULT>,<MESSAGEID>,<ErrorCode> and 

<ErrorMessage> tag. The value contain carrier return at the end of line.



How should I do it with the responseText and ResponseStream?



Thank you

Patrick Low





Message #2 by =?iso-8859-1?q?Himanshu=20Chaudhari?= <himanshuchaudhari@y...> on Fri, 22 Feb 2002 05:34:37 +0000 (GMT)
you can use this code



		Set objXmlHttp 

Server.CreateObject("Msxml2.ServerXMLHTTP")

		objXmlHttp.open "GET", str, false

		' Send it on it's merry way.

		objXmlHttp.send()

		GetTXTfromURL=objXmlHttp.responsetext





Response.write GetTXTfromURL



******************************









 --- patrick.low@k... wrote: > Hi Guys,

> 

> I am using the Msxml2.serverXMLHTTP.4.0 to get

> response.  The response is 

> as follow: -

> 

>

**************************************************************************

>

<QueryString>AppID=POD02&Password=PODAP87&MsgType=broadcast&Message=POD01+2

>

55781%23&OrigType=3&ProvidedLabel=SO255781&RecipientNo=6598513619

> <Result>OK

> <MessageID>343925

> <ErrorCode>

> <ErrorMessage>

>

***************************************************************************

> 

> I need to extract all the value after

> <RESULT>,<MESSAGEID>,<ErrorCode> and 

> <ErrorMessage> tag. The value contain carrier return

> at the end of line.

> 

> How should I do it with the responseText and

> ResponseStream?

> 

> Thank you

> Patrick Low

> 

> 

> 





$subst('Email.Unsub'). 



________________________________________________________________________

Looking for a job?  Visit Yahoo! India Careers

      Visit http://in.careers.yahoo.com

Message #3 by "Ken Schaefer" <ken@a...> on Fri, 22 Feb 2002 16:24:32 +1100
Can't you do a Replace() and replace vbCrLf with a zero length string?



Cheers

Ken



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

From: <patrick.low@k...>

Subject: [asp_web_howto] Extract ResponseStream or ResponseText Record

without the carrier retun





: Hi Guys,

:

: I am using the Msxml2.serverXMLHTTP.4.0 to get response.  The response is

: as follow: -

:

: **************************************************************************

:

<QueryString>AppID=POD02&Password=PODAP87&MsgType=broadcast&Message=POD01+2

: 55781%23&OrigType=3&ProvidedLabel=SO255781&RecipientNo=6598513619

: <Result>OK

: <MessageID>343925

: <ErrorCode>

: <ErrorMessage>

:

***************************************************************************

:

: I need to extract all the value after <RESULT>,<MESSAGEID>,<ErrorCode> and

: <ErrorMessage> tag. The value contain carrier return at the end of line.

:

: How should I do it with the responseText and ResponseStream?



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




  Return to Index