on 10-12-2007 3:47 PM
Hi specialists,
i have generated a SOAP-Proxy out of an wsdl-File within an WebAS ABAP. Now i want to call the WebService using an prior recieved HTTP session cookie.
How could i set the cookie for that SOAP call ?
Thanks for your expirience
André
Hi,
how you generated a SOAP-Proxy out of an wsdl-File within an WebAS ABAP?
Thanks,
-Anil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Olivier,
thank you.....
But what else can i say here ?
Let's do:
The WebAs: Tx. SE80 gives you the posibility to create the SOAP-Proxy out of a wsdl-File! I than have created the logical port wirh TX: LPCONFIG. Now with SE80 i can test the webservice...
To call the WebService within an application i write an Functionmodule to encapsulate the WebService-Call. But before i do the WS-call i create an http-client and call an special URL to retrieve a session cookie from the server. This cookie has to be set for the SOAP call.
Thanks.
Regards
André
André,
I was just amused by your perfectly exact first answer wich was also very good because the real answer is in help.sap.com and on numerous blogs on SDN.
About your problem, I never had to deal with it, but I don't know of any easy solution.
I'am afraid that you'll have to program yourself the sending of the session cookie.
That would mean modifying the abap proxy code....
Good luck !
Regards,
Olivier
Hi Andre,
If you are using MYSAPSSO2 cookie (SAP standard), you'll need just to set authentication flag for your Web Services to strong (it can be done thru SE80) (assuming that you'll have MYSAPSSO2 created in your browser cookies before calling web services and you setup your ABAP stack to accept SSO tickets (tcode strustsso2 plus profile parameter to accept SSO2 - login/accept_sso2_ticket ).
Regards,
Mike
Hi,
i'm not using SAPSSO Cockies because the target server which delivers the webservice is not a SAP system.
I go the way and enhanced the ABAP-OO-Class
CL_SOAP_HTTP_TPBND_ROOT Method IF_SOAP_HTTP_TRANSPORT_BINDING~SET_CLIENT_BY_URL. This works fine. But i want to controll the setting of the cookie with a customizing table or something like that. I haven't found a possebility to get the information about the webservice-id or proxy class which call's this method to branch on that information. Do you have any ideas? Static-Methods of an helper class etc ???
regards,
André
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.