<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Paul,<br>
<br>
please see the <a
href="https://github.com/Evolveum/midpoint/commit/ebc6663a842afbb987155693074550f9c532ac87">latest
commit</a> for functioning web services server and clients. :-)<br>
<br>
Best regards,<br>
Pavol<br>
<br>
</div>
<blockquote cite="mid:5384B13F.3040205@evolveum.com" type="cite">Hello
Paul,
<br>
<br>
unfortunately, web services are currently broken. I'm working hard
on fixing that, running last tests before pushing the code. (It
was not a trivial change to made.)
<br>
<br>
Please give me a couple of hours. You'll find fully functional web
service clients - both Java and C# - in the git then.
<br>
<br>
Best regards,
<br>
Pavol
<br>
<br>
On 27. 5. 2014 14:34, Paul Heaney wrote:
<br>
<blockquote type="cite">Hi,
<br>
<br>
I'm trying to get the midPoint3 SOAP web services to work with
C# so i can update the AD password filter, though I've run into
a problem when attempting to work with the
model-client-sample-dotnet (all of this tetsing is being done
with the latest git).
<br>
<br>
Within the model sample I've updated the main method to
(following changes in the API), previously the objectType was of
type string though its now XmlQualifiedName
<br>
<br>
getObject getObject = new getObject();
<br>
getObject.objectType = new XmlQualifiedName(NS_C +
"#UserType");;
<br>
getObject.options = new SelectorQualifiedGetOptionType[0];
<br>
getObject.oid = ADMINISTRATOR_OID;
<br>
UserType obj = (UserType)modelPort.getObject(getObject).@object;
<br>
<br>
The outgoing SOAP response is:
<br>
<br>
<s:Envelope
xmlns:s=<a class="moz-txt-link-rfc2396E" href="http://schemas.xmlsoap.org/soap/envelope/">"http://schemas.xmlsoap.org/soap/envelope/"</a>><s:Header><wsse:Security
s:mustUnderstand="1"
xmlns:wsse=<a class="moz-txt-link-rfc2396E" href="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"</a>
xmlns:wsu=<a class="moz-txt-link-rfc2396E" href="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"</a>><wsse:UsernameToken
wsu:Id="UsernameToken-1"><wsse:Username>administrator</wsse:Username><wsse:Password
Type=<a class="moz-txt-link-rfc2396E" href="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest"</a>>IV9dhdsBBjdYKi4gM6xVkdDEPTw=</wsse:Password><wsse:Nonce
EncodingType=<a class="moz-txt-link-rfc2396E" href="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"</a>>KYlaNPS+V7NvMGcSY8Hg8khd3EWgbqwIG2hchjcgl6eHtO+OK0Edn+REbyAOVEX5pht2XizgU1guSVYg1UuXKg==</wsse:Nonce><wsu:Created>2014-05-27T12:19:22.1922+01:00</wsu:Created></wsse:UsernameToken></wsse:Security></s:Header><s:Body
xmlns:xsi=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a>
xmlns:xsd=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema">"http://www.w3.org/2001/XMLSchema"</a>><getObject
xmlns=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/model/model-3">"http://midpoint.evolveum.com/xml/ns/public/model/model-3"</a>>
<br>
<objectType
xmlns="">http_x003A__x002F__x002F_midpoint.evolveum.com_x002F_xml_x002F_ns_x002F_public_x002F_common_x002F_common-3_x0023_UserType</objectType><br>
<oid
xmlns="">00000000-0000-0000-0000-000000000002</oid><options
xmlns=""/></getObject></s:Body></s:Envelope>
<br>
<br>
<br>
Where the objectType is being encoded which midPoint doesn't
like throwing the following error:
<br>
<br>
<br>
Unsupported object type qname
{<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a>}http_x003A__x002F__x002F_midpoint.evolveum.com_x002F_xml_x002F_ns_x002F_public_x002F_common_x002F_common-3_x0023_UserType</faultstring><detail><ns17:fault
xmlns:xsi=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a>
xmlns:ns9=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/model/workflow/process-instance-state-3">"http://midpoint.evolveum.com/xml/ns/model/workflow/process-instance-state-3"</a>
xmlns:ns8=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/model/workflow/common-forms-3">"http://midpoint.evolveum.com/xml/ns/model/workflow/common-forms-3"</a>
xmlns:ns7=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3">"http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3"</a>
xmlns:ns6=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">"http://midpoint.evolveum.com/xml/ns/public/common/common-3"</a>
xmlns:ns5=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/model/model-3">"http://midpoint.evolveum.com/xml/ns/public/model/model-3"</a>
xmlns:ns4=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/common/api-types-3">"http://midpoint.evolveum.com/xml/ns/public/common/api-types-3"</a>
xmlns:ns3=<a class="moz-txt-link-rfc2396E" href="http://prism.evolveum.com/xml/ns/public/types-3">"http://prism.evolveum.com/xml/ns/public/types-3"</a>
xmlns:ns2=<a class="moz-txt-link-rfc2396E" href="http://prism.evolveum.com/xml/ns/public/query-3">"http://prism.evolveum.com/xml/ns/public/query-3"</a>
xmlns:ns17=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/common/fault-3">"http://midpoint.evolveum.com/xml/ns/public/common/fault-3"</a>
xmlns:ns16=<a class="moz-txt-link-rfc2396E" href="http://prism.evolveum.com/xml/ns/public/annotation-3">"http://prism.evolveum.com/xml/ns/public/annotation-3"</a>
xmlns:ns15=<a class="moz-txt-link-rfc2396E" href="http://prism.evolveum.com/xml/ns/public/types-3a">"http://prism.evolveum.com/xml/ns/public/types-3a"</a>
xmlns:ns14=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/connector-schema-3">"http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/connector-schema-3"</a>
xmlns:ns13=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2000/09/xmldsig#">"http://www.w3.org/2000/09/xmldsig#"</a>
xmlns:ns12=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/04/xmlenc#">"http://www.w3.org/2001/04/xmlenc#"</a>
xmlns:ns11=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/resource/capabilities-3">"http://midpoint.evolveum.com/xml/ns/public/resource/capabilities-3"</a>
xmlns:ns10=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/model/scripting-3">"http://midpoint.evolveum.com/xml/ns/public/model/scripting-3"</a>
xsi:type="ns17:IllegalArgumentFaultType"><message>Unsupported
object type qname
{<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a>}http_x003A__x002F__x002F_midpoint.evolveum.com_x002F_xml_x002F_ns_x002F_public_x002F_common_x002F_common-3_x0023_UserType</message><operationResult><ns6:operation>com.evolveum.midpoint.xml.ns._public.model.model_3.ModelPortType.getObject</ns6:operation><ns6:status>fatal_error</ns6:status><ns6:token>1000000000000000118</ns6:token><ns6:message>Unsupported
object type qname
{<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a>}http_x003A__x002F__x002F_midpoint.evolveum.com_x002F_xml_x002F_ns_x002F_public_x002F_common_x002F_common-3_x0023_UserType</ns6:message><ns6:details>java.lang.IllegalArgumentException:
Unsupported object type qname
{<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a>}http_x003A__x002F__x002F_midpoint.evolveum.com_x002F_xml_x002F_ns_x002F_public_x002F_common_x002F_common-3_x0023_UserType<br>
com.evolveum.midpoint.schema.constants.ObjectTypes.getObjectTypeFromTypeQName(ObjectTypes.java:176)
<br>
com.evolveum.midpoint.model.impl.ModelWebService.getObject(ModelWebService.java:141)
<br>
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
<br>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
<br>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
<br>
<br>
Does anyknow know how to either force c# from not encoding the
attribute or for midPoint to accept this?
<br>
<br>
Also I've noticed there is one reference to the namespace
<a class="moz-txt-link-freetext" href="http://prism.evolveum.com/xml/ns/public/types-3a">http://prism.evolveum.com/xml/ns/public/types-3a</a> should this be
types-3 ? This is in
infra/prism/src/main/java/com/evolveum/prism/xml/ns/_public/types_3/ObjectFactory.jav<br>
<br>
Cheers
<br>
Paul
<br>
<br>
_______________________________________________
<br>
midPoint-dev mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:midPoint-dev@lists.evolveum.com">midPoint-dev@lists.evolveum.com</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint-dev">http://lists.evolveum.com/mailman/listinfo/midpoint-dev</a>
<br>
</blockquote>
<br>
_______________________________________________
<br>
midPoint-dev mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:midPoint-dev@lists.evolveum.com">midPoint-dev@lists.evolveum.com</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint-dev">http://lists.evolveum.com/mailman/listinfo/midpoint-dev</a>
<br>
</blockquote>
<br>
</body>
</html>