on 06-07-2007 8:34 AM
Dear Expertise,
I am doing an HTTP to RFC scenario.
When sending the payload and other header details(such as ServerHost, port, sender service etc..)from HTTP client I got the following error.
***************************************************************************
Result:
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Header>
</SOAP:Header>
<SOAP:Body>
<SOAP:Fault xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>SOAP:Client</faultcode><faultstring>Error during parsing of SOAP header</faultstring><faultactor>http://sap.com/xi/XI/Message/30</faultactor><detail><SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1"><SAP:Category>XIProtocol</SAP:Category><SAP:Code area="PARSER">ITEM_MISSING</SAP:Code><SAP:P1>Envelope</SAP:P1><SAP:P2/><SAP:P3/><SAP:P4/><SAP:AdditionalText/><SAP:ApplicationFaultMessage namespace=""/><SAP:Stack>XML element Envelope missing in SOAP message header (SAP XI Extension)
</SAP:Stack></SAP:Error></detail></SOAP:Fault>
</SOAP:Body>
</SOAP:Envelope>
*******************************************************************************
can some one help me regarding this.
Thanks,
Gujjeti
Hi Praveen,
just check the source data which you sent from HTTP client and the source data type you have in IR.........i think in your source HTTP client data, you are missing some nodes which are mandatory in your source data type structure in IR....
Thanks,
Rajeev Gupta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Rajeev,
I am taking payload from test tab of Message mapping.
If I test the same from RWB-->TestMessage Tab with the neccesary header information I am able to send the message. The same thing is not happening from external broser http client application (which uses java script to send the same header data and payload).
Here is my client application code
****************************************************
<script type="text/javascript">;
<!--
function button1_onclick() {
var result = "Result: ";
var payload = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>";
// escape "http://"
var senderNamespace = escape(document.MessageParameters.SenderNamespace.value);
var reqString = "http://"
reqString = reqString + document.MessageParameters.Server.value+":";
reqString = reqString + document.MessageParameters.Port.value + "/sap/xi/engine?type=entry&";
reqString = reqString + "namespace=" + senderNamespace;
reqString = reqString + "&interface=" + document.MessageParameters.SenderInterface.value;
reqString = reqString + "&service=" + document.MessageParameters.SenderService.value;
reqString = reqString + "&party=" + document.MessageParameters.SenderParty.value;
reqString = reqString + "&agency=" + document.MessageParameters.SenderAgency.value;
reqString = reqString + "&scheme=" + document.MessageParameters.SenderScheme.value;
reqString = reqString + "&QOS=" + document.MessageParameters.Qos.value;
reqString = reqString + "&sap-user=bconepi06&sap-password=bconepi";
reqString = reqString + "&sap-client=" + document.MessageParameters.Client.value + "&sap-language=EN";
var xhttp = new ActiveXObject("msxml2.xmlhttp");
xhttp.open ("POST", reqString, false);
document.MessageParameters.URL.value=reqString;
if (document.MessageParameters.Source[0].checked == true) {
payload = document.MessageParameters.xmlData.value;
xhttp.send (payload);
}
else{
var xmlDoc = new ActiveXObject("microsoft.xmldom");
xmlDoc.async=false;
xmlDoc.load (document.MessageParameters.xmlFile.value);
xhttp.send (xmlDoc);
}
result = result + "\n" + xhttp.responseText;
xhttp.close;
document.MessageParameters.response.value=result;
}
//-->
</script>
*****************************************************************
Please Help me
Thanks,
Gujjeti
Thanks All,
Problem solved.
I am changing the pipeline URL to "http://hostname:8001/sap/xi/engine?type=entry"
Actually It should be "http://eapsdev15062:8001/sap/xi/adapter_plain?"
Also we have to remove XML tag in the payload , since it is already hardcoded in the client java script code.
Thanks a lot for your Bhavesh,
Gujjeti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi praveen,
what is is input that u are giving? are u sure ur http client is sending the correct input?
refards,
latika.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is this a HTTP to SOAP or a RFC scenario?
What doesthe error in MONi state?
Did you get a response back?
Did you check the statusof the receiver adapter in Com Channel Monitoring?
Regards
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.