WSDL generated from java class - how to include headers?

I am using the servicegen ant task and generating a web service based on a java class. I would like to include a username and password in the soap header and read that info using a handler. I am able to get that working, but how do I get the auto-generated WSDL to include the username/password header information? Is there something that I have to do in the handler so that this information is included in the WSDL?
Thanks,
Mike

I did do this and I got the following error when deploying to the Stand-alone OC4j:
Operation failed with error:
Error compiling
:D:\h\cots\Oracle\JDeveloper10g10.1.3\j2ee\home\applications\DBOperationsWSApp-DBData-WS\WebServices: Error instantiating compiler: webservice artifact generation failed :oracle.j2ee.ws.common.tools.api.ValidationException : Exception declaration mismatch between Implementation: dbdatapackage.DBDataOperations and Interface: dbdatapackage.DBDataWS. Impl class Method: getData declares exceptions not declared by the interface (java.lang.Exception)
I am quite sure what it is saying. It generated the code for the Interface: dbdatapackage.DVDataWS. Impl class. Why would it not do it right? What expection is it complaining about? java.lang.Exception?

Similar Messages

  • Creating Web Service from Java Class-How to eliminate nillable="true"

    Does anyone know how to eliminate the attribute, nillable="true", from the element tags which describe the parameters in the WSDL created when creating a web service from a Java Class? It does this only for the string types. Is there something I need to set when creating the web service or before creating the web service? Or the only way is to modify this WSDL then recreate the web service from the WSDL.
    example part of wsdl:
    this is in the <types> tag:
    <complexType name="getData">
    <sequence>
    <element name="schema" type="string" nillable="true"/>
    <element name="table_or_view_name" type="string" nillable="true"/>
    </sequence>
    </complexType>
    <complexType name="getDataResponse">
    <sequence>
    <element name="result" type="string" nillable="true"/>
    </sequence>
    </complexType>

    I did do this and I got the following error when deploying to the Stand-alone OC4j:
    Operation failed with error:
    Error compiling
    :D:\h\cots\Oracle\JDeveloper10g10.1.3\j2ee\home\applications\DBOperationsWSApp-DBData-WS\WebServices: Error instantiating compiler: webservice artifact generation failed :oracle.j2ee.ws.common.tools.api.ValidationException : Exception declaration mismatch between Implementation: dbdatapackage.DBDataOperations and Interface: dbdatapackage.DBDataWS. Impl class Method: getData declares exceptions not declared by the interface (java.lang.Exception)
    I am quite sure what it is saying. It generated the code for the Interface: dbdatapackage.DVDataWS. Impl class. Why would it not do it right? What expection is it complaining about? java.lang.Exception?

  • Does wscompile generate "fault" tag in WSDL file from Java exception class?

    I'm trying to generate WSDL files from Java classes. I defined some of my own exception that inherits from "RemoteException", but wscompile doesn't generate the corresponding complex type and "fault" tag. Does anyone know if this is a bug or wscompile doesn't support from Java Exception to fault?
    Thanks

    It will if the exceptions do not inherit from RemoteException.

  • How can i use JWSDP1.6 from Ant tool to convert .wsdl file into Java class

    Hi All,
    i m very new in the development field.plese help me...
    i have a .wsdl file and i have to make some modification in the file and return this file with build file used in Ant tool.
    means my requirement is to conver the .wsdl file into java class,modify it and convert back to wsdl file.how can i do it using JWSDP1.6 and Ant tool.
    thanks in advance...
    Vikram Singh

    lemilanais wrote:
    hello!
    I have developpe an animation with flash. before give it to othe person in order to use it, i would like to secure it by integrated a security module inside the software.Secure it from what? Being played? Copied? Deleted? Modified?
    Because, i am a java developper, i have choose Netbeans 6.1 to secure it.That has to be the most random thing I've read in some time.
    do you know how can i do to integrate my animation .swf inside my java class?Java can't play SWF files and Flash can't handle Java classes, so what you're suggesting here doesn't make a lot of sense.

  • How to set classpath from java class ??

    I have tried to use System.setProperty("java.class.path", "my class path string ") to set classpath dynamically. But it is not working. How to set it dynamically from java class ?? Thanks , gary

    Look into the java.net.URLClassLoader. You can't set the classpath after the fact but you can specify URL's that will checked when you try to load a class with that loader.

  • How can i open the popup from java class

    Hi,
    Please tell me how can i open the popup from java class.
    I am using jdev 11.1.1.7.0
    I have used the below code which works fine in jdev 2.1 but it will have some errors in 11.1.1.7.0.
    Please tell me some way to do this in all jdev versions.
    Bean obj = (Bean)RequestContext.getCurrentInstance.getExternalContext.getPageFlowScope(“obj”);
    Code for hide pop-up
    FacesContext context = FacesContext.getCurrentInstance();
    String popupId = obj.getPopUpBind().getClientId()
    ExtendedRenderKitService service = Service.getRenderKitService(FacesContext.getCurrentInstance(),
    ExtendedRenderKitService.class);
    String hidePopup = "var popupObj=AdfPage.PAGE.findComponent('" + popupId +
    "'); popupObj.hide();";
    service.addScript(FacesContext.getCurrentInstance(), hidePopup);
    Code to Show pop-up
    StringBuffer showPopup = new StringBuffer();
    showPopup.append("var hints = new Object();");
    showPopup.append("var popupObj=AdfPage.PAGE.findComponent('" +
    obj.getPopUpBind().getClientId() + "');popupObj.show(hints);");
    service.addScript(FacesContext.getCurrentInstance(), showPopup.toString());
    Code need to be added in jsff pop tag
    binding="#{pageFlowScope.bean.popUpBind}
    Variable need to be added in Bean.java
    private RichPopup popUpBind;

    Hari,
    Since you're using a non-public build of JDeveloper, you should be using a non-public forum.
    John

  • How To Change Resource Bundle file's data from Java Class

    Hi
    i have used below code for accessing Resource Bndle from Java Class but here i also want to make change in a particular key and its value.
    please let me know the code i should use to make changes in Resource Bundle file's key and value and saving the same in the file.
    package test;  import java.util.Enumeration;
    import java.util.ResourceBundle;
    public class ResourceBundleTest {
    public static void main(String[] args) {
    ResourceBundle rb = ResourceBundle.getBundle("test.bundletest.mybundle");
    Enumeration <String> keys = rb.getKeys();
    while (keys.hasMoreElements()) {
    String key = keys.nextElement();
    String value = rb.getString(key);
    System.out.println(key + ": " + value);
    Thanks

    With further debugging, I noticed the following line only works in integrated WLS but not in standalone WLS
    resourceBundle = ResourceBundle.getBundle("com.myapp.MyMappings");
    I confirmed the corresponding properties file was included properly in the EAR file but the standalone WLS failed to find the properties file at runtime.
    Why did the standalone WLS class loader (must be the same as the integrated WLS) failed to find the properties file deployed under the WEB-INF/classes path in the EAR file?
    The above line was in a POJO class which has the same classpath as the properties file ie. com.myapp.MappingManager.class.
    It was strange that the class loader could load the POJO class but unable to find the com.myapp.MyMappings.properties in the same classpath!!!
    Is this a bug in standalone WLS?
    Edited by: Pricilla on May 26, 2010 8:52 AM
    Edited by: Pricilla on May 26, 2010 9:01 AM

  • Generate XML Schema from Java classes?

    Hi,
    Considering an XML Mapping, i would like to generate a default XML Schema from my Java class.
    Is there a tool in toplink (10.1.3) to do that or does anyone have an easy way to generate this XML schema?
    Thanks,
    Ludovic

    Hi Ludovic,
    We don't have support for schema generation from Java classes in TopLink 10.1.3. It's required for JAXB 2.0 so it will be available in a future release.
    --Shaun                                                                                                                                                                                                                                                                                                                                                                           

  • WSDL generated from service that references XMLBean is invalid

    Env: Weblogic Workshop 9.2.0
    Build id: 783464
    When I validate a WSDL generated from a service that imports XMLBean classes (auto-generated by the XMLBeans Builder) it shows numerous errors including src-resolve.4.2. and ?The part ?parameters? has an invalid value ?hello? ??. All my schemas validate without error in both Workshop and XMLSpy. This happens for both the WSDL generated from the right click menu and from the auto generated WSDL located in the build sub-directory.
    Related to this problem, when I deploy the web service (for some reason I can deploy it if I don?t deploy the WSDL) sometimes I either can reach the web service and sometimes I receive a failure related to the parse of the WSDL stating java.util.NoSuchElementException as the reason.
    Has anyone else seen these kinds of problems?

    I'm going to open a support case but here are the XSDs
    There are four in total ... I have marked the top and bottom of each so you can clearly identify them.
    ---AddressData.xsd Start---
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:addr="http://www.test.org/address" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.test.org/address" elementFormDefault="qualified" attributeFormDefault="unqualified">
         <xs:complexType name="AddressType">
              <xs:sequence>
                   <xs:element name="LineOne" type="addr:LineOneType"/>
                   <xs:element name="LineTwo" type="addr:StreetAddressType" minOccurs="0"/>
                   <xs:element name="City" type="addr:CityType"/>
                   <xs:element name="State" type="addr:StateType"/>
                   <xs:element name="Zip" type="addr:ZipType"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="LineOneType">
              <xs:choice>
                   <xs:element name="StreetAddress" type="addr:StreetAddressType"/>
                   <xs:element name="POBoxAddress" type="addr:POBoxAddressType"/>
              </xs:choice>
         </xs:complexType>
         <xs:complexType name="StreetAddressType">
              <xs:sequence>
                   <xs:element name="StreetAddress" type="xs:string"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="POBoxAddressType">
              <xs:sequence>
                   <xs:element name="POBoxAddress" type="xs:string"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="CityType">
              <xs:sequence>
                   <xs:element name="City" type="xs:string"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="StateType">
              <xs:sequence>
                   <xs:element name="State" type="xs:string"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="ZipType">
              <xs:sequence>
                   <xs:element name="Zip" type="xs:string"/>
              </xs:sequence>
         </xs:complexType>
    </xs:schema>
    ---AddressData.xsd Stop---
    ---CustomerData.xsd Start---
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:cust="http://www.test.org/customerdata" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:addr="http://www.test.org/address" xmlns:pri="http://www.test.org/priority" xmlns:ndata="http://www.test.org/ndata" targetNamespace="http://www.test.org/customerdata" elementFormDefault="qualified" attributeFormDefault="unqualified">
         <xs:import namespace="http://www.test.org/priority" schemaLocation="CustomerPriority.xsd"/>
         <xs:import namespace="http://www.test.org/address" schemaLocation="AddressData.xsd"/>
         <xs:import namespace="http://www.test.org/ndata"
              schemaLocation="DataType.xsd" />
         <xs:element name="CustomerData">
              <xs:annotation>
                   <xs:documentation>
                        Comment describing your root element
                   </xs:documentation>
              </xs:annotation>
              <xs:complexType>
                   <xs:sequence>
                        <xs:element name="Customer" type="cust:CustomerType" />
                        <xs:element name="otherData1" type="ndata:newDataType" />
                        <xs:element name="secondaryAddress"
                             type="addr:AddressType" />
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:complexType name="CustomerType">
              <xs:sequence>
                   <xs:element name="name" type="cust:CustomerNameType"/>
                   <xs:element name="address" type="addr:AddressType"/>
                   <xs:element name="priority" type="pri:PriorityLevelType"/>
                   <xs:element name="data" type="cust:moreData"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="CustomerNameType">
              <xs:sequence>
                   <xs:element name="lastname" type="xs:string"/>
                   <xs:element name="firstname" type="xs:string"/>
                   <xs:element name="title" type="xs:string"/>
              </xs:sequence>
         </xs:complexType>
         <xs:element name="anotherBitOfData" type="xs:gMonthDay"/>
         <xs:complexType name="moreData">
              <xs:sequence>
                   <xs:element name="data1" type="xs:string"/>
                   <xs:element name="data2" type="xs:long"/>
              </xs:sequence>
         </xs:complexType>
    </xs:schema>
    ---CustomerData.xsd Stop---
    ---CustomerPriority.xsd Start---
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:pri="http://www.test.org/priority" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.test.org/priority" elementFormDefault="qualified" attributeFormDefault="unqualified">
         <xs:element name="CustomerPriority">
              <xs:annotation>
                   <xs:documentation>Comment describing your root element</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                   <xs:sequence>
                        <xs:element name="priority" type="pri:PriorityLevelType"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:complexType name="PriorityLevelType">
              <xs:choice>
                   <xs:element name="Level1Value" type="xs:string"/>
                   <xs:element name="Level2Value" type="xs:string"/>
                   <xs:element name="Level3Value" type="xs:string"/>
              </xs:choice>
         </xs:complexType>
    </xs:schema>
    ---CustomerPriority.xsd Stop---
    ---DataType.xsd Start---
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:ndata="http://www.test.org/ndata" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:pri="http://www.test.org/priority" targetNamespace="http://www.test.org/ndata" elementFormDefault="qualified" attributeFormDefault="unqualified">
         <xs:import namespace="http://www.test.org/priority"
              schemaLocation="CustomerPriority.xsd" />
         <xs:complexType name="newDataType">
              <xs:sequence>
                   <xs:element name="pri" type="xs:string" />
              </xs:sequence>
         </xs:complexType>
    </xs:schema>
    ---DataType.xsd Stop---

  • Parse errors while creating a Web service from Java class!

    Can anybody tell me please, is it possible to create a Web Service from java class where the input from user is required ?
    I have the following program, which is successfully compiled, but when I'm trying to make a web service in JDeveloper, the following error occurs:
    "Validation failed.
    The implementation class primePackage.isPrime ofport type MyWebService contains parse errors."
    import java.io.*;
    import java.util.*;
    class isPrime
    public static void main (String args[])
    Scanner reader = new Scanner(System.in);
    int n;
    System.out.println ("Enter a number you want to know is it prime or not");
    n=reader.nextInt();
    if (isPrime(n))
    System.out.println ("True");
    else
    System.out.println ("False");
    static boolean isPrime (int n)
    int i=2;
    while (i<=n-1)
    if (n%i==0)
    return false;
    i++;
    return true;
    }

    Hi,
    Can anybody tell me please, is it possible to create
    a Web Service from java class where the input from
    user is required ?Yes, the parameters of your method will be mapped in WSDL.
    But i've some considerations about your code.
    I suggest you change the name of isPrime do Prime, its a good code convention to put the name of class starting with Upper case. and isn't good the name of class equals to name of method.
    I suggest you to change the "static boolean isPrime (int n)" to "public boolean isPrime(int n)" to publish a method as a WebService method it's must be public and not static. After this change try to generate your Web Service.
    Regards.

  • Web Service From Java class, serialization problem

    Hi,
    I want to create Web Service from Java class, I made java project, generated web service from it, create web service archive project and deployed it to WAS 6.40.
    My class have 2 methods,
    public int add(int a, int b);
    public MyResponse doSomthing(MyRequest req);
    I can succesfully call add method from Web Service Navigator, it works fine but when I call doSomthing methods I get the following error:
    <b>
    Deserializing fails. Nested message: XML Deserialization Error. Result class [com.mycomp.sap_tech.ws.MyRequest] does not have property [Amount] of type [java.lang.String]. It is required to load XML..
    </b>
    Any ideas how to resolve it?
    P.S. MyRequest class is exposed throw VI, has default constractor and public getters and setters for all properties. It implements Serializable as well. Any guesses?
    Thanks in advance,
    Victor.

    Hi Bhavik, thanks for response.
    as I already mentioned it implements Serializable, so it is not the problem.
    Thanks Avi but it didn't helps iether
    Victor

  • OSB WSDL invocation from java /jsp client!

    Hi ,
    I did a sample work on invoking osb wsdl(based on DB adapter) from a java/jsp application.It worked fine!
    Its a simple select query wth parameter that was configured in my DB adapter.
    Below are the steps I follow -
    a.Created a DB adapter for collective response
    b.created BS out of jca
    c.Generated PS based on above BS.
    d.Performed some xquery tranformation in PS message flow response piepeline.
    e.Exported WSDL and tested it in SOAP UI ,getting the transformed response as required.
    When we generate Java client out of above WSDL in Eclipse ,it generates client for DB data,transformed data fields are not seen -How to obtain transformed data too through Java client?will this work ?
    Is it gud practice to generate java client directly n Eclipse (OEPE) or do we have any other alternative ways to generate Java client out of OSB WSDL?
    Please assist.
    Thanks,
    Ani

    Hi Anuj-
    My proxy was generated out of business ,i get 2 wsdl like master-child .Master wsdl holds referecnce to child wsdl.I hope wsdl generation is fine.
    When i invoke the proxy wsdl url from Java client ,i get below error -
    Exception in thread "main" AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: org.xml.sax.SAXException: Invalid element in com.oracle.xmlns.pcbpel.adapter.db.PhysicalTampered_Meter.PhysicalTampered_MeterOutput - PhysicalTampered
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: Invalid element in com.oracle.xmlns.pcbpel.adapter.db.PhysicalTampered_Meter.PhysicalTampered_MeterOutput - PhysicalTampered
         at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:258)
         at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
         at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
         at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
         at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
         at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
         at org.apache.axis.client.Call.invoke(Call.java:2467)
         at org.apache.axis.client.Call.invoke(Call.java:2366)
         at org.apache.axis.client.Call.invoke(Call.java:1812)
         at com.oracle.xmlns.pcbpel.adapter.db.CoreAnalytics.PhysicalTampered_Meter.PhysicalTampered_Meter.PhysicalTampered_Meter_pttBindingStub.physicalTampered_Meter(PhysicalTampered_Meter_pttBindingStub.java:175)
         at Client.JavaClient.main(JavaClient.java:25)
         {http://xml.apache.org/axis/}hostname:B7B-3F-149-4HJV

  • Apt ant task suceeded but did not generate wrapper java/classes

    Hi,
    This is the first time I use apt task. Could someone help me out here.
    Thanks.
    Ant build suceeded but did not generate wrapper java/classes. Warning message I got is
    [apt] warning: Bad annotation processor factory: java.lang.ClassCastException: com.sun.istack.ws.AnnotationProcessorFactoryImpl cannot be cast to com.sun.mirror.apt.AnnotationProcessorFactory
    [apt] warning: Bad annotation processor factory: java.lang.ClassCastException: com.sun.istack.internal.ws.AnnotationProcessorFactoryImpl cannot be cast to com.sun.mirror.apt.AnnotationProcessorFactory
    [apt] warning: Annotation types without processors: [javax.jws.WebService]
    [apt] [total 725ms]
    [apt] 3 warnings
    I turned on verbose="true" and cut the command line apt -d .. -s ..
    from the ant build output.
    I executed that command line. Command suceeded, java/classes generated correctly. No warning
    <target name="run_apt" depends = "build_config_classes">
    <apt
         debug="true"
         verbose="true"
         destdir="${build_classes}"
    sourcedestdir="${apt.generated.dir}"
    sourcepath="${config.src}">
         <classpath refid="apt.classpath"/>
         <source dir="${config.src}">
         <include name="${config.pkg}/Configuration.java"/>
         </source>
    </apt>
    </target>

    try adding fork=true to apt task

  • WEB SERVICE FROM JAVA CLASS

    Hi,
    I'm new to BPEL and I've a problem: i need to create a WEBSERVICE from Java class.
    This Java class contain functions to call other functions in other packages.
    These last function contain sql query: it's an java "interface" application between BPEL and an EXTERNAL Oracle database 10g.
    I want to create one WEB SERVICE from this application and i followed the steps (right click, menù, create j2ee webservice, etc) i obtain error:
    VALIDATION FAILED --- Files at the following URLs cannot be modified:
    File:/C:/OraBPELPM1/integration/jdev/jdev/mywork/RichiesteWebService/ARRICH/app/src/controller/MyWebService1.webservice
    File:/C:/OraBPELPM1/integration/jdev/jdev/mywork/RichiesteWebService/ARRICH/app/src/controller/IMyWebService.wsdl
    File:/C:/OraBPELPM1/integration/jdev/jdev/mywork/RichiesteWebService/ARRICH/app/src/controller/MyWebService1.dd
    Show the java class "interface":
    package controller;
    import java.util.*;
    import java.sql.*;
    import domain.*;
    import dao.*;
    import utility.*;
    public class Request_Incoming_Controller {
    public Request_Incoming_Controller() {}
    /* Update StatoTurismo */
    public static String aggiornaStTurismo(int numIncoming, String tur) {
    GregorianCalendar dp = FormatoData.dataDaDate1("00/00/0000");
    Request_Incoming ric = new Request_Incoming(numIncoming,"","",dp,dp,"","","",0,"",tur,"");
    // try {
    if(ric.aggiornaTurismo()<0)return "NO";
    return "OK";
    // } catch (SQLException ex) {
    // System.err.println("Eccezione durante l'aggiornamento "
    // + ex.getMessage()); }
    /* Update StatoCassa */
    public static String aggiornaStCassa(int numIncoming,String cash) {
    GregorianCalendar dp = FormatoData.dataDaDate1("00/00/0000");
    Request_Incoming ric = new Request_Incoming(numIncoming,"","",dp,dp,"","","",0,"","",cash);
    // try {
    if(ric.aggiornaCassa()<0) return "NO";
    return "OK";
    // } catch (SQLException ex) {
    // System.err.println("Eccezione durante l'aggiornamento "
    // + ex.getMessage()); }
    /* Lettura del NumIncoming assegnato dal sistema dopo il caricamento della
    * richiesta in base alla matricola del Dipendente
    public static int caricaNumDaDip(String dipendente){
    Request_Incoming ric = new Request_Incoming(0,dipendente);
    // try {
    ric.trovaNumIncoming();
    return ric.getNumIncoming();
    // } catch (SQLException ex) {
    // System.err.println("Eccezione durante l'aggiornamento "
    // + ex.getMessage()); }
    Can Anyone help?
    Is urgently.........thanks
    Daniele

    You should try to post it there:
    http://forums.oracle.com/forums/forum.jspa?forumID=97
    But if I look at the error, it looks like some files are Read-Only. Maybe you should check if they are or if you have the appropriate rights on the folder.
    Good luck

  • Clear wsdl cache from java

    hi ,
    I am trying to clear wsdl cache from java , some errors are coming,
    Please any one help me
    this is my code
    package bpeltest;
    import com.oracle.bpel.client.BPELProcessId;
    import java.util.Properties;
    import com.oracle.bpel.client.IBPELDomainHandle;
    import com.oracle.bpel.client.Locator;
    import com.oracle.bpel.client.ServerException;
    public class UnDeployBPELProcess {
    public static void main(String[] args) throws ServerException {
    UnDeployBPELProcess unDeployBPELProcess = new UnDeployBPELProcess();
    //Properties with BPEL server connection information
    Properties props = new Properties();
    props.put("orabpel.platform", "ias_10g");
    props.put("java.naming.factory.initial", "com.evermind.server.rmi.RMIInitialContextFactory");
    props.put("java.naming.provider.url", "opmn:ormi://EC3-VEDARRA:6005:home");
    props.put("java.naming.security.principal", "oc4jadmin");
    props.put("java.naming.security.credentials", "oracle1");
    props.put("dedicated.connection","true");
    //Get a locator in default domain
    Locator locator = new Locator("default","oracle1",props);
    //Get a handle to the domain
    IBPELDomainHandle iBPELDomainHandle = locator.lookupDomain();
    iBPELDomainHandle.undeployProcess(new BPELProcessId("default","MyUndeployedBPELProcess"));
    System.out.println("iBPELDomainHandle" + iBPELDomainHandle);
    iBPELDomainHandle.clearWSDLCache();
    compilation errors:
    C:\jdevstudio10131\jdk\bin\javaw.exe -client -classpath C:\jdevstudio10131\jdev\mywork\javatest\BPELTest\classes;C:\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel.jar;C:\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel-common.jar;C:\product\10.1.3.1\OracleAS_1\j2ee\home\lib\oc4j-internal.jar;C:\product\10.1.3.1\OracleAS_1\opmn\lib\optic.jar;C:\jdevstudio10131\j2ee\home\lib\ejb.jar -Dhttp.proxyHost=157.204.22.4 -Dhttp.proxyPort=8080 -Dhttp.nonProxyHosts=*.2o7.net|32.85.*|chipsndip|157.204.*|localhost|127.0.0.1|*.wlgore.com|EC3-VEDARRA|tigger -Dhttps.proxyHost=157.204.22.4 -Dhttps.proxyPort=8080 -Dhttps.nonProxyHosts=*.2o7.net|32.85.*|chipsndip|157.204.*|localhost|127.0.0.1|*.wlgore.com|EC3-VEDARRA|tigger bpeltest.UnDeployBPELProcess
    Exception in thread "main" java.lang.Exception: Failed to create "ejb/collaxa/system/FinderBean" bean; exception reported is: "javax.naming.NameNotFoundException: ejb/collaxa/system/FinderBean not found
         at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:52)
         at javax.naming.InitialContext.lookup(InitialContext.java:351)
         at com.oracle.bpel.client.util.BeanRegistry.lookupFinderBean(BeanRegistry.java:337)
         at com.oracle.bpel.client.Locator.getFinder(Locator.java:920)
         at com.oracle.bpel.client.Locator.lookupDomain(Locator.java:228)
         at bpeltest.UnDeployBPELProcess.main(UnDeployBPELProcess.java:29)
         at com.oracle.bpel.client.util.ExceptionUtils.handleServerException(ExceptionUtils.java:82)
         at com.oracle.bpel.client.Locator.getFinder(Locator.java:926)
         at com.oracle.bpel.client.Locator.lookupDomain(Locator.java:228)
         at bpeltest.UnDeployBPELProcess.main(UnDeployBPELProcess.java:29)
    Caused by: java.lang.Exception: Failed to create "ejb/collaxa/system/FinderBean" bean; exception reported is: "javax.naming.NameNotFoundException: ejb/collaxa/system/FinderBean not found
         at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:52)
         at javax.naming.InitialContext.lookup(InitialContext.java:351)
         at com.oracle.bpel.client.util.BeanRegistry.lookupFinderBean(BeanRegistry.java:337)
         at com.oracle.bpel.client.Locator.getFinder(Locator.java:920)
         at com.oracle.bpel.client.Locator.lookupDomain(Locator.java:228)
         at bpeltest.UnDeployBPELProcess.main(UnDeployBPELProcess.java:29)
         at com.oracle.bpel.client.util.BeanRegistry.lookupFinderBean(BeanRegistry.java:351)
         at com.oracle.bpel.client.Locator.getFinder(Locator.java:920)
         ... 2 more
    Process exited with exit code 1.
    and one more
    where we find thiis value
    "java.naming.factory.initial"= "com.evermind.server.rmi.RMIInitialContextFactory"
    Regards
    janardhan

    I think there is error with this line in code
    props.put("java.naming.provider.url", "opmn:ormi://EC3-VEDARRA:6005:home");
    Please see the post for details
    http://oraclebpelindepth.blogspot.com/2008/08/bpel-context-properties-for-client-api.html
    The value should be
    props.put("java.naming.provider.url", "opmn:ormi://EC3-VEDARRA:6005:home/orabpel");
    Every Little Helps
    Kalidass Mookkaiah
    http://oraclebpelindepth.blogspot.com/

Maybe you are looking for