Thanks for the info Symon. That's great to hear. So, are you just using standard ASP.NET Web Services, or, are you using WCF or WSE?
Is there much to switching from document to RPC encoding? As I mentioned, I've yet to get that to work. Basically, what I've done so far is add a,
Code:
[SoapRpcService]
at the top of my Web service class and comment out,
Code:
//[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
When I view the WSDL file, I can see that it looks like it is using RPC. i.e. I can see stuff like the following.
Code:
- <wsdl:binding name="WebServiceSoap" type="tns:WebServiceSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc" />
- <wsdl:operation name="Ping">
<soap:operation soapAction="http://at.uchicago.edu/Reservations/Ping" style="rpc" />
- <wsdl:input>
<soap:body use="encoded" namespace="http://mynamespace" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</wsdl:input>
- <wsdl:output>
<soap:body use="encoded" namespace="http://mynamespace" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</wsdl:output>
</wsdl:operation>
But, if I try to execute a method that returns an object that has a circular reference I still get the following exception which is the same thing that I get using document encoding.
Code:
System.InvalidOperationException: There was an error generating the XML document. ---> System.InvalidOperationException: A circular reference was detected while serializing an object of type Reservations.Persistence.Entity.Reservation.
I'm pretty new to Web services. I'm guessing I'm just doing something stupid. Any ideas?