Thank you for the quick reply. The issue isn't on the response from the PeopleSoft application. The PeopleSoft application is saying it can't parse the request because the XML Declaration doesn't exist. I've verified in the PeopleSoft application that the XML declaration is missing.
Thanks again for any help.
1 person found this helpful
Like I said before try this in your post code:
Please rate my answer
I figured it out, and your answer did inspire the solution, although it wasn't 100% there. I'm not sure how this is relevant, but I'm going to blame the target server on this one:
- I made the changes you suggested, they didn't work. The target server returned that the body content was null.
- I moved the attributes to code ( posrService.contentType = "application/x-www-form-urlencoded", posrService.resultFormat...) - same response
- I knew the content type was supposed to be XML, so I set it back to "application/xml", then eventually, since it was in code I changed it to "text/xml". Flex Builder doesn't like this when it's in the MXML, but in code this worked fine. And lo and behold, I got the expected response!
So I'm blaming the application server for not knowing what "application/xml" means. That's an issue for another day.
-- contentType="application/xml" --
requestXMLDoc = new XMLDocument(myXML.toString())
requestXMLDoc.xmlDecl = "<?xml version=\"1.0\"?>"
posrService.contentType = "text/xml"
Thanks again for the suggestions.
Strike through not showing on screen, so added --