Showing posts with label JDeveloper. Show all posts
Showing posts with label JDeveloper. Show all posts

Wednesday, May 14, 2014

Using Deployment Configuration Plan to change location for locally imported WSDL

There few software product available in market which exposes various functionalities as web service, however while directly providing that WSDL url in Web service adapter is not working. This requires you to import that concrete wsdl file in your local SOA Project and use that WSDL file to create WS Adapter to call the Service. However there other approaches are also there where you use Abstract WSDL file during design time and replace the binding during runtime. But here this post include detail only related replacing the binding details in locally stored concrete WSDL file.

While moving this application from one environment (dev) to other (test), you need to change the Service location which is available in local WSDL file so that web service can be called on correct environment.

Here are the steps you need follow to create a configuration plan which does that job at the time of deployment for you. Here we are assuming that you have you composite application already available where you have imported one concrete wsdl file and you have used it to create web service adapter.

In Application Navigator, go to your composite.xml file. Right click and generate configuration plan.

In Generated Configuration plan find the below entry.
<reference name="ExternalService">
         <!--Add search and replace rules for the binding properties-->
         <binding type="ws">
            <attribute name="port">
               <replace>http://www.abc123.com/update/#wsdl.endpoint(Update/UpdateSoap)</replace>
            </attribute>
            <attribute name="location">
               <replace>ExternalService.wsdl</replace>
            </attribute>
            <property name="weblogic.wsee.wsat.transaction.flowOption">
               <replace>WSDLDriven</replace>
            </property>
         </binding>
      </reference>
Update the location attribute value with actual corresponding url applicable for target environment.. Updated values are highlighted in bold.

<reference name="ExternalService">
         <!--Add search and replace rules for the binding properties-->
         <binding type="ws">
            <attribute name="port">
               <replace>http://www.abc123.com/update/#wsdl.endpoint(Update/UpdateSoap)</replace>
            </attribute>
            <attribute name="location">
               <replace>http://somehostname:8001/someServiceurl?WSDL</replace>
            </attribute>
            <property name="weblogic.wsee.wsat.transaction.flowOption">
               <replace>WSDLDriven</replace>
            </property>
         </binding>
      </reference>

Deploy the code to server using the created configuration plan and values for the service will be modified as per the config plan.

Friday, November 29, 2013

Using / Running / Setting JDeveloper 11.1.1.6 to use 64 bit and 32 bit JVM / JDK

Tired of memory issues while working with JDeveloper because you are running on 32 bit JVM. Switch you JDeveloper to point to 64 bit JVM.This will allow you to use multi Gig memory usage while working with JDeveloper IDE.

Prerequisites: 64 bit Machine, 64 bit OS and 64 bit Jdk Installation. JAVA_HOME should be set to appropriate 64 bit jdk installation directory for example 

JAVA_HOME = C:\Program Files\Java\jdk1.6.0_23
So your JAVA_HOME=C:\Program Files\Java\jdk1.6.0_23

JDeveloper's Settings:

  1.  C:\Oracle\Middleware\jdeveloper\ide\bin\ide.conf
    • AddVMOption  -Xmx4192M
    • AddVMOption  -Xms512M 
Above setting will allows to user 4 GB of RAM.
 
 2. C:\Oracle\Middleware\jdeveloper\jdev\bin\jdev.conf
  • Point JDeveloper to use 64 bit Java Version
    •  SetJavaHome C:\Program Files\Java\jdk1.6.0_23
    • AddVMOption  -XX:MaxPermSize=1024M