Skip to main content
2 de 2
adicionou 4 caracteres ao conteúdo
Icaro Martins
  • 4,3mil
  • 14
  • 24
  • 35

Como executar um Webservice WSDL a partir de uma Stored Procedure do SQL Server

Alguem sabe como criar uma procedure do SQL Server para executar um Webservice do fluig ?

A idéia é criar um processo a partir da execução da Procedure

Lí sobre as Ole Automation Stored Procedures do SQL Server mas estou com dúvidas sobre como devo monta-las pois preciso passar a URL

http://SERVIDOR/webdesk/ECMWorkflowEngineService?wsdl'

e o XML

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.workflow.ecm.technology.totvs.com/">
   <soapenv:Header/>
   <soapenv:Body>
      <ws:simpleStartProcess>
         <username>usuario</username>
         <password>senha</password>
         <companyId>1</companyId>
         <processId>processo</processId>
         <comments>GERADO VIA WS</comments>
         <attachments>
            <!--Zero or more repetitions:-->
            <item>
               <attachmentSequence>?</attachmentSequence>
               <!--Zero or more repetitions:-->
               <attachments>
                  <!--Optional:-->
                  <attach>?</attach>
                  <!--Optional:-->
                  <descriptor>?</descriptor>
                  <!--Optional:-->
                  <editing>?</editing>
                  <!--Optional:-->
                  <fileName>?</fileName>
                  <!--Optional:-->
                  <fileSelected/>
                  <fileSize>?</fileSize>
                  <!--Optional:-->
                  <filecontent>cid:702686015833</filecontent>
                  <!--Optional:-->
                  <fullPatch>?</fullPatch>
                  <!--Optional:-->
                  <iconPath>?</iconPath>
                  <!--Optional:-->
                  <mobile>?</mobile>
                  <!--Optional:-->
                  <pathName>?</pathName>
                  <!--Optional:-->
                  <principal>?</principal>
               </attachments>
               <!--Optional:-->
               <colleagueId>?</colleagueId>
               <!--Optional:-->
               <colleagueName>?</colleagueName>
               <companyId>?</companyId>
               <!--Optional:-->
               <crc>?</crc>
               <!--Optional:-->
               <createDate>?</createDate>
               <!--Optional:-->
               <createDateTimestamp>?</createDateTimestamp>
               <!--Optional:-->
               <deleted>?</deleted>
               <!--Optional:-->
               <description>?</description>
               <!--Optional:-->
               <documentId>?</documentId>
               <!--Optional:-->
               <documentType>?</documentType>
               <!--Optional:-->
               <fileName>?</fileName>
               <!--Optional:-->
               <newAttach>?</newAttach>
               <!--Optional:-->
               <originalMovementSequence>?</originalMovementSequence>
               <!--Optional:-->
               <permission>?</permission>
               <processInstanceId>?</processInstanceId>
               <size>?</size>
               <!--Optional:-->
               <version>?</version>
            </item>
         </attachments>
         <cardData>
            <!--Zero or more repetitions:-->
            <item>
               <!--Zero or more repetitions:-->
               <item>codigoProduto</item>
               <item>"Item"</item>
            </item>
         </cardData>
      </ws:simpleStartProcess>
   </soapenv:Body>
</soapenv:Envelope>

Alguem tem ideia de como fazer isso ?