%ListOfDataTypes limited to 50 characters.
I am trying to use the %ListOfDataTypes functionality, but am hitting a limit of 50 characters for each entry, when being used in a Web Service. Is there a way to increase the number of characters that can be used in the %ListOfDataTypes through a web service?
Show the relevant part of your XSD.
That would be if the property was defined as:
But in this case it's %Collection.ListOfDataTypes and not %ListOfDataTypes, which can save strings of arbitrary length by default.
Simple test case:
Wild guess from the hip:
Your Data Type is a %String with default (MALXLEN=50)
Try instead %VarString or %XML.String
I think that Robert Cemper has provided the answer, but I am not sure how to apply it to coding.
The goal of this exercise is to send a routine from the ^ROUTINE global on one computer to the ^RTN global on another computer through a web service.
The following code is the web service code.
Then the following is the code that I am using to call the web service.
Thanks for the feedback!
& Happy New Year
the issue is here:
use instead
ELEMENTTYPE="%VarString",
%VarString inherits from %String all except pre-define MAXLEN=50
Thanks to Robert Cemper for the answer. However, I misunderstood that Robert was saying, but it fixed the issue.
My web service original was the following:
Method RtnReceive(RtnName As %String, RtnLines As %ListOfDataTypes) As %String [ WebMethod ]
At misunderstanding Robert's suggestion I changed the code to the following:
Method RtnReceive(RtnName As %String, RtnLines As %ListOfDataTypes(ELEMENTTYPE="%String", XMLITENAME=RtnLinesItem", XMLNAME="RtnLines")) As %String [ WebMethod ]
I had used the $Extract to limit the line length to 50 to avoid the error, and now with the change I have removed the length limit and all is working.
To see an example of how this is going to be used see the following website: www.bmirwin.com
The pages currently in this link are created on a local machine and SFTP'ed to the server using the Cache SFTP functionality. Now with the web service functionality, these files can be pushed through the web service without first creating files. This might work faster; that is the goal.
Social networks
InterSystems resources
Log in or sign up
Log in or create a new account to continue
Log in or sign up
Log in or create a new account to continue
Log in or sign up
Log in or create a new account to continue