Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Flex and SOAP WebService Issue

Avatar

Level 1
I am trying to connect to a .NET SOAP webservice with the
WebService class in Flex. It has SOAPHeaders, and here is what I am
using:



//*********************** These are the SOAP headers
**********************************



private var header1:SOAPHeader;



private function headers():void

{

//Create QName and SOAPheader objects

var q1:QName = new QName("
http://soapinterop.org/xsd",
"Header1");

header1 = new SOAPHeader(q1, {string:"userName",
string:"password"});



WS.addHeader(header1);



trace("soap headers work");

}



//*********************** End SOAP headers
**********************************







It looks like my headers are getting through, but I when I
click a button that is connected to a getData() function, I get a
generic:
" Server.Error.Request" error from the Flash Player.



I used Firebug to try and determine what is wrong, and I saw
that when the POST is called, I get back a .NET error message that
says:
"The magic number in GZip header is not correct. Make sure you
are passing in a GZip

stream."




Any ideas????????
0 Replies