Re: Mappping source xml to destination element ?

Tech-Archive recommends: Fix windows errors by optimizing your registry



i got it,
1)Jst create variable of type (xml doc) and assign ur incoming schema
instance to it.
2)Assaign this variable to multipart message by type casting to string type.

eg:
Var_incomingmsg=msg_incoming;
Outputmessage.request.customer.customerdata=System.comvert.string(Var_incomingmsg.InnerXml);


Hoping u too will get it,Thanks once again
Jayendra


"Jyoti Khetan" wrote:

> Hey Jayendra,
>
> I am facing the same problem. I am not able to map the entire XML document
> to a schema node. Nor could I find a way to open a file through a stored
> procedure.
>
> What I have done for the time being is this:
> 1. I have created a source schema with a node of type xs:anyURI.
> 2. Here I pass the URI of the XML document.
> 3. Next I created a DLL which takes as parameter a file URI and returns the
> entire text of the file as string.
> 4. I called this DLL from a fuctoid in my mapper which takes the URI from
> the source schema and returns the XML string to the destination schema.
> 5. Thus I have the entire XML doc in a schema node attribute, which can be
> passed to a SP
>
> This method works fine, the only problem being, that the URI is fixed.
> I am still working on it. If I find a solution, I will let u know, u do the
> same please.
>
> Regards,
> Jyoti
>
> "Jayendra" <Jayendra@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:9DE9E35D-68AD-46C3-857B-66E1AFFF0BC6@xxxxxxxxxxxxxxxx
> > My requirement is to pass entire incoming xml doc(Customer.xsd) as
> > parameter
> > to SP multipart message(Customer_req).
> > One of the parm in Customer_req (SP message)takes customer.xml
> > (Customer.xsd).
> >
> > Then how to map this entire incoming(customer.xml) to destination
> > shcema(SP)
> > elment.
> >
> >
> > Thanks for reply,
> > Jay..
> >
> > "BA" wrote:
> >
> >>
> >> It sounds like a direct mapping. Maybe you haven't generated another
> >> schema?
> >>
> >> Your explanation needs to be more detailed
> >>
> >> BA
> >>
> >>
> >> "Jayendra" <Jayendra@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> >> news:D52AD22D-927A-46D3-87F0-EF27EAC25BED@xxxxxxxxxxxxxxxx
> >> > Can any one helpme in mapping source xml file to destination schema
> >> element.
> >> >
> >> > Source:XML
> >> >
> >> > <customersdata>
> >> > <customers>
> >> > <custname/>
> >> > <custage/>
> >> > </custoemrs>
> >> >
> >> >
> >> > </customersdata>
> >> >
> >> >
> >> > Expected destiantion :XMl
> >> >
> >> >
> >> > In the above file root data info(customers) must be copied to
> >> customersdata
> >> > elment in destination schema.
> >> >
> >> > Can any one helpme..
> >> >
> >> > Jay,,
> >>
> >>
> >>
>
>
>
.



Relevant Pages

  • Re: Mappping source xml to destination element ?
    ... > "Cannot convert Request object to String." ... >>> to a schema node. ... Here I pass the URI of the XML document. ...
    (microsoft.public.biztalk.general)
  • Re: how to return xml document from a web service
    ... what specific XML you expect. ... If you have a schema that defines what you expect, ... The second issue with this approach is that XML is not a string. ... >> methods from the wire transport. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • my first Tck/Tk program... and an XML question
    ... program which takes an XML Schema file, ... a basic XML tree and allows the user to save it. ... proc open_schema { ...
    (comp.lang.tcl)
  • RE: Data Insertion
    ... >The physical database structure is already in place. ... >I can determine the XML file and whether it contains a schema. ... In this particular case XML Schema is used to create a DataSet schema (set ... you're probably wondering how it's possible to load XML without XML ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: GEDOM as a database format
    ... format for meaning, that is, structure. ... If at least a basic XML schema is agreed on and XML used in any fashion, ... mothers: the autosomal/X mother and the mitochondrial mother .. ...
    (soc.genealogy.computing)