cancel
Showing results for 
Search instead for 
Did you mean: 

Calling webservice from Java Proxy

former_member206107
Active Participant
0 Kudos

Hi,

I have a PI Java Proxy which is currently running successfully.

I have created a EJB project and and EAR project for the EJB. The EAR is deployed on the same WAS where the above mentioned Java Proxy is also running.

I could test the ear (webservice) using wsnavigator. This is working fine.

Question: How can I access / call the webservice from the java proxy.

Have any one tried this? any help will be appreciated.

Thanks,

Arun prabhu S

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member206107
Active Participant
0 Kudos

Hi,

Just got a small hint / finding.

I compared the java proxy project (problem) with other normal EJB project (working fine) and found the "Project Facets" of these two projects are different!

java proxy Project:

EJB Module - 2.1

Java - 5

SAP Specific EJB Module - 2.1

other EJB Project:

EJB Module - 3

Java - 5

SAP Specific EJB Module - 3

Also the project facets of the binding EAR projects are also different

java Proxy EAR

EAR - 1.4

SAP Specific EAR Module - 1.4

other EAR Project

EAR - 5

SAP Specific EAR Module - 5

And I am unable to change the project facets properties

Thanks and best regards,

Arun prabhu S

former_member206107
Active Participant
0 Kudos

Hi,

I tried these steps before. It was quite simple for calling the webservice in a EJB added to a EAR project.

In my case I am getting "The specified project LocalDevelopmentLocalDevelopmentis(2fgds(2fcustom(2fapp~sap.com is not a valid EAR 1.5 project" error when I try to create the webservice client.

Any idea?

Thanks and best regards,

Arun prabhu S

subhro_de
Active Participant
0 Kudos

One approach to work with this can be

1) Get the wsdl file from the wsnavigator for your webservice

2) Use the wsdl to generate webservice clients in NWDS. The following link can help you with the same :

http://www.roseindia.net/javacertification/ibm-287/java_clients.shtml

The generated Java bean proxy provides a remote procedure call interface to the web service.

3) From within your java proxy use this generated java bean proxy interface to call the wenservice.

4) Deploy everything in the server and test.