10-12-2010 1:53 PM
Dear All.
i am having a webservice. an error is occurring while i try to compile the same from flex.
<mx:WebService id="ws" useProxy="false" showBusyCursor="true" wsdl="http://xxx.xx.xxx.xxxx:8000/sap/bc/soap/wsdl11?services=/PACK/XXX_INTEGRATION&style=rpc_enc">
and i rote the code to call the function from a Button click.
public function click():void
{
ws./PACK/XXX_INTEGRATION.send();
}
but one error is showing while i try to compile the flex file.
Error: Syntax error: expecting identifier before div.
and the error is due to the '/' symbol in the webservice. since the webservice is in a package i cannot change the '/' symbol
how can i solve this issue.
Please Help.
10-13-2010 7:17 AM
you have to encode the wsdl url or alternatively instead of setting the url of the wsdl in mx:WebService tag set it at
public function click():void
{
ws.wsdl = "http://xxx.xx.xxx.xxxx:8000/sap/bc/soap/wsdl11?services=/PACK/XXX_INTEGRATION&style=rpc_enc" ;
ws./PACK/XXX_INTEGRATION.send();
}
10-13-2010 7:40 AM
Hi Jay,
A Quick solution for this can be expose your RFC as web service which will be having simple operation name ( not containing / ).
for this you can open your RFc thru SE37 t code then follow web service creation wizard at Menu Bar - >Utilities -> More Utilities -> Create Web service.
Then you can use this web service path in ur wsdl.
For your reference you can refer Generating Web Service Using WS Wizard part in below pdf link.
Hope this will help you.
Regards,
Vivek