Generating the WSDL

You can now Generate WSDL for Person Account.

Procedure

  1. Import repository designer sample into your current workspace. Select Help-Welcome. Click the samples icon.
  2. From Solution Designer-Available sample project, click the Repository Model sample.
  3. Follow the wizard to import the Person-Account-Email-Phone-Address repository structure. Switch to workbench.
  4. Using the WSDL Generator Wizard, generate wsdl for Customer repository. Follow the wizard to complete the webservice project creation.
  5. Go to File > New > Other.

  1. Select WSDL Generator from the WSDL Generator tree node and click Next. The New Project screen is displayed

    .

  2. Enter the appropriate project name in the Project Name field. By default, the project name is <repository name_webservice.
  3. Click Next. The New Project screen is displayed.

    .

  4. Select the relationship depth, multilevel relationship is supported.
  5. Click Next. The Generation Options screen is displayed.

    .

  6. Enter the appropriate package name in Package Name field. By default, a package name is provided. The package name convention is com.tibco.mdm.integration.webservice.<repository name>_webservice.You can modify the package name.
  7. Click Finish. The person_webservice project is created in MDM Studio.

    .

  8. Using network deployment, deploy the whole repository and relationship structure from the Repository Model Samples project onto your MDM Server.
  9. In SOAP UI, create a new project and import < your workspace name>\person_webservice\services\PersonService.wsdl as the initial wsdl.

  10. You will see PersonHttpBinding with addPerson, buildRelationship, copyPerson, deletePerson, findPerson, updatePerson, and validatePerson services along with their sample request skeletons in your project.
  11. Change the endpoint URL to point to your MDM Server instance.
  12. Change the enterprise credentials inside each request before execution through SOAP UI.
    Note: The optional <context> section can be used as follows in case of Record Add request:
    <ns:Context>
    	<!--Optional: Set this to true if you want to validate each attribute value against schema. -->
    	<ns:Validation>false</ns:Validation>
    	<!--Optional: Set this to true if you want to process the record as soon as it is added. If this value is false, the record remains in "unconfirmed" state and the record add event remains in progress-->
    	<ns:Process>true</ns:Process>
    	<!--Optional: Set this to true if you want to see the system attribute values in response. -->
    	<ns:SystemAttributeReturn>true</ns:SystemAttributeReturn>
    	<!-Optional: The following is used when File type attribute values have to be sent as a part of the request.->
    	<ns:ReturnFileAsAttachment>false</ns:ReturnFileAsAttachment>
    </ns:Context>