Open apocheau opened 4 years ago
Here are additionnal logs at application startup:
2019-12-13 15:20:53 DEBUG HTTPConduit:922 - Conduit '{http://cxf.apache.org}TransportURIResolver.http-conduit' has been (re)configured for plain http. 2019-12-13 15:20:53 DEBUG HTTPConduit:394 - No Trust Decider configured for Conduit '{http://cxf.apache.org}TransportURIResolver.http-conduit' 2019-12-13 15:20:53 DEBUG HTTPConduit:407 - No Auth Supplier configured for Conduit '{http://cxf.apache.org}TransportURIResolver.http-conduit' 2019-12-13 15:20:53 DEBUG HTTPConduit:426 - Conduit '{http://cxf.apache.org}TransportURIResolver.http-conduit' has been configured for plain http. 2019-12-13 15:20:53 DEBUG HTTPConduit:49 - registering incoming observer: org.apache.cxf.transport.TransportURIResolver$1@796fe2b5 2019-12-13 15:20:53 DEBUG HttpsURLConnectionFactory:449 - The location of the key store has not been set via a system parameter or through configuration so the default value of /home/apocheau/.keystore will be used. 2019-12-13 15:20:53 DEBUG HttpsURLConnectionFactory:449 - The key store password has not been set via a system property or through configuration, reading data from the keystore will fail. 2019-12-13 15:20:53 DEBUG HttpsURLConnectionFactory:449 - The key password has not been set via a system property or through configuration, reading data from the keystore will fail. 2019-12-13 15:20:53 TRACE HttpsURLConnectionFactory:179 - No default keystore /home/apocheau/.keystore 2019-12-13 15:20:53 DEBUG HttpsURLConnectionFactory:449 - The cipher suites have been set to [Ljava.lang.String;@79424f25. 2019-12-13 15:20:53 DEBUG Headers:283 - Accept: */* 2019-12-13 15:20:53 DEBUG HTTPConduit:1764 - No Trust Decider for Conduit '{http://cxf.apache.org}TransportURIResolver.http-conduit'. An afirmative Trust Decision is assumed. 2019-12-13 15:20:54 DEBUG ServiceImpl:430 - creating port for portName 2019-12-13 15:20:54 DEBUG ServiceImpl:431 - endpoint reference: 2019-12-13 15:20:54 DEBUG ServiceImpl:432 - endpoint interface: 2019-12-13 15:20:54 INFO ReflectionServiceFactoryBean:388 - Creating Service {http://exacttarget.com/wsdl/partnerAPI}PartnerAPI from WSDL: jar:file:/home/apocheau/.m2/repository/com/github/salesforce-marketingcloud/fuelsdk/1.5.0/fuelsdk-1.5.0.jar!/etframework.wsdl 2019-12-13 15:20:54 DEBUG HTTPConduit:922 - Conduit '{http://cxf.apache.org}TransportURIResolver.http-conduit' has been (re)configured for plain http. 2019-12-13 15:20:54 DEBUG HTTPConduit:394 - No Trust Decider configured for Conduit '{http://cxf.apache.org}TransportURIResolver.http-conduit' 2019-12-13 15:20:54 DEBUG HTTPConduit:407 - No Auth Supplier configured for Conduit '{http://cxf.apache.org}TransportURIResolver.http-conduit' 2019-12-13 15:20:54 DEBUG HTTPConduit:426 - Conduit '{http://cxf.apache.org}TransportURIResolver.http-conduit' has been configured for plain http. 2019-12-13 15:20:54 DEBUG HTTPConduit:49 - registering incoming observer: org.apache.cxf.transport.TransportURIResolver$1@6d4d0a14 2019-12-13 15:20:54 DEBUG HttpsURLConnectionFactory:449 - The cipher suites have been set to [Ljava.lang.String;@1cca3e8c. 2019-12-13 15:20:54 DEBUG Headers:283 - Accept: */* 2019-12-13 15:20:54 DEBUG HTTPConduit:1764 - No Trust Decider for Conduit '{http://cxf.apache.org}TransportURIResolver.http-conduit'. An afirmative Trust Decision is assumed. 2019-12-13 15:20:54 DEBUG WSDLServiceBuilder:696 - Operation {http://exacttarget.com/wsdl/partnerAPI}Create cannot be unwrapped, input message must reference global element declaration with same localname as operation 2019-12-13 15:20:54 DEBUG WSDLServiceBuilder:696 - Operation {http://exacttarget.com/wsdl/partnerAPI}Retrieve cannot be unwrapped, input message must reference global element declaration with same localname as operation 2019-12-13 15:20:54 DEBUG WSDLServiceBuilder:696 - Operation {http://exacttarget.com/wsdl/partnerAPI}Update cannot be unwrapped, input message must reference global element declaration with same localname as operation 2019-12-13 15:20:54 DEBUG WSDLServiceBuilder:696 - Operation {http://exacttarget.com/wsdl/partnerAPI}Delete cannot be unwrapped, input message must reference global element declaration with same localname as operation 2019-12-13 15:20:54 DEBUG WSDLServiceBuilder:696 - Operation {http://exacttarget.com/wsdl/partnerAPI}Query cannot be unwrapped, input message must reference global element declaration with same localname as operation 2019-12-13 15:20:54 DEBUG WSDLServiceBuilder:696 - Operation {http://exacttarget.com/wsdl/partnerAPI}Describe cannot be unwrapped, input message must reference global element declaration with same localname as operation 2019-12-13 15:20:54 DEBUG WSDLServiceBuilder:696 - Operation {http://exacttarget.com/wsdl/partnerAPI}Execute cannot be unwrapped, input message must reference global element declaration with same localname as operation 2019-12-13 15:20:54 DEBUG WSDLServiceBuilder:696 - Operation {http://exacttarget.com/wsdl/partnerAPI}Perform cannot be unwrapped, input message must reference global element declaration with same localname as operation 2019-12-13 15:20:54 DEBUG WSDLServiceBuilder:696 - Operation {http://exacttarget.com/wsdl/partnerAPI}Configure cannot be unwrapped, input message must reference global element declaration with same localname as operation 2019-12-13 15:20:54 DEBUG WSDLServiceBuilder:696 - Operation {http://exacttarget.com/wsdl/partnerAPI}Schedule cannot be unwrapped, input message must reference global element declaration with same localname as operation 2019-12-13 15:20:54 DEBUG WSDLServiceBuilder:696 - Operation {http://exacttarget.com/wsdl/partnerAPI}VersionInfo cannot be unwrapped, input message must reference global element declaration with same localname as operation 2019-12-13 15:20:54 DEBUG WSDLServiceBuilder:696 - Operation {http://exacttarget.com/wsdl/partnerAPI}Extract cannot be unwrapped, input message must reference global element declaration with same localname as operation 2019-12-13 15:20:54 DEBUG WSDLServiceBuilder:696 - Operation {http://exacttarget.com/wsdl/partnerAPI}GetSystemStatus cannot be unwrapped, input message must reference global element declaration with same localname as operation 2019-12-13 15:20:55 DEBUG JAXBDataBinding:333 - Created JAXBContext "jar:file:/home/apocheau/.m2/repository/com/sun/xml/bind/jaxb-impl/2.2.11/jaxb-impl-2.2.11.jar!/com/sun/xml/bind/v2/runtime/JAXBContextImpl.class Build-Id: 2.2.11
Changing the soap endpoint: from: https://mcgdn-xxx.soap.marketingcloudapis.com/ to: https://mcgdn-xxx.soap.marketingcloudapis.com/Service.asmx
I now get this errorCode 2:
<CreateResponse xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Results>
<StatusCode>Error</StatusCode>
<StatusMessage>Exception occurred during [CreateSendClassification] ErrorID: 1001281912</StatusMessage>
<OrdinalID>0</OrdinalID>
<ErrorCode>2</ErrorCode>
<NewID>0</NewID>
<Object xsi:type="SendClassification">
<PartnerKey xsi:nil="true"/>
<ModifiedDate xsi:nil="true"/>
<ObjectID>CUSTOMER_KEY</ObjectID>
<CustomerKey>CUSTOMER_KEY</CustomerKey>
<Name>CUSTOMER_KEY</Name>
</Object>
</Results>
<RequestID>0387ec3e-bc0a-4853-98f4-9ab74da5c648</RequestID>
<OverallStatus>Error</OverallStatus>
</CreateResponse>
From https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-apis.meta/mc-apis/0_99.htm error code 2 means:
2 | System - General Exception | Exception occurred during [{Operation}] ErrorID: {ErrorID} | You may encounter this error code on a SOAP fault during authentication (login has an unexpected exception). Log error information and contact Marketing Cloud support.
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