I want to have a service backed record populated from a web service call. Is the

I want to have a service backed record populated from a web service call. Is there a way to do that?
I am using an expression rule to invoke a web service (Using the Expression section in the record definition)-

webservicequery(
a!wsConfig(
wsdlUrl: "b2go.li/b2goapi.asmx
service: "{b2go.li/}b2goapiService",
port: "b2goapiServiceSoap",
operation: "{http://b2go.li/}CreateUrl"
),
{
CreateUrlSoapIn: {
real_url: ri!real_url
}
}
)

and then calling this rule from within my service backed record,-

=with(
local!employees: rule!MyPOC_SampleWSInvokerExpression(""),
a!dataSubset(
data: local!employees,

startIndex: 1,
batchSize: -1,
totalCount: count(local!employees)
)
)

However, it does not work. Is there any other way of doing this?
Thanks in advance.

OriginalPostID-146955

OriginalPostID-146955

  Discussion posts and replies are publicly visible

Parents
  • Thanks Tim. I modified the "Expression" in my service backed record-

    =with(
    local!employees: rule!MyPOC_SampleWSInvokerExpression("www.google.com"),
    a!dataSubset(
    data: local!employees,
    identifiers: local!employees.id,
    startIndex: 1,
    batchSize: -1,
    totalCount: count(local!employees)
    )
    )

    Also, attached the XSD of my CDT-
    However, in record view I am getting the error- "Could Not Retrieve MyPOC_SampleServiceBackedRecord
    An error occurred while retrieving the data for “MyPOC_SampleServiceBackedRecord”. (APNX-1-4205-003)"

    MyPOC_SampleWSRecord.xsd

Reply
  • Thanks Tim. I modified the "Expression" in my service backed record-

    =with(
    local!employees: rule!MyPOC_SampleWSInvokerExpression("www.google.com"),
    a!dataSubset(
    data: local!employees,
    identifiers: local!employees.id,
    startIndex: 1,
    batchSize: -1,
    totalCount: count(local!employees)
    )
    )

    Also, attached the XSD of my CDT-
    However, in record view I am getting the error- "Could Not Retrieve MyPOC_SampleServiceBackedRecord
    An error occurred while retrieving the data for “MyPOC_SampleServiceBackedRecord”. (APNX-1-4205-003)"

    MyPOC_SampleWSRecord.xsd

Children
No Data