Forum Discussion

Martin_Lazar's avatar
Martin_Lazar
Occasional Contributor
16 years ago

soap monitor not working

Hi,  I tried to use soap monitor to test my webservice. Webservice location is    http://somedomain/somedefaultwebsite/webservice.asmx. Soapui global proxy preferencies are set to: host: 127.0.0.1 and port: 8081.  I configured firefox proxy settings like this: http proxy and ssl proxy both - host: localhost , port: 8081. When I used soapui 2.0.2 soap monitor tcp tunnel,  port 8081, target host: http://somedomain/somedefaultwebsite/webservice.asmx and typed in firefox this url: http://somedomain/somedefaultwebsite/webservice.asmx
everything worked fine. But I cant get up and working this in soapui 2.5.1.  in firefox I get the following message: This XML file does not appear to have any style information associated with it. The document tree is shown below.








soap:Receiver





System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Xml.XmlException: Root element is missing.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlTextReader.Read()
   at System.Web.Services.Protocols.SoapServerProtocol.SoapEnvelopeReader.Read()
   at System.Xml.XmlReader.MoveToContent()
   at System.Web.Services.Protocols.SoapServerProtocol.SoapEnvelopeReader.MoveToContent()
   at System.Web.Services.Protocols.SoapServerProtocolHelper.GetRequestElement()
   at System.Web.Services.Protocols.Soap12ServerProtocolHelper.RouteRequest()
   at System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMessage message)
   at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
   at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
   --- End of inner exception stack trace ---







Can anybody help? thanks

5 Replies

  • Martin_Lazar's avatar
    Martin_Lazar
    Occasional Contributor
    Hi Robert, thank you for your reply. I did not want to mock my service. I wanted to use soapui to forward requests from my client(webbrowser or another webservice) to my webservice. I wanted to see what request are made and what the responses are to that request. Now Im able to use MS tool Fiddler to act like a proxy and Im able to see request and responses which is working fine but in SoapUi is everything I need to work with services. Here is what is working in soapui 2.0.2 but not in 2.5 :

    Client(e.g firefox): proxy: localhost , port 8081
                                endpoint(url): http://localhost/myService.asmx
    or with "no proxy" setting:          http://localhost:8081/myService.asmx

    global soapui preferences: proxy: localhost, port 8081

    monitor: port 8081, create tcp tunel
                  target host: http://localhost/myService.asmx
                  "add endpoint" checked


    It looks like it has something to do with settings in soapui 2.5 but I think i tried everything to no avail. I would really like to have it running in 2.5 because of plenty good features added. Just to be sure: myservice is correctly running under iis server in Windows XP. Thank you for your time.
  • Pete_H's avatar
    Pete_H
    Occasional Contributor
    I have the same problem and ended up using TCPMon instead of SoapUI to monitor/tunnel requests between the client and the service.
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hello,

    Try nightly build, please. It should be working now with browser now. I made some fixtures to proxy mode.
    Let me know if it works for you.

    robert
  • Martin_Lazar's avatar
    Martin_Lazar
    Occasional Contributor
    Finaly works! Thanks. This is the setting that worked for me:

    firefox: manual proxy conf. : localhost, port 8081, the same for http proxy and ssl proxy

    monitor in soapui 2.5.2(nightly build from 01.04.2009): http proxy, port 8081

    in firefox i had to type url: http://localhost/MyService.asmx

    This is the only setting that worked for me, still not working with tcp tunel and target endpoint. Be sure you set the firefox proxy settings, i tried with "no proxy" settings and typed  http://localhost:8081/MyService.asmx but that was working neither(strange because it worked in 2.0.2).  At any rate thank you for this fix Robert