You can invoke calls to services that use a WebSphere® MQ
endpoint.
Procedure
To invoke a service call based on a WSDL file:
- Open the generic service client and click the Calls tab,
and then, click Add an endpoint.
- In the Configure Protocol window, select WebSphere
MQ and specify the WebSphere MQ
transport configuration. If necessary, click New to create
an WebSphere MQ transport configuration for
the call.
- Specify the SOAP action. If the service requires
that you override the header specified in the WebSphere MQ
transport configuration, select Override MQ protocol configuration
values and specify the correct details.
- Click Next.
- On the Select Root Element page, if
the service uses a specific XML Schema Definition (XSD), select one
from the list or click Browse to import the
XSD file, and then, select the root element for the call. If
no XSD is available for the service, select No Schema.
- Click Finish. The
call is added to the Endpoints section of the Call
Library.
- In the Call Library, select the call
element. The generic service client shows three steps: Edit
Data, Invoke and View
Response. The details for the call are displayed under
the Edit Data step.
- On the Message page, use the Form,
Tree, or Source views to edit the contents of the call. Each
view proposes a different display of the same data. If you want to
add or remove XML elements in the Form or Tree view, you can click to comply with an XML Schema Definition (XSD) specified
in the Schema Catalog.
- On the Attachments page, specify
any file attachments that will be sent with the call. You
must have configured the environment with the correct libraries and
configuration files to handle file attachments.
- On the Transport page, if necessary,
change the transport configuration to be used by the call. You
can create and edit transport and security configurations by clicking
the Transport tab.
- On the Security for Request and Security
for Response pages, specify whether you want to override
the security settings for the WSDL. If you want to edit
the current security settings for the WSDL, click Edit
WSDL Security to open the WSDL Security Editor.
- When you are ready, click Invoke to
invoke the service call. The generic service client
sends the request and displays the message return under the View
Response step.
Results
Successful calls are recorded and added to the Call History.