Quantcast
Channel: SQL Server Master Data Services forum
Viewing all articles
Browse latest Browse all 1311

EntityMembersMergeRequest using SOAPUI

$
0
0

Hi There,

I am just trying to use the features offered by MDS and its WCF WebService.

I created an entity in MDS, and I want just to insert / merge one line in this new entity. So I took the wsdl offered by the http://localhost/mds/service/service.wcf?wsdl

Until now everything works fine, I called with SOAPUI the ServiceCheck and ServiceVersionGet and it replied properly.

However when I try to call the EntityMembersMergeRequest I couldn't figure out what parameters to pass to the WebService in order fo it to work.

Below is the request ( in MDS my entity is called "Key Issue")

      <ns:EntityMembersMergeRequest>
         <ns:Members>
            <ns:EntityId>
               <ns:Name>Key Issue</ns:Name>
            </ns:EntityId>
            <ns:MemberType>Leaf</ns:MemberType>
            <ns:Members>
               <!--Zero or more repetitions:-->
               <ns:Member>
                  <!--Optional: Should I use this? 
                  <ns:Attributes />
                  -->
                  <ns:Collections>
                     <ns:Collection>
                        <ns:CollectionId>
                           <ns:Code>123</ns:Code>
                           <ns:MemberType>Leaf</ns:MemberType>
                        </ns:CollectionId>
                     </ns:Collection>
                  </ns:Collections>
                  <ns:MemberId>
                     <ns:Code>123</ns:Code>
                  </ns:MemberId>
               </ns:Member>
            </ns:Members>
            <ns:ModelId>
               <ns:Name>Key Issue</ns:Name>
            </ns:ModelId>
            <!--Optional:-->
            <ns:VersionId>
               <ns:Name>2017</ns:Name>
            </ns:VersionId>
         </ns:Members>
         <!--Optional:-->
         <ns:ReturnCreatedIdentifiers>true</ns:ReturnCreatedIdentifiers>
      </ns:EntityMembersMergeRequest>

All the time I got the same error : 

      <EntityMembersMergeResponse xmlns="http://schemas.microsoft.com/sqlserver/masterdataservices/2009/09">
         <CreatedMembers i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/>
         <OperationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
            <Errors>
               <Error>
                  <Code>300005</Code>
                  <Context>
                     <FullyQualifiedName/>
                     <Identifier>
                        <Id>00000000-0000-0000-0000-000000000000</Id>
                        <Name>Key Issue</Name>
                        <InternalId>0</InternalId>
                     </Identifier>
                     <Type>Model</Type>
                  </Context>
                  <Description>The supplied model is not valid.</Description>
               </Error>
            </Errors>
            <RequestId>a2f0d843-f278-4e5c-a9ec-a5b3c39a1988</RequestId>
         </OperationResult>
      </EntityMembersMergeResponse>

Any Help on this?

Thanks


Reporting Solution for BizTalk |follow-us on twitter


Viewing all articles
Browse latest Browse all 1311

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>