Originally posted by Mike Wilson
I am hoping someone with XML knowledge can help me out here. I am getting nowhere. I could not get an XSD from our other vendor so I am in limbo creating my own. It compiles but wont parse any messages. Attached are the XML message I am getting from the vendor and the XSD i created.
It is failing with " Erro generated during parsing. - Unknown element 'insertPatientHL7RecResponse'
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.w3.org/2003/05/soap-envelope">
<xsd:element name="Envelope">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Body">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="insertPatientHL7RecResponse" >
<xsd:complexType>
<xsd:sequence>
<xsd:element ENGINE="xs:string" name="insertPatientHL7RecResult"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xs:schema>
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><insertPatientHL7RecResponse xmlns="website here"><insertPatientHL7RecResult>MSH|^~&|||ADM|SITE|20150608000000||ACK|Therapute|P|2.6
MSA|AA|77258863
</insertPatientHL7RecResult></insertPatientHL7RecResponse></soap:Body></soap:Envelope>