How use to simple Java client with Https ?

Experts,
I am having some difficulties to call a https webservice on DataPower.
The following simple client has no problem to call HTTP webservice but HTTPs different story. SoapUI works just fine with Https request.
Can any one make a suggestion ? Appreciate any help !
public final static String DEFAULT_SERVER
= "https://123.123.123.123:443/Wsp";
// = "https://123.123.123.123:2048";
public final static String SOAP_ACTION
= "http://mycompany.com/Inquiry";
public static void main(String[] args) {
          String server = DEFAULT_SERVER ;
          String input1 = "123";
          String input2 = "hello";
          try {
          URL u = new URL(server);
          URLConnection uc = u.openConnection();
          HttpURLConnection connection = (HttpURLConnection) uc;
          connection.setDoOutput(true);
          connection.setDoInput(true);
          connection.setRequestMethod("POST");
          connection.setRequestProperty("SOAPAction", SOAP_ACTION);
          OutputStream out = connection.getOutputStream();
          Writer wout = new OutputStreamWriter(out);
          wout.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
          wout.write("<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:sam=\"http://aglc.com/sampleDp\">\r\n");
          wout.write("<soapenv:Header/>\r\n");
          wout.write("<soapenv:Body>\r\n");
          wout.write("<sam:AcordRequest>\r\n");
          wout.write("<sam:TRANSID>" + input1 + "</sam:TRANSID>\r\n");
          wout.write("<sam:TRANSBODY>" + input2 + "</sam:TRANSBODY>\r\n");
          wout.write("</sam:AcordRequest>\r\n");
          wout.write("</soapenv:Body>\r\n");
          wout.write("</soapenv:Envelope>\r\n");
          wout.flush();
          wout.close();
          String hhResponse ="";
          InputStreamReader isr = new InputStreamReader(connection.getInputStream());
          BufferedReader in = new BufferedReader(isr);
          String inputLine;
          while ((inputLine = in.readLine()) != null){
          //AIGTraceLog.log(componentName,Level.INFO,inputLine);
          hhResponse = hhResponse+inputLine+"\n";
          System.out.println(hhResponse);
          in.close();
          catch (IOException e) {
          System.err.println(e);
          }

Thanks for the reply. I think I am close, based on your instruction, I did the following but still got the same error.
C:\Program Files\Java\j2re1.4.2_13>java com.mypack.testdpws.TestDPWS
javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Certificate not Trusted
C:\Program Files\Java\j2re1.4.2_13>keytool -import -alias testDPWS -file TestDpClSsl.crt
Enter keystore password:
Enter keystore password: password
Owner: CN=TestDpClSsl
Issuer: CN=TestDpClSsl
Serial number: 2dd2d12e
Valid from: 12/1/10 4:37 PM until: 12/1/11 4:37 PM
Certificate fingerprints:
MD5: 3A:89:FE:76:BC:30:BF:F0:87:31:F5:14:29:07:60:91
SHA1: 40:71:51:4C:84:BD:08:40:A6:7D:60:A8:A8:04:BA:09:B7:E5:C9:A4
Trust this certificate? [no]: y
Certificate was added to keystore
C:\Program Files\Java\j2re1.4.2_13>java com.mypack.testdpws.TestDPWS
javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Certificate not Trusted
Any idea ? or do I need to add something in the test program ?

Similar Messages

  • How to use standalone java client with an enterprise bean in J2EE 1.4

    Hi All,
    I am have deployed a stateless session bean in Sun's J2EE 1.4 Application Server. i am trying to call the bean using a standalone java client. but the client cannot access the bean.
    The error coming is:
    Jan 21, 2004 7:48:27 PM com.sun.corba.ee.impl.legacy.connection.SocketFactoryCo
    nectionImpl <init>
    WARNING: ORBUTIL.connectFailure
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(
    RBUtilSystemException.java:1739)
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(
    RBUtilSystemException.java:1757)
    at com.sun.corba.ee.impl.legacy.connection.SocketFactoryConnectionImpl.
    init>(SocketFactoryConnectionImpl.java:74)
    at com.sun.corba.ee.impl.legacy.connection.SocketFactoryContactInfoImpl
    createConnection(SocketFactoryContactInfoImpl.java:88)
    at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.begi
    Request(CorbaClientRequestDispatcherImpl.java:146)
    at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(Corba
    lientDelegateImpl.java:121)
    at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaCli
    ntDelegateImpl.java:212)
    at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
    at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.jav
    :69)
    at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.ja
    a:58)
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:12
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at StatelessSessionClient.main(StatelessSessionClient.java:17)
    Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection re
    used: connect
    at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSoc
    etFactory.java:390)
    at com.sun.corba.ee.impl.legacy.connection.SocketFactoryConnectionImpl.
    init>(SocketFactoryConnectionImpl.java:58)
    ... 10 more
    Caused by: java.net.ConnectException: Connection refused: connect
    at sun.nio.ch.Net.connect(Native Method)
    at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:457)
    at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
    at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSoc
    etFactory.java:381)
    ... 11 more
    javax.naming.CommunicationException: Can't find SerialContextProvider
    at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.ja
    a:66)
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:12
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at StatelessSessionClient.main(StatelessSessionClient.java:17)
    Caused by: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed
    No
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(
    RBUtilSystemException.java:1739)
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(
    RBUtilSystemException.java:1757)
    at com.sun.corba.ee.impl.legacy.connection.SocketFactoryConnectionImpl.
    init>(SocketFactoryConnectionImpl.java:74)
    at com.sun.corba.ee.impl.legacy.connection.SocketFactoryContactInfoImpl
    createConnection(SocketFactoryContactInfoImpl.java:88)
    at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.begi
    Request(CorbaClientRequestDispatcherImpl.java:146)
    at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(Corba
    lientDelegateImpl.java:121)
    at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaCli
    ntDelegateImpl.java:212)
    at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
    at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.jav
    :69)
    at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.ja
    a:58)
    ... 3 more
    Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection re
    used: connect
    at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSoc
    etFactory.java:390)
    at com.sun.corba.ee.impl.legacy.connection.SocketFactoryConnectionImpl.
    init>(SocketFactoryConnectionImpl.java:58)
    ... 10 more
    Caused by: java.net.ConnectException: Connection refused: connect
    at sun.nio.ch.Net.connect(Native Method)
    at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:457)
    at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
    at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSoc
    etFactory.java:381)
    ... 11 more
    My java client uses the following code to access the bean:
    Hashtable props = new Hashtable();
    String URL="iiop://localhost:3700";
    props.put("java.naming.factory.initial","com.sun.jndi.cosnaming.CNCtxFactory");
    props.put("java.naming.provider.url", URL) ;
    InitialContext ctx = new InitialContext();
    Object ref = ctx.lookup("ejb/StatelessSessionHome");
    StatelessSessionHome home = (StatelessSessionHome)PortableRemoteObject.narrow(ref,StatelessSessionHome.class);
    StatelessSessionRemote statelessSession = home.create();
    plz help me to locate the error.
    Regards,
    Mohit

    Hi Amol,
    thanks for your suggestion.
    i have deployed the converter application in J2EE1.4 tutorial in Sun AppServer J2EE1.4. the deployment process works smoothly. but accessing the deployed converter bean using standalone client as given in the tutorial gives the following error.
    Caught an unexpected exception!
    javax.naming.NoInitialContextException: Need to specify class name in environmen
    t or system property, or as an applet parameter, or in an application resource f
    ile: java.naming.factory.initial
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
    40)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243
    at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.jav
    a:280)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at ConverterClient.main(ConverterClient.java:14)
    I have set the InitialHost and InitialPort as suggested by you in the client code. the client gets successfully compiled but gives error when executed.
    The client code is:
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.rmi.PortableRemoteObject;
    import java.math.BigDecimal;
    public class ConverterClient {
    public static void main(String[] args) {
    System.setProperty("org.omg.CORBA.ORBInitialHost","localhost");
    System.setProperty("org.omg.CORBA.ORBInitialPort","3700");          
    try {
    Context initial = new InitialContext();
    Object objref = initial.lookup
    ("java:comp/env/ejb/SimpleConverter");
    ConverterHome home =
    (ConverterHome)PortableRemoteObject.narrow(objref,
    ConverterHome.class);
    Converter currencyConverter = home.create();
    BigDecimal param = new BigDecimal ("100.00");
    BigDecimal amount =
    currencyConverter.dollarToYen(param);
    System.out.println(amount);
    amount = currencyConverter.yenToEuro(param);
    System.out.println(amount);
    System.exit(0);
    } catch (Exception ex) {
    System.err.println("Caught an unexpected exception!");
    ex.printStackTrace();
    Please suggest so that i can run the standalone client successfully.
    Regards,
    Mohit Kapoor

  • Please tell me how to use the Simple bluetooth client server example.

    Hi i used the simple bluetooth client server example in labview 7.1. Iam getting an error saying your system does not support the network operation.  I have following doubts also.
    1. Should i pair the device before running the labview.
    2. Should i enable the file transfer wizard in the software given with the bluetooth adapter.
    Please help
    Thank you
    R.Prem kumar 
    09940446193

    Hi R.Prem,
    Could you please let me know what error code is associated with this error message? Also could you please provide a description of the setup you are currently using? Thanks!
    Best regards,
    Steven

  • Creating a simple java client for a session EJB local interface

    Hi all
    Is it possible to create a simple java client for a session ejb local interface with JDeveloper.
    The problem is that it creates a test client for a remote interface only...
    i.e.
    MySessionEJB sessionEJB = context.lookup("MySessionEJB")
    and once i try to adjust it manually for the local interface...
    MySessionEJBLocal sessionEJB = (MySessionEJBLocal) context.lookup("MySessionEJBLocal") (MySessionEJBLocal - is the name of my local interface)
    it generates the exception:
    javax.naming.NotFoundException: SessionEJBLocal not found
    at...........................(RMIClientContext.java:52)
    There is still no problem with accessing the local interface object from the jsf project where i've added <ejb-local-ref> tag into the web.xml file.
    but i need the possibility of testing the simple java client for the local interface to test business methods wich should return objects without indirect properties
    Thanks in advance.
    Alex.

    Pedja thanks for reply.
    I still dont understand what is wrong with my example.
    The first peace of the code i wrote (getting the reference to the remote interface object) works pretty well, and even more it is produced automatically by JDeveloper, so why we cant get a reference to the local interface object the same way?
    Certanly we should use the local interface for getting access to the resource functioning under the same local jvm and i think it doesnt metter wich app server we really use wls or oas or others
    Thanks. Alex.

  • I wander how to establish Webdispatcher on EP with HTTPS

    I wander how to establish Webdispatcher on EP with HTTPS . I
    can do it for HTTP. I found releated link in SAP Library:
    http://help.sap.com/saphelp_nw04/helpdata/en/d8/a922d7f45f11d5996e00508b5d5211/frameset.htm
    but still I do not understand as installation sapwebdisp -bootstap asks me only for HTTP port of mesage server , instance nr for web dispatcher and HTTP port number for SAP webdispatcher.
    How to deal with HTTPS?
    In library (under SAP Web Dispatcher and SSL ) it is mentioned for HTTPS-HTTPS: icm/server_port_<xx>= ... PROT=HTTPS ...
    wdisp/ssl_encrypt=1. Is it in sapwebdisp.pfl? I guess also on EP something should be done(I have a productive system and I would not like to spoil anything)

    Is it in sapwebdisp.pfl?
    Yes.
    I have a productive system and I would not like to spoil anything)
    You should setup the QAS environment to support webdispatcher and https first.
    Be aware, that there are three different methods for https:
    client https> webdispatcher -http-> SAP system
    client https> webdispatcher -https-> SAP system (decrypt on webdispatcher and re-encrypt to SAP system)
    client https> webdispatcher -https-> SAP system (no decryption on webdispatcher)
    Often the first version is sufficient and the simplest one...
    Cheers Michael

  • Advice please: how to link java client with oracle AS

    Dear Sirs...
    how can i link java swing application with oracle application server? do i have to develop web service and then deploy it on the AS? or i should use another methodology? what exactly should i provide or should i use?
    thanks for any help
    best regards

    There are a number of approaches you can take. A webservice would work well. You may also consider using EJBs and calling them via RMI or a webservice.
    Either is a viable option depending on your requirements.

  • I have deployed a simple session bean with one business method.I created a simple java client to access.

     

    Hi,
    It depends upon your client program. You can use a java rmi based client or a web application. The good kick start to the problem would be to have a look into the java pet store example and converter example which is using RMI port for client access as well as web based access. Please review the examples shipped along with iAS and I'm sure that you will have a good idea on going about the coding.
    Regards
    Raj

  • Java proxy client with HTTP sender

    I have SP15. I have sender agreement with HTTP adapter for system A and Java Proxy Cleint that send message as system A.
    When I send message through Java proxy I see error:
    <i>SOAPFault received from Integration Server. ErrorCode/Category: XIServer/IN_BIND_WRONG_ADPT; Params: HTTP; AdditionalText:  ; ApplicationFaultMessage:  ; ErrorStack: Server agreement found belongs to adapter HTTP; current adapter is 'XI' </i>
    When I deleted sender agreement it worked.
    Could you explain this strange behavior? Is it a bug. Sender agrement for HTTP is necessary since SP16

    I have the same problem with SOAP and file adapter. I've posted this here already.
    XIServer/IN_BIND_WRONG_ADPT
    I have deleted the sender agreement for my soap adapter scenarios, because a sender agreement is not necessary (created by the wizard). After that the soap adapter scenarios work fine. But at scenarios with a sender file adapter you need a sender agreement.
    We had the following situation:
    XI Test, XI SP17, Basis SP16 --> IN_BIND_WRONG_ADPT problem
    XI QA, XI SP17, Basis SP14 --> okay
    XI Prod, XI SP15, Basis SP 16 --> okay
    We patched our XI QA to
    XI QA, XI SP17, Basis SP16
    After that we have the IN_BIND_WRONG_ADPT problem at our XI  QA system too.
    I started a SAPP OSS call two weeks ago but got no solution till now. They checked our systems some times but with no result.
    Our central SLD is on the XI Prod System. Perhaps there is a connection. But I don't want to patch my XI Prod system to SP 17, because it's the only system that works without errors.
    Message was edited by: Gil Ritter

  • How configure Windows 8.1 Clients with IE11 for SSO with Kerberos SPNEGO

    We are using BI Publisher OBIEE 11.1.1.7 with SSO Kerberos SPNEGO.
    The Weblogic Server Version is WLS_PRODUCT_VERSION=10.3.5.0
    The SSO is working very well with Clients that are Windows XP or Windows 2003 R2. We had testet wit IE7,IE8 Firefox.
    Now as we become Windows 8.1 Clients with IE11 the Kerberos SPNEGO SSO is not working.
    Please give us advice or a HOW TO Document about the configuration on Windows 8.1 Cllients with IE11 Browser.
    I find many Dokuments related to older Windows Versions for example
    http://www.oracle.com/technetwork/articles/idm/weblogic-sso-kerberos-1619890.html
    but nothing for Windows 8.1 Clients
    Thanks in advance.

    The location for tabs in IE11 browser might be different but the steps are the same :
    Configure Local Intranet Domains
       1. In Internet Explorer, select Tools > Internet Options.
       2. Select the Security tab.
       3. Select Local intranet and click Sites.
       4. In the Local intranet popup, ensure that the Include all sites that bypass the proxy server and Include all local (intranet) sites not listed in other zones options are checked.
       5. Click Advanced.
       6. In the Local intranet (Advanced) dialog box, add all relative domain names that will be used for Oracle WebLogic Server instances participating in the SSO configuration (for example, myhost.example.com) and click OK.
    Configure Intranet Authentication
       1. Select Tools > Internet Options.
       2. Select the Security tab.
       3. Select Local intranet and click Custom Level... .
       4. In the Security Settings dialog box, scroll to the User Authentication section.
       5. Select Automatic logon only in Intranet zone. This option prevents users from having to re-enter logon credentials, which is a key piece to this solution.
       6. Click OK.
    Verify Proxy Settings
    If you have a proxy server enabled:
       1. Select Tools > Internet Options.
       2. Select the Connections tab and click LAN Settings.
       3. Verify that the proxy server address and port number are correct.
       4. Click Advanced.
       5. In the Proxy Settings dialog box, ensure that all desired domain names are entered in the Exceptions field.
       6. Click OK to close the Proxy Settings dialog box.
    What is the error reported by the browser / wls logs ?
    -- Puneeth

  • How to bind the java client stub and the C++ server's skeleton?

    hi, i'm currently working on a project which a java client invoke a C++ object.
    i've wrote the idl and compile it using idl2cpp and a object is created.
    then i try to compile my java client using vbjc Client. it was done without errors.
    but when i try to run the client (after i run the smart agent and the C++ server) using vbj Client, it promts error which fail to load the class Client.java
    and i've try to run my java client using jre (java Client), the program throws exception --> org.omg.CORBA.BAD_PARAM: minor code: 0 completed: No
    so, wat's wrong with my codes actually??
    it's urgent and i really need you all's help...
    thanks a lot...

    below is my code:
    TimeObject.cpp (C++ server)
    #include "TimeImpl.h"
    // USE_STD_NS is a define setup by VisiBroker to use the std namespace
    USE_STD_NS
    int main(int argc, char* const* argv)
    try {
    // Initialize the ORB.
    CORBA::ORB_ptr orb = CORBA::ORB_init(argc, argv);
    /* // Initialize the BOA
    CORBA::BOA_ptr boa = orb->BOA_init(argc, argv);
    // Create the Time object
    POA_Time::TimeSetting timesetting = new TimeSettingImpl("My TimeSetting");
    // Export the newly created object
    boa->obj_is_ready(timesetting);
    // Ready to service requests
    boa->impl_is_ready(); */
    // get a reference to the root POA
    CORBA::Object_var obj = orb->resolve_initial_references("RootPOA");
    PortableServer::POA_var rootPOA = PortableServer::POA::_narrow(obj);
    CORBA::PolicyList policies;
    policies.length(1);
    policies[(CORBA::ULong)0] = rootPOA->create_lifespan_policy(
    PortableServer::PERSISTENT);
    // get the POA Manager
    PortableServer::POAManager_var poa_manager = rootPOA->the_POAManager();
    // Create myPOA with the right policies
    PortableServer::POA_var myPOA = rootPOA->create_POA("sntp_poa",
    poa_manager,
    policies);
    // Create the servant
    TimeSettingImpl timeServant;
    // Decide on the ID for the servant
    PortableServer::ObjectId_var managerId =
    PortableServer::string_to_ObjectId("TimeManager");
    // Activate the servant with the ID on myPOA
    myPOA->activate_object_with_id(managerId, &timeServant);
    // Activate the POA Manager
    poa_manager->activate();
    CORBA::Object_var reference = myPOA->servant_to_reference(&timeServant);
    cout << reference << " is ready" << endl;
    // Wait for incoming requests
    orb->run();
    catch(const CORBA::Exception& e) {
    cerr << e << endl;
    return 1;
    return 0;
    Client.java:
    import java.net.*;
    import java.io.*;
    import java.util.*;
    import java.lang.*;
    public class Client
         public static void main(String args[]) throws IOException, InterruptedException
              try
                   // Initialize the ORB
                   System.out.println("Initializing the ORB");
                   org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(args, null);
                   // Get the manager Id
                   byte[] managerId = "TimeManager".getBytes();
                   System.out.println("get the manager id");
                   // Locate an account manager. Give the full POA name and the servant ID.
                   Time.TimeSetting time =
                   Time.TimeSettingHelper.bind(orb, "/sntp_poa", managerId);
                   System.out.println("bind the object");
                   // Bind to the TimeSetting Object
                   //System.out.println("Binding to TimeSetting Object");
                   //Time.TimeSetting time = Time.TimeSettingHelper.bind(orb, "My TimeSetting");
                   SntpClient client = new SntpClient();
                   long Offset = client.synchronizeTime();
                   // Set offset
                   System.out.println("Setting offset to" + Offset);
                   time.offset((long)Offset);
                   // Set the system time
                   System.out.println("Setting system time");
                   time.SetTime();
              } catch (org.omg.CORBA.SystemException e)
                   System.out.println("System Exception");
                   System.err.println(e);

  • Simple Java created with compilation errors.

    Hi,
    While I am using Oracle for many years (currently 9.2.0.6.0) I am completely new to Java in the database.
    I found a very simple example to get started (please see SQL*Plus dump below) ... but I get a compilation error. Can anyone tell what I am doing wrong?
    SQL> CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED Fibonacci AS
    2 public class Fibonacci
    3 {
    4 public static int fib (int n)
    5 {
    6 if (n == 1 || n == 2)
    7 return 1;
    8 else
    9 return fib(n - 1) + fib(n - 2);
    10 }
    11 }
    12 /
    Warning: Java created with compilation errors.
    SQL> show errors java source Fibonacci
    No errors.
    SQL>
    (It must be a simple thing, the example I found seems correct, but what about grants, settings etc.)
    Thanks in advance,
    Stefan

    Stefan,
    I cannot see anything in your code that would cause a compilation error. However, according to the example in the "Oracle 9i SQL Reference", it looks like you need to enclose the name in double quotes, as in:
    CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED "Fibonacci" AS ...Alternatively (and this is the way I do it), you could compile the class outside of the database, and load the compiled class file. Just create a file called "Fibonacci.java" (that contains your java code), compile it, and then use the "loadjava" tool to load the "Fibonacci.class" file into the database. Please refer to the Oracle 9i Java Developer's Guide for more details.
    Good Luck,
    Avi.

  • Interoperability: WSDL-based Java client with MS SOAP server

    Does anybody have the experience with a Java client communicating with Microsoft
    SOAP server based on the WSDL protocol? My initial experiece shows a lot of problems.
    Any information in this regard is appreciated.
    Thanks

    I'm experiencing the same sort of problem too.
    I downloaded Bea Web Service Broker in order to test some MS Soap-based web services
    before developing some Weblogic EJBs which are to use them, since both of them
    (WS Broker and Weblogic EJBs) are said to use the same underlying package of Java
    classes to access any web service.
    Most of the MS web services won't work with this tool. I have problems with remote
    methods that have one or more parameters (the remote methods seem not to get them)
    and also with some web services that raise FileNotFoundExceptions from URLs (rather
    odd to me) on the Broker, despite the fact those URLs are valid.
    Any hint or suggestion will be very appreciated.

  • I have a simple session bean which i'm trying to access thru a simple java client.

    Please tell me what the client program should contain and should i create a client-jar and include in the ear file?

    Hi,
    It depends upon your client program. You can use a java rmi based client or a web application. The good kick start to the problem would be to have a look into the java pet store example and converter example which is using RMI port for client access as well as web based access. Please review the examples shipped along with iAS and I'm sure that you will have a good idea on going about the coding.
    Regards
    Raj

  • Can not use worklistmanager in  java client

    hi,
    I am writing a java client to call worklistmanager operations.
    i have a problem in locating bpel manager in the following code:
    Properties properties = new java.util.Properties();
    properties.setProperty("orabpel.platform", "ias_10g");
    properties.setProperty("java.naming.factory.initial", "com.evermind.server.rmi.RMIInitialContextFactory");
    properties.setProperty("java.naming.provider.url", "http://server1:9700");
    properties.setProperty("java.naming.security.principal", "admin");
    properties.setProperty("java.naming.security.credentials", "welcome");
    properties.setProperty("dedicated.connection", "true");
    Locator locator = null;
    try {
    locator = new Locator("default", "bpel", properties);
    } catch (ServerException ex) {
    ex.printStackTrace();
    //Lookup the delivery service using the Locator we created above
    IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME );
    exceptions:
    java.lang.Exception: Failed to create "ejb/collaxa/system/DomainManagerBean" bean; exception reported is: "javax.naming.NoInitialContextException: Cannot instantiate class: com.evermind.server.rmi.RMIInitialContextFactory [Root exception is java.lang.ClassNotFoundException: com.evermind.server.rmi.RMIInitialContextFactory]
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
    at javax.naming.InitialContext.init(InitialContext.java:223)
    at javax.naming.InitialContext.<init>(InitialContext.java:197)
    at com.collaxa.cube.util.CXBeanRegistry.lookupDomainManagerBean(CXBeanRegistry.java:209)
    at com.oracle.bpel.client.auth.DomainAuthFactory.authenticate(DomainAuthFactory.java:84)
    at com.oracle.bpel.client.Locator.<init>(Locator.java:127)
    at com.oracle.bpel.client.Locator.<init>(Locator.java:98)
    at temp_invoke_bpel_services.Main.main(Main.java:59)
    Caused by: java.lang.ClassNotFoundException: com.evermind.server.rmi.RMIInitialContextFactory
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:242)
    at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:42)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)
    ... 8 more
    at com.collaxa.cube.util.CXBeanRegistry.lookupDomainManagerBean(CXBeanRegistry.java:225)
    at com.oracle.bpel.client.auth.DomainAuthFactory.authenticate(DomainAuthFactory.java:84)
    at com.oracle.bpel.client.Locator.<init>(Locator.java:127)
    at com.oracle.bpel.client.Locator.<init>(Locator.java:98)
    at temp_invoke_bpel_services.Main.main(Main.java:59)
    Exception in thread "main" java.lang.NullPointerException
    at temp_invoke_bpel_services.Main.main(Main.java:65)
    Java Result: 1
    best regards
    Message was edited by:
    asadi

    this cannot work
    properties.setProperty("java.naming.provider.url", "http://server1:9700");
    you try to use ormi against an http endpoint ...
    try ormi://server1/orabpel instead
    hth clemens

  • How to connect Lync 2013 client with OCS 2007 R2 Edge server

    Hi,
    We have OCS 2007 R2 Edge server for external & OCS 2007 R2 FE Server for internal access in our environment.
    We able to access internally Lync2013 clients with OCS 2007R2 server, however from external we cannot access Lync2013 client with OCS2007 R2 server.
    Is there any patch or registry key trick to access OCS from lync2013 client externally? We cannot immediately migrate to Lync2013 server from OCS.
    Any help
    MD

    Hi,
    I suggest you still use OCS 2007 R2 client to login OCS 2007 R2 Server untill finishing migration to Lync Server 2013, as using Lync client with OCS 2007 R2 Server will offer a pretty limited experience.
    Here is a great blog about Lync 2010 Client unsupported with OCS, it is for Lync 2010 client but similar for Lync 2013 client:
    http://blog.schertz.name/2010/09/lync-client-unsupported-ocs/
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
    Please make sure that you completely understand the risk before retrieving any suggestions from the above link.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

Maybe you are looking for

  • From AVI to FLV for Flash MX Professional 2004

    Hi there... Let me thank you for your attention... This is my issue, I had this Flash MX 2004 Professional when I bought my PC, since then , 6 years ago, I learned how to use it, and recently got a little proyect which turned out to be something very

  • The result of a query

    Why can it be tha a query such as select * from People where name like 'A%' don't work in Forms 9i, and a query like select * from People where name like 'ANGEL%' works???? Please, i need help because i've been with this for more than two hours!!!!

  • Purchase Requistion release procedure

    Hi, Purchase requistion header level approval procedure activated. We required two level of approvals procedure based on total PR value range. Eventhrough i have maintained relase strategy its pulls always single stragey. Do the needful. Regards Moha

  • Web service problem: stub doesn't get created like it should.

    Our project uses a standard web service stub which has been created with Netbeans from a WSDl file. The project works OK and the the stub gets created on Nokias and SonyEricsson, but not on Palm. What could be the reason for this?

  • Sockets under Windows

    I realize a software of scientific computating in Java and i make some communications between several computer in order to compute. So i use some Sockets objects. But it turns out that the communication are faster when i communicate between two Linux