Skip to Content
avatar image
Former Member

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 17, 2006 at 05:57 AM

    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.

    Java" target="_blank">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

    Java" target="_blank">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

    Regards,

    Amol

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 17, 2006 at 06:21 AM

    Hi bhaumik,

    while calling SOAP service which is genrated using XI you have pass the user id and password of XIAFUSER or any user which has role smilar to XIAFUSER.

    what i understand from your post is that you have genrated proxy class using WSDL file.This WSDL is genrated using XI.

    Now you are calling that proxy from your JSP page.

    in that case you have to pass the user name and password to your proxy. just call following method of the proxy.

    <proxy>._setusername("<username>");

    <proxy>._setpassword("<password>");

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi bhaumik,

      Open your NWDS in it open your web module project. in that web module project you can create new <b>deployable proxy</b> this can be created by going menu item New->Other a dialog will open in that dialog box in the left select <b>web service</b>. in right select the kind of the web service proxy you want to create.

      now you can use those genrated proxy classes in your project.