Hi all,
I am running into this issue when trying to consume a .NET remote web
service from a Biztalk 2004 orchestration. In my orchestration, I have a
scope shape, where the send and receive shapes calling the web service
****t
are located, and an exception handler shape to output (to a file) any SOAP
exception messages generated from the web service call.
When I run the orchestration, I get the following message output in
the
error file:
<?xml version="1.0" ?>
<string><ns0:NACK Type="NACK"
xmlns:ns0="http://schema.microsoft.com/BizTalk/2003/NACKMessage.xsd"><NAckID>{5CB0B401-8765-4BBB-BFAC-21272021256C}</NAckID><ErrorCode>System.InvalidOperationException:
There is an error in XML do***ent (1, 2). --->
System.InvalidOperationException: <Envelope
xmlns='http://schemas.xmlsoap.org/soap/envelope/'>
was not expected. at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read4_GetPayees()
--- End of inner exception stack trace --- at
System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader,
String encodingStyle, XmlDeserializationEvents events) at
System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader,
XmlDeserializationEvents events) at
System.Xml.Serialization.XmlSerializer.Deserialize(Stream stream) at
Microsoft.BizTalk.Soap.SoapMessage.DeserializeMessagePart(Type type,
Stream
stream) at Microsoft.BizTalk.Soap.SoapMessage.DeserializeParameters() at
Microsoft.BizTalk.Soap.SoapMessage.SetMethodAndParameters(String
operation)
at Microsoft.BizTalk.Soap.SoapMessage.GetMethod(String operation) at
Microsoft.BizTalk.Soap.SoapMessage.Prepare() at
Microsoft.BizTalk.SoapTrans****t.ProcessMessage(IBaseMessage
message)</ErrorCode><ErrorCategory>0</ErrorCategory><ErrorDescription>There
is an error in XML do***ent (1,
2).</ErrorDescription><ErrorDetail><Envelope
xmlns='http://schemas.xmlsoap.org/soap/envelope/'>
was not
expected.</ErrorDetail></ns0:NACK></string>
The web service request operation gets passed the following XML
content:
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:urn="urn:bmchp.org:production:clckservice:messages:v1">
<soapenv:Header />
<soapenv:Body>
<urn:GetPayees />
</soapenv:Body>
</soapenv:Envelope>
I have verified that this XML content is well-formed and tested it
using
SoapUI tool, which returns the appropriate response. I have googled around
and have not found any information that would help me resolve this issue,
so
I am hoping that someone on this forum can point me in the right
direction...
Thanks for any help you can provide!
Daniel.


|