Forum Discussion

mcbootus's avatar
mcbootus
Contributor
15 years ago

SoapUI and Outlook 2007

Dear Support,

Currently our Web Service XML output is delivered to a dedicated Outlook mail box as an attachment xml file for Dev Testing purposes. Is there any way that SoapUI could detect an email via the Subject content and then be able to open the XML attachment in the mail and consider it as a Web Service XML response ?

Thank you in advance,
Armen

4 Replies

  • Hi Armen,

    I guess it could be done but it is a bit cumbersome:

    1) Create a simple MockService that exposes a MockResponse that via a script retrieves the Mail and its attachment and returns it as the response message
    2) Call the MockService with your soap-request, the response will be retrieved and returned as a standard SOAP response, and can thus be handled as such.

    Does that make sense?

    regards!

    /Ole
    eviware.com
  • Thanks for the info Ole,

    Its the first part I cannot do - can SoapUI do this or do I have to include an external package?

    Thanks,
    Armen
  • Hi Armen,

    you should be able to do this without the need of any more external libraries; create a Script for your MockResponse that uses the javamail API (which is included with soapUI) to poll your outook account via POP3 and retrieves any available messages..

    regards!

    /Ole
    eviware.com
  • Dear Ole,

    Thank you for the information - I will look into your suggestion and report back.

    Best regards,
    Armen