arrayof and the xmtransmit pipeline


 

hi

 

i have web service method receives object contrains array of different object. have c# class library have added web reference web service - act proxy for number of bts2006 projects. when add web reference class library creates reference.xsd expected. bit puzzled see xsd not map object model directly. instead of presenting an xsd parent element containing ubounded sequence of child elements creates parent element name "arrayof" + child element name. explain further: object model has parent object called buylistcollection contains array of buylist objects. reference xsd created visual studio not contain buylistcollection, instead has arrayofbuylist.

 

i created bts map using reference xsd target schema. have bts orchestration receives message maps schema expected web service (before serializes object model). when tested received exception in event viewer telling me unable convert arrayofbuylist buylistcollection. had me thinking xsd must wrong spent long while down path of manually changing make more object model. alas, no joy approach! after head scratching noticed send port used pass message web service configured pass through pipeline. changed xmltransmit , worked great. question - why?

 

 

many thanks,

 

rob. 

it sounds couple of things. first, xml schema not have notion of collection, merely array of elements. can set .net xmlarrayattribute specify properties serialized array. array not intelligent , can have difficulty serializing or deserializing null or collection of collection, generics constructs or other more complicated object maps. 1 reason might want think implementing iserializable or ixmlserializable on types better control on serialization. wcf offers further options controling serialization process well.

 

as xmltransmit vs. passthrough pipelines, think depends on details of web service method , types involved. there many variations on web service method definitions , passthrough pipeline has no knowledge of xml format. perhaps xmltransmit better able parse xml , push data web service call. need know more web service method , serialized xml of message know sure.

 

thanks,

 



BizTalk Server  >  BizTalk Server General



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'