473,378 Members | 1,351 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

SOAPUI not showing SOAP Response

2
Looks like it had to do with my breakpoints. It must have slowed my transaction time causing a timeout. It just appeared that SOAPUI wasn't returning a response.

Thanks!
Leafy

---------


Hi Folks! When I call my web service via SOAPUI I'm not getting a response back. I'm not sure if its a SOAPUI thing or something in my code. Anyone have any recommendations?

Expand|Select|Wrap|Line Numbers
  1.  ' Save the Stream representing the SOAP request or SOAP response into
  2.     ' a local memory buffer.
  3.     Public Overrides Function ChainStream(ByVal stream As Stream) As Stream
  4.         originalStream = stream
  5.         internalStream = New MemoryStream()
  6.         Return internalStream
  7.     End Function
  8.  
  9. ' Write the SOAP response message out to the temp file.
  10.  
  11.     Public Sub WriteResponse(ByVal message As SoapMessage)
  12.         internalStream.Position = 0
  13.         Dim fs As New FileStream(m_filename, FileMode.Append, FileAccess.Write)
  14.         Copy(internalStream, fs)
  15.         fs.Close()
  16.         If xmlerror <> "" Then
  17.             Dim lfs As New FileStream(m_filename, FileMode.Open, FileAccess.Read)
  18.             Dim errorstream As New FileStream(errorlogfilename, FileMode.Append, FileAccess.Write)
  19.             Dim errorw As New StreamWriter(errorstream)
  20.             errorw.WriteLine(ControlChars.NewLine)
  21.             errorw.WriteLine("ERROR: " & DateTime.Now.ToString())
  22.             errorw.Flush()
  23.             Copy(lfs, errorstream)
  24.             errorstream.Close()
  25.             lfs.Close()
  26.         Else
  27.             Dim lfs As New FileStream(m_filename, FileMode.Open, FileAccess.Read)
  28.             Dim logstream As New FileStream(logpath, FileMode.Create, FileAccess.Write)
  29.             Copy(lfs, logstream)
  30.             lfs.Close()
  31.             logstream.Close()
  32.         End If
  33.         internalStream.Position = 0
  34.         Copy(internalStream, originalStream)
  35.         internalStream.Position = 0
  36.     End Sub
  37.  
  38.     ' Write the SOAP request message out to the temp file.
  39.  
  40.     Public Sub WriteRequest(ByVal message As SoapMessage)
  41.         Copy(originalStream, internalStream)
  42.         Dim fs As New FileStream(m_filename, FileMode.Create, FileAccess.Write)
  43.         internalStream.Position = 0
  44.         Copy(internalStream, fs)
  45.         fs.Close()
  46.         internalStream.Position = 0
  47.     End Sub
  48.  
  49. ' Copy stream.
  50.  
  51.     Sub Copy(ByVal fromStream As Stream, ByVal toStream As Stream)
  52.         Dim reader As New StreamReader(fromStream)
  53.         Dim writer As New StreamWriter(toStream)
  54.         writer.WriteLine(reader.ReadToEnd())
  55.         writer.Flush()
  56.     End Sub
I'm new to XML/SOAP/Web services so I'm hoping someone can recommend something here.

Thanks!
Leafy
Jan 20 '09 #1
0 3586

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Artur Niesporek | last post by:
Hi guys, when receiving a soap response posted back from a server i get the following error when deserializing the soap message. The problem seems to be with the item-collection of the...
0
by: McIndoeLab | last post by:
I am using .net Web Service to get SOAP response back to a consuming ASP.NET web page. My object model has a class called Strain. I have a Web Service class with exposed method GetStrains(int...
4
by: Jit Prasad | last post by:
I have been consuming a IBM Websphere (Java) web service using .Net 1.0 front end writen in VB.NET. The proxy class submits a soap request and gets a soap response. When I migrated the front-end...
4
by: Christian Wilhelm | last post by:
Hi! I have a Problem understanding the deserialisation of SOAP-Responses. The "normal" way, calling a XML WebService is to use WSDL 1) Send Request 2) Get SOAP-Response 3) With Informations...
2
by: Bob | last post by:
The .NET web service proxy class is great for transparent app process via SOAP calls. I have a need to log the raw SOAP response messages. Is there an easy way to do this? I saw there is already...
5
by: Robbert van Geldrop | last post by:
Hello, I have a problem consuming a WebService which appears to be dependent of the type of network I am on: The following SOAP response is not processed when I am connected over the internet...
1
by: Bert Leu | last post by:
Hi I've got two questions to Soap unter VB.Net 1) if one creates a WebService with a method i.g. "MethodX" (with VB.Net), the Soap-Response looks like: <soap:Envelope...>...
1
by: EradicusMax | last post by:
We have a vendor which does not use SOAP. I would like to create a web service to wrap all the http requests and responses to and from the vendor so that our clients can use SOAP. On the reporting...
0
by: Kurt Hougaard | last post by:
Hi, I have problem getting the right information out of a SOAP response.. I get the xml response, and everything looks right, but I would like to be able to extract the information that I need from...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.