JAVA CLIENT PROXY

Hi All,
I am working on java client proxies.
Can anybody give me step by step approach for creating application java class using proxy and bean classes generated from my outbound interfaces?
I want to create EJB module project and EAR project,I have created it using NWDS04,but I am getting error as it is not finding com.sap.aii.proxy.xiruntime.core.AbstractProxy this class.
Please help me to reolve this problem.

Hi,
The EJB code that you write for creating client proxies uses many of the inbuilt JAVA classes...so it is dependent on those classes...you need to define these dependencies using an xml file .......   'application-j2ee-engine.xml'.
you can find more information on this at
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7d4db211-0d01-0010-1e8e-9b07fc2113ab
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501d

Similar Messages

  • Error while deploying Java Client Proxy

    Hi Experts,
    I developed a java client proxy.Since i do not have access to visual administrator, i uploaded the ear file to a folder in the XI box and asked the basis folks to deploy it.
    On trying to deploy it on to the server they got the following error.
    Details:
    ========
    1) Error loading archive
        /usr/sap/XS1/put/R3Ear.ear
        (server side name is: /usr/sap/XS1/put/R3Ear.ear)
        com.sap.sdm.util.sduread.IllFormattedSduFileException: Error during attribute reading: received exception: invalid stored block lengths
    What could be the reason for the error?

    Hi
      recreate your ear file and try to redeploy it.
    it could be a zipping problem
    Regards
    Vishnu

  • SOAP --XI ---RFC or Java Client  Proxy

    Hello Gurus,
    Need your adivce for a scenario in XI
    Scenario ---  To implement XI with SAP SCEM(Supply Chain Event Management).
    Client is sending data from Web Portal (JSP Page) and wants to integrate with R/3.
    (Request from client and Response from R/3 shown again at browser )
    Web Portal (JSP Page) is on server A and XI on server B
    Queries ---
    1. Can I use Java Client Proxy Approach ---  proxy --- xi -- rfc approach 
    If  Web Portal (JSP page) is working in server A and XI in server B then can I call xi server from jsp page by passing xi server credential (username,password,bus service) and using sync Interface I can show result back to browser.
    2. For SOAP Approach  -- SOAP -- XI --- RFC approach 
    Suppose I need to send two parameters from my Web Portal (JSP page) to xi to R/3 and it will return some result.
    Concept of Webservice --- any application (like BAPI ) exposed.
    a. Pls tell me all the steps required for IR and ID
    b.How can I invoke that generated webservice from my jsp page --- so that my request parameters values go to xi from my jsp page and to R/3 and then result from R/3 to xi and to my jsp page.
    Regards

    I think second approach is more appropriate ie. SOAP>XI>RFC
    Some of the blogs you can refer:
    /people/riyaz.sayyad/blog/2006/05/07/consuming-xi-web-services-using-web-dynpro-150-part-i
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873a22024f79
    Sender SOAP adapter config: http://help.sap.com/saphelp_nw04s/helpdata/en/fc/5ad93f130f9215e10000000a155106/content.htm
    Hope this helps,
    Rgds,
    Moorthy

  • How to use Http test Client  for Java Client Proxy Scenario

    Hi,
    I build a scenario using Java Client Proxy where JSP as my FrontHand.
    Can I know that whether i can use Http Test Client in place of JSP for sending data and getting response back. If yes than how can i implement this ?
    Regards,
    Abhi

    Hi,
    with Http Test Client you post your messages
    directly to the Integration Engine (not using adapter framework)
    so you can use Http Test Client to simulate any message
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Why java Client  Proxy is used?

    Hi all!
    I am using sudhir porumamill's scenario available at the following links:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9
    and
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501d
    I am not getting which proxy he is referring to? whether it is java client proxy/server proxy?
    What to be given in SLD for client proxy and server proxy as well?
    Thanks

    Hi,
    Only the database name can be specified in JDBC communication channel. The table should given in receiver data type in Integration Repository.
    Refer these link for sql-xml data types to be followed for JDBC scenario.
    http://help.sap.com/saphelp_nw04/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    Regards,
    Uma

  • Java Client Proxy Debugging

    Hello Folks,
                        I am trying to implement the java client proxies for one of my requirements...
    i have used the guides provided for the java client proxies in SDN and trying to implemented the same (Mine is asynchronous..)
    so far I have been able to deploy the EJB into the PI system and able to acces the JSP pages...when i submit the request using jsps..i am not able to see the entry in PI Moni.....and also unable to pinpoint the error ...
    i have used the user role which consists of J2ee login crendetials also...
    My requirement is JSP->Java->Ejbs->XI->DB...  like shown in java proxies guide by sudhir......
    I am not able to see any logs related to errors in defaulttrace and applications log files also...
    Could someone help me in this regard...
    Regards
    Rajesh

    Provide a JSP error page and write the exceptions of the java proxy call to that screen.

  • Jws source file not found (Java client proxy)

    Hi,
    I created a web service in Workshop, and generated a Java proxy from it using the test console. I then wrote a stand-alone Java client to invoke an operation on the web service based on the workshop examples. I'm able to first get the service proxy fine.
    MyService_Impl proxy = new MyService_Impl("http://localhost:7001/MyProcesses/MyService.jws?WSDL=");
    Then, the following line fails.
    MyServiceSoap soapProxy = proxy.getMyServiceSoap();
    Error is a SoapFaultException with message "Source file MyService.jws not found". I don't know where it's looking for the file to begin with. Is there a place where I can control that?
    When I look at the WSDL in the workshop test browser, the soap:address location URL is different from the actual URL in the test browser address bar.
    I'm new to this stuff. Any ideas will help.
    Thanks

    hello folks,
    I have Windows XP home Firefox v1.0.6.
    removed old java in Add/Remove programs.
    cleared the "Temporary Internet Files" folder that contained C:\Documents and Settings\Greg\Local Settings\Temporary Internet Files\Content.IE5.
    tried to load jre-1_5_0_04-windows-i586-p-iftw.exe for the third time, and the install still hangs up.
    J2SE Runtime Environment 5.0 Update Installer Information : Error 1311. Scource file not found: C:\Documents and Settings\Greg\Local Settings\Temporary Internet Files\Content.IE5\2XFKL4VY\je150000[1].cab. Verify that the file exists and that you can access it.
    and,
    Error 1311. Scource file not found: C:\Documents and Settings\Greg\Local Settings\Temporary Internet Files\Content.IE5\EEIDPHGA\jp150040[1].cab. Verify that the file exists and that you can access it.
    here's the thing, I cannot surf to "Content.IE5" folder in my "Local Settings\Temporary Internet Files" folder, but I can plug in the directory in the address bar of Windows Explorer & see the "Content.IE5" folder.
    I do not see "je150000[1].cab" or "je150000[1].cab" in there.
    Am I using the wrong program to fresh install Java for Firefox in XP?
    Is there something wrong with my operating system?
    monitoring this thread.....
    thanx.

  • Debugging Java Client Proxy - XI Interface

    Hi ,
       I am trying out Oubound Proxy client to an XI message interface through EJB client lookup from JSP.
    I would like to debug my java bean and jsp. I added system.out.println statements in my code, it is not coming out in console_logs of J2EE Server.. Can any one shed some light on what could be wrong. Or is there any other good way[like logger api's] to do debug.
    Thanks,
    Ganesh Ram

    Any comments?
    Ganesh Ram

  • Error in Java Client proxy

    Hi All,
        My scenario is JavaClient Proxy -
    XI----
    >RFC.
    Here i generated JavaProxies for my Message interface and i imported that zip file into NWDS for my EjbModule project.
    and also i added Jar files in libraries by saying add External Jars.
    Here r the Jars:
    aii_proxy_xirt.jar
    aii_msg_runtime.jar
    aii_utilxi_misc.jar
    guidgenerator.jar
    even i am getting an error saying com.sap can not be resolved or not a type
    Any inputs
    Is there any other jars i need to add ??
    How to resolve this error.
    Thanks,
    Kalyan.

    Hi Kalyan,
    I think you have not set the classpath corectly.
    For this :
    1. Get the file aii_map_api.jar from XI server (if you have not done this already).
    2. Create a new folder in the Java project you have created for mapping program. Name it as "lib"(any name would do..I just try to follow widely used naming conventions).
    3.Copy the jar file aii_map_api.jar to this folder.(You can copy it in explorer and go to NWDS, select the lib folder and do a Ctrl + V).
    4. Right click on the java project, select properties. Select Java build path. Go to Libraries tab. Click on the button "Add jars". In the dialog that pops up select your java project> lib> aii_map_api.jar.
    5. Click apply / OK.
    Rewards,
    Vinod.

  • Set username/password using in Java client proxy for a JAX-WS webservice

    Hi, i am invoking one deployed EBS webservice , while trying to run that client program me
    i am getting error WSSE security, where can i set Uname pwd , through java program me
    ++Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Missing <wsse:Security> in SOAP Header
    Thanks Regards
    Raj
    Edited by: 952094 on Jan 23, 2013 1:42 PM

    import java.util.ArrayList;
    import java.util.List;
    import java.util.Map;
    import javax.xml.ws.BindingProvider;
    import weblogic.wsee.security.unt.ClientUNTCredentialProvider;
    import weblogic.xml.crypto.wss.WSSecurityContext;
    import weblogic.xml.crypto.wss.provider.CredentialProvider;
    you can add username for weblogic client using
    // Create list of credential providers
    List credProviders = new ArrayList();
    // Create user name token provider
    ClientUNTCredentialProvider unt = new ClientUNTCredentialProvider("weblogic", "weblogic");
    credProviders.add(unt);
    credProviders.add(cp);
    // Finally add the credential providers to the request context
    Map<string, object=""> requestContext = ((BindingProvider)brokerService).getRequestContext();
    requestContext.put(WSSecurityContext.CREDENTIAL_PROVIDER_LIST, credProviders);

  • Create Client Proxy Java

    hi
    my scenario is JSP => SOAP => XI => RFC => SAP.
    i developed all the things which required ,and this scenario is working fine, when i m using XMLSPY Tools and create / send SOAP Request through this tools  i will got response properly,
    but i want to create SOAP request in JAva and used in Java / JSP,
    please, Any one tell me how to do this ?
    B'se when i m creating java client i will got Exception, or Authentication level problem,
    please any one knwon solution please help me,
    regards
    Bhaumik

    Steps to create Java client proxy :
    1. Right click on your Sender Message Interface and select "Java Proxy Generation".
    2. This will generate the EJB skeleton code which you need to import in NDS and then call the EJB code from your JSP / Java code. Note that calling from JSP would be an easy task as you they both could be a part of the same Enterprise app. but creating standalone java client code could be a tricky situation.
    These 2 PDFs should help you.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9">Java Proxies and SAP XI - The Inside Story, Part 1 By Sudhir Porumamilla</a>
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501d">Java Proxies and SAP XI - The Inside Story, Part 2 By Sudhir Porumamilla</a>
    Regards,
    Amol

  • How to call a text FTP proxy service from a Java client ?

    Greetings,
    I've configured a text FTP proxy service which downloads files from a FTP server. It pols a directory on the FTP server and, as soon as a file respecting a given pattern apears it is downloaded. I tested the service in the test console and by putting some test files onto the FTP server. Now, I need to be able to test it from a Java client. How may I do that ? I need to write a Java client to connect to the OSB and to tell to it to use the FTP proxy in order to download a given file, from a given location and to put it in a given location on the client machine. Many thanks in advance for any help. A sample would be great !
    Kind regards,
    Nicolas

    Ok, I understand. The crucial question here is "what is a caller that you refer to?"
    Don't get me wrong, but the problem here is that you probably don't understand, what OSB is good for. OSB is an event-driven system. The event in your case is a new message in remote FTP server. You have to define what should happen when that event is fired. And that's all. You don't have to involve other client (or caller) for this case.
    You should define your FTP proxy to retrieve all relevant files from FTP server and then you should route them based on their name/content/encoding/whatever to different consumers. You can also have many proxies if you want - one for each name. It's up to you. But you don't have any "callers" in either case.

  • Java client for OSB proxy with JMS Transport

    Hi,
    I am trying to call OSB proxy with JMS Transport. I am generating the client through ant task clientgen and following this article
    http://www.oracle.com/technetwork/articles/murphy-soa-jms-092653.html
    The osb proxy is req-response and is simply routing to BS which return a string value.
    When I run my client, it get stuck and does not return at all. Has any one trying java client in such scenario?
    What I may be missing?
    Below is snipped of client code:
    String url = "http://localhost:7021/sbresource?PROXY/MySample/MyJMSProxyService";
    CreditLoanApprovalServiceSoapBindingQSService service = new CreditLoanApprovalServiceSoapBindingQSService_Impl(url);
    MyPortType port = service.getCreditLoanApprovalServiceSoapBindingQSPort();
    LoanStruct in = new LoanStruct(); //populated the data structure
    String loanResult = port.processLoanApp(in); // Stuck here without any error
    System.out.println("LoanResult--> " + loanResult);
    Thx
    /Ashwani

    http://localhost:7021/sbresource?PROXY/MySample/MyJMSProxyService is the WSDL URL of the proxy.
    Transport is is picked by the client from wsdl.
    As far as the documentation of client generation is there, there is no change.
    But meanwhile I have started working on sending the message directly to queue. JMSProxy is getting called. May be I will first run the proxy this way and then try troubleshooting the java client.
    Regards
    Ashwani

  • Accessing Coherence Extend* Proxy Deployoed on Weblogic Coherence Cluster from Java Client

    Hi,
    I am trying to access Extend Proxy through Thick Java Client
    Followed steps as per below links and deployed a GAR on 3 Server ( 2 Storage Enabled Coherence Cluster and 1 Coherence Storage Disabled Extend Proxy Enabled). I could see ExtendProxyService using JMX and can see Port running on the System.
    Ref :
    Setting Up Coherence*Extend - 12c (12.1.2)
    http://docs.oracle.com/middleware/1212/coherence/COHAG/deploy_options.htm#CHDJBJDI
    Issue :
    When I tried to Execute Java Client to Connect to Proxy Server it Connects to Port and then Disconnects with ConnectionException as below.
    Observer below Lines in Box is show he Connected Socket with Port 9099 which is Extend Proxy Port
    Error Message
    2013-11-08 14:55:55.114/1.202 Oracle Coherence GE 12.1.2.0.0 <D5> (thread=TcpClientRemoteService:TcpInitiator, member=n/a): Started: TcpInitiator{Name=TcpClientRemoteService:TcpInitiator, State=(SERVICE_STARTED), ThreadCount=0, Codec=Codec(Format=POF), Serializer=com.tangosol.io.DefaultSerializer, PingInterval=0, PingTimeout=30000, RequestTimeout=30000, ConnectTimeout=10000, SocketProvider=[email protected], RemoteAddresses=WrapperSocketAddressProvider{Providers=[[DTC37446E9C6CBD/127.0.0.0:9099]]}, SocketOptions{LingerTimeout=0, KeepAliveEnabled=true, TcpDelayEnabled=false}}
    2013-11-08 14:55:55.146/1.234 Oracle Coherence GE 12.1.2.0.0 <D5> (thread=main, member=n/a): Connecting Socket to 127.0.0.0:9099
    2013-11-08 14:55:55.146/1.234 Oracle Coherence GE 12.1.2.0.0 <Info> (thread=main, member=n/a): Connected Socket to 127.0.0.0:9099
    2013-11-08 14:55:55.161/1.249 Oracle Coherence GE 12.1.2.0.0 <Info> (thread=main, member=n/a): Error establishing a connection with 127.0.0.0:9099: com.tangosol.net.messaging.ConnectionException: TcpConnection(Id=null, Open=true, LocalAddress=0.0.0.0:54384, RemoteAddress=127.0.0.0:9099)
    2013-11-08 14:55:55.161/1.249 Oracle Coherence GE 12.1.2.0.0 <Error> (thread=main, member=n/a): Error while starting service "TcpClientRemoteService": com.tangosol.net.messaging.ConnectionException: could not establish a connection to one of the following addresses: [127.0.0.0:9099]; make sure the "remote-addresses" configuration element contains an address and port of a running TcpAcceptor
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.peer.initiator.TcpInitiator.openConnection(TcpInitiator.CDB:121)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.peer.Initiator.ensureConnection(Initiator.CDB:11)
        at com.tangosol.coherence.component.net.extend.remoteService.RemoteCacheService.openChannel(RemoteCacheService.CDB:7)
        at com.tangosol.coherence.component.net.extend.RemoteService.doStart(RemoteService.CDB:11)
        at com.tangosol.coherence.component.net.extend.RemoteService.start(RemoteService.CDB:5)
        at com.tangosol.coherence.component.util.SafeService.startService(SafeService.CDB:53)
        at com.tangosol.coherence.component.util.safeService.SafeCacheService.startService(SafeCacheService.CDB:5)
        at com.tangosol.coherence.component.util.SafeService.ensureRunningService(SafeService.CDB:27)
        at com.tangosol.coherence.component.util.SafeService.start(SafeService.CDB:14)
        at com.tangosol.net.ExtensibleConfigurableCacheFactory.startService(ExtensibleConfigurableCacheFactory.java:681)
        at com.tangosol.net.ExtensibleConfigurableCacheFactory.ensureService(ExtensibleConfigurableCacheFactory.java:599)
        at com.tangosol.coherence.config.scheme.AbstractCachingScheme.realizeCache(AbstractCachingScheme.java:50)
        at com.tangosol.coherence.config.scheme.AbstractBundlingScheme.realizeCache(AbstractBundlingScheme.java:31)
        at com.tangosol.net.ExtensibleConfigurableCacheFactory.ensureCache(ExtensibleConfigurableCacheFactory.java:254)
        at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:205)
        at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:182)

    If this proxy design (not starting up due to a invalid entry in "authroized-hosts") is on-purpose from Coherence Engineers - then it should be re-visited.
    I think the PROXY Server should just log a message stating about the invalid DNS entry for the Authorized-host and continue with the startup...Failing to start completely doesn;t make sense since one cannot rely completely on DNS to
    say everything should be correct before a server start.
    Ofcourse you can overcome by writing your own Custom Filter - but the issue pop's out as with any custom filter(s) is maintaining them along the road (with all minor/major coherence upgrades).
    Also - this "Authorized-Hosts" concept should be carefully analyzed particularly for the following issues...
    (1) if the client IP is changed in the DNS server - will the proxy-server allow the new Client connection without any issues? when will the PROXY server flush its CLIENT DNS entries or what is the TTL time-limit for a CLIENT cached through Authorized-hosts by the PROXY-SERVER?
    (2) Suppose, we have a CLIENT in the "Authroized-Hosts" making a valid connection to the PROXY and putting some cache into the SERVER CACHE through the PROXY....now if the IP-address (DNS being the same) of the CLIENT is changed - can the CLIENT can GET the CACHE it just PUT into the SERVER without any ERRORS?
    (3) How often we need to re-start PROXIES? Do we need to re-start them often for the DNS issues (if any) mentioned above?
    Looks like the Limited documentation & examples for Coherence*Extend - particularly for .NET & C++ clients & *Extend Proxies is a point of concern.
    vk

  • How to invoke a proxy service from a java client

    Hi all,
    how could I invoke a proxy service from a java client ?
    The proxy service type is 'any xml service' with http protocol.
    For a proxy with web service type I can export the related WSDL and generate the java client source.
    With 'any xml service' there is no associated wsdl and I'm wondering how to do that.
    Thanks
    ferp

    Hi Ferp,
    I used ClientGEN to generate client files from WSDL deployed in ALSB. You can also use Axis for client file generation.
    You need to know the WSDL URL. Generate Client files from WSDL URL.
    Sample ANT Script
    <project name="simple-web" default="mytask" basedir=".">
    <taskdef name="clientgen" classname="weblogic.wsee.tools.anttasks.ClientGenTask" classpath="C:\bea92\weblogic92\server\lib\weblogic.jar"/>
    <target name="mytask" description="Generate web service client">
              <clientgen wsdl="http://<hostname>:<port>/URL?WSDL"
         destDir="src"
         packageName="com.client.mytask"
         classpath="${java.class.path}" />
         </target>
    </project>
    Use the following JAVA Code,
    try {
         ActivationService service = new ActivationService_Impl("http://<hostname>:<port>/url?WSDL");
    client = service.getActivationServicePort();
    } catch (Exception ex) {
    // Handle Exception
    client.activateNumber();
    Let me know if you need any more information.
    Thanks,
    Suman.

Maybe you are looking for

  • Warning message in Oracle Workflow notification

    Hi, I have a requirement, where a warning message is to be shown to the user when he presses the Approve button of a notification. I know that through post notification function, validations for a particular notification can be performed and an error

  • Outgoing server rejects password; can't send mail

    Today, for no apparent reason, I can't send out any mail. No hardware, no software changes. (I'm use Mail 2.0.7 with my iMac G5.) When I try to send mail I get this message: "The SMTP server "outgoing.yahoo.verizon.net" rejected the password for user

  • DATE FORMAT in HANA table

    Hi I have Csv file in UTF-8 format have fields like data 2012/02/23, XXXXXX( all 2byte characters),........................................ When i import it says invalid number for 2012/02/23. I created table like this Create column table Schema1.tab

  • Handling ABAP requests in WCM.

    Hello experts, I am wondering about any way to take a copy/image from my own ABAP requests from development client to another client inside the landscape (e.g. any tool like BC sets but for ABAP requests). Any idea? Thanks & Best Reagrds, Amr Elfakha

  • ME31K BADI for checking Data in Commitment Plan/ Acct assignment

    I am trying to find a BADI or User Exit to check Account Assignment / Commitment Plan Data, to work in TCodes ME31k or ME32K. I tried using ME_PROCESS_OUT_CUST , But its only for BAPI. Any Similar BADI to check in ME31K or ME32K. Appricate any help