Estou com dificuldades para consumir o Web Service da SEFAZ/RS. Este Web Service recebe apenas um parâmetro do Tipo (CteDadosMsg), diferente do NfeStatusServico que recebe (Cabeçalho e Corpo). Desta forma juntei o Cabeçalho e o Corpo no arquivo XML.
Se alguém puder ajudar eu agradeço.
XML Gerado Para Envio
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<cteCabecMsg xmlns="http://www.portalfiscal.inf.br/cte" versao="1.02">
<cUF>41</cUF>
<versaoDados>1.01</versaoDados>
</cteCabecMsg>
<?xml version="1.0" encoding="UTF-8"?>
<consStatServ versao="1.01" xmlns="http://www.portalfiscal.inf.br/cte">
<tpAmb>2</tpAmb>
<xServ>STATUS</xServ>
</consStatServ>"
resultado = cteStatus.cteStatusServicoCT(corpo);
Erro Apontado
javax.xml.ws.soap.SOAPFaultException: System.Web.Services.Protocols.SoapException: Server was unable to read request. —> System.InvalidOperationException: There is an error in XML document (1, 462). —> System.InvalidOperationException: The specified node cannot be inserted as the valid child of this node, because the specified node is the wrong type.