cancel
Showing results for 
Search instead for 
Did you mean: 

Create Client Proxy Java

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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>");

Former Member
0 Kudos

hi all,

in my scenario,

i want to create Java/JSP Client using WSDL file( which XI was created) and i want to used SOAP adapter in XI, and please tell me , how to create Java Client and called WebService which is in XI,

this scenario work perfectly using XMLSPY Tools,

i want to create java proxy client which use SOAP adapter in XI Server.

regards

Bhaumik

Former Member
0 Kudos

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.