-
Notifications
You must be signed in to change notification settings - Fork 122
[BUG] Authentication problem with SoapConnection ? #113
Comments
Here are additionnal logs at application startup:
|
Changing the soap endpoint: I now get this errorCode 2:
From https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-apis.meta/mc-apis/0_99.htm error code 2 means:
Is there something about authentication i should do? ... And about the Marketing Cloud support, they do not answer questions about API. |
Describe the bug
Hello, I am trying to create a SendClassification for sending an email to a DataExtension. I am using FuelSDK-Java 1.5.0 and I am able to work with DataExtensions and the REST API for ContentBuilder. I now want to send mailings.
As i have to use SOAP API to work with this objet, i try to use ETSoapConnection to send CreateRequest for object creations. But when i execute the request, i get an
HTTPException '405 not allowed'
.Do you think it is a bug, should i use the SDK another way ?
Any input would be appreciated !
Thanks !
Here is the exception:
To Reproduce
Use code below.
Expected behavior
I expect the request to be accepted by MarketingCloud.
Code snippet
ETSoapConnection soapConnection = null;
try {
soapConnection = new ETSoapConnection(etClient, "https://mcgdn-XXX.soap.marketingcloudapis.com/", etClient.getAccessToken());
} catch (ETSdkException e) {
log.error("Error creating SOAP connection");
}
SendClassification sendClassification = new SendClassification();
sendClassification.setObjectID("CUSTOMER_KEY");
sendClassification.setCustomerKey("CUSTOMER_KEY");
sendClassification.setName("CUSTOMER_KEY");
CreateRequest createRequest = new CreateRequest();
createRequest.getObjects().add(sendClassification);
CreateResponse createResponse = soapConnection.getSoap().create(createRequest);
Environment
The bug has the severity
The text was updated successfully, but these errors were encountered: