on 09-08-2005 1:28 PM
Hi everyone,
I wanted to know if someone suceeded to call a web service via a Java standalone class using a Deployable Proxy ?
If yes, can someone gives me all the steps ?
Thanks a lot for your help.
NB : I succeeded calling a web service via Standalone Proxy. But I want to securize the call to the web service.
I noticed that I cannot use SSL with Standalone Proxy.
If I am missunderstanding something, please let me know.
Hi David,
Yes, you cannot use SSL with standalone proxy.
you can use document security for deployable proxy as i suggested you before in you earlier posts.
Follow these steps:
1. Specify document security as authentication mechanism in web service configuration file.
2. In security tab in this file, choose username+encryption for request and none for response.
2. deploy your web service.
3. Create deployable proxy for this web service.
4. ensure security options for this proxy is also set to document authentication.
5. Deploy this proxy on the server.
6. Go to visual administrator and there check whether XMLEncryption certificate is available under WebserviceSecurity view. If not then create private and public key with name XMLEncryption and XMLEncryption-cert respectively.
7. Assign this certificate to your webservice and proxy in the services, "Web services seurity".
8. write code in Standalone java class to call your pproxy.
Regards,
Bhavik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi David,
Ok you got problem in lookup. Means, you can successfully connect to your WAS server to look up, i guess.
Try using following JNDI lookup.
/wsclients/proxies/sap.com/<Proxy project name>/<package name>.<proxy name>
If you won't get success using this, then go to visual administrator and there go to "JNDI registry" service. There, find your proxy project name under following location wsclients-> proxies-> sap.com.
If not, then check where it is lying in JNDI registery.
Regards,
Bhavik
Bhavik,
I just developed a couple of java webservices in NetWeaver and they will be exposed as they are suppose to communicate with external systems. So i was going over your instructions on how to implement security on WS. So i have a couple of questions for you, as i am not a really a Java person but an ABAP developer.
So would these instruction be applicable for my senario and what do u mean by create a deployable proxy for a web service. And do you have any code for calling the proxy which u talk about in the last step. And does that class have to be deployed as well?
Thanks
Nahman
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.