Olá a todos, estou fazendo uma rotina que transmite dados via webService, é a primeira vez que faço a transmissão via SOAP. Tenho que enviar 3 parâmetro más só estou conseguindo enviar os 2 primeiros: dataBaseAlias e transactionId Para o parâmetro listData o transformei em xml como abaixo e joguei o conteúdo em uma variável longchar. Código: <listData xmlns:listData="http://tempuri.org/"> <TransactionInfo> <ID>BR PBL 2015 08 27 13 22 24 052302</ID> <Outbound_ID/> <TransactionName/> <InfoList> <Info> <Label>scrm_dealer</Label> <Value>266</Value> </Info> <Info> <Label>scrm_accountid</Label> <Value>999999</Value> </Info> <Info> <Label>scrm_country</Label> <Value>01058</Value> </Info> </InfoList> </TransactionInfo> </listData> Usando o programa proenv ele me traz os seguintes dados a baixo: Código: Parameters dataBaseAlias This value is defined as an XML Schema string value. transactionId This value is defined as an XML Schema string value. listData This value is defined as a listData element in the http://tempuri.org/ namespace. Example <!-- The following element is optional. --> <ns0:listData xmlns:ns0="http://tempuri.org/"> <!-- The following element may occur 0 or more times. The following element may have the 'xsi:nil="true"` attribute (it is nillable). --> <ns0:TransactionInfo> <!-- The following element is optional. --> <ns0:ID>string-value</ns0:ID> <!-- The following element is optional. --> <ns0:Outbound_ID>string-value</ns0:Outbound_ID> <!-- The following element is optional. --> <ns0:TransactionName>string-value</ns0:TransactionName> <!-- The following element is optional. --> <ns0:InfoList> <!-- The following element may occur 0 or more times. The following element may have the 'xsi:nil="true"` attribute (it is nillable). --> <ns0:Info> <!-- The following element is optional. --> <ns0:Label>string-value</ns0:Label> <!-- The following element is optional. --> <ns0:Value>string-value</ns0:Value> <!-- The following element is optional. --> <ns0:Format>string-value</ns0:Format> <!-- The following element is optional. --> <ns0:Type>string-value</ns0:Type> </ns0:Info> </ns0:InfoList> </ns0:TransactionInfo> </ns0:listData>
Boa tarde! Vc pode usar o endereço do wsdl e criar a documentação do progress, automaticamente, pra ver como vc tem que enviar os parâmetros... o comando é: bprowsdldoc <caminho do wsdl> <diretório para gravar os arquivos gerados> Qq dúvida, é só digitar bprowsdldoc no Proenv q ele te mostra as opções..
Boa tarde, encontrei o problema, na linha <listData xmlns:listData="http://tempuri.org/"> não deveria existir o :listData, agora está funcionando perfeitamente. Obrigado!