Hi!
The webservice I've build returns XML by default, I added my own XML nodes which I need to query in a different application (Nintex). I do that with Xpath. But I can't seem to get the result I want...
public class Service1 : System.Web.Services.WebService
{
public struct aduser
{
public String result;
public String username;
public String email;
public String password;
}
[WebMethod]
public aduser CreateADUser(string domain, ...
...
...
...
user.result = "Succes";
user.username = loginName;
user.email = emailAddress;
user.password = password;
return user;
}
The result I get is
<xml>
<result xmlns="http://dev01/">Succes</result>
<username xmlns="http://dev01/">test0101</username>
<email xmlns="http://dev01/">[email protected]</email>
<password xmlns="http://dev01/">somepassword</password>
</xml>
so when I try to extract for example the result value by doing /xml/result It does not work, I can't read out the value or do debugging because Nintex won't let me... I've tried a lot of different xpath queries but none give the result I want, any idea what I'm doing wrong?
This is probably a rookieproblem but I'm really stuck here :-(