cancel
Showing results for 
Search instead for 
Did you mean: 

How to resolve authorization problem by consuming Web service in CE7.1?

Former Member
0 Kudos

Hi,

my szenario:

consuming a Web Service: ECC_Inventory002QR from a client (ECC6.0) by web dynpro in CE7.1 SP12 and deploy the web dynpro app on PI 7.1 (AS Java).

Deployment is successfull! But I got a error during running: (401) Unauthorized.

I read the thread :

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50d70a19-45a3-2b10-bba0-807d819da...

and get to know, a service group maybe need to be created. But I cannot follow this thread to create one.

In SAP help document there are a large quantity of articles about configue a web service client, e.g.

http://help.sap.com/saphelp_nwce72/helpdata/en/88/a552908d4c44dc99b3ec247069921e/frameset.htm

But it is too much and I do not know with which parts I could start.

In NWDS7.0 I faced the similar question, the thread:

http://www.riyaz.net/blog/xipi-consuming-xi-web-services-using-web-dynpro-part-ii/technology/sap/7/

gave me some hints, that I can add code:

wdContext.currentRequest_CDWS_MI_CDWS_MIElement().modelObject()._setUser(u201Cusername");

wdContext.currentRequest_CDWS_MI_CDWS_MIElement().modelObject()._setPassword(u201Cpassword");

in the executeRequest() method.

But in my java code I have have no idea how to add it. Perhaps in the method:

executeInventoryByLocationAndMaterialQueryResponse_In()? I tried, but it does work as expected.

Anyone has encountered similar situation? and could show me how to create a service group in CE7.1 sp12? or how to add java code of those autorization information.

Thank you and nice weekend

Rene

Accepted Solutions (1)

Accepted Solutions (1)

junwu
Active Contributor
0 Kudos

i don't know if service group is available in CE7.1

when you import the ws as model, do you see the option of service group?

Former Member
0 Kudos

Hi, Wu,

no. I've tried to import wsdl via adaptive web service model several times. But i have not find this service group option, which is mentioned in the thread of ms. Stefanie Bacher:

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50d70a19-45a3-2b10-bba0-807d819da...

But she developed her szenario also in CE7.1. Why I have not this option?

Regards

Rene

junwu
Active Contributor
0 Kudos

the ce version for the tutorial is CE7.11.

Former Member
0 Kudos

aha, you are right. It is CE7.1 with enhancement package 1. I overlooked it.

Now I have 2 question:

1. I must upgrade my CE7.1 on CE7.11? How?

2. How can I resolve this problem within CE7.1? I must go to web service client and create a user account there?

Thanks and regards

junwu
Active Contributor
0 Kudos

i think you can go with destination template in NWA.

service group is not the prerequisite for ws call.

Former Member
0 Kudos

Hello, Wu,

I read a lot about destination configuration, but i cannot get idea how to do it.

Under the Blog of Alexander zubev: the New SOA Configuration Approach I understand that a service group is prerequisite.

Therefore it would be appreciated if you can sign me how to configure it without service group.

thanks and regards

Rene

Answers (0)