[
https://issues.apache.org/jira/browse/FLEX-34113?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
victor yew updated FLEX-34113:
------------------------------
Description:
I have been searching all over the Internet to look for a proper way to call
the webservice with SOAP Header but to my avail.
When I debug the mobile app in AIR debugger, the debugger prompted me a login
window in which I have to key in the login details for the webservice which is
fine for me. But when I install the app in my mobile device, the webservice
returned me a HTTP Request Error fault.
Can anyone of you guide me throught this? Thank you.
The following is my code to call the webservice:
var encoder:Base64Encoder = new Base64Encoder();
encoder.insertNewLines = false;
encoder.encode("myusername:mypassword");
var ws:WebService = new WebService();
ws.wsdl = "http://mywebservice/ws.cfc.wsdl";
ws.httpHeaders = {AUTHORIZATION: "Basic" + encoder.toString()};
ws.loadWSDL();
The following is my crossdomain.xml resided in the root of my domain:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE cross-domain-policySYSTEM
"http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*"/>
<site-control permitted-cross-domain-policies="all"/>
<allow-http-request-headers-from domain="*" headers="*"/>
</cross-domain-policy>
was:
I have been searching all over the Internet to look for a proper way to call
the webservice with SOAP Header but to my avail.
When I debug the mobile app in AIR debugger, the debugger prompted me a login
window in which I have to key in the login details for the webservice which is
fine for me. But when I install the app in my mobile device, the webservice
returned me a HTTP Request Error fault.
Can anyone of you guide me throught this? Thank you.
The following is my code to call the webservice:
var encoder:Base64Encoder = new Base64Encoder();
encoder.insertNewLines = false;
encoder.encode("myusername:mypassword");
var ws:WebService = new WebService();
ws.wsdl = "http://mywebservice/ws.cfc.wsdl";
ws.httpHeaders = {AUTHORIZATION: "Basic" + encoder.toString()};
ws.loadWSDL();
> Flex Mobile Calling Webservice with SOAP Header
> -----------------------------------------------
>
> Key: FLEX-34113
> URL: https://issues.apache.org/jira/browse/FLEX-34113
> Project: Apache Flex
> Issue Type: Question
> Components: RPC: WebService
> Affects Versions: Apache Flex 4.11.0
> Environment: Windows 7 64bit, Flash Builder 4.6
> Reporter: victor yew
> Labels: authentication, flex, mobile, soapheader, webservice
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> I have been searching all over the Internet to look for a proper way to call
> the webservice with SOAP Header but to my avail.
> When I debug the mobile app in AIR debugger, the debugger prompted me a login
> window in which I have to key in the login details for the webservice which
> is fine for me. But when I install the app in my mobile device, the
> webservice returned me a HTTP Request Error fault.
> Can anyone of you guide me throught this? Thank you.
> The following is my code to call the webservice:
> var encoder:Base64Encoder = new Base64Encoder();
> encoder.insertNewLines = false;
> encoder.encode("myusername:mypassword");
> var ws:WebService = new WebService();
> ws.wsdl = "http://mywebservice/ws.cfc.wsdl";
> ws.httpHeaders = {AUTHORIZATION: "Basic" + encoder.toString()};
> ws.loadWSDL();
> The following is my crossdomain.xml resided in the root of my domain:
> <?xml version="1.0" encoding="utf-8"?>
> <!DOCTYPE cross-domain-policySYSTEM
> "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
> <cross-domain-policy>
> <allow-access-from domain="*"/>
> <site-control permitted-cross-domain-policies="all"/>
> <allow-http-request-headers-from domain="*" headers="*"/>
> </cross-domain-policy>
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)