cancel
Showing results for 
Search instead for 
Did you mean: 

Error calling BLS Transaction as Web service

Former Member
0 Kudos

Hi,

I am trying to call BLS tranx as Webservice from another BLS Tranx.

I craeted the simple BLS with no input parameter and set only one output parameter.

Then i created the WSDL as

http://<server:port>/XMII/WSDLGen/<Transaction path>.

In new BLS tranx, i created the Web Service action block and gave this WSDL URL (http://<server:port>/XMII/WSDLGen/<Transaction path>).

I gave username and password and selected the port(XacuteWSSoap) and then operation( xacute).

In Links, I gave the Loginname and Password.

But while executing, it showed the error as

Error Invoking Web Service Action: Status (401): Unauthorized

My username and Loginname and passwords are correct only.

What is the problem and how to solve it.

Regards,

Senthil

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Another suggestion, for testing, would be to use soapUI.

I'm not sure if you're familiar with that tool but it's free and it's got a lot of useful features. You can download it here,

http://www.soapui.org/

We use this to test all of our web services.

0 Kudos

One doubt regarding SOAPUI, not related to the actual query here.

How come the SOAP request fails when we pass credentials in Request Properties, instead of in xmii:LoginName & xmii:LoginPassword elements in the SOAP Body.

Regards,

Suneel J.

Former Member
0 Kudos

Hi,

Which SAP MII version you are using?

I have tested one piece in MII 12.0.9 it works for me following are steps which i followed.

After WSDL generation

1. in Web service action block --> cofigure i am passing following parameters

WSDL base URL: http://<server:port>/XMII/WSDLGen/<transaction Path>

User Name: XXX

Password: XXX

2. in Web service action block --> Links I am passing following parameters

WSDLUrl : http://<server:port>/XMII/WSDLGen/<transaction Path>

Web_Service_0.XacuteRequest{/ns1:XacuteRequest/ns1:LoginName} : XXX

Web_Service_0.XacuteRequest{/ns1:XacuteRequest/ns1:LoginPassword} : XXX

Refer below SDN thread may be helpfull:

[;

Hope it helps!!

Regards,

Manoj Bilthare

Former Member
0 Kudos

Hi,

We have solved this issue.

we gave WSDL URL, username,password in Config and WSDL Base URL in Links. Instead of directly giving Login username,password in links editor, we gave it as Transaction parameters. Then it is worked.

Thanks.

Regards,

Senthil

former_member201407
Participant
0 Kudos

May i know why do u want to call BLS as WebService from another BLS? Is there any specific requirement on it?

Regards

Som

Former Member
0 Kudos

Hi,

We are in the process of calling MII transaction as Web service from SAP ECC. Before that we want to test the scenario.

Regards,

Senthil