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

CreateInstance – PB Docs 126 – PowerBuilder Library

CreateInstance – PB Docs 126

SoapConnection:

CreateInstance method

Description

Creates a proxy instance with a default URL for a SOAP server,
which comes from a user-supplied WSDL file. The client application
must create a proxy instance before it can access a Web service.

Syntax

Argument

Description

conn

The name of the SoapConnection object
that establishes the connection

proxy_obj

The referenced name of your proxy object

proxy_name

The name of the proxy, based on the port
name from a URL in the WSDL file stored in the proxy

portname

(Optional) The port name from a URL not
stored in the proxy

Return Values

Long. Valid values are:

Value

Description

Successful

Invalid proxy name

Failed to create proxy

Examples

In this example, the client application creates a
proxy instance to access the Web services at http://my.server/soap/myport.
The proxy name “syb_myport” is generated by the Web Service
Proxy wizard when you select “syb_” as a prefix for a service
port (endpoint) called “myport”.

The following script creates a connection to a Web
service on a SOAP server. It sets the connection properties using
an endpoint defined in the CreateInstance method.
(If the endpoint is not defined in the CreateInstance method,
a default URL stored in the proxy is used). The script uses the SetOptions method
to specify a log file. It displays a return value in an application
message box:

Usage

After you instantiate a proxy, you are ready to call the SOAP
methods you want from the associated Web service port.

See Also


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