08-18-2011 3:47 PM
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
08-18-2011 4:10 PM
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.
08-18-2011 4:10 PM
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.
08-18-2011 4:31 PM
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
08-18-2011 4:57 PM
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.
08-19-2011 4:00 PM