Unable to connect to ECC system through stand alone JAVA program using JCO.

Hi All,
I want to connect to ECC system through standalone JAVA program using jco.while executing my java program it is saying that connection refused.
I am getting the error as shown below.
com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: CMALLC : rc=20 > Co
nnect from SAP gateway to RFC server failed
Connect_PM  GWHOST=192.168.10.99, GWSERV=sapgw01, SYSNR=01
LOCATION    SAP-Gateway on host igm501 / sapgw01
ERROR       partner '192.168.10.99:sapgw01' not reached
TIME        Mon Sep  1 15:00:37 2008
RELEASE     700
COMPONENT   NI (network interface)
VERSION     38
RC          -10
MODULE      nixxi.cpp
LINE        2821
DETAIL      NiPConnect2
SYSTEM CALL connect
ERRNO       239
ERRNO TEXT  Connection refused
COUNTER     2
        at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeConnect(Native Method)
        at com.sap.mw.jco.rfc.MiddlewareRFC$Client.connect(MiddlewareRFC.java:11
25)
        at com.sap.mw.jco.JCO$Client.connect(JCO.java:3138)
        at JConnector_frmDesk.<init>(JConnector_frmDesk.java:91)
        at JConnector_frmDesk.main(JConnector_frmDesk.java:141)
I have already configured SAPDP01,SAPGW01 in my services file in windows\system32\drivers\etc\services.
What else i need to do to connect to ECC system through my JAVA program.Please help me in this regard.
Regards,
Ramana.

Hi !
Check this to verify that you are correctly using JCO:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8e7daa90-0201-0010-9499-cd347ffbbf72
Try to give in ashost="/H/saprouter/H/sap".
Regards,
Matias.

