SOAP Web Services with Google Apps Script

Not Yet Reviewed

Has anyone created anything with Google Apps Script that makes a SOAP call to xMatters?

I'm trying to use the FindWhoIsOnDuty operation.

0

Comments

3 comments
Date Votes

Please sign in to leave a comment.

  • Andrew! Oh man. I've heard about Google Apps Scripts, but I haven't played with them. I'll try to poke around and see what we can do. What parts in particular are you having issues with? What have you tried and what has gotten you this far?

    0
  • The hardest part has been that Google depreciated it's SOAP service and they now want you to construct the soap envelope manually.

    The part I seem to be struggling with is passing the parameters. My logging always just shows me returning part of the WSDL and not the actual response. I can get it to work using SoapUI, but GAS is stumping me.

    0
  • Andrew, I've found that FindWhoIsOnDuty to be rather arduous to play with in the first place, especially with a new framework. A couple of things that might help 1) Use a soap client such as SOAPUI to retrieve the WSDL and pre-build the SOAP envelope and swap in the values to make a good request. The date format is a bit of a pain so this helps iron those things out. 2) Send the request to something like requestb.in or webhookapp to verify what is coming out is what you are expecting.
    I find the biggest issues you'll run into with part 1 is the name space stuff. SOAPUI will generate the SOAP payload with a namespace that is probably different than what Google Apps Script might do. Also, dividing up the incoming request vs the outbound response will help isolate if it is xMatters causing problems or if Google Apps is the one not behaving.
    This is something I'd like to investigate further, so post your results here and we can work through it.

    0

Didn't find what you were looking for?

New post