I'm trying to consume this SOAP with a .NET Web Application using Visual Studio.
My question is, if my wsdl describes only two methods; 'processMessage
' and 'processOCIMessage
'. And the message they expect is a string that fits one of 30 something xsd schemas, what's the best way to consume the API?
For example, if I wanted to get some user information. I need to write a string that fits this schema:
<xs:complexType name="UserGetRequest19">
<xs:annotation>
<xs:documentation>
Request to get the user information. The response is either
UserGetResponse19 or ErrorResponse.
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="core:OCIRequest">
<xs:sequence>
<xs:element name="userId" type="UserId"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
I know how to pass in simple parameters as described in the answer to this question. But how do I do that with Schemas?
Are there tools in Visual Studio that will turn these into user friendly C# classes/models? Or do I need to manually type out XML strings, escape the special characters and pass it in as parameter to 'processMessage
'?