web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

How to consume an asmx web service from Business Central

(0) ShareShare
ReportReport
Posted on by 99

I have no idea how to do it since I have not worked with SOAP before. I have read some docs and have seen that I have to create both a page and a table (I already have that), but I have not found a way to communicate with the server and extract the data. Can someone explain in detail what I should do?

The information I have is the following:

POST /Interface.asmx HTTP/1.1
Host: uh.***.com.br
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "">www.***.com.br/.../GetMovimentacao"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="">www.w3.org/.../XMLSchema-instance" xmlns:xsd="">www.w3.org/.../XMLSchema" xmlns:soap="">schemas.xmlsoap.org/.../">
<soap:Body>
<GetMovimentacao xmlns="">www.***.com.br/***">
<Credencial>
<UserName>string</UserName>
<Password>string</Password>
<SecurePassword />
<Domain>string</Domain>
</Credencial>
</GetMovimentacao>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

------------------------------------------------------------------------------------------------------------------------

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="">www.w3.org/.../XMLSchema-instance" xmlns:xsd="">www.w3.org/.../XMLSchema" xmlns:soap="">schemas.xmlsoap.org/.../">
<soap:Body>
<GetMovimentacaoResponse xmlns="">www.***.com.br/***">
<GetMovimentacaoResult>
<Codigo>int</Codigo>
<Mensagem>string</Mensagem>
<Data>dateTime</Data>
<List>
<Movimentacao>
<Codigo>string</Codigo>
<TipoMovimentacao>string</TipoMovimentacao>
<DataMovimentacao>dateTime</DataMovimentacao>
<EmpresaOrigem xsi:nil="true" />
<CentroCustoOrigem xsi:nil="true" />
<EmpresaDestino xsi:nil="true" />
<CentroCustoDestino xsi:nil="true" />
<TipoDocumento>SemDocumento or Prescricao or Requisicao or DocumentoEntrada or DocumentoSaida</TipoDocumento>
<CodigoDocumento>string</CodigoDocumento>
<Matricula>string</Matricula>
<Prontuario>string</Prontuario>
<Produto xsi:nil="true" />
<CodigoProdutoSecundario>string</CodigoProdutoSecundario>
<Quantidade>int</Quantidade>
<Valor>decimal</Valor>
<Cubagem xsi:nil="true" />
<Lote>string</Lote>
<Validade>dateTime</Validade>
<CodigoItemDocumento>string</CodigoItemDocumento>
<Usuario>string</Usuario>
<CodigoEtiqueta>string</CodigoEtiqueta>
<Identificador>string</Identificador>
</Movimentacao>
<Movimentacao>
<Codigo>string</Codigo>
<TipoMovimentacao>string</TipoMovimentacao>
<DataMovimentacao>dateTime</DataMovimentacao>
<EmpresaOrigem xsi:nil="true" />
<CentroCustoOrigem xsi:nil="true" />
<EmpresaDestino xsi:nil="true" />
<CentroCustoDestino xsi:nil="true" />
<TipoDocumento>SemDocumento or Prescricao or Requisicao or DocumentoEntrada or DocumentoSaida</TipoDocumento>
<CodigoDocumento>string</CodigoDocumento>
<Matricula>string</Matricula>
<Prontuario>string</Prontuario>
<Produto xsi:nil="true" />
<CodigoProdutoSecundario>string</CodigoProdutoSecundario>
<Quantidade>int</Quantidade>
<Valor>decimal</Valor>
<Cubagem xsi:nil="true" />
<Lote>string</Lote>
<Validade>dateTime</Validade>
<CodigoItemDocumento>string</CodigoItemDocumento>
<Usuario>string</Usuario>
<CodigoEtiqueta>string</CodigoEtiqueta>
<Identificador>string</Identificador>
</Movimentacao>
</List>
<ErrorDetails>
<string>string</string>
<string>string</string>
</ErrorDetails>
<TempoDecorrido>string</TempoDecorrido>
</GetMovimentacaoResult>
</GetMovimentacaoResponse>
</soap:Body>
</soap:Envelope>

I have the same question (0)
  • Suggested answer
    Andy Sather Profile Picture
    Microsoft Employee on at

    Hello  - We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist.  If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    dynamicsuser.net/.../developers

    I will open this up to the community in case they have something to add.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,986 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,071 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 975 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans