cancel
Showing results for 
Search instead for 
Did you mean: 

Error receiving XML

alejandro_gmez
Participant
0 Kudos

Hi gurus:

When I send the XML below using a SOAP communication Channel, XI server doesn't receive it well:


<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="urn:http://salud.siemens.es" xmlns:types="urn:http://salud.siemens.es/encodedTypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	<soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
		<tns:cancelaCitas>
			<SolicitudCancelacionCitaType_1 href="#id1"></SolicitudCancelacionCitaType_1>
		</tns:cancelaCitas>
		<tns:SolicitudCancelacionCitaType id="id1" xsi:type="tns:SolicitudCancelacionCitaType">
			<cita href="#id2"></cita>
			<contexto href="#id3"></contexto>
			<paciente href="#id4"></paciente>
		</tns:SolicitudCancelacionCitaType>
		<soapenc:Array id="id2" soapenc:arrayType="tns:CitaType[1]">
			<Item href="#id5"></Item>
		</soapenc:Array>
		<tns:ContextoType id="id3" xsi:type="tns:ContextoType">
			<aplicacion href="#id6"></aplicacion>
			<mensajeID xsi:type="xsd:string">2957</mensajeID>
			<mensajeRaizID xsi:type="xsd:string">2955</mensajeRaizID>
			<origen href="#id7"></origen>
		</tns:ContextoType>
		<tns:PacienteType id="id4" xsi:type="tns:PacienteType">
			<CIP xsi:type="xsd:string">556041699</CIP>
		</tns:PacienteType>
		<tns:CitaType id="id5" xsi:type="tns:CitaType">
			<id xsi:type="xsd:string">1103886</id> 
			<sujeto href="#id8"></sujeto>
		</tns:CitaType>
		<tns:ContextoType.AplicacionType id="id6" xsi:type="tns:ContextoType.AplicacionType">
			<nombre xsi:type="xsd:string">TELECITA</nombre>
			<version xsi:type="xsd:string">1.0</version>
		</tns:ContextoType.AplicacionType>
		<tns:ContextoType.OrigenType id="id7" xsi:type="tns:ContextoType.OrigenType">
			<centro href="#id9"></centro>
		</tns:ContextoType.OrigenType>
		<tns:CitaType.SujetoType id="id8" xsi:type="tns:CitaType.SujetoType">
			<CIP xsi:type="xsd:string">125041699</CIP>
		</tns:CitaType.SujetoType>
		<tns:ContextoType.OrigenType.CentroType id="id9" xsi:type="tns:ContextoType.OrigenType.CentroType">
			<codigo xsi:type="xsd:string">9912023710</codigo>
			<nombre xsi:type="xsd:string">C.S. SAN SEBASTIAN G.</nombre>
			<sistemaCodificacion xsi:type="xsd:string">TELECITA</sistemaCodificacion>
		</tns:ContextoType.OrigenType.CentroType>
	</soap:Body>
</soap:Envelope>

Using Altova XMLSpy, previous XML code is valid and well-formed, but XI server only receives next XML code (in SXMB_MONI):


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- Inbound Message -->
<tns:cancelaCitas xmlns:tns="urn:http://salud.siemens.es" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:types="urn:http://salud.siemens.es/encodedTypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
	<SolicitudCancelacionCitaType_1 href="#id1"></SolicitudCancelacionCitaType_1>
</tns:cancelaCitas>

The structure of the XML code that I send to server is a little peculiar, with references to items that appear below.

Any idea?

Thanks to all in advance and regards,

Alejandro Gomez.

Edited by: Alejandro Gómez on Mar 17, 2009 10:19 AM

Accepted Solutions (1)

Accepted Solutions (1)

former_member181962
Active Contributor
0 Kudos

Hi Alejandro Gomez,

Double check if your XML is valid.

I doubt if you need to have the first line of your payload.

Regards,

ravi

alejandro_gmez
Participant
0 Kudos

Hi Ravi:

I'm sure my source XML is valid and well-formed.

Thanks,

Alejandro.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

You had used the imported the wsdl as External defination with sender SOAP adapter.

plesae can you check the referece available in the imported wsdl are fine or not.

Just try to again use the same wsdl in mapping object and see if you are able to all fields.

The namespace reference seems to be missing.

Thanks

Swarup

stefan_grube
Active Contributor
0 Kudos

This format is not supported.

The SOAP adapter only supports one body root node.

As work around, you can use the flag "Du not use SOAP envelope" and do

mapping based on the full SOAP message (including envelope)