I am trying to use XML service xml.group.create.update to create a new group
in GN 2.10.2 version. I am using the administrator profile to create the
group and I get 403 Forbidden Issue as response.
The Sample code that I use is given below. Inspite of using admin profile I
get this. Can any one help me on this? Thanks.
PostMethod post = new PostMethod();
String user = "admin" + ":" + "admin";
byte encoding = Base64.encodeBase64(user.getBytes());
post.setRequestHeader(new Header("Authorization", "Basic " + new
String(encoding)));
post.setDoAuthentication( true );
I used the Service group.update instead of xml.group.create.update and also
removed the id node from the request XML to create a new group and it
worked. Thanks.
Udhaya
On Mon, Nov 18, 2013 at 5:57 PM, udhaya <udhay.forum@anonymised.com> wrote:
Hello,
I am trying to use XML service xml.group.create.update to create a new
group
in GN 2.10.2 version. I am using the administrator profile to create the
group and I get 403 Forbidden Issue as response.
The Sample code that I use is given below. Inspite of using admin profile I
get this. Can any one help me on this? Thanks.
PostMethod post = new PostMethod();
String user = "admin" + ":" + "admin";
byte encoding = Base64.encodeBase64(user.getBytes());
post.setRequestHeader(new Header("Authorization", "Basic "
+ new
String(encoding)));
post.setDoAuthentication( true );