We've turned back on full logging, and have found an existing SOAP request & the new 
.NET SOAP request. Apart from some (hopefully) superficial differences, the main 
problem seems to be that the body of the request (ie. the SOAP envelope) doesn't 
appear in the log at all, followed by 'Content-Length = 0' & 'No Content data found  
(ErrorCode=997 Overlapped I/O operation is in progress.)' messages. This is the code 
we've got so far:-

        Dim objWebRequest As Net.HttpWebRequest
        Dim objMyStream As System.IO.Stream
        Dim objWebResponse As Net.HttpWebResponse
        Dim objReader As System.IO.StreamReader
        Dim objResponseStream As System.IO.Stream
        Dim strData As String
        Dim i As Long

        Dim objXMLDoc As New XmlDocument()
        Dim soapEnvelope As String
        soapEnvelope &= "<SOAP:Envelope xmlns:SOAP='urn:schemas-xmlsoap-org:soap.v1'>"
        soapEnvelope &= "<SOAP:Body>"
        soapEnvelope &= "<m:Create xmlns:m='TDCASH:TEST'>"
        soapEnvelope &= "</m:Create>"
        soapEnvelope &= "</SOAP:Body>"
        soapEnvelope &= "</SOAP:Envelope>"
        objXMLDoc.LoadXml(soapEnvelope)
        strData = objXMLDoc.OuterXml
        objWebRequest = Net.WebRequest.Create("http://it2:8353";)
        objWebRequest.ContentType = "text/xml"
        objWebRequest.Method = "M-POST"
        objWebRequest.ContentLength = strData.Length
        objWebRequest.UserAgent = "RBO"
        objWebRequest.KeepAlive = True

        objWebRequest.Headers.Add("SOAPMethodName", "TDCASH:TEST#Create")
        Dim arrData As Byte() = System.Text.Encoding.ASCII.GetBytes(strData)

        objMyStream = objWebRequest.GetRequestStream()
        objMyStream.Write(arrData, 0, strData.Length)
        objMyStream.Flush()
        objWebResponse = objWebRequest.GetResponse()
        objResponseStream = objWebResponse.GetResponseStream()
        objReader = New System.IO.StreamReader(objResponseStream)

        Dim strReturn As String
        strReturn = objReader.ReadToEnd()
        MsgBox(strReturn)
        MsgBox(objWebResponse.Server)
        MsgBox(objWebResponse.Headers.ToString())
        objMyStream.Close()

Malcolm Kay
Development Team Leader
IS Unit
Tel: 44 (0) 1823 356396
Web: http://www.tauntondeane.gov.uk


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Cameron Booth
Sent: 28 April 2004 00:45
To: U2 Users Discussion List
Subject: RE: Redback SOAP requests from .NET


Redback should respond to a request even if it is to report that the request
is malformed.

The rgw.log file should show some activity of what's going on if the log
levels in rgwresp.ini are turned on high enough.

Cheers,
 
 
Cam Booth
Analyst Programmer

Ultradata - Vision to Reality
www.ultradata.com.au
 

-----Original Message-----
From: Kay, Malcolm [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 27 April 2004 6:29 PM
To: U2 Users Discussion List
Subject: Redback SOAP requests from .NET

We've been trying to create Redback SOAP requests from VB .NET, but the
requests always timeout. We think it must be a malformed request. Has anyone
else tried this? And do you have a successful example of some code please?

Malcolm Kay
Development Team Leader
IS Unit
Tel: 44 (0) 1823 356396
Web: http://www.tauntondeane.gov.uk


IMPORTANT NOTICE.
This communication is intended solely for the person (s) or organisation to
whom
it is addressed.  It may contain privileged and confidential information and
if
you are not the intended recipient (s), you must not copy, distribute or
take
any action in reliance on it.  If you have received this e-mail in error
please
notify the sender and copy the message to [EMAIL PROTECTED]
-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users


Disclaimer Notice
This message contains privileged and confidential information intended only
for the use of the addressee named above. If you are not the intended
recipient of this message you are hereby notified that you must not
disseminate, copy or take any action or place any reliance on it. If you
have received this message in error please notify Ultradata immediately on
+61 3 9291 1600. Any views expressed in this message are those of the
individual sender, except where the sender specifically states them to be
the views of Ultradata Australia Pty. Ltd.

 To unsubscribe from receiving commercial electronic messages from Ultradata
Australia please email [EMAIL PROTECTED] with the subject heading
"Unsubscribe".
-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users


IMPORTANT NOTICE.
This communication is intended solely for the person (s) or organisation to whom
it is addressed.  It may contain privileged and confidential information and if
you are not the intended recipient (s), you must not copy, distribute or take
any action in reliance on it.  If you have received this e-mail in error please
notify the sender and copy the message to [EMAIL PROTECTED]
--
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users

Reply via email to