Loading ...
Sorry, an error occurred while loading the content.

4920SOAP::Lite service - Trouble accepting "enumeration" types

Expand Messages
  • pfconrey
    Oct 10, 2005
      I have a SOAP::Lite service method that takes two parameters: a string
      and a custom-defined "Address" type. The address type has a member
      that is of type "ContactLocation", which is defined in the WSDL schema as:

      <xsd:simpleType name="ContactLocation">
      <xsd:restriction base="xsd:string">
      <xsd:enumeration value="NA" />
      <xsd:enumeration value="Home" />
      <xsd:enumeration value="Business" />
      <xsd:enumeration value="Travel" />

      When the client calls the service and passes in a valid address
      (namespace declarations and additional info removed for clarity):

      <Address xsi:type="tns:Address">
      <Type xsi:type="tns:ContactLocation">NA</Type>
      blah, blah, blah...

      I get the following error (again, namespace attributes removed to make
      it easier to read):

      Application failed during request deserialization:
      Unrecognized type 'ContactLocation'

      Where in the process can I look at the incoming soap request and
      customize the deserialization?
    • Show all 2 messages in this topic