20012 - Request not understood from C .Net

Anonymous
Not applicable

20012 - Request not understood from C .Net

Hi All,

We are receiving error messages from the Marketo API about our XML/SOAP message format being misunderstood, "Request does not appear to conform to WSDL (20012)" is the response message. We load the web service WSDL through .Net and it generates the XML for us automatically when we call the syncLead method. Our code was working with the API version 1.6 up until the 12th December, we've since tried API versions 2.1 and 2.2 with the same result. Can anyone suggest a fix? I've seen a few similar posts but people have taken it offline and sorted it out directly with Marketo so they haven't posted a fix.

Request:

POST https://eu-e.marketo.com/soap/mktows/2_1 HTTP/1.1
Content-Type: text/xml; charset=utf-8
VsDebuggerCausalityData: uIDPo74guvqoyidJk42dgcdcrHYAAAAAYC/mHEEty0602g2TBNJyfsGREB4a/q9Pj4JWkqQxubAACQAA
SOAPAction: "http://www.marketo.com/mktows/syncLead"
Host: eu-e.marketo.com
Content-Length: 1336
Expect: 100-continue
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:AuthenticationHeader xmlns:h="http://www.marketo.com/mktows/" xmlns="http://www.marketo.com/mktows/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><mktowsUserId xmlns="">removed</mktowsUserId><requestSignature xmlns="">removed</requestSignature><requestTimestamp xmlns="">2013-12-16T11:08:10-00:00</requestTimestamp></h:AuthenticationHeader><h:MktowsContextHeader xmlns:h="http://www.marketo.com/mktows/" xmlns="http://www.marketo.com/mktows/"/></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><paramsSyncLead xmlns="http://www.marketo.com/mktows/"><leadRecord xmlns=""><Email>batman@cave.com</Email><ForeignSysPersonId xsi:nil="true"/><leadAttributeList><attribute><attrName>FirstName</attrName><attrType>String</attrType><attrValue>Bat</attrValue></attribute><attribute><attrName>LastName</attrName><attrType>String</attrType><attrValue>Man</attrValue></attribute></leadAttributeList></leadRecord><returnLead xmlns="">false</returnLead><marketoCookie xmlns="">id:336-TAU-594&amp;token:_mch-mimecast.com-1713148259835-56001</marketoCookie></paramsSyncLead></s:Body></s:Envelope>


Response:

HTTP/1.0 500 Internal Server Error
Date: Mon, 16 Dec 2013 11:08:11 GMT
Server: Apache
Vary: Accept-Encoding
Content-Length: 520
Connection: close
Content-Type: text/xml; charset=utf-8
Set-Cookie: RSMKTO1=439622572.47873.0000; path=/

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Client</faultcode><faultstring>20012 - Request not understood</faultstring><detail><ns1:serviceException xmlns:ns1="http://www.marketo.com/mktows/"><name>mktServiceException</name><message>Request does not appear to conform to WSDL (20012)</message><code>20012</code></ns1:serviceException></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
Tags (1)
3 REPLIES 3
Anonymous
Not applicable

Re: 20012 - Request not understood from C .Net

Adding a small detail to your Support Case...

The XML request is missing the target workspace, a required parameter 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mkt="http://www.marketo.com/mktows/">
   <soapenv:Header>
      <mkt:MktowsContextHeader>
         <targetWorkspace>Default</targetWorkspace>
      </mkt:MktowsContextHeader>

 
Anonymous
Not applicable

Re: 20012 - Request not understood from C .Net

You have a malformed XML. The Marketo cookie value is not properly escaped.

Agha Ahsan
Principal Engineer
Anonymous
Not applicable

Re: 20012 - Request not understood from C .Net

MktowsContextHeader is not requiried unless you wish to target a specific Workspace in Marketo.