I tried to run the sample SyncLead code in Java an get this error:
Notes: In fact, this sample code ran fine with the credentials provided in the sample (Marketo Host, User Id, Secret Key), but when I tried to use this my own credentials (HUS), I got the error.
Executing syncLead
javax.xml.ws.soap.SOAPFaultException: 20126 - Workspace not found
at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(Unknown Source)
at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(Unknown Source)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(Unknown Source)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(Unknown Source)
at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(Unknown Source)
at com.sun.proxy.$Proxy34.syncLead(Unknown Source)
at pkg.client.TestMarketoSyncLead.main(TestMarketoSyncLead.java:80)
The error points to this line in the code:
SuccessSyncLead result = port.syncLead(request, header, headerContext);
Please help me to resolve this issue.
Thanks!