Question

J'ai un problème avec la lecture des valeurs de retour de la réponse de la BDC. J'ai un service Web qui renvoie une condition requise d'un compte bancaire et certaines des données sont fournies sous forme d'attributs dans la réponse du savon. Par exemple, la valeur BIC dans l'exemple ci-dessous

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

Le schéma BDC fonctionne bien et ne jette aucune exception lors des processus de demande et de réponse. La partie principale des paramètres dans le schéma:

        <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>
              .....

Lorsque j'ai essayé de trouver l'une des conditions requises, la valeur BIC dans la boîte de dialogue est toujours vide. Le champ BIC est toujours vide, mais il est rempli dans la réponse

Si j'ai fait de la valeur BIC en tant qu'élément du SCHEMA DE WSDL-SCHEMA, cela fonctionnait bien.

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

la valeur BIC n'est pas vide

L'objectif principal est de le faire fonctionner avec des attributs, mais je n'ai trouvé aucune solution et propriétés supplémentaires pour Typedescriptor dans Ressources MSDN .

Était-ce utile?

La solution

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange
scroll top