Jump to content

Ankit.Hegde

Members
  • Posts

    8
  • Joined

  • Last visited

Ankit.Hegde's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Hi, I am new to .Net, so am not sure of the complexity involved. Task - Migrating from Socket programming to Web services. Currently I have 2 applications that are connected to each other using sockets. But there is a need to migrate to Web services. There is no change in the functionality wise. Only to reduce the dependencies as the Web service may cater to other applications on the other side. Current - Application 1 Application Extra(future) | / | Sockets / | / Application 2 Must try to acheive - Application 1 Application Extra(future) | / Web Service | Application 2 I would like to know what approach should I take. For example I know about sockets being used to send and receive messages. Basically a function (for an application) in which I open sockets and send and receive data. So while creating web services how do i replace the socket functions etc. I am not sure if its a very difficult or easy question, but could the advice to learn and proceed . Thanks
  2. I have a requirement where in my input node, I have an input node <DateTime>Date(yyyymmdd)-Time(hhmmss)</DateTime>e.g. <DateTime>20061130093023</DateTime>The InputNode value is a string and as well as the Output. ( So I try using the functions defined to operate on strings)In my Output I need to split apart the Date Part and Time Part and Place a hard coded value over there, like 00:00:00<OutputDateTime>Date-HardCodedTime</DateTime>e.g. <OutputDateTime>20061130235900</OutputDateTime>The available functions in the string concat (is needed), substring(string,startlen) - this is not helpful is I need to extract the 1st 8 characters corresponding to date. Please can I know (asap) if any other function can be used or there is a need of a work around. Thanks
  3. Hi, Thanks!! I think it may be a bug. I got to confirm on that. Though I tested the document function using DotNet. I had an input xml, map.xsl, output.xml,sample.xml. Using Transform I could simulate the mapping and then the document function works fine and I get <OutputNode> Some Value </OutputNode>. But the same when tried using BizTalk Map Tool dint work. I dint get about what you mentioned "Running same XML and XSLT pair with IE". I will try to find that out.
  4. Hi, I tried as you said, And the function-available method provides me a true value. That proves that the document() function can be used within the BizTalk Map(xsltMap.xsl) . And as mentioned I did try giving the absolute path using the file protocol: document('file:///E|/Folder/Sample.xml')/RootNode/Node1. But still it returns me the same value of <OutputNode/>. I am not able to figure out where I am going wrong. The same path on the command prompt takes me to the right location( Folder/Sample.xml) as the file is opening. Do I need to take care of any security/Perm access issues to the folder? as I have tried giving all kinds of path( absolute, file protocol path). I am not sure of how to use a relative path. I tried to provide a relative path relative to the map.xsl (But the current position might be somewhere within input xml also?) So can you tell me if I try using relative path, what must I take the point of reference as. And I am not sure why the document() function is not able to select the file despite usage of absolute path. :)Because here if the document method works, I would have to make the path to pick the xml file as relative to the project(somecomponent) as the project would be deployed at another place( there absolute path may not be the best solution. Thanks
  5. Hi, Thanks for the reply. I am using the file1.xsl as a Map (In Biztalk- am not sure how much that would help) to convert an Input.xml to Output.xml and trying to access values from sample.xml. And I am trying to access values of another xml file( so the usage of document function is needed).I have tried placing the xml and xsl files in the same folder, but havent been successful to extract the values.So I am not sure about any other indirect dependencies that may be causing the problem.A very basic doubt. How can I test my XSL code directly on the xml files. I havent ever tried that as I am using xslt for the first time. Could you suggest a link or so. Thanks
  6. Hi, Thanks for the reply. That did help me understand some important thumb rules.
  7. Hi, I am a bit new to xslt. I am trying to use the document function to parse through a xml and get node values for my xsl stylesheet. E.g. xmlsample.xml<? xml version="1.0" encoding="utf-8" ?><RootNode><Node1>value1</Node1><Node2>value2</Node2></RootNode> ********And in my xsl stylesheet I try to get the values ******<xsl:variable name="var1" select="document('sample.xml')/RootNode/Node1"/>....<OutputNode><xsl:value-of select="$var1"/></OutputNode>******But my output that I am getting: <OutputNode/>for the document function i even tried giving the path name: i.e. document('<Drive>:\Folder\sample.xml') - but I am not getting any output. I am not able to figure out where I am going wrong, If I need to place a file in some particular path . Please do let me know. Thanks in advance.
  8. Hi, I am new to XSLT.I am facing the need to access some registry key values using xslt ( withing xsl style sheets) and provide the values to the respective output nodes.I would like to know if it is possible and if so how to proceed. Thanks in advance
×
×
  • Create New...