can't get "updg:sync" in update updategram
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server General > can't get "updg:sync" in update updategram




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    can't get "updg:sync" in update updategram  
Madani Benghia


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-24-05 10:50 PM

Hello,

I am trying to update the table OrderSample (setting the field "Status" to
4)  using SQL updategram .After adding the update schema and the map ,my map
is generating the following xml file:

<ns0:UpdateOrderSampleRequest
xmlns:updg="urn:schemas-microsoft-com:xml-updategram"
xmlns:ns0="http://PanasonicBTSOrdersSystem.UpdateOrderSample">
<ns0:sync>
<ns0:before>
<ns0:OrderSample updg:id="1" OrderId="1"></ns0:OrderSample>
<ns0:OrderSample updg:id="2" OrderId="2"></ns0:OrderSample>
</ns0:before>
<ns0:after>
<ns0:OrderSample updg:id="1" Status="4"></ns0:OrderSample>
<ns0:OrderSample updg:id="2" Status="4"></ns0:OrderSample>
</ns0:after>
</ns0:sync>
</ns0:UpdateOrderSampleRequest>

Unforrtunately this did not update the database and generated errors.As you
know this is an SQLXML file,so i configured IIS for SQLXML support
(according to the documentation) and then called the xml file from IE.It did
not work until i changed the following values :

<ns0:sync> to  <updg:sync>
<ns0:before> to <updg:before>
<ns0:after> to <updg:after>

After doing that i can run the xml file from IE and the update is done.My
question is : how do i edit the schema/the map so it to generates the "updg"
prefix for the tags "sync","before",and "after" instead of "ns0"?

Here is the file after the change :


<ns0:UpdateOrderSampleRequest
xmlns:updg="urn:schemas-microsoft-com:xml-updategram"
xmlns:ns0="http://PanasonicBTSOrdersSystem.UpdateOrderSample">
<updg:sync>
<updg:before>
<ns0:OrderSample OrderId="1" updg:id="1">
</ns0:OrderSample>
<ns0:OrderSample OrderId="2" updg:id="2">
</ns0:OrderSample>
</updg:before>
<updg:after>
<ns0:OrderSample updg:id="1" Status="4">
</ns0:OrderSample>
<ns0:OrderSample updg:id="2" Status="4">
</ns0:OrderSample>
</updg:after>

</updg:sync>
</ns0:UpdateOrderSampleRequest>


Thank you in advance.


Madani







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:18 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register