Expand my Community achievements bar.

Set WebService contentType

Avatar

Level 1
When using the WebService class, the contentType of the
SOAPMessage appears to be set to text/xml. The service I'm
connecting to wants the content type to be application/soap+xml.
Setting the contentType appears to be very easy to do when using an
HTTPService, but I haven't been able to find out how this can be
accomplished using a WebService.



Please tell me this can be done.



Thank you
1 Reply

Avatar

Former Community Member
Unfortunately the contentType is set from a static constant
in mx.messaging.messages.SOAPMessage

and is not exposed through mx.rpc.soap.Operation.



Can you log an enhancement request against the Flex SDK's
"RPC: WebService"

component to allow for the contentType to be set?




http://bugs.adobe.com/flex/





Thanks,

Pete