Hi there,
I am trying to access an xml file on the local file system on the client machine. The IS is present on a remote server. getFile service may not work in this case. Is there another approach to access this file without moving it to the server?
Is you client ie. Developer connecting to that remote IS? or you are using IS server session local on your system? Other option is connect via FTP session to that remote IS and get the file.
Hi Pete,
In this case, you can do many ways:
A> First way:
1> Add node as the input of the service and select the service that you want to test.
2> From the Test menu, select Send XML File.
3> In the Select Test Mode dialog box, specify whether you want the service to run in Trace mode or Step mode and click OK.
4> In the Select File dialog box, select the local XML file that you want to submit to this service and click OK. Developer submits the file to the server, which parses it into a node object and passes it to selected service.
B> Second way:
Add a string named say inXML in the input of your service. Open the local XML file and copy the content and run the service and paste the content to the variable inXML. In this case disable the getFile step.
C> Third way:
Use the Load from file option while running your service but in this case you have to have your local XML in slightly format.
Appreciate ur help.
I have used the âsend xml fileâ option to get the xml file, that is converted into a node. However, I am unable to view the attributes in the âxml node viewâ option when I invoke the âqueryxmlnodeâ service. How do I view this node to query attributes?
Hi Pete,
Call the xmlNodeToDocument service and this will convert the node into the webMethods doc structure where you can view all the files in developer.
Hi Pete,
There was a typo in my earlier post.
âwhere you can view all the files in developer.â should be treated as âwhere you can view all the fields using Developer.â
If the âsend xml fileâ option to get the xml file,this option works for you (debug,testing purpose) which is converted into a node, as a first step for parsing the xml invoke
xmlNodeToDocument service (inputs set makeArrays=false,set documentTypeName(fully qualified name of the IS document that you are parsing the xml file) this gives output document(IDATA structure) further downstream do source to target mappings etcâŚor follow with your requirements.
Thanks again.
I am able to access the xml file when I copy it into a string variable and call the necessary services. I would also like to try this out by sending the file via http using pub.client:http service. I specified the url of the service to be invoked and the string that stores the xml file. However, I cannot view any variable containing the file in the target serviceâs pipeline. Am I missing out on something here?
Hi Pete,
Using the service pub.client:http you will be able to post the file from the IS server machine to other machine, not from your local machine to the IS server.
Hi RMG,
I have set the parameters as u suggested, but I still cannot see the node in the target service pipeline. Am I using the right service? as I am told earlier that I cannot use this service to transfer files from local machine to IS server.
Hi Pete,
In my earlier post I wrote:
âUsing the service pub.client:http you will be able to post the file from the IS server machine to other machine, not from your local machine to the IS server.â
The above post is based on the assumption that you only have Developer on your local machine and no IS. You have IS on a remote machine and you are trying to transfer a XML file from your local machine to the remote machine (with IS) using http.
Can you pls. confirm that this is the situation? If not, pls. write in detail what are you trying to do?