Re: Mappping source xml to destination element ?
- From: "Jayendra" <Jayendra@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 17 Oct 2005 04:02:04 -0700
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,,
> >>
> >>
> >>
>
>
>
.
- Follow-Ups:
- Re: Mappping source xml to destination element ?
- From: Jyoti Khetan
- Re: Mappping source xml to destination element ?
- References:
- Re: Mappping source xml to destination element ?
- From: BA
- Re: Mappping source xml to destination element ?
- From: Jyoti Khetan
- Re: Mappping source xml to destination element ?
- Prev by Date: Re: Table Name in Database Lookup Functoid
- Next by Date: Re:Rule calling a .net method
- Previous by thread: Re: Mappping source xml to destination element ?
- Next by thread: Re: Mappping source xml to destination element ?
- Index(es):
Relevant Pages
|