Note that there are some explanatory texts on larger screens.

plurals
  1. POComplex data type reponse gives Exception in WCF SOAP using KSOAP2 in Android
    primarykey
    data
    text
    <p>I am using KSOAP2 to consume WCF webservice but it is giving me some exception My request is as follows</p> <pre><code>03-06 12:13:27.500: D/RequestDump is :(29065): &lt;v:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:d="http://www.w3.org/2001/XMLSchema" xmlns:c="http://schemas.xmlsoap.org/soap/encoding/" xmlns:v="http://schemas.xmlsoap.org/soap/envelope/"&gt;&lt;v:Header /&gt;&lt;v:Body&gt;&lt;CreateNewUser xmlns="http://tempuri.org/" id="o0" c:root="1"&gt;&lt;adminUserName i:type="d:string"&gt;khurram@office365trial.com.au&lt;/adminUserName&gt;&lt;adminPassword i:type="d:string"&gt;friday@123&lt;/adminPassword&gt;&lt;user i:type="n0:User" xmlns:n0="http://tempuri.org/"&gt;&lt;AlternateEmailAddress i:type="d:string"&gt;bilal@gmail.com&lt;/AlternateEmailAddress&gt;&lt;ErrorMessage i:null="true" /&gt;&lt;FirstName i:type="d:string"&gt;bilal&lt;/FirstName&gt;&lt;ForcePasswordChange i:null="true" /&gt;&lt;IsLicensed i:null="true" /&gt;&lt;LastName i:type="d:string"&gt;nasir&lt;/LastName&gt;&lt;NewPassword i:null="true" /&gt;&lt;ObjectId i:null="true" /&gt;&lt;UserDisplayName i:null="true" /&gt;&lt;UserPrincipalName i:type="d:string"&gt;bilal&lt;/UserPrincipalName&gt;&lt;/user&gt;&lt;/CreateNewUser&gt;&lt;/v:Body&gt;&lt;/v:Envelope&gt; </code></pre> <p>and this gives me following response</p> <pre><code>03-06 12:13:27.505: D/ResponseDump is :(29065): &lt;s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&gt;&lt;s:Body&gt;&lt;s:Fault&gt;&lt;faultcode xmlns:a="http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher"&gt;a:DeserializationFailed&lt;/faultcode&gt;&lt;faultstring xml:lang="en-US"&gt;The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:user. The InnerException message was 'Error in line 1 position 485. Element 'http://tempuri.org/:user' contains data from a type that maps to the name 'http://tempuri.org/:User'. The deserializer has no knowledge of any type that maps to this name. Consider using a DataContractResolver or add the type corresponding to 'User' to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding it to the list of known types passed to DataContractSerializer.'. Please see InnerException for more details.&lt;/faultstring&gt;&lt;detail&gt;&lt;ExceptionDetail xmlns="http://schemas.datacontract.org/2004/07/System.ServiceModel" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"&gt;&lt;HelpLink i:nil="true"/&gt;&lt;InnerException&gt;&lt;HelpLink i:nil="true"/&gt;&lt;InnerException i:nil="true"/&gt;&lt;Message&gt;Error in line 1 position 485. Element 'http://tempuri.org/:user' contains data from a type that maps to the name 'http://tempuri.org/:User'. The deserializer has no knowledge of any type that maps to this name. Consider using a DataContractResolver or add the type corresponding to 'User' to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding it to the list of known types passed to DataContractSerializer.&lt;/Message&gt;&lt;StackTrace&gt; at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, Type declaredType, DataContract&amp;amp; dataContract)&amp;#xD; </code></pre> <p>any idea what's going on ???</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload