Service Bus 12c – Creating Proxy Services

In Service Bus, Proxy Services provide an interface to Service Consumers. In this post, you will see different ways to create Proxy Servicse using JDeveloper based on a WSDL. And for demonstration purpose, we will consider Service Bus project and WSDL as shown below.

biz1_thumb[2]

Method 1:

Right click Service Bus project and select New –> Proxy Service. You can also select Pipeline in this context menu and check the option Expose as a Proxy Service in step2 of wizard.

clip_image001

Give a meaningful name for Proxy Service as shown below.

clip_image002

Click Browse WSDLs icon and select CustomerService WSDL.

method2ps4

Click OK to go back to Create Proxy Service wizard. Retain Generate Pipeline selection so that wizard will create both Proxy Service and Pipeline for you.

clip_image002[10]

Method 2:

Open the Service Bus overview file (file with same name as your project) and drag HTTP adapter into from Components –> Service Bus –> Technology –> HTTP into Proxy Services swim lane to bring up Create Proxy Service wizard as shown below.

adapter1_thumb[2]

method2ps1

method2ps

Give meaningful name for Proxy Service and click Next. Select WSDL option and select WSDL as shown in previous method by clicking Browse WSDLs icon.

method2ps2

method2ps3

Method 3:

Right click WSDL in Service Bus project and select Service Bus –> Generate Proxy Service as shown below. You can also select Generate Pipeline in this context menu and check the option Expose as a Proxy Service in step2 of wizard.

m3ps

Verify that Create Proxy Service wizard has come up showing WSDL and binding selected.

m3ps2

The following steps are common irrespective of above methods you choose to create Proxy Service.

Click Next and give Endpoint URI as /entity/CustomerService. So service consumers can access your proxy service using URL as given below.

:/entity/CustomerService”>http://:/entity/CustomerService

clip_image002[12]

Click Finish to bring up CustomerPS.proxy window showing properties of your Proxy Service. Go to Message Handling tab and select SOAPAction Header as Selection Algorithm. This would enable proxy service to determine operation at runtime based on SOAP Action in HTTP headers. You can retain the default option SOAP Body Type unless no 2 operations share same payload structure.

 

clip_image003

Now your Service Bus project should show both Proxy Service and Pipeline as shown below.

finalps

Advertisement

9 Responses to “Service Bus 12c – Creating Proxy Services”


  1. 1 Anonymous February 19, 2016 at 12:26 AM

    Hi Shiva,
    We have created very simple proxy service with wsdl .We have slected no Policy option .It was working when we test from sbconsole.But when we are trying to test from SOAP UI ,it is giving 403 forbidden error .some weird,we can import the wsdl by using endpoint url to SOAP UI.Could you please help us .

    Thanks,

    • 2 svgonugu February 23, 2016 at 2:21 PM

      would you tell me how are you using in SOAP UI? i think you don’t have any firewalls/OHS etc..etc..come into place while accessing the url..

    • 3 Douglas August 9, 2016 at 8:24 PM

      I’ve the same problem and can’t solve them

      • 4 svgonugu August 9, 2016 at 8:48 PM

        Could you let me know the exact error you are seeing..we can check error log and http log windows in soap ui..

        • 5 kumar September 19, 2018 at 10:48 PM

          Hi Siva,

          was this solved. i followed your blog and completed a REST service, i am facing the same issue. from SB console both JSON and XMl are working, but when i tried to access the endpoint URI from SOAP UI, its giving me “not found” error. i tried to access the WSDL/WADL endpoints “endpointURI?WSDL/WADL”, but no luck.

          There are some other WSDL based proxies which are working with the same host,port details.
          Please let me know if you have any inputs.

          Thanks,
          Kumar

  2. 6 Rob November 5, 2014 at 10:22 PM

    How do you configure the proxy service if the WSDL resource contains multiple portType operations?
    Suppose your customer service WSDL had two available operations, queryContacts and updateCustomer, each having different request and response message schemas, so 4 total message schemas. I don’t see how you could write one route condition that applies to both.


  1. 1 Service Bus 12c – Series of Articles by Siva | SOA Community Blog Trackback on February 19, 2015 at 12:20 PM
  2. 2 Service Bus 12c – Series of Articles | Siva's Blog Trackback on November 1, 2014 at 2:49 PM

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.




Pages

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 379 other subscribers

Enter your email address to follow this blog and receive notifications of new posts by email.


%d bloggers like this: