none
serviço para inserir dados criar um igual do cliente RRS feed

  • Pergunta

  • Ola
    preciso criar um serviço idêntico a esse abaixo para inserir no meu banco  
    com Request e response igual como faço ? 
    criei um WCF porem não estou conseguindo fazer o mesmo Request 

        
    <wsdl:definitions targetNamespace="http://tempuri.org/" 
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
    xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" 
    xmlns:s="http://www.w3.org/2001/XMLSchema"
    xmlns:tns="http://tempuri.org/" 
    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" 
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/">
       <wsdl:types>
          <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/">
             <s:element name="SetToDSD">
                <s:complexType>
                   <s:sequence>
                      <s:element minOccurs="0" maxOccurs="1" name="server" type="s:string"/>
                      <s:element minOccurs="0" maxOccurs="1" name="port" type="s:string"/>
                      <s:element minOccurs="0" maxOccurs="1" name="database" type="s:string"/>
                      <s:element minOccurs="0" maxOccurs="1" name="hostName" type="s:string"/>
                      <s:element minOccurs="0" maxOccurs="1" name="agx015s" type="tns:ArrayOfAGX015"/>
                      <s:element minOccurs="0" maxOccurs="1" name="agx013s" type="tns:ArrayOfAGX013"/>
                      <s:element minOccurs="0" maxOccurs="1" name="agx013SORE" type="tns:ArrayOfAGX013"/>
                      <s:element minOccurs="0" maxOccurs="1" name="agx016s" type="tns:ArrayOfAGX016"/>
                      <s:element minOccurs="0" maxOccurs="1" name="agx016SORE" type="tns:ArrayOfAGX016"/>
                   </s:sequence>
                </s:complexType>
             </s:element>
             <s:complexType name="ArrayOfAGX015">
                <s:sequence>
                   <s:element minOccurs="0" maxOccurs="unbounded" name="AGX015" nillable="true" type="tns:AGX015"/>
                </s:sequence>
             </s:complexType>
             <s:complexType name="AGX015">
                <s:sequence>
                   <s:element minOccurs="1" maxOccurs="1" name="AG6FEC" type="s:dateTime"/>
                   <s:element minOccurs="1" maxOccurs="1" name="AG15VI" type="s:int"/>
                   <s:element minOccurs="0" maxOccurs="1" name="AG15DC" type="s:string"/>
                   <s:element minOccurs="0" maxOccurs="1" name="AG15TR" type="s:string"/>
                   <s:element minOccurs="1" maxOccurs="1" name="ORDEN_VENTA" type="s:long"/>
                   <s:element minOccurs="0" maxOccurs="1" name="AG15OM" type="s:string"/>
                   <s:element minOccurs="1" maxOccurs="1" name="Fec_Venta" type="s:dateTime"/>
                </s:sequence>
             </s:complexType>
             <s:complexType name="ArrayOfAGX013">
                <s:sequence>
                   <s:element minOccurs="0" maxOccurs="unbounded" name="AGX013" nillable="true" type="tns:AGX013"/>
                </s:sequence>
             </s:complexType>
             <s:complexType name="AGX013">
                <s:sequence>
                   <s:element minOccurs="1" maxOccurs="1" name="AG6FEC" type="s:dateTime"/>
                   <s:element minOccurs="1" maxOccurs="1" name="CODIGO_PRODUCTO" type="s:int"/>
                   <s:element minOccurs="1" maxOccurs="1" name="AG13VI" type="s:int"/>
                   <s:element minOccurs="1" maxOccurs="1" name="AG13CA" type="s:int"/>
                   <s:element minOccurs="1" maxOccurs="1" name="AG13SO" type="s:int"/>
                   <s:element minOccurs="1" maxOccurs="1" name="AG13RE" type="s:int"/>
                   <s:element minOccurs="0" maxOccurs="1" name="ITEM_PLANTA_NUM" type="s:string"/>
                   <s:element minOccurs="1" maxOccurs="1" name="RAZON_ID" type="s:int"/>
                   <s:element minOccurs="0" maxOccurs="1" name="UOMS_PLANTA_ID" type="s:string"/>
                </s:sequence>
             </s:complexType>
             <s:complexType name="ArrayOfAGX016">
                <s:sequence>
                   <s:element minOccurs="0" maxOccurs="unbounded" name="AGX016" nillable="true" type="tns:AGX016"/>
                </s:sequence>
             </s:complexType>
             <s:complexType name="AGX016">
                <s:sequence>
                   <s:element minOccurs="1" maxOccurs="1" name="AG6FEC" type="s:dateTime"/>
                   <s:element minOccurs="1" maxOccurs="1" name="AG16TL" type="s:int"/>
                   <s:element minOccurs="1" maxOccurs="1" name="AG16SO" type="s:int"/>
                   <s:element minOccurs="1" maxOccurs="1" name="AG16RE" type="s:int"/>
                   <s:element minOccurs="1" maxOccurs="1" name="AG13VI" type="s:int"/>
                   <s:element minOccurs="0" maxOccurs="1" name="UOM_ITEM_PLANTA" type="s:string"/>
                   <s:element minOccurs="1" maxOccurs="1" name="RAZON_ID" type="s:int"/>
                </s:sequence>
             </s:complexType>
             <s:complexType name="ArrayOfAGX019">
                <s:sequence>
                   <s:element minOccurs="0" maxOccurs="unbounded" name="AGX019" nillable="true" type="tns:AGX019"/>
                </s:sequence>
             </s:complexType>
             <s:complexType name="AGX019">
                <s:sequence>
                   <s:element minOccurs="1" maxOccurs="1" name="AG19FC" type="s:dateTime"/>
                   <s:element minOccurs="1" maxOccurs="1" name="AG19NO" type="s:short"/>
                   <s:element minOccurs="1" maxOccurs="1" name="AG30ID" type="s:short"/>
                   <s:element minOccurs="1" maxOccurs="1" name="AG19MN" type="s:decimal"/>
                   <s:element minOccurs="0" maxOccurs="1" name="AG19UA" type="s:string"/>
                   <s:element minOccurs="1" maxOccurs="1" name="CODIGO_FABRICA" type="s:short"/>
                </s:sequence>
             </s:complexType>
             <s:complexType name="ArrayOfAGX020">
                <s:sequence>
                   <s:element minOccurs="0" maxOccurs="unbounded" name="AGX020" nillable="true" type="tns:AGX020"/>
                </s:sequence>
             </s:complexType>
             <s:complexType name="AGX020">
                <s:sequence>
                   <s:element minOccurs="1" maxOccurs="1" name="AG19FC" type="s:dateTime"/>
                   <s:element minOccurs="1" maxOccurs="1" name="AG19NO" type="s:short"/>
                   <s:element minOccurs="0" maxOccurs="1" name="ITEM_PLANTA_NUM" type="s:string"/>
                   <s:element minOccurs="0" maxOccurs="1" name="UOMS_PLANTA_ID" type="s:string"/>
                   <s:element minOccurs="1" maxOccurs="1" name="MULTIPLO" type="s:short"/>
                   <s:element minOccurs="1" maxOccurs="1" name="AG20PR" type="s:decimal"/>
                   <s:element minOccurs="1" maxOccurs="1" name="AG20CN" type="s:int"/>
                   <s:element minOccurs="1" maxOccurs="1" name="AG20PI" type="s:int"/>
                   <s:element minOccurs="1" maxOccurs="1" name="AG30ID" type="s:short"/>
                   <s:element minOccurs="1" maxOccurs="1" name="AG19MN" type="s:decimal"/>
                   <s:element minOccurs="0" maxOccurs="1" name="AG19UA" type="s:string"/>
                   <s:element minOccurs="1" maxOccurs="1" name="codigo_fabrica" type="s:short"/>
                   <s:element minOccurs="1" maxOccurs="1" name="RAZON_ID" type="s:int"/>
                </s:sequence>
             </s:complexType>
             <s:element name="SetToDSDResponse">
                <s:complexType>
                   <s:sequence>
                      <s:element minOccurs="0" maxOccurs="1" name="SetToDSDResult" type="s:string"/>
                   </s:sequence>
                </s:complexType>
             </s:element>
             <s:element name="SetToDSD_NR">
                <s:complexType>
                   <s:sequence>
                      <s:element minOccurs="0" maxOccurs="1" name="server" type="s:string"/>
                      <s:element minOccurs="0" maxOccurs="1" name="port" type="s:string"/>
                      <s:element minOccurs="0" maxOccurs="1" name="database" type="s:string"/>
                      <s:element minOccurs="0" maxOccurs="1" name="hostName" type="s:string"/>
                      <s:element minOccurs="0" maxOccurs="1" name="agx013SORE" type="tns:ArrayOfAGX013"/>
                      <s:element minOccurs="0" maxOccurs="1" name="agx016SORE" type="tns:ArrayOfAGX016"/>
                      <s:element minOccurs="0" maxOccurs="1" name="_ag13vi" type="s:string"/>
                   </s:sequence>
                </s:complexType>
             </s:element>
             <s:element name="SetToDSD_NRResponse">
                <s:complexType>
                   <s:sequence>
                      <s:element minOccurs="0" maxOccurs="1" name="SetToDSD_NRResult" type="s:string"/>
                   </s:sequence>
                </s:complexType>
             </s:element>
             <s:element name="SetDatosComplementarios">
                <s:complexType>
                   <s:sequence>
                      <s:element minOccurs="0" maxOccurs="1" name="server" type="s:string"/>
                      <s:element minOccurs="0" maxOccurs="1" name="port" type="s:string"/>
                      <s:element minOccurs="0" maxOccurs="1" name="database" type="s:string"/>
                      <s:element minOccurs="0" maxOccurs="1" name="hostName" type="s:string"/>
                      <s:element minOccurs="0" maxOccurs="1" name="agx019s" type="tns:ArrayOfAGX019"/>
                      <s:element minOccurs="0" maxOccurs="1" name="agx020s" type="tns:ArrayOfAGX020"/>
                   </s:sequence>
                </s:complexType>
             </s:element>
             <s:element name="SetDatosComplementariosResponse">
                <s:complexType>
                   <s:sequence>
                      <s:element minOccurs="0" maxOccurs="1" name="SetDatosComplementariosResult" type="s:string"/>
                   </s:sequence>
                </s:complexType>
             </s:element>
          </s:schema>
       </wsdl:types>
       <wsdl:message name="SetToDSDSoapIn">
          <wsdl:part name="parameters" element="tns:SetToDSD"/>
       </wsdl:message>
       <wsdl:message name="SetToDSDSoapOut">
          <wsdl:part name="parameters" element="tns:SetToDSDResponse"/>
       </wsdl:message>
       <wsdl:message name="SetToDSD_NRSoapIn">
          <wsdl:part name="parameters" element="tns:SetToDSD_NR"/>
       </wsdl:message>
       <wsdl:message name="SetToDSD_NRSoapOut">
          <wsdl:part name="parameters" element="tns:SetToDSD_NRResponse"/>
       </wsdl:message>
       <wsdl:message name="SetDatosComplementariosSoapIn">
          <wsdl:part name="parameters" element="tns:SetDatosComplementarios"/>
       </wsdl:message>
       <wsdl:message name="SetDatosComplementariosSoapOut">
          <wsdl:part name="parameters" element="tns:SetDatosComplementariosResponse"/>
       </wsdl:message>
       <wsdl:portType name="ServiceSoap">
          <wsdl:operation name="SetToDSD">
             <wsdl:input message="tns:SetToDSDSoapIn"/>
             <wsdl:output message="tns:SetToDSDSoapOut"/>
          </wsdl:operation>
          <wsdl:operation name="SetToDSD_NR">
             <wsdl:input message="tns:SetToDSD_NRSoapIn"/>
             <wsdl:output message="tns:SetToDSD_NRSoapOut"/>
          </wsdl:operation>
          <wsdl:operation name="SetDatosComplementarios">
             <wsdl:input message="tns:SetDatosComplementariosSoapIn"/>
             <wsdl:output message="tns:SetDatosComplementariosSoapOut"/>
          </wsdl:operation>
       </wsdl:portType>
    </wsdl:definitions>


    • Editado IgorFKModerator quinta-feira, 13 de junho de 2019 12:54 Correção no título
    quarta-feira, 12 de junho de 2019 22:00