Application Development 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: 

Consuming ABAP webservice in Java

jitendra_it
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

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

0 Kudos

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.

0 Kudos

Hi John,

Thnx for ur valuable reply.

Thanks

Jitendra Soni