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

Notifications

Announcements

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
    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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,810

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 810 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 676 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans