Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Consuming ABAP webservice in Java

jitendra_it
Active Contributor
0 Likes
877

Hi Gurus,

We are publishing webservices from SAP and Java team is consuming them. For accessing the webservice from java , we are maintaining User name and Password in SICF for that service.

Now if we donot maintain the User name and Password in SICF for that service then Exception "Unauthorised " is coming in Java.

We want to pass the User name and Password from Java. How to achieve this.

Thanks

Jitendra

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
784

J,

When you created the Web Service in SAP, there should have been a WSDL created by SAP. Give that WSDL to the Java developers. They will find a Logon service in the WSDL. They need to create a Proxy that leverages that service - and pass the UserID and passwords as Credentials to the Proxy.

This "opens" the door into SAP.

4 REPLIES 4
Read only

Former Member
0 Likes
785

J,

When you created the Web Service in SAP, there should have been a WSDL created by SAP. Give that WSDL to the Java developers. They will find a Logon service in the WSDL. They need to create a Proxy that leverages that service - and pass the UserID and passwords as Credentials to the Proxy.

This "opens" the door into SAP.

Read only

0 Likes
784

Hi John,

thnx for quick response. i have given WSDL to Java team but they are unable to find " Logon service in the WSDL".

Can u tell us for which XML tags we should search.

Thanks

Jitendra

Read only

0 Likes
784

J,

If you created the WS correctly in SAP, you should see something like this in the WSDL:

<wsdl:service name="service">

This is the service that the Java developers need to create as a Proxy and pass Credentials in it.

Read only

0 Likes
784

Hi John,

Thnx for ur valuable reply.

Thanks

Jitendra Soni