‎2011 Mar 10 4:08 AM
Hello Friends,
I'm having some trouble configuring a Web Service regarding authentication.
I created a remote function in SE80 and a web service with it, then I went to SOAMANAGER and configured the authentication section with the 'no authentication' option and added the user/pass in the 'ABAP Service User'.
In SICF the service is active and seams OK(the user/pass is set), but every time I try to open the WSDL in the browser I get 'A username and password are being requested by SAP Web Application Server'...
I tested the service with SOAPUI and it also requests the User/Pass for SAP, so it seams that the problem is to enter in SAP WAS and not to access the web service.
Please advice.
Thank you.
‎2011 Mar 10 4:30 AM
Hi Saurabh,
Try this procedure.
Go To SICF T-code, enter your Service name and open it.
Click for Change Mode.
There is 1 tab named - Logon Data.
let the procedure be standard and enter required logon data like user id and password.
Save the Changes and try to test the same in your application.
I hope this should work.
If no success try change some other parameters in same tab and do trial and error.
I have successfully consumed Web Srvc using web service introspection in Flex 3.
Give this a try.
Regards,
Vivek
‎2011 Mar 10 4:30 AM
Hi Saurabh,
Try this procedure.
Go To SICF T-code, enter your Service name and open it.
Click for Change Mode.
There is 1 tab named - Logon Data.
let the procedure be standard and enter required logon data like user id and password.
Save the Changes and try to test the same in your application.
I hope this should work.
If no success try change some other parameters in same tab and do trial and error.
I have successfully consumed Web Srvc using web service introspection in Flex 3.
Give this a try.
Regards,
Vivek
‎2011 Mar 10 5:11 AM
Hi Vivek Sir,
I have read your previous feeds and they were very helpful.
I have done changes in SICF as per your suggestions but the problem is not in BSP Application the FLEX file(*.swf) I am running always prompts me for username and password whenever webservice is called. I am trying to stop that and pass username and password somehow in FLEX Application but yet am not able to manage it. I have used setRemoteCredentials and also tried attaching username and password in the URL but it is not working for me. The MXML File is as follows:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" initialize="initCollections()">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
//import local.fitcons.*;
private function initCollections():void {
//webService.useProxy=true;
//webService.setRemoteCredentials("SAURABH","swordfish");
webService.ZbspTest967.send();
}
private function getResult(event:ResultEvent):void
{
tx1.text=event.result.WVar1.toString();
tx2.text=event.result.WVar2.toString();
tx3.text=event.result.WVar3.toString();
}
private function handleFault(event:FaultEvent):void
{
tx1.text=event.fault.toString();
tx2.text=event.fault.toString();
tx3.text=event.fault.toString();
}
]]>
bold[IN WSDL "ip" is ip address].
Edited by: saurabh s kerkar on Mar 10, 2011 6:24 AM
‎2011 Jul 10 7:44 AM
Hi Vivek,
I have a probelm accessing the webservice without popup showing up using Flex builder.
webservice WSDL format is standard
end point URL - user / name passowrd authentication. I cannot pick No authentication. it is greyed out.
Please let me know if you need more information. I do not know what I am missing.
Regards.
‎2011 Mar 19 9:32 AM
‎2011 Jun 23 8:01 PM
‎2011 Jul 10 7:33 AM
Hi,
I could not authenticate webservice created in SAP using flex builder. Pop up shows when webservice is called. Any suggestion will be muc appreciated.
Thanks.
‎2011 Nov 03 9:35 AM
Thanks Vivek Sir , I have Found out the solution...
Can you please share your solution.
I have a similar problem.
Thanks in advance and kind regards,
Bart