cancel
Showing results for 
Search instead for 
Did you mean: 

Error Calling transaction through webservice

Former Member
0 Kudos

Hi,

I am trying to call a BLS transaction through webservice. I am getting status 401 unauthorised error. Below is the url used by me

http://<servername>/Lighthammer/WSDLGen/<transaction folder>/<transactionname>

But when I use this url, I am able to see calling transaction parameter in link editor and I could map them. There will be no error during configuration of webservice block.

When I execute this transaction, I am getting 401 error.

After this, I have used username and password which are optional fields in webservicecall action block. But no result.

But in the link editor, If I assign values to LoginName and LoginPassword nodes under XacuteRequest xml tree, Webservice call executed succesfully.

Can anyone let me know, how to set this username and password in the calling URL itself or is there any way to make my webservice not to use username and password.

Accepted Solutions (0)

Answers (1)

Answers (1)

jcgood25
Active Contributor
0 Kudos

The username and password fields in the configure dialog would be for the wsdl call itself (which in your case calling the WSDLGen xMII servlet is not needed), but the LoginName and LoginPassword are necessary for xMII authentication purposes.

http://localhost would be a way to do it instead of using the servername, since you get a 'free pass' with localhost (since the 127.0.0.1 is a trusted server entry) and the SOAPRunner url that shows up at the bottom of the wsdl returned xml follows the url base.

Regards,

Jeremy

Former Member
0 Kudos

Jeremy,

Thanks for the answer. It works.

But, If i have to call transaction of different xMII server. Then how could i use webservice call. B'cos this case suits my current scenario.

jcgood25
Active Contributor
0 Kudos

Assuming the different server has a static IP address, just add another trusted server entry in the list. This is an inbound trust (xMII sees the IP address and trusts the request).

Be forewarned however because this goes away in version 12.0 - no more free passes with UME. You may be better off using the credentials in the web service links (which is what they are there for).

Former Member
0 Kudos

Jeremy,

Thanks a lot. I have added IP address of one xMII server as trusted server at another xMII server. Now it is working.

One final question, if transaction were to be called by any other app using same url. Then do we need to add IP address of that webservice calling system as trusted server???

jcgood25
Active Contributor
0 Kudos

You've got it - adding an entry into the Trusted Servers screen opens up pandora's box to any and all http requests to xMII from the 'trusted' IP address. They all end up working essentially like localhost. This is typically used when enabling Virtual data servers to bridge datasource connectivity and allow the servers to 'trust' each other, but in general is simply an http request trust.

Try accessing the Menu.jsp page from the other physical server and you'll see that you don't need to login either.

Remember - all this goes away with 12.0...