cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Started with SAP NetWeaver Gateway

Former Member
0 Kudos

Hi Friends,

Today is my first day in this forum. I am a Windows Phone Developer, and want to know how can I start with SAP NetWeaver Gateway so that I can consume data from SAP Server in my Windows Phone Apps.

Please guide me.

Accepted Solutions (0)

Answers (2)

Answers (2)

masoud_ebrahimzadeh
Participant
0 Kudos

Hi

I want work with OData in offline mode ,(with C# and Windows Mobile 6.1 )

is that Possible?How ? I need Some Sample


i.e Netweaver Gateway --> Odata Services --> Application development consuming services (C# visual Studio )



Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Somnath,

SAP NWG is used to expose sap data in form of OData services.

Do you want to use any kind of middleware in your app development? Can you share more points about your requirement?

There are plenty of documents available in  this space.

http://scn.sap.com/community/netweaver-gateway

Check these out

http://scn.sap.com/docs/DOC-2476

http://scn.sap.com/docs/DOC-40986

Rgrds,

Jitendra

Former Member
0 Kudos

Hi Jitendra,

Thanks for your reply. Actually today is my first day in SAP community so probably I don't have a ready answer for your question like the middleware. But I can put some points which might help you connect and get your answer.
We have a backend server(SAP) now the requirement is :
1. Build a Windows Phone app which will consume the data from the SAP server
During discussion few terms which are heard is
1. Middleware
2. SAP NetWeaver Gateway.
Which brings me to landed in the SAP community.
The Service that we need to consume in our windows phone app looks like

http://:server name:server port/BankCollection(country='DE'...)

Now my question is, do I need any kind of SAP sdk to build this app, or is there any other middleware needed in the server side.

Regards

Somnath

Message was edited by: Somnath Banik

Virinchy
Active Contributor
0 Kudos

As mentioned earlier , Netwerver gateway is used to develop Odata services . Odata is an open protocol where any platform can comsume it and develop applications on top of it.

Assuming you are developing for Windows Natively( amy be Windows 7, 7,1 / Windows 8 )

Applications can be developed Directly consuming Odata services (or) Via SMP

i.e Netweaver Gateway --> Odata Services --> Application development consuming services (C# visual Studio )

                                                                           or

Netweaver Gateway --> Odata Services --> SMP --> Application development consuming services

Middleware - SUP/SMP -  Its a SAP Mobile platform to develop robust applications connecting to various backends / Services / third party applications

http://rapidconsultingusa.com/wp-content/uploads/2013/10/Screenshot-from-2013-10-09-112909.png

Please check this for some knowledge on SUP

Sybase Unwired Platform- Overview SAP Mobile

Odata services can also be consumed via SMP and applications can developed from it.

These might help you :

If you are using Odata , SMP Cloud supports this providing all the necessary features to develop applications.

You can try a trail version of SAP Mobile platform Cloud Developer version from

SAP Mobile Platform Cloud Documentation

Former Member
0 Kudos

Yes, I am using OData, and trying to develop native app for Windows Phone 8 platform. Now should I use SMP or something else like " Microsoft OData Client for Windows Phone"

Please guide me

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Unfortunately there is no OData SDK available for windows mobile OData native app development using SAP Mobile Platform middleware.

.SyBooks Online not sure if it is possible and how.

Virinchy
Active Contributor
0 Kudos

There is some work around to be done .  found these links interesting for a similar requirement before.

please check below

SAP Goes Mobile With Windows 8 Apps - Forbes

Former Member
0 Kudos

Well I am bit confuse now, so there is no way i can consume data from,SAP server in my Windows Phone 8 app?

Former Member
0 Kudos

Hi,

I am trying to access the below link, do I need to be in their network to access their server. Because with a GET web request I am getting "Remote server not found".

http://myserver.com:8001/opu/odata/sap/FLIGHTLIST?filter =user_ID%20eq%20

please help me.

Virinchy
Active Contributor
0 Kudos

Is myserver.com associated with public IP or a private IP address ?

Are you able to connect to the system ? When you try from any browser  with this url in address box  ,are you able to fetch any data / prompted for credentials ?

Former Member
0 Kudos

When I try to put this url in desktop web browser I get the bellow message.

"

Unknown Host

Description: Unable to locate the server named "servername.com" --- the server does not have a DNS entry. Perhaps there is a misspelling in the server name, or the server no longer exists. Double-check the name and try again.



And when I try to request this URL from  my mobile device I get "Remote server not found"

Virinchy
Active Contributor
0 Kudos

** Is this gateway services / URL generated in your local environment ?

This is something i would do if i face a similar error :

1) Ensure corporate/local firewall allows me to deploy and activate the application

2) If the Netweaver  Gateway is in a local environment , then add the server IP in the host of the local system from where the system is to be accessed

To edit the hosts file

C:\Windows\system32\drivers\etc\hosts 

in Windows 7, you need to run the editor (eg. notepad) as administrator, which you do by locating it through the Start menu and then right clicking on the editor's icon, then manually open and edit the hosts file.

Former Member
0 Kudos

Few points here

1. The server is not a local server , its in a remote place and in different country.

2. I am using Windows 8 desktop

3. What is 'Netweaver  Gateway" Do I need to install any software in my local system to complete this task.

4. How can I access the remote server from my place, I mean the things that I should take care of.

Virinchy
Active Contributor
0 Kudos

Please check if you are able to connect to the remote server DNS which developed the OData Service . check if the port being used is unblocked and you are able to connect to the system.

http://www.yougetsignal.com/tools/open-ports/


What is 'Netweaver  Gateway" Do I need to install any software in my local system to complete this task.

The odata URL you are using might be generated by Netweaver Gateway or any other applications like JAM / Enterpise Portal / any which has capabilities to generate Odata Services.

If Odata Services are generated from a remote location that does nt imply to install the software which helped to develop odata service.

But its important to make sure that you can connect to the server which has generated the Odata Service .

Example : http://services.odata.org/V4/OData/OData.svc/

The above is a demo service offered as a sample-- > developed by some person from a remote location. Any developer can consume this service and develop an application consuming this service.

If this URL is opened from a browser , the data is displayed either in JSON/ XML format.

Its to be noted that the developer has access to the server and successfully connected with the server . (the sample servicein this case might be mapped with a public URL)

**please check if you are able to connect to their server DNS which has developed the odata service.

** Your network team / basis team might help you with a safe connection (VPN / proxy / some other means )

Former Member
0 Kudos

You got me right.

1. The URL (http://myserver.com:8001/opu/odata/sap/FLIGHTLIST?filter=user_ID%20eq%20) I shared with you is being generated by a SNWG.

2. I am able to use this service (http://services.odata.org/V4/OData/OData.svc/) from my system using

Odata Client Tools for Windows Phone Apps (http://www.microsoft.com/en-us/download/details.aspx?id=35461).


3. If I get the access to the remote server I am trying to connect, can I use Odata Client Tools for Windows Phone Apps for my development or I need some other tools as well.

4. Can I access  the remote server using the Odata Client Tools for Windows Phone Apps like I did in  (http://services.odata.org/V4/OData/OData.svc/) .

Virinchy
Active Contributor
0 Kudos

The best thing about Netweaver Gateway is to generate OData services, and any newbie to SAP and knowledge in mobile application development  can develop applications consuming these services.

 If I get the access to the remote server I am trying to connect, can I use Odata Client Tools for Windows Phone Apps for my development or I need some other tools as well.

Once Odata Services are generated from SAP Netweaver Gateway, the consumption of the services to Windows Phone becomes a regular Windows Native development approach( using C# , VB)  and you may not need any specific tools from SAP for this.

But for windows  Mobile Application you may need to meet its prerequisites

  1. Microsoft Windows 8
  2. Microsoft Visual Studio 2012 for
  3. WCF Data Services

Examples :

Writing a Windows Store App that consumes an OData Service

WCF Data Services (formerly ADO.NET Data Services)

Consuming Odata Service in Windows Store Apps (Include MVVM Pattern) - CodeProject 

These browser extensions are really helpful to test OData services

RESTClient, a debugger for RESTful web services. :: Add-ons for Firefox

Chrome Web Store - Postman - REST Client

Please check if expected data is obtained with these extensions before the development process.

 Can I access  the remote server using the Odata Client Tools for Windows Phone Apps like I did in  

You may not need access over the complete remote server , but permissions to connect to the server , fetch the data. If you are performing any CRUD operations then these permissions are provided.

**Remote Server : Its the connection to Netweaver Gateway ( credentials and connection properties) which is needed but not the windows server in which netweaver gateway is installed.

There is also a demo system available from SAP for Gateway and consume sample OData services.


Are you using SUP/ SMP here ? (this is optional but recommended)

Former Member
0 Kudos

Hi Viru,

I appreciate your help, you have been trying to guide me in so many ways, but I think as I don't have the access to the SAP service so I am not able to get the data. by the way I have tried few steps.

1. Followed your suggestion and try to implement Writing a Windows Store App that consumes an OData Service on Windows Phone 8. I am able to consume service (http://services.odata.org/V4/OData/OData.svc/) but not (http://<Gateway_Host><Gateway_Port>/ >/sap/opu/sdata/iwfnd/RMTSAMPLEFLIGHT?sap-client=100) , Should it also work?

2. Try to follow this steps http://wiki.scn.sap.com/wiki/download/attachments/250646828/WP7%20-%20How%20to%20Guide.pdf?version=1...

but not able to download SAP NetWeaver Gateway for Visual Studio.

3. This link  doesn't have visual studio plugins https://store.sap.com/sap/cp/ui/resources/store/html/SolutionDetails.html?pid=0000000359

4. Do I need to have SAP NetWeaver Gateway for Visual Studio or simple Web request will be enough for consuming the data in Windows Phone app.

5. I am also trying to follow http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30d77f50-a883-2e10-969b-92e288046...  and http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30bd4b8d-9f7a-2e10-7bba-e407b21a2...

but not getting the SAP NetWeaver Gateway for Visual Studio.

6. If I use SMP will that solve my problem.

Regards

Somnath

Virinchy
Active Contributor
0 Kudos

GWPAM is an interoperability framework from SAP that leverages SAP NetWeaver Gateway and Microsoft technologies enabling customers and partners to easily and quickly compose solutions that consume and extend SAP throughout Microsoft technologies for on premise and on demand deployment.


please check this

GWPAM Self Paced Learning - Duet Enterprise - SCN Wiki

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3079d686-3821-3110-4c9a-9017783e2...

You might get more accurate answers on Netweaver gateway and Microsoft products integration from experts if this is redirected to

( SAP - Microsoft Integration)

( SAP Netweaver Gateway )