Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

How to use the PBDOM object to build the XML content required for SOAP WebService and parse an XML document – PB Docs 2022 – PowerBuilder Library

How to use the PBDOM object to build the XML content required for SOAP WebService and parse an XML document – PB Docs 2022

How to use the PBDOM object to build the XML content required for
SOAP WebService and parse an XML document

Background

The purpose of this article is to show you how to use the PBDOM
object to build the specified XML content for the parameter of an HTTP
request sent with the HTTPClient object and how to obtain the specified
content in the returned XML string.

Implementation Steps

1. Load the PBDOM Object in the PB Application

You can add pbdom170.pbd directly into your application (Default
Path: C:Program Files (x86)AppeonSharedPowerBuilder) or import the
PBDOM170.pbx file into a PBL in your application.

2. Use the PBDOM Object to Build the Specified XML String

Open the SOAP Web service on IE as shown below. Copy the
associated SOAP sample request. Refer to the red content below. (If you
don’t see this content, please contact your service provider to get such
a sample request.)

tr_045.png

The content of the XML string to be built:

If you want to simply use a string to build the XML content and
send it through HTTPClient, the code is as follows:

If you use the PBDOM object to build the XML content, here’s what
it looks like:

3. Use the PBDOM Object to Get the Specified Content in the XML
String.

The content of the XML string to be obtained:

Execute the following PB code can get the value of the
of_addResult element in the returned XML string from the Soap Web
Service.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x