Batista
Executive Member
- Joined
- Sep 2, 2011
- Messages
- 7,906
- Reaction score
- 266
Hi guys
A quick one here.Im not so familiar in webservices but i have written one and its working correctly and its returning the data like so in an XML format (Note - I have removed closing tags for readability):
-The elements in the datatable (columns) - followed by the recordset.
I need to get it into this format- from http://www.w3schools.com/webservices/ws_soap_example.asp
How do i do this?Surely its not a manual thing?
Thanks
A quick one here.Im not so familiar in webservices but i have written one and its working correctly and its returning the data like so in an XML format (Note - I have removed closing tags for readability):
-The elements in the datatable (columns) - followed by the recordset.
Code:
<DataTable>
<xs:schema id="NewDataSet"><xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:MainDataTable="Results" msdata:UseCurrentLocale="true"><xs:complexType><xs:choice minOccurs="0" maxOccurs="unbounded"><xs:element name="Results"><xs:complexType><xs:sequence><xs:element name="STATUS" type="xs:string" minOccurs="0"/>
</xs:sequence></xs:complexType></xs:element></xs:choice></xs:complexType></xs:element></xs:schema><diffgr:diffgram><DocumentElement><Results diffgr:id="Results1" msdata:rowOrder="0"><STATUS>Active</STATUS>
</DataTable>
I need to get it into this format- from http://www.w3schools.com/webservices/ws_soap_example.asp
Code:
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: nnn
<?xml version="1.0"?>
<soap:Envelope
xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">
<soap:Body xmlns:m="http://www.example.org/stock">
[B]MY RESULTS GO HERE NOW!![/B]
</soap:Body>
</soap:Envelope>
How do i do this?Surely its not a manual thing?
Thanks