Song
U can do this
but there may be something going wrong with the save
Look at the status code for the %Save
ClassMethod AddPatient(pInfo As IHIS.Patient) as %Status [ WebMethod ]
{
set sc=pInfo.%Save()
quit sc
}
this might give you a clue as to what is happening
Peter
On Thu, 17 Jun 2004 14:00:56 +0900, "InHyuk, Song"
<[EMAIL PROTECTED]> wrote:
>Hi all, Although I tried to solve in many ways, but I gave up. =)
>
>I cannot include Persistent type object as a parameter that I defined
>in the method of Web Service.
>
>first, For example, I defined a class that is named IHIS.Patient.
>It looks like this:
>
>Class IHIS.Patient Extends %Persistent [ ClassType = persistent,
>ProcedureBlock ]
>{
> // Patient Name
> Property PatName As %String;
>}
>
>and then, I created the Web Service that are named WSPatient and It has a
>AddPatient() method.
>
>ClassMethod AddPatient(pInfo As IHIS.Patient) [ WebMethod ]
>{
> D pInfo.%Save()
>
> Quit "OK"
>}
>
>That I want to do is, the method addpatient() receives IHIS.Patient object
>and then it saves object into the cache.
>
>However, cache cannot produce WSDL document because of the IHIS.Patient
>object
>that I give it to the parameter of webmethod.
>
>I think I'm wrong to define parameter in the method.
>How can I solve this problem?
>I want to pass my object through the cache. =|
>
>Please help me.
>Thanks =)
>
>
>- Song
>