cancel
Showing results for 
Search instead for 
Did you mean: 

WebAS ABAP SOAP-Client using Cookies

Former Member
0 Kudos

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é

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

how you generated a SOAP-Proxy out of an wsdl-File within an WebAS ABAP?

Thanks,

-Anil

Former Member
0 Kudos

Hi Anil,

i generate the SOAP-Prox within WebAS ABAP out of an wsdl-file.

Regards

André

Former Member
0 Kudos

Nice answer, André !

Former Member
0 Kudos

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é

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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é