Re: Mappping source xml to destination element ?



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,,
> >> >>
> >> >>
> >> >>
> >>
> >>
> >>
>
>
>
.



Relevant Pages

  • 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)
  • RE: HTTP Get
    ... would post the data into BizTalk as XML? ... | I can now confirm that using a custom pipeline and the flat file ... | issue I have, though, is that because the string that is arriving in is ... I have set the delimiter in the schema to be &, ...
    (microsoft.public.biztalk.general)
  • Re: Convert String data from Web Service to XML
    ... associated with a schema), you can just assign temp to this message in a ... why would you bother to load VertexResponse into a xml document? ... I am trying to Convert String data from Web Service to XML ... xmldocument & outerxml ...
    (microsoft.public.biztalk.general)
  • Re: how to return xml document from a web service
    ... string MyWebMethod ... same schema located at a known url. ... Specifically, the strongly typed XML ... >>If the dataset has rows then I need to return those rows to the consumer. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Mappping source xml to destination element ?
    ... 1)Jst create variable of type (xml doc) and assign ur incoming schema ... 2)Assaign this variable to multipart message by type casting to string type. ... Here I pass the URI of the XML document. ...
    (microsoft.public.biztalk.general)