Master Data Management with webMethods OneData : Developing for webMethods OneData : SOAP Web Services : Using the OneData SOAP Web Services Feature
Using the OneData SOAP Web Services Feature
You can use the SOAP web service to retrieve data from OneData objects by sending an input XML request through the soapUI. Before you can send the input request, you must define the URL of the OneData WSDL in soapUI.
The filter criteria that you specify in the input XML request is case sensitive.
To use soap services
1. Install soapUI from the following link: http://sourceforge.net/projects/soapui/files/soapui/3.0.1
2. Start the soapUI.
3. Click File Name > New Soap Project.
4. In Project Name, enter the project.
5. In Initial WSDL, enter the URL of the WSDL as, http://<host>:<port>/onedata/services/onedata?wsdl
6. Click OK.
7. Drill down to onedataSoapBinding under the created project and right click getData.
8. Select New Request.
9. Open the drop down on the top of the request window and select edit current….
10. Change the text field to http://<host>:<port>/onedata/services/onedata and click OK.
11. Paste the following XML snippet into the left side of the request window.
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:oned="http://localhost:8080/demo/services/onedata">
<soapenv:Header/>
<soapenv:Body>
<oned:getData
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<asInputXML xsi:type="xsd:string">
<![CDATA[
<ONEDATA_REQUEST>
<GENERATE_DATA_IN_FILE>no</GENERATE_DATA_IN_FILE>
  <REPOSITORYID>repository ID</REPOSITORYID>
  <USERID>user ID</USERID>
  <PASSWORD>Password for service layer security</PASSWORD>
  <ENTITYNAME>data object name</ENTITYNAME>
  <SELECTALLCOLUMNS>yes</SELECTALLCOLUMNS>
<ONEDATA REQUEST>]]>
</asInputXML>
</oned:getData>
</soapenv:Body>
</soapenv:Envelope>
12. Click Submit request to specified endpoint URL (green play button) in the toolbar of the request window.
The response appears in the right pane. The data is either inline or stored in the attachment part of web-service response.
13. To retrieve the data from the attachment, click Attachments in the bottom of the window. Double-click the attachment to open it.
Copyright © 2011-2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback