I am trying to create a customer using the page service.
This is the xml packet
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ins="urn:microsoft-dynamics-schemas/page/customercard">
<soapenv:Header />
<soapenv:Body>
<ins:Create>
<ins:CustomerCard>
<ins:Name>Devdrone</ins:Name>
<ins:Address>CB28</ins:Address>
<ins:Address_2>Salt Lake</ins:Address_2>
<ins:City>Kolkata</ins:City>
<ins:Post_Code>700080</ins:Post_Code>
<ins:Country_Region_Code>IN</ins:Country_Region_Code>
<ins:Phone_No>7278585866</ins:Phone_No>
<ins:E_Mail>devdrone@insync.co.in</ins:E_Mail>
</ins:CustomerCard>
</ins:Create>
</soapenv:Body>
</soapenv:Envelope>
The error is
The underlying connection was closed: An unexpected error occurred on a receive.
This is what comes in the Event Viewer
This worked fine when i was using NAV 2013 R2, But this error is coming in NAV 2016.
Answers
I removed the ';'
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ins="urn:microsoft-dynamics-schemas/page/customercard">
<soapenv:Header />
<soapenv:Body>
<ins:Create>
<ins:CustomerCard>
<ins:Name>Devdrone</ins:Name>
<ins:Address>CB28</ins:Address>
<ins:Address_2>Salt Lake</ins:Address_2>
<ins:City>Kolkata</ins:City>
<ins:Post_Code>700080</ins:Post_Code>
<ins:Country_Region_Code>IN</ins:Country_Region_Code>
<ins:Phone_No>7278585866</ins:Phone_No>
<ins:E_Mail>devdrone@insync.co.in</ins:E_Mail>
</ins:CustomerCard>
</ins:Create>
</soapenv:Body>
</soapenv:Envelope>
Still the same error.
https://community.dynamics.com/nav/f/34/t/182486
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!