Wednesday 7 September 2011

Calling Webservice in Apex Using WSDL of SOA


For calling webservice in APEX We need 2 things

  1. SOAP Message Type.
  2. WSDL address.

Step 1: Get SOAP Message Type.

Go to your Deployed project & select Test tab as shown below

Select XML view in select list. Here you will get the SOAP Message Type. Copy this code save it on Notepad.

Step 2: To get WSDL Address.

Click the Project You Deployed and select “Show WSDL and endpoint URI” icon.


Here select the WSDL url save it on notepad.

Step 3: Now login to Apex and go to Shared Components and select “webservice references”

Click the create button.

Select “Manual” and click next.

Enter the values as shown below.

1. 1.Name : Call_WEBSERVICE

2. 2.URL : http://192.168.0.108:7001/soa-infra/services/Mohan/Registration/bpelprocess1_client_ep?WSDL

Note: Replace Your Computer Name By IP Address.

3. 3-Soap Envelope:

Note: You have to create the page items to give inputs and replace Soap Envelope by the page item as shown below.


< soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" >

< soap:Body xmlns:ns1="http://xmlns.oracle.com/Testing/Registration/BPELProcess1" >

< ns1:process >

< ns1:name>#P1_NAME#

< ns1:Class>#P1_CLASS#

< ns1:Marks>#P1_MARKS#

< /ns1:process>

< /soap:Body>


Now create the page as shown below.

Edit the page Create “Web services” Process As shown.

Give the appropriate name for the process.

Select the web service which created earlier. And Select Create Process. This will Creates the Webservice in APEX.

-By Mohan.

No comments:

Post a Comment