
SoapVar::__construct의 type 인자는 문자열, integer, double, boolean, array, object, nil, xsi:nil, xs:string, xs:boolean, xs:integer, xs:double, xs:date, xs:time, xs:dateTime, xs:duration, xs:QName, xs:NOTATION, xs:token, xs:normalizedString, xs:string, xs:language, xs:NMTOKEN, xs:NMTOKENS, xs:Name, xs:NCName, xs:ID, xs:IDREF, xs:IDREFS, xs:ENTITY, xs:ENTITIES, xs:base64Binary, xs:hexBinary, xs:gDay, xs:gMonth, xs:gMonthDay, xs:gYear, xs:gYearMonth, xs:gDayPrecision, xs:gMonthPrecision, xs:gYearPrecision, xs:gMonthDayPrecision, xs:gYearMonthPrecision, xs:gDayPrecision, xs:gMonthPrecision, xs:gYearPrecision, xs:gMonthDayPrecision, xs:gYearMonthPrecision으로 정의되어 있습니다.
String 타입의 인자가 들어가면 에러가 발생하는 이유는 SoapVar::__construct의 type 인자가 문자열 타입을 직접 받을 수 없기 때문입니다.
type 인자는 XML Schema Data Types 중 하나를 받기 때문에 String 타입의 인자가 들어가면 에러가 발생합니다.
예를 들어, SoapVar::__construct('xs:string', 'name', 'value')와 같이 사용할 수 있습니다.
2025-04-09 03:40