E-IB:Getting "The request string ( data ) is not properly formed. (158,16005)" when Passing Ampersand Character Entity Reference in an Inbound SOAP Request (Doc ID 654512.1)

Last updated on OCTOBER 09, 2015

Applies to:

PeopleSoft Enterprise PT PeopleTools - Version 8.46 to 8.49 [Release 8.4]
Information in this document applies to any platform.
***Checked for relevance on 09-OCT-2015***


Symptoms

Using web services on PeopleTools 8.46 - 8.49, and when passing in an inbound SOAP message an entity reference such as "&amp;" (the escape sequence for ampersand character '&'), for example  "<NAME1>Proctor&amp;Gamble</NAME1>", get the following error:

The request string ( data ) is not properly formed. (158,16005) PT_INTEGRATION.CIDefinition.OnExecute Name:getFunctionAndCiName PCPC:3128 Statement:60 Called from:PT_INTEGRATION.CIDefinition.OnExecute Name:OnEvent Statement:30


Below is a sample request and fault response messages that reproduce the error.

Request:

<?xml version="1.0"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">;
  <soapenv:Body>
    <Create__CompIntfc__STATE>
      <COUNTRY>USA</COUNTRY>
      <STATE>MZ1</STATE>
      <DESCR>Procter&amp;Gamble</DESCR>
    </Create__CompIntfc__STATE>
  </soapenv:Body>
</soapenv:Envelope>


Response:

<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">;
  <SOAP-ENV:Body>
    <SOAP-ENV:Fault>
      <faultcode>SOAP-ENV:Server</faultcode>
      <faultstring>null</faultstring>
      <detail>
        <IBResponse type="error">
          <DefaultTitle>Integration Broker Response</DefaultTitle>
          <StatusCode>20</StatusCode>
          <MessageSet>158</MessageSet>
          <MessageID>16005</MessageID>
          <DefaultMessage>The request string ( Envelope ) is not properly formed. (158,16005) PT_INTEGRATION.CIDefinition.OnExecute  Name:getFunctionAndCiName  PCPC:3128  Statement:60
Called from:PT_INTEGRATION.CIDefinition.OnExecute  Name:OnEvent  Statement:30</DefaultMessage>
          <MessageParameters/>
        </IBResponse>
      </detail>
    </SOAP-ENV:Fault>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms