안녕하세요. 필자는 사용해야하는 필수 입력란이 무엇인지 설명하는 XSD 파일을 가지고 있습니다.C# .Net에서 XSD 파일을 사용하여 XML을 작성하는 방법
해당 XSD 스키마를 사용하여 빌드 및 XML 요청을 통해 타사 서비스 공급자에게 요청하고 일단 XML 요청의 유효성을 검사하면 시스템 (타사)이 응답을 반환하고 다시 해당 XML을 읽어야합니다. Logic 구현의 나머지 작업을 수행합니다.
나는 곳 중 하나가 바로 이곳에 날 지점 또는 내가 XSD를 사용하여 XML을
여기에 작성하는 데 사용할 수있는 예제의 일종을 제공 할 수이 XSD
를 사용하여 건물 XML로 시작하는 단서가 없다 <xs:element name="RxHistoryRequest">
내가 공을 사용하여 XML 및
을 구축해야 사용하여 내 XSD
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns="http://www.ncpdp.org/schema/SCRIPT" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.ncpdp.org/schema/SCRIPT" elementFormDefault="qualified">
<!-- Message -->
<xs:element name="Message" type="MessageType"/>
<xs:element name="RxHistoryRequest">
<xs:complexType>
<xs:sequence>
<xs:annotation>
<xs:documentation>UIH-020</xs:documentation>
<xs:documentation>UIH-030-1</xs:documentation>
<xs:documentation>PVD-P2</xs:documentation>
</xs:annotation>
<xs:element ref="RxReferenceNumber" minOccurs="0"/>
<!--UIH.2.1-->
<xs:element ref="PrescriberOrderNumber" minOccurs="0"/>
<!--UIH.3.1-->
<xs:element name="Pharmacy" type="OptionalPharmacyType" minOccurs="0">
<xs:annotation>
<xs:documentation>PVD-P2</xs:documentation>
</xs:annotation>
</xs:element>
<!--PVD-->
<xs:element name="Prescriber" type="OptionalPrescriberType">
<xs:annotation>
<xs:documentation>PVD-PC</xs:documentation>
</xs:annotation>
</xs:element>
<!--PVD-->
<xs:element name="Patient" type="HistoryRequestPatientType">
<xs:annotation>
<xs:documentation>PTT</xs:documentation>
</xs:annotation>
</xs:element>
<!--PTT-->
<xs:element name="BenefitsCoordination" type="BenefitsCoordinationRequestType" maxOccurs="3">
<xs:annotation>
<xs:documentation>COO</xs:documentation>
</xs:annotation>
</xs:element>
<!--COO-->
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="RxHistoryResponse">
<xs:complexType>
<xs:sequence>
<xs:annotation>
<xs:documentation>UIH-020</xs:documentation>
<xs:documentation>UIH-030-1</xs:documentation>
<xs:documentation>PVD-P2</xs:documentation>
</xs:annotation>
<xs:element ref="RxReferenceNumber" minOccurs="0"/>
<!--UIH.2.1-->
<xs:element ref="PrescriberOrderNumber" minOccurs="0"/>
<!--UIH.3.1-->
<xs:element name="Response" type="HistoryResponseType">
<xs:annotation>
<xs:documentation>RES</xs:documentation>
</xs:annotation>
</xs:element>
<!--RES-->
<xs:element name="Pharmacy" type="OptionalPharmacyType" minOccurs="0">
<xs:annotation>
<xs:documentation>PVD-P2</xs:documentation>
</xs:annotation>
</xs:element>
<!--PVD-->
<xs:element name="Prescriber" type="HistoryPrescriberType">
<xs:annotation>
<xs:documentation>PVD-PC</xs:documentation>
</xs:annotation>
</xs:element>
<!--PVD-->
<xs:element name="Patient" type="HistoryResponsePatientType">
<xs:annotation>
<xs:documentation>PTT</xs:documentation>
</xs:annotation>
</xs:element>
<!--PTT-->
<xs:element name="BenefitsCoordination" type="BenefitsCoordinationResponseType" maxOccurs="3">
<xs:annotation>
<xs:documentation>COO</xs:documentation>
</xs:annotation>
</xs:element>
<!--COO-->
<xs:choice minOccurs="0">
<xs:element name="MedicationDispensed" type="HistoryDispensedMedicationType" maxOccurs="300">
<xs:annotation>
<xs:documentation>DRU-D</xs:documentation>
</xs:annotation>
</xs:element>
<!--DRU-->
<xs:element name="MedicationPrescribed" type="HistoryPrescribedMedicationType" maxOccurs="300">
<xs:annotation>
<xs:documentation>DRU-P</xs:documentation>
</xs:annotation>
</xs:element>
<!--DRU-->
</xs:choice>
</xs:sequence>
</xs:complexType>
</xs:element>
.
.
.
.
..
.
continues
의 일부입니다 응답을 읽어야합니다.
도와 주셔서 감사합니다.
이 각 사용자 요청에 최대 웹에서 동적으로 발생한다에 대한
것은 난 내가 특정 사용자 값을 갖는 새 XML 요청을 구축하고 요청을 보낼 수있는 샘플 XML을 만들 수 있습니다 – HaBo