Consuming web service with complex types



I've built a web service method which takes a few strings and a complex type
(I've included the relavent code below). I've added the web reference to my
biztalk project, and created the request and response messages in the
orchestration. I've dropped a construct message shape and put a message
assignment shape inside it. My problem is when I'm building the expression
I can set the string properties of the message, but not the promperties of
the complex type Patient.

My expression looks like this:

msgRequest.User = "testuser";
msgRequest.DocumentSource = "testsource";
msgRequest.PatientIdentity.Value = "testvalue"

The design time error occures on the last line of the expression at the word
Value. The error is "identifier 'Value' does not exist in
'msgRequest.PatientIdentity' are you missing an assembly reference?"

Why can I not access properties of that complex type?


Web method code is below:

[WebMethod]
public InteriorHealth.Schema.ResultValue UploadDocument(string User, string
DocumentSource, PatientIdentifier Patient)
{ ..}


[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.test.ca/Schema";)]
[System.Xml.Serialization.XmlRootAttribute("PatientIdentity",
Namespace="http://www.test.ca/Schema";, IsNullable=false)]
public class PatientIdentifier
{
[System.Xml.Serialization.XmlAttributeAttribute()]
public PatientIdentifierType Type;

[System.Xml.Serialization.XmlAttributeAttribute()]
public string Value;
}

[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.test.ca/Schema";)]
public enum PatientIdentifierType
{
PHN,
MRN,
}


.



Relevant Pages

  • Re: Populate userform listbox from data already in text ContentCon
    ... My users are now offered a list of patient names that changes when the ... Dim str1PtName As String ... assume that among all those CCs there are eight with titles Name1 ... and their contents are what you want in the listbox. ...
    (microsoft.public.word.vba.userforms)
  • Beg Class challenge for a returning student
    ... read Patient data from a user specified file, ... Patient(string fName, string lName, string idString, int bYear); ... void setFirstName; ...
    (comp.lang.cpp)
  • Re: Modify records
    ... Dim strValue as String ... >,with a combobox, which ... > with the option related on the selected patient. ... does this works also with option groups or only ...
    (microsoft.public.access.forms)
  • Re: Beg Class challenge for a returning student
    ... read Patient data from a user specified file, ... Prefer to use initialization lists: ... Patient::Patient(const string& fName, ... Although you may want to through an exception because ...
    (comp.lang.cpp)
  • RE: Problem returning container class with DataSet as object
    ... I simply return an XML formatted string instead of a dataset. ... > more complex class (which I have called 'ServiceResponse') in order to wrap ... > response, Stream outputStream, Object returnValue) ... > format a complex type such as a DataSet? ...
    (microsoft.public.dotnet.framework.webservices)