cancel
Showing results for 
Search instead for 
Did you mean: 

Consume SAP's web service in java

0 Kudos

Hi,

We are in an integration project where the third party wishes to consume SAP's web services in java. After looking around we found JAX-WS (Java AP for XML web services) as one of the options. But now we are not sure whether sending the authentication values come under basic authentication. I have following doubts:

1. Passing authentication data does it come under basic authentication.

2. Apart from JAX-WS are there other ways to cosume in Java and how to pass authentication data while calling the endpoint?

Please note that the third party does not have access to Netweaver platform or other SAP's proprietary technologies.

Regards, Shadab

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Following links helped:

https://jax-ws.dev.java.net/faq/index.html#auth

http://docs.sun.com/app/docs/doc/819-3669/bnccv?a=view

http://faq.javaranch.com/java/WebServicesHowTo

Also you can use Altova XML spy to test whether everything else is fine, like endpoint, authorisation issues.

Former Member
0 Kudos

Hi Shadab,

Could you clarify what you mean by "SAP's web services" that have to be consumed - is it about the Enterprise Services delivered by SAP, or it is about Web services that you have developed locally?

In any case, to consume a Web service you need the following:

  • The Web service is configured (including authentication details) on the provider side and has an endpoint.

  • The consumer has access to the WSDL of the Web service. With the WSDL one should be able to develop a Web service client in any language and platform that supports Web services.

Hope this helps,

Rossen

0 Kudos

HI Rossen,

By SAP's web service it meant its a service delivered by SAP so an Enterprise service. In Java its not that easy to consume web services from what I know, so I want specific infroamtion of passing authentication information and what tools or API are being used. The rest of the details mentioned are already taken care for.

Regards, Shadab

Former Member
0 Kudos

Hi Shadab,

Here is a list of Web service standards supported by SAP in NetWeaver 7.1.1: [Supported Standards|http://help.sap.com/saphelp_nwpi711/helpdata/en/44/624479f7e608fae10000000a422035/frameset.htm] (also in [7.0|http://help.sap.com/saphelp_nw70/helpdata/EN/44/624479f7e608fae10000000a422035/frameset.htm] and [7.0.1|http://help.sap.com/saphelp_nw70ehp1/helpdata/EN/44/624479f7e608fae10000000a422035/frameset.htm]). The Enterprise Services adhere to these standards, and on the provider side you have the tools to configure the authentication settings as needed. On the consumer side, one just has to use a Java release (or any other platform) that supports these standards.

While I am not a Java developer, there should be [many ways to consume a Web service in Java|http://www.google.bg/search?q=consumewebservice+java].

Hope this helps,

Rossen

0 Kudos

Hi,

There is a marked difference how Web Services are consumed in various languages and various languages provide different APIs or tools.

This forum thread question is specific to Java only, google has already been exhausted and I am not looking for generic solutions.

As already mentioned we looked at JAX-WS as one API, we want help from someone who has consumed a SAP web service in Java using open source APIs.

Regards, Shadab