Forum Discussion

charlywrx's avatar
charlywrx
New Contributor
12 years ago

SoapUI modified my soap body before transmitting

In summary,

I need to transmit "
" as is in the soap body. but what is received by the other end is a '\r'. There's no problem in transmitting "&", i.e it is received as "&".

My Request:

<v:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:d="http://www.w3.org/2001/XMLSchema" xmlns:c="http://www.w3.org/2003/05/soap-encoding" xmlns:v="http://www.w3.org/2003/05/soap-envelope">
<v:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:Action v:mustUnderstand="1">urn:ihe:pcd:2010:CommunicatePCDData</wsa:Action>
<wsa:ReplyTo v:mustUnderstand="1"><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID v:mustUnderstand="1">uuid:08ee4913-0128-4210-8930-23f522006cf3</wsa:MessageID>
<wsa:To v:mustUnderstand="1">http://192.168.0.103:8080/WanReceiver/services/DeviceObservationConsumer_Service</wsa:To></v:Header>
<v:Body>
<n4:CommunicatePCDData xmlns:n4="urn:ihe:pcd:dec:2010">MSH|^~\&amp;|MyConnHealthAHD^feedbeefadeadbee^EUI-64||||20130609122204.223+0800||ORU^R01^ORU_R01|MSGID123456789|P|2.6|||NE|AL|||||IHE PCD ORU-R012006^HL7^2.16.840.1.113883.9.n.m^HL7&#xD;PID|||Sx123456789^^^MyConnectedHealth^PI||Wu^Charly^^^^^L&#xD;OBR|1|CESL01^MyConnHealthAHD^feedbeefadeadbee^EUI-64|CESL01^ConnHealthAHD^feedbeefadeadbee^EUI-64|182777000^monitoring of patient^SNOMED-CT|||20130609122204.170+0800|20130609122205.170+0800&#xD;OBX|1||531981^MDC_MOC_VMS_MDS_AHD^MDC|0|||||||X|||||||FEEDBEEFADEADBEE^EUI-64&#xD;OBX|2|CWE|68220^MDC_TIME_SYNC_PROTOCOL^MDC|0.0.0.1|532224^MDC_TIME_SYNC_NONE^MDC||||||R&#xD;OBX|3|CWE|68218^MDC_REG_CERT_DATA_AUTH_BODY^MDC|0.0.0.2|2^auth-body-continua||||||R&#xD;OBX|4|ST|532352^MDC_REG_CERT_DATA_CONTINUA_VERSION^MDC|0.0.0.2.1|1.5||||||R&#xD;OBX|5|NA|532353^MDC_REG_CERT_DATA_CONTINUA_CERT_DEV_LIST^MDC|0.0.0.2.2|123~456||||||R&#xD;OBX|6|CWE|68218^MDC_REG_CERT_DATA_AUTH_BODY^MDC|0.0.0.3|2^auth-body-continua||||||R&#xD;OBX|7|CWE|532354^MDC_REG_CERT_DATA_CONTINUA_REG_STATUS^MDC|0.0.0.3.1|1^unregulated-device(0)||||||R&#xD;OBX|8||528399^MDC_DEV_SPEC_PROFILE_SCALE^MDC|1|||||||X|||||||BEEF000000000001^EUI-64&#xD;OBX|9|ST|531970^MDC_ID_MODEL_MANUFACTURER^MDC|1.0.0.1|AND Medical||||||R&#xD;OBX|10|ST|531969^MDC_ID_MODEL_NUMBER^MDC|1.0.0.2|UC321PBT-C||||||R&#xD;OBX|11|CWE|68218^MDC_REG_CERT_DATA_AUTH_BODY^MDC|1.0.0.3|2^auth-body-continua||||||R&#xD;OBX|12|ST|532352^MDC_REG_CERT_DATA_CONTINUA_VERSION^MDC|1.0.0.3.1|1.5||||||R&#xD;OBX|13|NA|532353^MDC_REG_CERT_DATA_CONTINUA_CERT_DEV_LIST^MDC|1.0.0.3.2|16399||||||R&#xD;OBX|14|CWE|68218^MDC_REG_CERT_DATA_AUTH_BODY^MDC|1.0.0.4|2^auth-body-continua||||||R&#xD;OBX|15|CWE|532354^MDC_REG_CERT_DATA_CONTINUA_REG_STATUS^MDC|1.0.0.4.1|1^unregulated-device(0)||||||R&#xD;OBX|16|NM|188736^MDC_MASS_BODY_ACTUAL^MDC|1.0.0.5|67|263875^MDC_DIM_KILO_G^MDC|||||R|||20130609122204.170+0800&#xD;</n4:CommunicatePCDData>
</v:Body>
</v:Envelope>
  • nmrao's avatar
    nmrao
    Icon for Champion Level 2 rankChampion Level 2
    Do you set any encoding in the request? or Does server always reads the message in only certain encoding format?
  • charlywrx's avatar
    charlywrx
    New Contributor
    Hi.
    Thanks for replying. Encoding is set to utf-8. Actually this is even before sending out the message. The cnversion from &#xd; to \r is within the editor itself. E.g when switching view from raw to xml etc.
  • nmrao's avatar
    nmrao
    Icon for Champion Level 2 rankChampion Level 2
    May be you can give a try with ISO-8859-1 encoding and see if that solves?
  • charlywrx's avatar
    charlywrx
    New Contributor
    Hi,

    Thanks for your suggestion. but it still doesnt work.

    I created the request using xml view, and copy n paste the full xml there and simply press the request button. by using tool like tcpmon, i can see that the soapbody has been modified.

    what i send: (excluding the soap headers and http headers)
      <v:Body>
    <n4:CommunicatePCDData xmlns:n4="urn:ihe:pcd:dec:2010">MSH|^~\&amp;|ConnHealthAHD^feedbeefadeadbee^EUI-64||||20130609122204.223+0800||ORU^R01^ORU_R01|MSGID123456789|P|2.6|||NE|AL|||||IHE PCD ORU-R012006^HL7^2.16.840.1.113883.9.n.m^HL7&#xd;PID|||Sx123456789^^^ConnectedHealth^PI||Wu^Charly^^^^^L&#xd;OBR|1|CESL01^ConnHealthAHD^feedbeefadeadbee^EUI-64|CESL01^ConnHealthAHD^feedbeefadeadbee^EUI-64|182777000^monitoring of patient^SNOMED-CT|||20130609122204.170+0800|20130609122205.170+0800&#xd;OBX|1||531981^MDC_MOC_VMS_MDS_AHD^MDC|0|||||||X|||||||FEEDBEEFADEADBEE^EUI-64&#xd;OBX|2|CWE|68220^MDC_TIME_SYNC_PROTOCOL^MDC|0.0.0.1|532224^MDC_TIME_SYNC_NONE^MDC||||||R OBX|3|CWE|68218^MDC_REG_CERT_DATA_AUTH_BODY^MDC|0.0.0.2|2^auth-body-continua||||||R&#xd;OBX|4|ST|532352^MDC_REG_CERT_DATA_CONTINUA_VERSION^MDC|0.0.0.2.1|1.5||||||R OBX|5|NA|532353^MDC_REG_CERT_DATA_CONTINUA_CERT_DEV_LIST^MDC|0.0.0.2.2|123~456||||||R&#xd;OBX|6|CWE|68218^MDC_REG_CERT_DATA_AUTH_BODY^MDC|0.0.0.3|2^auth-body-continua||||||R&#xd;OBX|7|CWE|532354^MDC_REG_CERT_DATA_CONTINUA_REG_STATUS^MDC|0.0.0.3.1|1^unregulated-device(0)||||||R&#xd;OBX|8||528399^MDC_DEV_SPEC_PROFILE_SCALE^MDC|1|||||||X|||||||BEEF000000000001^EUI-64&#xd;OBX|9|ST|531970^MDC_ID_MODEL_MANUFACTURER^MDC|1.0.0.1|AND Medical||||||R&#xd;OBX|10|ST|531969^MDC_ID_MODEL_NUMBER^MDC|1.0.0.2|UC321PBT-C||||||R&#xd;OBX|11|CWE|68218^MDC_REG_CERT_DATA_AUTH_BODY^MDC|1.0.0.3|2^auth-body-continua||||||R&#xd;OBX|12|ST|532352^MDC_REG_CERT_DATA_CONTINUA_VERSION^MDC|1.0.0.3.1|1.5||||||R OBX|13|NA|532353^MDC_REG_CERT_DATA_CONTINUA_CERT_DEV_LIST^MDC|1.0.0.3.2|16399||||||R&#xd;OBX|14|CWE|68218^MDC_REG_CERT_DATA_AUTH_BODY^MDC|1.0.0.4|2^auth-body-continua||||||R&#xd;OBX|15|CWE|532354^MDC_REG_CERT_DATA_CONTINUA_REG_STATUS^MDC|1.0.0.4.1|1^unregulated-device(0)||||||R OBX|16|NM|188736^MDC_MASS_BODY_ACTUAL^MDC|1.0.0.5|67|263875^MDC_DIM_KILO_G^MDC|||||R|||20130609122204.170+0800</n4:CommunicatePCDData>
    </v:Body>


    what i see on tcpmon:

     <v:Body>
    <n4:CommunicatePCDData xmlns:n4="urn:ihe:pcd:dec:2010">MSH|^~\&amp;|ConnHealthAHD^feedbeefadeadbee^EUI-64||||20130609122204.223+0800||ORU^R01^ORU_R01|MSGID123456789|P|2.6|||NE|AL|||||IHE PCD ORU-R012006^HL7^2.16.840.1.113883.9.n.m^HL7
    PID|||Sx123456789^^^ConnectedHealth^PI||Wu^Charly^^^^^L
    OBR|1|CESL01^ConnHealthAHD^feedbeefadeadbee^EUI-64|CESL01^ConnHealthAHD^feedbeefadeadbee^EUI-64|182777000^monitoring of patient^SNOMED-CT|||20130609122204.170+0800|20130609122205.170+0800
    OBX|1||531981^MDC_MOC_VMS_MDS_AHD^MDC|0|||||||X|||||||FEEDBEEFADEADBEE^EUI-64
    OBX|2|CWE|68220^MDC_TIME_SYNC_PROTOCOL^MDC|0.0.0.1|532224^MDC_TIME_SYNC_NONE^MDC||||||R OBX|3|CWE|68218^MDC_REG_CERT_DATA_AUTH_BODY^MDC|0.0.0.2|2^auth-body-continua||||||R
    OBX|4|ST|532352^MDC_REG_CERT_DATA_CONTINUA_VERSION^MDC|0.0.0.2.1|1.5||||||R OBX|5|NA|532353^MDC_REG_CERT_DATA_CONTINUA_CERT_DEV_LIST^MDC|0.0.0.2.2|123~456||||||R
    OBX|6|CWE|68218^MDC_REG_CERT_DATA_AUTH_BODY^MDC|0.0.0.3|2^auth-body-continua||||||R
    OBX|7|CWE|532354^MDC_REG_CERT_DATA_CONTINUA_REG_STATUS^MDC|0.0.0.3.1|1^unregulated-device(0)||||||R
    OBX|8||528399^MDC_DEV_SPEC_PROFILE_SCALE^MDC|1|||||||X|||||||BEEF000000000001^EUI-64
    OBX|9|ST|531970^MDC_ID_MODEL_MANUFACTURER^MDC|1.0.0.1|AND Medical||||||R
    OBX|10|ST|531969^MDC_ID_MODEL_NUMBER^MDC|1.0.0.2|UC321PBT-C||||||R
    OBX|11|CWE|68218^MDC_REG_CERT_DATA_AUTH_BODY^MDC|1.0.0.3|2^auth-body-continua||||||R
    OBX|12|ST|532352^MDC_REG_CERT_DATA_CONTINUA_VERSION^MDC|1.0.0.3.1|1.5||||||R OBX|13|NA|532353^MDC_REG_CERT_DATA_CONTINUA_CERT_DEV_LIST^MDC|1.0.0.3.2|16399||||||R
    OBX|14|CWE|68218^MDC_REG_CERT_DATA_AUTH_BODY^MDC|1.0.0.4|2^auth-body-continua||||||R
    OBX|15|CWE|532354^MDC_REG_CERT_DATA_CONTINUA_REG_STATUS^MDC|1.0.0.4.1|1^unregulated-device(0)||||||R OBX|16|NM|188736^MDC_MASS_BODY_ACTUAL^MDC|1.0.0.5|67|263875^MDC_DIM_KILO_G^MDC|||||R|||20130609122204.170+0800</n4:CommunicatePCDData>
    </v:Body>
  • nmrao's avatar
    nmrao
    Icon for Champion Level 2 rankChampion Level 2
    Are you still living with this issue?
    Have you tried putting the data inside <elementname><![CDATA[your data ]]></elementname>