Creating Softcoding Values

A softcoding value is a segment of an XML document. The simplest softcoding includes only the machine name; no user credentials are required. The softcoding value always includes an endpoint and conditionally includes security information.

This sample code shows softcoding that provides an endpoint only:

<port-info> 
   <stub-property>  
      <name>javax.xml.rpc.service.endpoint.address</name>  
      <value>http://www.webservicex.net/WeatherForecast.asmx</value> 
   </stub-property> 
</port-info>

If the web service requires user credentials to be passed, the softcoding contains that information as well.

This sample code shows a softcoding value that provides both endpoint and user credentials:

<port-info>
 <stub-property>
   <name>javax.xml.rpc.service.endpoint.address</name>
   <value>http://dens001.mlab.jdedwards.com/Rollout/RI_AddressBookManager</value>
</stub-property>
<wsdl-port namespaceURI="http://oracle.e1.sbf.JPR01000/" 
localpart="RI_AddressBookManagerHttpPort"/>
 <runtime enabled=security>
  <security>
   <inbound/>
   <outbound>
    <username-token name="User Name" password="Password" password-type="PLAINTEXT"
add-nonce="false" add-created="false"/>
   </outbound> 
  </security>
 </runtime>
 <operations>
   <operation name='addAddressBook'>
  </operation>
   <operation name='addAddressBookAndParent'>
  </operation>
   <operation name='getAddressBook'>
  </operation>
 </operations>
</port-info>

You can use JDeveloper to create coding values with many different types of security information.

For more information about Oracle JDeveloper, see the Oracle Fusion Middleware User's Guide for Oracle JDeveloper. This document is located under the Fusion Middleware section on the documentation page of the Oracle Technology Network website.