newguys
2010-09-16 21:35:03 UTC
Hi, I am new in AIF, current using AX 2009. I have created and config AIF
inbound and outbound endpoint, for outbound, I can send XML file out to
folder successful.
but InBound, I always get error, I checked AIF Queue manager the error
message below:
"This message cannot be processed: Invalid Message schema."
I am sending VendGroup document, the find action xml sample I copied for
somewher, please help me to check if there are something wrong. thanks in
advance. (after run batch job, the file at inbound folder already gone)
<?xml version="1.0" encoding="utf-8" ?>
- <Envelope
xmlns="http://schemas.microsoft.com/dynamics/2008/01/documents/Message">
- <Header>
<MessageId>{C9B8B21D-886B-4624-8B68-5513DD8E63D1}</MessageId>
<SourceEndpointUser>mydomain\myusername</SourceEndpointUser>
<SourceEndpoint>mylocalEndpoing</SourceEndpoint>
<DestinationEndpoint>VendGroupEndpoint</DestinationEndpoint>
<Action>http://schemas.microsoft.com/dynamics/2008/01/services/VendVendGroupService/find</Action>
</Header>
- <Body>
- <MessageParts
xmlns="http://schemas.microsoft.com/dynamics/2008/01/documents/Message">
- <QueryCriteria
xmlns="http://schemas.microsoft.com/dynamics/2006/02/documents/QueryCriteria">
- <CriteriaElement>
<DataSourceName>VendGroup</DataSourceName>
<FieldName>VendGroup</FieldName>
<Operator>Equal</Operator>
<Value1>10F</Value1>
<Value2 />
</CriteriaElement>
</QueryCriteria>
</MessageParts>
</Body>
</Envelope>
inbound and outbound endpoint, for outbound, I can send XML file out to
folder successful.
but InBound, I always get error, I checked AIF Queue manager the error
message below:
"This message cannot be processed: Invalid Message schema."
I am sending VendGroup document, the find action xml sample I copied for
somewher, please help me to check if there are something wrong. thanks in
advance. (after run batch job, the file at inbound folder already gone)
<?xml version="1.0" encoding="utf-8" ?>
- <Envelope
xmlns="http://schemas.microsoft.com/dynamics/2008/01/documents/Message">
- <Header>
<MessageId>{C9B8B21D-886B-4624-8B68-5513DD8E63D1}</MessageId>
<SourceEndpointUser>mydomain\myusername</SourceEndpointUser>
<SourceEndpoint>mylocalEndpoing</SourceEndpoint>
<DestinationEndpoint>VendGroupEndpoint</DestinationEndpoint>
<Action>http://schemas.microsoft.com/dynamics/2008/01/services/VendVendGroupService/find</Action>
</Header>
- <Body>
- <MessageParts
xmlns="http://schemas.microsoft.com/dynamics/2008/01/documents/Message">
- <QueryCriteria
xmlns="http://schemas.microsoft.com/dynamics/2006/02/documents/QueryCriteria">
- <CriteriaElement>
<DataSourceName>VendGroup</DataSourceName>
<FieldName>VendGroup</FieldName>
<Operator>Equal</Operator>
<Value1>10F</Value1>
<Value2 />
</CriteriaElement>
</QueryCriteria>
</MessageParts>
</Body>
</Envelope>