|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by MogalManic in Programming for ASP.NET, Miscellaneous Web Development, Web Services Description Language
The company developing a web service I am writing a client for has not yet released the test URL.
Instead they have supplied WSDL and sample Request/Response XML. I can create the proxy objects from the WSDL using WSDL.exe.
Is there an easy way to load the Response and/or the request XML samples into the proxy objects so I can write mock unit tests?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
|
<?xml version="1.0" encoding="utf-8"?> <!--Sample Request-->
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<EquipmentQuery_ExecuteQuery xmlns="http://crow.equinox.ca/">
<!-- Service.EquipmentQuery_ExecuteQuery parameters go here -->
</EquipmentQuery_ExecuteQuery>
</soap:Body>
</soap:Envelope>
<!-------------------------------------------------------------------------------------->
<!----------SampleResponse------------------------------------------------------>
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<EquipmentQuery_ExecuteQueryResponse xmlns="http://crow.equinox.ca/">
<EquipmentQuery_ExecuteQueryResult>
<rowsReturned>4</rowsReturned>
<returnedEquipment>
<ReturnedEquipment>
<!-- ReturnedEquipment properties-->
<!-- This is the stuff I wan to deserialize!!!! -->
</ReturnedEquipment>
<ReturnedEquipment>
<!-- ReturnedEquipment properties-->
<!-- This is the stuff I wan to deserialize!!!! -->
</ReturnedEquipment>
<ReturnedEquipment>
<!-- ReturnedEquipment properties-->
<!-- This is the stuff I wan to deserialize!!!! -->
</ReturnedEquipment>
<ReturnedEquipment>
<!-- ReturnedEquipment properties-->
<!-- This is the stuff I wan to deserialize!!!! -->
</ReturnedEquipment>
</returnedEquipment>
<errorCodes>
<ErrorCode>
<errorCode>0</errorCode>
<errorDescription>No Error</errorDescription>
</ErrorCode>
</errorCodes>
</EquipmentQuery_ExecuteQueryResult>
</EquipmentQuery_ExecuteQueryResponse>
</soap:Body>
</soap:Envelope>
|
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625