on 04-09-2014 8:06 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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.
User | Count |
---|---|
4 | |
4 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.