Re: Mappping source xml to destination element ?
- From: "Jayendra" <Jayendra@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 17 Oct 2005 21:50:18 -0700
HI,
"OutputMessage.Parameters."
Ur trying to write above exprssion after getting response from SP,Right ?
Even myself is facing the same problm,I think this is bcs actual response
elements in the schema generated wizard is different from the results what ur
SP is returning.
Today iwill wk on it ..and reply bk ..:)
jay..
"Jyoti Khetan" wrote:
> Thanks For the reply, but somehow I am not able to type cast my varaiable to
> string.. The intellisense just shows
>
> OutputMessage.Parameters.
>
> It does not allw me to go deeper into the nodes.. So while type casting I
> get the error that
> "Cannot convert Request object to String."
>
> So this statement
>
> Outputmessage.request.customer.customerdata=System.comvert.string(Var_incomingmsg.InnerXml);
>
> is not working...Do you have any idea why this is happening?
> Regards
> Jyoti
>
>
> "Jayendra" <Jayendra@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:CA4D5C6D-4515-47DC-A938-241BF693BCA8@xxxxxxxxxxxxxxxx
> >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: Jayendra
- 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 ?
- From: Jayendra
- Re: Mappping source xml to destination element ?
- From: Jyoti Khetan
- Re: Mappping source xml to destination element ?
- Prev by Date: Re: Accessing Multipart messages
- Next by Date: Re: Mappping source xml to destination element ?
- Previous by thread: Re: Mappping source xml to destination element ?
- Next by thread: Re: Mappping source xml to destination element ?
- Index(es):
Relevant Pages
|