Diference of Web Service and a file port

Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Diference of Web Service and a file port

Viewing 1 reply thread
  • Author
    Posts
    • #18510

      Hello,

      I have an Orquestration that is working with a File Receive Location with a XMLReceive Pipeline. When I put one XML file in the designated path everithing is OK.

      Then I published this orquestration as a Web Service, configured a SOAP Receive Location with the same XMLReceive Pipeline. I’ve send the same XML through that web service, and I got some errors in my orquestration.

      After a lot of “Debug” I realized that the XML file (Message) that is arriving to the orquestration is diferent that the one that I’ve sent. The diference are the optional attibutes in my XML file that have the default value selected. 

       For instance, in my original XML file I have the folowing code:

          <observationEvent classCode=”OBS” moodCode=”EVN”>

       And in my orquestration only arrive the folowing:

           <observationEvent moodCode=”EVN”>

       I think that this is because “OBS” is the Default value for the attribute classCode. If I change that value, It will be OK.

       

      Does anyone have a sugestion, or have had the same problem?

       

      Thanks

      Paiva 

    • #18537

      Hello!

       That issue is not Biztalk related. It has to do with the serialization/deserialization of the XML document. 

      It’s a way to minimize the data that is sent to biztalk.

      To avoid this behavior, you can comment the “DefaultValueAttribute” in the generated code of the web service.

       

      You can see more details in this link:

      http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=96301 

       

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.