Hi Martin!
I’m still encountering this error: Invalid message schema.
Here is my xml:
<?xml version="1.0" encoding="utf-8"?>
{6432E03A-4380-414D-9F37-732BE0FEA45E}
http://schemas.microsoft.com/dynamics/2008/01/services/GeneralJournalService/create
JournalNa1
Test 1
Ledger
0
50
PRAA
PHP
2007-05-28
AxLedgerJournal inbound test trans 1
Ledger
50
0
PRAA
PHP
2007-05-28
AxLedgerJournal inbound test trans 1
Here is my schema.
<?xml version="1.0" encoding="utf-16"?>
<xs:schema xmlns:tns=“http://schemas.microsoft.com/dynamics/2008/01/documents/LedgerGeneralJournal” xmlns:st=“http://schemas.microsoft.com/dynamics/2008/01/sharedtypes” elementFormDefault=“qualified” targetNamespace=“http://schemas.microsoft.com/dynamics/2008/01/documents/LedgerGeneralJournal” xmlns:xs=“http://www.w3.org/2001/XMLSchema”>
<xs:import schemaLocation=“SharedTypes.xsd” namespace=“http://schemas.microsoft.com/dynamics/2008/01/sharedtypes” />
<xs:element name=“LedgerGeneralJournal” type=“tns:AxdLedgerGeneralJournal” />
<xs:complexType name=“AxdLedgerGeneralJournal”>
xs:sequence
<xs:element minOccurs=“0” maxOccurs=“unbounded” name=“LedgerJournalTable” type=“tns:AxdEntity_LedgerJournalTable” />
</xs:sequence>
</xs:complexType>
<xs:complexType name=“AxdEntity_LedgerJournalTable”>
xs:sequence
<xs:element minOccurs=“1” name=“JournalName” type=“st:AxdExtType_LedgerJournalNameId” />
<xs:element minOccurs=“0” name=“Name” nillable=“true” type=“st:AxdExtType_Name” />
<xs:element minOccurs=“0” maxOccurs=“unbounded” name=“LedgerJournalTrans” type=“tns:AxdEntity_LedgerJournalTrans” />
</xs:sequence>
<xs:attribute fixed=“entity” name=“class” use=“required” />
<xs:attribute name=“action” type=“st:AxdEnum_AxdEntityAction” />
</xs:complexType>
<xs:complexType name=“AxdEntity_LedgerJournalTrans”>
xs:sequence
<xs:element minOccurs=“0” name=“AccountType” nillable=“true” type=“st:AxdEnum_LedgerJournalACType” />
<xs:element minOccurs=“0” name=“AmountCurCredit” nillable=“true” type=“st:AxdExtType_AmountCurCredit” />
<xs:element minOccurs=“0” name=“AmountCurDebit” nillable=“true” type=“st:AxdExtType_AmountCurDebit” />
<xs:element minOccurs=“0” name=“Company” nillable=“true” type=“st:AxdExtType_SelectableDataArea” />
<xs:element minOccurs=“0” name=“CurrencyCode” nillable=“true” type=“st:AxdExtType_CurrencyCode” />
<xs:element minOccurs=“0” name=“DefaultDimension” nillable=“true” type=“st:AxdType_DimensionAttributeValueSet” />
<xs:element minOccurs=“0” name=“OffsetDefaultDimension” nillable=“true” type=“st:AxdType_DimensionAttributeValueSet” />
<xs:element minOccurs=“0” name=“TransDate” nillable=“true” type=“st:AxdExtType_TransDate” />
<xs:element minOccurs=“0” name=“Txt” nillable=“true” type=“st:AxdExtType_LedgerJournalTransTxt” />
</xs:sequence>
<xs:attribute fixed=“entity” name=“class” use=“required” />
<xs:attribute name=“action” type=“st:AxdEnum_AxdEntityAction” />
</xs:complexType>
</xs:schema>
I’m still confused in this error since it doesn’t tell where my syntax is wrong on my xml.
Thanks!
Schneizer