Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Execute method not supported? #48

Closed
gscott opened this issue Mar 11, 2015 · 5 comments
Closed

Execute method not supported? #48

gscott opened this issue Mar 11, 2015 · 5 comments

Comments

@gscott
Copy link

gscott commented Mar 11, 2015

I was trying to execute a LogUnsubEvent call and I time out. Then I looked inside the code and see this:

https://github.com/ExactTarget/Fuel-Node-SOAP/blob/master/lib/fuel-soap.js#L331-L333

Am I out of luck? :)

@gscott
Copy link
Author

gscott commented Mar 13, 2015

@vernak2539 suggestion?

@vernak2539
Copy link
Contributor

@gscott sorry for the delayed response. Unfortunately, I don't do much with SOAP. These guys would be best to ask. @dougwilson @aydrian @kellyjandrews

@dougwilson
Copy link

@vernak2539 I don't know too much about this SDK, but it looks from the OP that no one has implemented the execute method in this module. This basically sounds like a feature request for whoever maintains this module :)

Otherwise, it seems like you can use the soapRequest method to manually construct an Execute request, though I'm not familiar enough with this module's interface to know how to do that (besides it may require special handling to be added to FuelSoap.prototype._parseResponse).

vernak2539 added a commit that referenced this issue May 5, 2015
first pass at implementing execute method, closes #48
@rawberg
Copy link

rawberg commented Feb 12, 2016

@gscott did you ever get the LogUnsubEvent event working? I'm able to create the xml payload successfully but always seem to get the same error back Object reference not set to an instance of an object.

@sataylor7
Copy link

@rawberg important to note that the Name and Value have to be capitalized

SoapClient.execute(
  "LogUnsubEvent",
  [
    {
      Name: "SubscriberID",
      Value: "subscriber id "
    },
    {
      Name: "SubscriberKey",
      Value: "whatever your subscriber key is"
    },
    {
      Name: "EmailAddress",
      Value: "superawesome@test.com"
    },
    {
      Name: "JobID",
      Value: 0
    },
    {
      Name: "ListID",
      Value: 0
    },
    {
      Name: "BatchID",
      Value: 0
    },
    {
      Name: "Reason",
      Value: "whatever reason"
    }
  ],
  (err, response) => {
    if (err) {
      // error here
      console.log(err);
      return;
    }

    // response.body === parsed soap response (JSON)
    // response.res === full response from request client
    console.log(response.body);
  }
);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants