Quantcast
Channel: SCN: Message List - Service-Oriented Architecture (SOA) and SAP
Viewing all articles
Browse latest Browse all 1056

consuming web services

$
0
0

Hi everyone,

 

we have two external web services. one of them is sign in service the other includes the functions we need.

they want us to create a session first and login in that session and then call the other service. here is the code they gave us

 

namespace ConsoleApplication1

{

    class Program

    {

        static void Main(string[] args)

        {

            localUserService.userService us = new localUserService.userService();

            localMukellefServisi.mukellefServisi ms = new localMukellefServisi.mukellefServisi();

 

            us.CookieContainer = new System.Net.CookieContainer();

            ms.CookieContainer = us.CookieContainer;

 

            us.wsLogin(userName, password, "tr");

            ms.mukellefListesi();

            us.logout();

 

        }

    }

}

 

i created  the proxy and logical ports. i call the first login service its ok but when i try to call the second service it returns the error "session required"

how can we do this in abap


Viewing all articles
Browse latest Browse all 1056


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>