c# - Mapping Mismatch when using Xml-RPC -
i using possible.wordpress.xmlrpcclient (https://github.com/markeverard/possible.wordpress.xmlrpcclient) try , pull custom wordpress post data blog.
i keep getting following exception when running code:
try { wordpressxmlrpcclient client = new wordpressxmlrpcclient(baseurl, username, password); postfilter filter = new postfilter(); filter.post_type = "job_listing"; // custom post type used wp job manager wordpress plugin var posts = client.getposts(filter); } catch(exception ex) { debug.writeline(ex.tostring()); } [0:] cookcomputing.xmlrpc.xmlrpctypemismatchexception: response contains struct value string expected (as type string) [response : array mapped type post[] : element 0 : struct mapped type post : member post_thumbnail mapped type string] @ cookcomputing.xmlrpc.xmlrpcdeserializer.mapstruct
does have suggestions on how can solve issue , or give me insight might happening.
Comments
Post a Comment