Hello, I'm having a bit of trouble with a .NET webservice. I'm creating a webmethod called getItems which will accept and return the following data in a soap envelope from sql server. I'm just curious as to how to force the web service to return the soap data in the format following, currently the data is formatted differently. The methods and their functions will now be explained:
The getItems webmethod will return all publications added or edited between two dates. This must only return publications data.
4.1.1 Request
The proposed request method would have the following input parameters:
• Fromdate – UTC date format
• todate – UTC date format
• filter – publications
4.1.2 Response
The response would return the following in XML format for each publication wrapped in a <document> tag:
• Uniqueid – id from publications table
• title - publicationTitl e
• date – last edited date
• url – url for pdf
• area - Area of Expertise
• country – region
• pubdate - publishedDate
• type - ???
The soap document should contain the following in the soap response body:
<document>
<uniqueID>123 5</uniqueID>
<title>Anothe r Publication</title>
<date>946513000 </date>
<url>http://www.sjberwin.co m/clientpublicati ons/a1235.pdf</url>
<area>Real Estate</area>
<country>France </country>
<pubdate>946514 000</pubdate>
<type>Letter</type>
</document>
Any help would be much appreciated. Thank you.
The getItems webmethod will return all publications added or edited between two dates. This must only return publications data.
4.1.1 Request
The proposed request method would have the following input parameters:
• Fromdate – UTC date format
• todate – UTC date format
• filter – publications
4.1.2 Response
The response would return the following in XML format for each publication wrapped in a <document> tag:
• Uniqueid – id from publications table
• title - publicationTitl e
• date – last edited date
• url – url for pdf
• area - Area of Expertise
• country – region
• pubdate - publishedDate
• type - ???
The soap document should contain the following in the soap response body:
<document>
<uniqueID>123 5</uniqueID>
<title>Anothe r Publication</title>
<date>946513000 </date>
<url>http://www.sjberwin.co m/clientpublicati ons/a1235.pdf</url>
<area>Real Estate</area>
<country>France </country>
<pubdate>946514 000</pubdate>
<type>Letter</type>
</document>
Any help would be much appreciated. Thank you.
Comment