Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Webservice Authentication in Flex Builder

Former Member
0 Likes
1,106

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,068

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

7 REPLIES 7
Read only

Former Member
0 Likes
1,069

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

Read only

0 Likes
1,068

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

Read only

0 Likes
1,068

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.

Read only

Former Member
0 Likes
1,068

Thanks Vivek Sir , I have Found out the solution...

Read only

0 Likes
1,068

Hey Saurabh , can you please share your solution ?

Read only

0 Likes
1,068

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.

Read only

0 Likes
1,068

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