BizTalk请求JAVA的Web Service报错

错误

Uncaught exception (see the 'inner exception' below) has suspended an instance of service 'FJUC.LRMS.BTS.Core.Import(625f1ace-0afd-0887-16ac-4e0648345c8a)'.
The service instance will remain suspended until administratively resumed or terminated.
If resumed the instance will continue from its last persisted state and may re-throw the same unexpected exception.
InstanceId: 429faab0-82bc-4f14-95c7-9a5f8ab8d4a4
Shape name:
ShapeId:
Exception thrown from: segment -1, progress -1
Inner exception: An error occurred while processing the message, refer to the details section for more information
Message ID: {EB736161-D12C-48BF-B0DF-7F493BBF7BB2}
Instance ID: {CD81B425-BCCE-401D-979B-E4713E67CBB1}
Error Description: Failed to serialize the message part "attemperReceiveBean" into the type "AttemperReceiveBean" using namespace "
http://bean.webservice.attemperres.geosoft.com". Please ensure that the message part stream is created properly.
Exception type: XlangSoapException
Source: Microsoft.XLANGs.BizTalk.Engine
Target Site: Void VerifyTransport(Microsoft.XLANGs.Core.Envelope, Int32, Microsoft.XLANGs.Core.Context)
The following is a stack trace that identifies the location where the exception occured
at Microsoft.BizTalk.XLANGs.BTXEngine.BTXPortBase.VerifyTransport(Envelope env, Int32 operationId, Context ctx)
at Microsoft.XLANGs.Core.Subscription.Receive(Segment s, Context ctx, Envelope& env, Boolean topOnly)
at Microsoft.XLANGs.Core.PortBase.GetMessageId(Subscription subscription, Segment currentSegment, Context cxt, Envelope& env,CachedObject location)
at FJUC.LRMS.BTS.Core.Import.segment2(StopConditions stopOn)
at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp)

原因

XML消息的命名空间跟Schema的不一致导致该问题,特别注意有多个命名空间情况下的消息检验。

解决办法

修改消息命名空间。

你可能感兴趣的:(java,exception,Web,schema,service,processing)