Bill!!! it works! Thank you so much ^^. You are my hero =)
- Song "Bill McCormick" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > To project or accept as an argument an object that class must include > %XML.Adaptor class in its inheritance. That is where the XMLSchema() > method comes from. > > InHyuk, Song wrote: > > > Thanks, Peter. > > But contents of error is same. > > > > oh, I'll show the detail error message of WSDL document. > > If you got an idea, please let me know. > > > > Thanks ^^ > > > > - Song > > > > A run-time error occurred while executing the page > > > > Error: <METHOD DOES NOT EXIST>SCHEMAREFS+2^Service.WSPatient.AddPatient.1 > > ErrorNo: 5002 > > CSP Page: /csp/ihis/Service.WSPatient.CLS > > Namespace: IHIS > > Class: Service.WSPatient > > Routine: Service.WSPatient.AddPatient.1 > > Location: SCHEMAREFS+2 > > Line: If '$data(schema("IHIS.Patient")) Set sc = > > ##class(IHIS.Patient).XMLSchema("",fmt,namespacePrefix,input,0,.schema) > > Quit:('sc) sc > > > > > > > > "Peter Cooper" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > >>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 > >>> > >> > > > > > >
