Domanda

Ho un problema con la lettura dei valori di ritorno dalla risposta BDC. Ho un servizio web che restituisce un requisito di un conto bancario e alcuni dei dati arrivano come attributi nella risposta del sapone. Ad esempio, valore BIC nell'esempio seguente

 <getPaymentRequisitesResponse xmlns="http://tempuri.org/">
     <getPaymentRequisitesResult>
        <PaymentRequisites_t BIC="044583378">
           <VendorID>XXXX</VendorID>
           <IBAN/>
           <SWIFT/>
           <BankAddressLine1>Index, City, Streat</BankAddressLine1>
           <AccCurr>RUR</AccCurr>
           ....
           ....
.

Lo schema BDC funziona bene e non getta alcuna eccezione durante i processi di richiesta e risposta. La parte principale dei parametri nello schema:

        <Parameter Direction="In" Name="accountNumber">
          <TypeDescriptor TypeName="System.String" AssociatedFilter="Account" Name="accountNumber" DefaultDisplayName="Account" />
        </Parameter>
        <Parameter Direction="Return" Name="Return">
          <TypeDescriptor TypeName="BDC.PaymentRequisites_t,ProvisionerAccounts" Name="Return">
            <TypeDescriptors>
              <TypeDescriptor TypeName="System.String" Name="VendorID" />
              <TypeDescriptor TypeName="System.String" Name="VendorSrcID" />
              <TypeDescriptor TypeName="System.String" Name="VendorName" DefaultDisplayName="Vendor">
                <Properties>
                  <Property Name="ShowInPicker" Type="System.Boolean">true</Property>
                </Properties>
              </TypeDescriptor>
              <TypeDescriptor TypeName="System.String" Name="BIC">
                <Properties>
                  <Property Name="ShowInPicker" Type="System.Boolean">true</Property>
                </Properties>
              </TypeDescriptor>
              <TypeDescriptor TypeName="System.String" Name="IBAN">
                <Properties>
                  <Property Name="ShowInPicker" Type="System.Boolean">true</Property>
                </Properties>
              </TypeDescriptor>
              <TypeDescriptor TypeName="System.String" Name="AccCurr">
                <Properties>
                  <Property Name="ShowInPicker" Type="System.Boolean">true</Property>
                </Properties>
              </TypeDescriptor>
              .....
.

Quando ho provato a trovare uno qualsiasi dei requisiti, il valore BIC in finestra di dialogo è sempre vuoto. Il campo BIC è sempre vuoto, ma è riempito nella risposta

Se ho fatto il valore BIC come elemento nello schema WSDL, ha funzionato bene.

    <getPaymentRequisitesResult>
        <PaymentRequisites_t>
           <VendorID>XXXXXX</VendorID>
           <BIC>044583378</BIC>
           <IBAN/>
           <SWIFT/>
           <BankAddressLine1>Index, City, Streat</BankAddressLine1>
           ....
.

Il valore BIC non è vuoto

L'obiettivo principale è farlo funzionare con gli attributi ma non ho trovato alcuna soluzione e proprietà aggiuntive per TypeScriptor in Risorse MSDN .

È stato utile?

Soluzione

Unfortunately, it was my mistake. The Business Data Catalog works fine with both types, with an element and with an attribute. However, when the wsdl was changed from the one type to another I had to republish BDC schema into the SharedSerfices.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top