You may wish to specify that this is an SAP related question in the
future as it will help those familiar with this subject identify the
problem and offer solutions.

You don't need FDS when consuming a Web Service.

The error is saying that your WSDL is malformed. So I have some
questions for you:

1) What version of R/3 are you using?

2) Are you sure ZGET_ALERT_NUMBER exists by that name?

3) Are you sure 8200 is your port?

I would suggest you form your WSDL like this and give it a try:

http://[SERVER]:[PORT]/sap/bc/soap/wsdl11?services=ZGET_ALERT_NUMBER

Thanks --Shibli

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of snowedice
Sent: Tuesday, March 06, 2007 12:30 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Question about Flex WebService

 

Hi,

Experts, please help me to see what is wrong here, thanks a lot!!

I've created a simple programe to test the flex WebService. But it 
always pop out 

[RPC Fault faultString="[MessagingError message='Unknown 
destination 'defaultWSDL'.']" faultCode="InvokeFailed" 
faultDetail="Unable to load WSDL. If currently online, please verify 
the URI and/or format of the WSDL (null)"] ......

I've add the "Destination" in the ..\fds\jrun4
\servers\default\samples\WEB-INF\flex\proxy-config.xml

<destination id="defaultWSDL">
<adapter ref="soap-proxy"/>
<properties>

<wsdl>MailScanner warning: numerical links are often malicious:
http://192.168.0.200:8200/sap/bc/srt/rfc/sap/zGet_Alert_Number?
<http://192.168.0.200:8200/sap/bc/srt/rfc/sap/zGet_Alert_Number?> 
sap-client=800&amp;wsdl=1.1</wsdl>
<soap>MailScanner warning: numerical links are often malicious:
http://192.168.0.200:8200/sap/bc/srt/rfc/sap/zGet_Alert_Number?
<http://192.168.0.200:8200/sap/bc/srt/rfc/sap/zGet_Alert_Number?> 
sap-client=800</soap>

</properties>
</destination>

Code is:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml
<http://www.adobe.com/2006/mxml> " 
layout="absolute">

<mx:Script>
<![CDATA[ 
import mx.rpc.soap.WebService;
import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;
import mx.controls.Alert;

]]>
</mx:Script>

<mx:WebService id="wsGetAlertNumber" 
destination="defaultWSDL">
<mx:operation name="ZGET_ALERT_NUMBER">
<mx:request>
<IV_CATEGORY>1</IV_CATEGORY> 
</mx:request>
</mx:operation>
</mx:WebService>
......

The FDS is started before running the program. Anything wrong here?

 

Reply via email to