anup_daware
Member
Hi Group,
You might have found the Title a little strange ; well following is the problem description:
I want to form a SOAP xml request to a servlet, I have my Request xml template ready.
Now I have following options:
You might have found the Title a little strange ; well following is the problem description:
I want to form a SOAP xml request to a servlet, I have my Request xml template ready.
Now I have following options:
Following is the sample xml template which I will use:1. Load the xml template in an XmlDocument object and manipulate it.
2. Load the xml template in a StringBuilder object, manipulate it and then load it in XmlDocument.
3. Not using any template and creating the xml from scratch.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<MT_MaterialSearchRequest>
<!-- Customer Data -->
<CUSTOMER> CUSTOMER _PLACEHOLDER</CUSTOMER>
<SALES_ORG> SALES_ORG _ PLACEHOLDER </SALES_ORG>
<!-- Limit on the size of the search result -->
<DEFAULT_SORTING> DEFAULT_SORTING _PLACEHOLDER</DEFAULT_SORTING>
<!-- Material Data -->
<WIDTH> WIDTH _HOLDER</WIDTH>
<SERIE> SERIE _HOLDER</SERIE>
<!-- Material List -->
<VISIBILITY_ITEM_IN>
<ITEM> <!