cancel
Showing results for 
Search instead for 
Did you mean: 

Using a webservice

Former Member
0 Kudos

Hello EveryOne,

I am currently working on consuming a webservice from an P2 system. P2 service should call a transaction on some trigger using webservice call.

The wsdl link i am using is

http://<url>:<portno>/XMII/WSDLGen/ProjectFolder/TRX/SampleTrx?IllumLoginName=LogingName&IllumLoginP...LoginPwd

This link is giving an 500 Internal Error on Internet explorer 9.

Now if I remove the Login Name and Password and give link as:

http://<url>:<portno>/XMII/WSDLGen/ProjectFolder/TRX/SampleTrx

then MII authentication page opens. After entering the credentials, I am able to login and see me response.

So please let me know if there are any Firewall settings or similar reasons for this issue.

Correct me if I am wrong.

Regards,

Minakshi

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member193328
Active Participant
0 Kudos

Hi Meenakshi

In the first example you are trying to pass the authentication details as part of the URL as IllumLoginName=LogingName&IllumLoginPassword=LoginPwd. As most probably you do not have an user called LogingName it throws 500 error.

In the second example as this part is removed the server requests authentication and you get the popup.

There is no firewall involved in this problem.

In the first example if you enter

IllumLoginName=<Enter your Username>&IllumLoginPassword=<Enter yourpassword> replacing the <> with correct values then it will also work but this is not very advisable approach. Check in P2 how user credentials should be passed for Webservice calls.

Regards

Partha

Former Member
0 Kudos

Hi Partha,

My LogingName is my existing user name and LoginPwd is the password for that user. So my URL is

http://<url>:<portno>/XMII/WSDLGen/ProjectFolder/TRX/SampleTrx?IllumLoginName=<loginname>&IllumLogin...<pwd>

Sorry for miscommunication.

This url is not working for me currently.

Please let me know if there is any way to expose an MII transaction as a web service that will not require any authentication on P2 side.

Regards,

Minakshi

Former Member
0 Kudos

Hi Minakshi,

You can try with the below format.

You can call the BLS as a SOAP webservice in the following way:

http://<server>:<port>/XMII/WSDLGen/<projectName>/<folderNam

e>/<transactionname>

You can run the BLS as a webservice is the following way:

http://<server>:<port>/XMII/SOAPRunner/<projectName>/<folder

Name>/<transactionname>

For authentication, you can use the MII credential, which has

reader/writer roles assigned to that transaction.

Hope it will help you,

Regards,

Suman

Former Member
0 Kudos

Hi Minakshi,

If you just need the WSDL of the transaction use the URL without the credentials.

http://<url>:<portno>/XMII/WSDLGen/ProjectFolder/TRX/SampleTrx

But first,

You would need to disable WSDLGen Security in MII Admin Screen. For this, in MII Admin menu, under the System Management--> System Properties --> uncheck the WSDLGen Security flag. This will disable authentication to fetch the WSDL. However, you might need to pass the credentials when you are invoking the transaction.

A quote from MII's help doc

"If the checkbox is selected, the system requires you to log on before you can access the WSDLGen servlet. If the checkbox is not selected, any user can call the servlet to generate WSDL for a transaction; however, you must still have permission to run the transaction"

Regards

Tufale Ashai.

Former Member
0 Kudos

Hi Suman,

Please check once , i think you have mentioned URLs vice versa.

Regards,

Sriram