Similar Messages

  • How to call stand Alone java program from jsp

    Hello all...
    I want to use the stand alone java program in jsp page. I compiled the java program and place the class file in classes folder under web-inf. But when i try to instantiate the java class inside jsp it is not recognizing the class. Where might be the problem
    Plz help....
    Shamim

    hi , this is dheeraj.. i need to know that how to execute java code and class in jsp.. if anyone know about if bt tell me.. i just know that we can use java code by java beans in jsp.. if you know any knowledge regarding this topic please send me.....

  • Problem while calling a Webservice from a Stand alone java program

    Hello Everyone,
    I am using a java program to call a webservice as follows. For this I have generated the client proxy definition for Stand alone proxy using NWDS.
    Now when I call the method of the webservice I am getting the correct result but along with the result I am getting one error and one warning message in the output.
    The java code to call the webservice is as follows.
    public class ZMATRDESCProxyClient {
         public static void main(String[] args) throws Exception {
              Z_MATRDESC_WSDService ws = new Z_MATRDESC_WSDServiceImpl();
              Z_MATRDESC_WSD port = (Z_MATRDESC_WSD)ws.getLogicalPort("Z_MATRDESC_WSDSoapBinding",Z_MATRDESC_WSD.class);
              String res = port.zXiTestGetMatrDesc("ABCD134");
              System.out.print(res);
    The result I am getting is :
    Warning ! Protocol Implementation [com.sap.engine.services.webservices.jaxrpc.wsdl2java.features.builtin.MessageIdProtocol] could not be loaded (NoClassDefFoundError) !
    Error Message is :com/sap/guid/GUIDGeneratorFactory
    <b>Material Not Found</b> -
    > This is the output of webservice method and it is right.
    Can any one please let me know why I am getting the warning and error message and how can I fix this.
    Thanks
    Abinash

    Hi Abinash,
    I have the same problem. Have you solve that problem?
    I am using a java program to call a webservice too. And I have generated the client proxy definition for Stand alone proxy using NWDS. When I call the method of the webservice I am getting the correct result but along with the result I am getting one error and one warning message in the output.
    The java code to call the webservice is as follows.
    MIDadosPessoaisSyncService service = new MIDadosPessoaisSyncServiceImpl();
    MIDadosPessoaisSync port = service.getLogicalPort("MIDadosPessoaisSyncPort");
    port._setProperty("javax.xml.rpc.security.auth.username","xpto");
    port._setProperty("javax.xml.rpc.security.auth.password","xpto");
    String out = port.MIDadosPessoaisSync("xpto", "xpto");
    System.out.println(out);
    The result I am getting is :
    Warning ! Protocol Implementation [com.sap.engine.services.webservices.jaxrpc.wsdl2java.features.builtin.MessageIdProtocol] could not be loaded (NoClassDefFoundError) !
    Error Message is :com/sap/guid/GUIDGeneratorFactory
    <b>The result of the WS is correct!!!</b>
    The Java project does not have any warning. But the stand alone proxy project has following warnings associated with it.
    This method has a constructor name     MIDadosPessoaisSync.java     
    The import javax.xml.rpc.holders is never used     MIDadosPessoaisSyncBindingStub.java     
    The import javax.xml.rpc.encoding is never used     MIDadosPessoaisSyncBindingStub.java     
    The constructor BaseRuntimeException(ResourceAccessor, String, Throwable) is deprecated     MIDadosPessoaisSyncBindingStub.java
    It is very similar with your problem, could you help me?
    Thanks
    Gustavo Freitas

  • Communication between servlet(client behavior) and stand alone java program

    Hello all:
    I need to send a message (ascii characters sequence) from a servlet to a java program, but I'm not sure what is the best way to get it: socket, JMS or other mechanism that I don't know.
    Is the servlet who is operating how client behavior.
    Please, any comment will be appreciated, regards,
    Ulises.

    You can always start a ServerSocket on the client (kinda sounds funny, doesn't it) which will accept connections. You then open a plain old Socket on the server to connect to the client's listener. (Note, this is the reverse of a normal set-up). Once you have the connection established, you will call getOutputStream() to get a stream to write to. Likewise, you will call getInputStream() to read the data sent. You will want to investigate the java.net.* and java.io.* libraries.
    - Saish

  • Running stand alone java class using Maven

    Hi I want to run my main class using Maven.Can anyone help?

    SDET wrote:
    Hi I want to run my main class using Maven.Can anyone help?I'm pretty sure the Maven documentation can be of great help. If not, the Maven-users mailing list is your resource of choice for Maven related questions.

  • We are unable to connect to Integration builder through VPN.

    Hi,
    We are unable to connect to Integration builder through VPN.
    Below are the errors we get:
    a. In two of the PI 7.0 Systems  we get:
         i. Cannot open connection on host x and port y.
         ii.com.sap.engine.services.rmi_p4.P4IOException: Cannot open connection on host: x and port:y
         iii. java.net.SocketException: Malformed reply from SOCKS server
    b. In the other two PI 7.1 systems we get:
         i. MESSAGE ID: com.sap.aii.ib.core.ejbutil.rb_all.SERVER_NOT_AVAILABLE
         ii. com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception while trying to get InitialContext. [Root exception is com.sap.engine.interfaces.cross.DestinationException: cannot establish connection with any of the available instances:
    uvw.xyz.abc.net:51504 Reason: com.sap.engine.services.rmi_p4.P4IOException: Cannot open connection to host: x and port:y]
         iii. com.sap.engine.interfaces.cross.DestinationException: cannot establish connection with any of the available instances:
    uvw.xyz.abc.net:51504 Reason: com.sap.engine.services.rmi_p4.P4IOException: Cannot open connection to host: x and port: y
    The hosts and ports are accessible. (Telnets and tracerts work fine for all the systems)
    We are able to access the SLD and Runtime workbench on all the environments. However, Integration Builder tools are not accessible.
    Any clue on what the problem might be?
    Thank you,
    Siva.

    Hi Siva,
    When you execute SXMB_IFR from PI, do you get  Integration Builder page?
    Are you trying to directly access the PI server by the known URLs?
    Also, Following links may be of your use:
    Integration Builder -Configuration is not openning?
    Re: unable to logon to Enterprise Services Builder or Integration Builder
    Regards,
    Nipun

  • Unable to connect to the database through OEM

    Hi,
    ORACLE VERSION: 10.2.0.1.0
    OPERATING SYSTEM:LINUX
    I was unable to connect to my database through OEM.It is showing error like this in my OEM .
    Enterprise Manager is not able to connect to the database instance. The state of the components are listed below.
    The below is the list of errors written in the trace file .
    2009-07-13 14:55:18,351 [EMUI_14_55_18_/console/aboutApplication] ERROR em.console doGet.311 - java.lang.IllegalStateException: Response has already been committed
    java.lang.IllegalStateException: Response has already been committed
         at com.evermind.server.http.EvermindHttpServletResponse.resetBuffer(EvermindHttpServletResponse.java:1901)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:211)
         at oracle.sysman.emSDK.svlt.PageHandler.render(PageHandler.java:773)
         at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:396)
         at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:688)
         at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:291)
         at oracle.sysman.eml.app.Console.doGet(Console.java:135)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.sysman.emSDK.svlt.EMRedirectFilter.doFilter(EMRedirectFilter.java:101)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
         at oracle.sysman.db.adm.inst.HandleRepDownFilter.doFilter(HandleRepDownFilter.java:123)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
         at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:239)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:793)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    2009-07-13 14:55:20,893 [HttpRequestHandler-25640626] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:20,925 [HttpRequestHandler-25640626] ERROR eml.OMSHandshake getParameterFromDB.402 - ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:20,926 [HttpRequestHandler-25640626] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://VTL3200DB:3938/emd/main)(ERROR = INTERNAL_ERROR)
    2009-07-13 14:55:20,959 [HttpRequestHandler-23946437] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:20,990 [HttpRequestHandler-23946437] ERROR eml.OMSHandshake getParameterFromDB.402 - ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:20,991 [HttpRequestHandler-23946437] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://VTL3200DB:3938/emd/main)(ERROR = INTERNAL_ERROR)
    2009-07-13 14:55:42,047 [OmsServiceDriver thread] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:51,030 [HttpRequestHandler-12767107] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:51,062 [HttpRequestHandler-12767107] ERROR eml.OMSHandshake getParameterFromDB.402 - ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:51,063 [HttpRequestHandler-12767107] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://VTL3200DB:3938/emd/main)(ERROR = INTERNAL_ERROR)
    2009-07-13 14:55:51,096 [HttpRequestHandler-28346522] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:51,127 [HttpRequestHandler-28346522] ERROR eml.OMSHandshake getParameterFromDB.402 - ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:51,127 [HttpRequestHandler-28346522] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://VTL3200DB:3938/emd/main)(ERROR = INTERNAL_ERROR)
    2009-07-13 14:56:21,162 [HttpRequestHandler-32110028] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:56:21,193 [HttpRequestHandler-32110028] ERROR eml.OMSHandshake getParameterFromDB.402 - ORA-01017: invalid username/password; logon denied
    2009-07-13 14:56:21,194 [HttpRequestHandler-32110028] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://VTL3200DB:3938/emd/main)(ERROR = INTERNAL_ERROR)
    2009-07-13 14:56:21,227 [HttpRequestHandler-12767107] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:56:21,258 [HttpRequestHandler-12767107] ERROR eml.OMSHandshake getParameterFromDB.402 - ORA-01017: invalid username/password; logon denied
    2009-07-13 14:56:21,259 [HttpRequestHandler-12767107] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://VTL3200DB:3938/emd/main)(ERROR = INTERNAL_ERROR)

    Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    Don't say password is correct, if password is correct then tell us what last changes you did. did you change SYSMAN password throught alter user ...identified ... ?
    Regards,
    Taj

  • I have an iPhone 4s, and I reset the content and setting. It turned on, I chose English, Australia, and now, I am unable to connect/activate my iPhone through Wi-Fi, and for an unknown reason, it will not allow me to use cellular data or iTunes.

    I have an iPhone 4s, and I reset the content and setting. It turned on, I chose English, Australia, and now, I am unable to connect/activate my iPhone through Wi-Fi, and for an unknown reason, it will not allow me to use cellular data or iTunes. I'm not sure of what to do. It's quite frustrating, and all I need is advice, and help. I would much appreciate it. Thank-you.

    In order to download to your phone over the air, you need to be connected to WiFi.
    It's possible the Internet connection through Verizon is not stable enough for the downlaod to begin (it is a very large download).
    You might want to head over to Starbucks with your laptop for the afternoon and see if you can download it over their WiFi.

  • CALL_FUNCTION_OPEN_ERROR in CRM while trying to connect to ECC system

    Hi All,
    We are having issues while connecting to ECC system from CRM at specific point of time.
    It occurred only once yesterday . Since it is a production system, we need to investigate the cause of the issue.
    Upon checking the logs, I can see dumps in ST22 stating CALL_FUNCTION_OPEN_ERROR while trying to connect to ECC.
    This issue has been faced by multiple users at the same time.
    Both CRM and ECC are in the same server . There are no errors in ECC system ,
    The error description says
    Error opening RFC connection
    Error text........... "Group USER not found"
    Description.......... "LgIGroupX"
    The response time is fine for the system and during the time when the error occurred.
    Both the systems are in kernel 720 patch level 416.
    There are no errors in dev_rd and dev_ms as well.
    The errors in trace file also give information that ECC system cannot be reached.
    However our ECC system was available , up and running and there were no issues at that time with ECC.
    I have attached the dump, kernel and patch level details , work process trace files and the response times.
    Please suggest.
    Thanks,
    Sowmya.

    LB: Hostname or service of the message server unknown#DEST =PUCCLNT220#MSHOST
    =puc.apps.eon.com#R3NAME =PUC#GROUP =USER"
    disp+work information
    kernel release 720
    kernel make variant 720_EXT_REL
    compiled on Linux GNU SLES-11 x86_64 cc4.3.4 use-pr121116 for linuxx86_64
    compiled for 64 BIT
    compilation mode UNICODE
    compile time Feb 16 2013 02:50:12
    update level 0
    patch number 416
    source id 0.416
    Error from work process trace file
    A  reached MAX_RUDILOCKS for (user: L13526      , ta:                     ), sending RUDILOCK_RESET
    A  reached MAX_RUDILOCKS for (user: L13526      , ta:                     ), sending RUDILOCK_RESET
    A  reached MAX_RUDILOCKS for (user: L13526      , ta:                     ), sending RUDILOCK_RESET
    A  reached MAX_RUDILOCKS for (user: L13526      , ta:                     ), sending RUDILOCK_RESET
    A  reached MAX_RUDILOCKS for (user: L13526      , ta:                     ), sending RUDILOCK_RESET
    A  reached MAX_RUDILOCKS for (user: L13526      , ta:                     ), sending RUDILOCK_RESET
    A  reached MAX_RUDILOCKS for (user: L13526      , ta:                     ), sending RUDILOCK_RESET
    A  reached MAX_RUDILOCKS for (user: L13526      , ta:                     ), sending RUDILOCK_RESET
    A  reached MAX_RUDILOCKS for (user: L13526      , ta:                     ), sending RUDILOCK_RESET
    A  reached MAX_RUDILOCKS for (user: L13526      , ta:                     ), sending RUDILOCK_RESET
    A  reached MAX_RUDILOCKS for (user: L13526      , ta:                     ), sending RUDILOCK_RESET
    A  reached MAX_RUDILOCKS for (user: L13526      , ta:                     ), sending RUDILOCK_RESET
    A  reached MAX_RUDILOCKS for (user: L13526      , ta:                     ), sending RUDILOCK_RESET
    A  reached MAX_RUDILOCKS for (user: L13526      , ta:                     ), sending RUDILOCK_RESET
    A  reached MAX_RUDILOCKS for (user: L13526      , ta:                     ), sending RUDILOCK_RESET
    A  reached MAX_RUDILOCKS for (user: L13526      , ta:                     ), sending RUDILOCK_RESET
    A  reached MAX_RUDILOCKS for (user: L13526      , ta:                     ), sending RUDILOCK_RESET
    A  reached MAX_RUDILOCKS for (user: L13526      , ta:                     ), sending RUDILOCK_RESET
    A  reached MAX_RUDILOCKS for (user: L13526      , ta:                     ), sending RUDILOCK_RESET
    M
    M Mon Apr 20 15:48:09 2015
    M  ThPlgTimeout: ThPlgTimeout for plugin T144/U17974
    A
    A Mon Apr 20 15:58:59 2015
    A  *** ERROR => RFC Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 2825
    LB: Hostname or service of the message server unknown
    DEST =PUCCLNT220
    MSHOST =puc.apps.eon.com
    R3NAME =PUC
    GROUP =USER
    [abrfcio.c    9213]
    A {root-id=441EA15C8F181ED4B9E4168F16E66417}_{conn-id=441EA15C8F181ED4B9E416A941234417}_1
    A  TH VERBOSE LEVEL FULL
    A  ** RABAX: end RX_GET_MESSAGE
    A
    A Mon Apr 20 15:59:02 2015
    A  *** ERROR => RFC Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 2825
    LB: Hostname or service of the message server unknown
    DEST =PUCCLNT220
    MSHOST =puc.apps.eon.com
    R3NAME =PUC
    GROUP =USER
    [abrfcio.c    9213]
    A  {root-id=441EA15C8F181ED4B9E4168F16E66417}_{conn-id=441EA15C8F181ED4B9E416A941234417}_1
    A  *** ERROR => RFC Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 2825
    LB: Hostname or service of the message server unknown
    DEST =PUCCLNT220
    MSHOST =puc.apps.eon.com
    R3NAME =PUC
    GROUP =USER
    [abrfcio.c    9213]
    A {root-id=441EA15C8F181ED4B9E4168F16E66417}_{conn-id=441EA15C8F181ED4B9E416A941234417}_1
    A  *** ERROR => RFC Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 2825
    LB: Hostname or service of the message server unknown
    DEST =PUCCLNT220
    MSHOST =puc.apps.eon.com
    R3NAME =PUC
    GROUP =USER
    [abrfcio.c    9213]
    A {root-id=441EA15C8F181ED4B9E4168F16E66417}_{conn-id=441EA15C8F181ED4B9E416A941234417}_1

  • Crystal Report connecting Multple ECC systems

    Hi,
    I am working on crystal where I compare the data between to two diffrent databases(ECC tables). I am using SAP Table, function mudule option to create connection.
    I have built a main report against ECC system A and imported a sub report built on ECC system B. Now I see that connection in my main report is overwrting the connection in the sub report. If I change the connection in the subreport with set data source location it changes the connection of both sub report and main report. After I deploy this report to infoview, in cmc I see only one database connection.
    Is this a bug or can we have only one connection to ECC system per one crystal report even if it has sub reports?
    Thanks

    Yes that happens automatically, I just checked the same logic with universes built against oracle data source, I could see two coonections in the CMC. Its like its there is this issue when I am connecting to sap tables directly

  • HTTP Response :500 unable to connect to remote system.

    Hi,
    I am doing proxy-xi-file scenario, where i am getting this error in sxmb_moni in R/3.
    The error reads with red flag:
    HTTP Response :500 unable to connect to remote system.
    Please  tell me what can be the reason.

    Snehal,
    Error: The error message 503 Service unavailable Application stopped! is displayed.
    Description: The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. The implication is that this is a temporary condition which will be alleviated after some delay. If known, the length of the delay MAY be indicated in a Retry-After header. If no Retry-After is given, the client SHOULD handle the response as it would for a 500 response.
    Note: The existence of the 503 status code does not imply that a server must use it when becoming overloaded. Some servers may wish to simply refuse the connection.
    Possible Tips: Because of J2EE application com.sap.aii.af.ms.app not active
    • Try to (re)start the application using the Visual Administrator Choose Server --> Services --> Deploy --> View on Application or restart the J2EE engine
    • The problem is that not all J2EE services can be started by the J2EE. i.e Start the Visual Administrator and select Server->Services->Deploy in the tree on the left. On the right-hand side, choose the Runtime tab page. You see a tree in the right window with all applications if you select the APPLICATION radio button. Check if they are running, otherwise choose Start. Usually the J2EE engine starts all services automatically.
    • Refer SAP Note 803145,807000,791655
    You can have a look on this blog for the same.
    /people/krishna.moorthyp/blog/2006/07/23/http-errors-in-xi
    Regards,
    Sarvesh

  • Calling a web service through SSL via a stand alone java class

    HI,
    I am trying to call a web service through SSL via a simple stand alone java client.
    I have imported the SSL certificate in my keystore by using the keytool -import command.
    Basically I want to add a user to a group on the server. Say I add a user user 1 to group group 1 using an admin userid and password. All these values are set in an xml file which I send to the server while calling the server. I pass the web service URL, the soap action name and the xml to post as the command line arguments to the java client.
    My xml file(Add.xml) that is posted looks like :
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope
    xmlns:xsi = "http://www.w3.org/1999/XMLSchema-instance"
    xmlns:SOAP-ENC = "http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:SOAP-ENV = "http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd = "http://www.w3.org/1999/XMLSchema"
    SOAP-ENV:encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/">
    <SOAP-ENV:Body>
    <namesp1:modifyGroupOperation xmlns:namesp1 = "/services/modifyGroup/modifyGroupOp">
    <auth>
    <user>adminUser</user>
    <password>adminPassword</password>
    </auth>
    <operationType>ADD</operationType>
    <groupName>group1</groupName>
    <users>
    <userName>user1</userName>
    </users>
    </namesp1:modifyGroupOperation>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    I call the client as:
    java PostXML https://com.webservice.com/services/modifyGroup "/services/modifyGroup/modifyGroupOp" Add.xml
    I my client, I have set the following:
    System.setProperty("javax.net.ssl.keyStore", "C:\\Program Files\\Java\\jre1.5.0_12\\lib\\security\\cacerts");
    System.setProperty("javax.net.ssl.keyStorePassword", "password");
    System.setProperty("javax.net.ssl.trustStore", "C:\\Program Files\\Java\\jre1.5.0_12\\lib\\security\\cacerts");
    System.setProperty("javax.net.ssl.trustStorePassword", "password");
    But when I try to execute the java client, I get the following error:
    setting up default SSLSocketFactory
    use default SunJSSE impl class: com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl
    class com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl is loaded
    keyStore is : C:\Program Files\Java\jre1.5.0_12\lib\security\cacerts
    keyStore type is : jks
    keyStore provider is :
    init keystore
    init keymanager of type SunX509
    trustStore is: C:\Program Files\Java\jre1.5.0_12\lib\security\cacerts
    trustStore type is : jks
    trustStore provider is :
    init truststore
    adding as trusted cert:
    init context
    trigger seeding of SecureRandom
    done seeding SecureRandom
    instantiated an instance of class com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl
    main, setSoTimeout(0) called
    main, setSoTimeout(0) called
    %% No cached client session
    *** ClientHello, TLSv1
    RandomCookie: GMT: .....
    Compression Methods: { 0 }
    [write] MD5 and SHA1 hashes: len = 73
    main, WRITE: TLSv1 Handshake, length = 73
    [write] MD5 and SHA1 hashes: len = 98
    main, WRITE: SSLv2 client hello message, length = 98
    [Raw write]: length = 100
    [Raw read]: length = 5
    [Raw read]: length = 58
    main, READ: TLSv1 Handshake, length = 58
    *** ServerHello, TLSv1
    %% Created: [Session-1, SSL_RSA_WITH_RC4_128_MD5]
    ** SSL_RSA_WITH_RC4_128_MD5
    [read] MD5 and SHA1 hashes: len = 58
    [Raw read]: length = 5
    [Raw read]: length = 5530
    main, READ: TLSv1 Handshake, length = 5530
    *** Certificate chain
    chain [0] = ...
    chain [1] = ...
    chain [2] = ...
    chain [3] = ...
    main, SEND TLSv1 ALERT: fatal, description = certificate_unknown
    main, WRITE: TLSv1 Alert, length = 2
    [Raw write]: length = 7
    0000: 15 03 01 00 02 02 2E .......
    main, called closeSocket()
    main, handling exception: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    main, called close()
    main, called closeInternal(true)
    main, called close()
    main, called closeInternal(true)
    main, called close()
    main, called closeInternal(true)
    Exception in thread "main" javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.c
    ertpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source)
    at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
    at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(Unknown Source)
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown Source)
    at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source)
    at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(Unknown Source)
    at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source)
    at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
    at java.io.BufferedOutputStream.flush(Unknown Source)
    at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:506)
    at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2110)
    at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1088)
    at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
    at PostXML.main(PostXML.java:111)
    Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find v
    alid certification path to requested target
    at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
    at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
    at sun.security.validator.Validator.validate(Unknown Source)
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
    at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(Unknown Source)
    ... 18 more
    Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
    at java.security.cert.CertPathBuilder.build(Unknown Source)
    ... 23 more
    I do not know where I have gone wrong. Could someone point out my mistake.
    Thanks In advance!

    Hi jazz123,
    There's an example in the [*Java Web Services Tutorial*|http://java.sun.com/webservices/docs/2.0/tutorial/doc/] : see Chapter 1: Building Web Services with JAX-WS - A Simple JAX-WS Client.

  • Error While Consuming Public Web Service through Stand Alone Proxy

    Hi,
    I am getting the below error when I am consuming a public web service through Stand Alone Proxy.
    java.rmi.RemoteException: Service call exception; nested exception is:
         com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (407) Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  ).
         at com.mindtree.examples.GlobalWeatherSoapStub.getCitiesByCountry(GlobalWeatherSoapStub.java:159)
         at com.mindtree.examples.GlobalWeatherSoapStub.getCitiesByCountry(GlobalWeatherSoapStub.java:168)
         at com.mindtree.examples.WebServiceClient.main(WebServiceClient.java:18)
    Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (407) Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  ).
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.handleResponseMessage(MimeHttpBinding.java:903)
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1346)
         at com.mindtree.examples.GlobalWeatherSoapStub.getCitiesByCountry(GlobalWeatherSoapStub.java:152)
         ... 2 more
    Regards,
    Venkatesh

    Hi,
    I am still facing the same issue.
    Regards,
    Venkatesh

  • HOW COULD CONNECT FROM SAP SYSTEM TO THIRD PARTY JAVA APPLICATION

    HI expects,
            HOW COULD CONNECT FROM SAP SYSTEM TO THIRD PARTY JAVA or . DET APPLICATION.please provide me some scenarios and documents.please help me.

    Hi,
    In the sender side i.e. in SAP system you can use IDoc/RFC/Proxy to push the data to XI.
    IDoc supports only Async communication and in Sync case performace is good using Proxy.
    In the receiver side you can use Java Proxy to connect to the Java application or you can even bulid a webservice over the Java/.Net application and use SOAP adapter to post data to it.
    Thanks
    SaNv...

  • Adding Stand alone Java System In solman

    Hi Experts,
                Can we add a stand alone java system in solution manager.We have a standalone java system installed for Enterprise portal system.If possible please help me with any help full documents.
    Regards,
    Vamshi.

    Hi,
    yes, it is possible to monitor SAP AS JAVA on Solmon.
    1. On System JAVA is installed, start sapccmsr agent
    2. Before that you need to copy csmreg file to your java system.
    There is an excellent from service market place about this. please refer the following
    service.sap.com/monitoring
    Thanks!

Maybe you are looking for