Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Problem with adding SoapObject to SoapObject
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dawid Drozd  
View profile  
 More options Jan 12, 3:42 pm
From: Dawid Drozd <drozddawid....@gmail.com>
Date: Thu, 12 Jan 2012 12:42:51 -0800 (PST)
Local: Thurs, Jan 12 2012 3:42 pm
Subject: Problem with adding SoapObject to SoapObject
Hello

I have a litle bit problem with that:

In code:

SoapObject remoteComment = new SoapObject("http://
beans.soap.rpc.jira.atlassian.com",
                        "RemoteComment");
                SoapObject addComment = new SoapObject(connector.getNameSpace(),
                        "addComment");
                addComment.addProperty("token", connector.getToken());
                addComment.addProperty("issueKey", issueKey);
                // addComment.addProperty("remoteComment", comment);

                remoteComment.addProperty("author", comment.getAuthorName());
                remoteComment.addProperty("body", comment.getBody());
                remoteComment.addProperty("created", "2012-01-06T08:57:36.507Z");
                remoteComment.addProperty("groupLevel", null);
                remoteComment.addProperty("id", "-1");
                remoteComment.addProperty("roleLevel", null);
                remoteComment.addProperty("updateAuthor", comment.getAuthorName());
                remoteComment.addProperty("updated", "2012-01-06T08:57:36.507Z");

                addComment.addSoapObject(remoteComment);

i should get first token then issueKey then remoteComment object but
in envelope i get first remoteComment next  token next issueKey. I
must have this in right order my server expects it and i get error
response: org.xml.sax.SAXException: SimpleDeserializer encountered a
child element, which is NOT expected, in something it was trying to
deserialize.

Really thanks!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Oppenlander  
View profile   Translate to Translated (View Original)
 More options Jan 12, 6:32 pm
From: Andrew Oppenlander <andrew.oppenlan...@gmail.com>
Date: Thu, 12 Jan 2012 18:32:11 -0500
Local: Thurs, Jan 12 2012 6:32 pm
Subject: Re: [ksoap2-android] Problem with adding SoapObject to SoapObject

Currently SoapObjects are treated differently than properties, and are not
able to be ordered. SoapObjects are printed first, followed by properties.
For now you will have change your server code.

I will work on a fix for this, since it seems to keep on coming up.

On Thursday, January 12, 2012, Dawid Drozd <drozddawid....@gmail.com> wrote:
> Hello

> I have a litle bit problem with that:

> In code:

> SoapObject remoteComment = new SoapObject("http://
> beans.soap.rpc.jira.atlassian.com",
>                        "RemoteComment");
>                SoapObject addComment = new

SoapObject(connector.getNameSpace(),
>                        "addComment");
>                addComment.addProperty("token", connector.getToken());
>                addComment.addProperty("issueKey", issueKey);
>                // addComment.addProperty("remoteComment", comment);

>                remoteComment.addProperty("author",

comment.getAuthorName());
>                remoteComment.addProperty("body", comment.getBody());
>                remoteComment.addProperty("created",

"2012-01-06T08:57:36.507Z");
>                remoteComment.addProperty("groupLevel", null);
>                remoteComment.addProperty("id", "-1");
>                remoteComment.addProperty("roleLevel", null);
>                remoteComment.addProperty("updateAuthor",

comment.getAuthorName());
>                remoteComment.addProperty("updated",

"2012-01-06T08:57:36.507Z");

>                addComment.addSoapObject(remoteComment);

> i should get first token then issueKey then remoteComment object but
> in envelope i get first remoteComment next  token next issueKey. I
> must have this in right order my server expects it and i get error
> response: org.xml.sax.SAXException: SimpleDeserializer encountered a
> child element, which is NOT expected, in something it was trying to
> deserialize.

> Really thanks!

--
Andrew Oppenlander

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dawid Drozd  
View profile  
 More options Jan 12, 6:51 pm
From: Dawid Drozd <drozddawid....@gmail.com>
Date: Fri, 13 Jan 2012 00:51:41 +0100
Local: Thurs, Jan 12 2012 6:51 pm
Subject: Re: [ksoap2-android] Problem with adding SoapObject to SoapObject
Ok then i will try fix it too because i can't edit server code :) and
i must do it quick so i will try. If i do it good i will do pull
request.

Thanks again.

2012/1/13 Andrew Oppenlander <andrew.oppenlan...@gmail.com>:

--
Pozdrawiam
Dawid Drozd.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Oppenlander  
View profile  
 More options Jan 13, 1:21 am
From: Andrew Oppenlander <andrew.oppenlan...@gmail.com>
Date: Fri, 13 Jan 2012 01:21:50 -0500
Local: Fri, Jan 13 2012 1:21 am
Subject: Re: [ksoap2-android] Problem with adding SoapObject to SoapObject

I've completed the patch and sent a pull request. Some more testing should
probably be done to ensure that it's all working properly though.
Here is my git repo <https://github.com/Usagimaru57/ksoap2-android> and
here is a link to the assembly with
dependencies<https://github.com/downloads/Usagimaru57/ksoap2-android/ksoap2-androi...>
.

On Thu, Jan 12, 2012 at 6:51 PM, Dawid Drozd <drozddawid....@gmail.com>wrote:

--
Andrew Oppenlander

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Manfred Moser  
View profile  
 More options Jan 13, 1:05 pm
From: Manfred Moser <mosa...@gmail.com>
Date: Fri, 13 Jan 2012 10:05:40 -0800
Local: Fri, Jan 13 2012 1:05 pm
Subject: Re: [ksoap2-android] Problem with adding SoapObject to SoapObject

I will pull this in and cut a new release early next week..
On Jan 12, 2012 10:21 PM, "Andrew Oppenlander" <andrew.oppenlan...@gmail.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dawid Drozd  
View profile  
 More options Jan 13, 3:59 pm
From: Dawid Drozd <drozddawid....@gmail.com>
Date: Fri, 13 Jan 2012 21:59:53 +0100
Local: Fri, Jan 13 2012 3:59 pm
Subject: Re: [ksoap2-android] Problem with adding SoapObject to SoapObject
Sorry but i pull changes from you and they don't work i have exception:

: org.ksoap2.serialization.SoapObject
: java.lang.ClassCastException: org.ksoap2.serialization.SoapObject
:       at org.ksoap2.serialization.SoapObject.toString(SoapObject.java:518)
:       at java.lang.StringBuilder.append(StringBuilder.java:203)
:       at jira.For.Android.Connector.Connector.getResponseFromServer(Connector.java:8 2)

When i try to do this:

System.out.println("Tak wygląda to co chce wysłac: " + ENVELOPE.bodyOut);

Previously it works.

2012/1/13 Manfred Moser <mosa...@gmail.com>:

--
Pozdrawiam
Dawid Drozd.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Oppenlander  
View profile  
 More options Jan 13, 6:02 pm
From: Andrew Oppenlander <andrew.oppenlan...@gmail.com>
Date: Fri, 13 Jan 2012 18:02:13 -0500
Local: Fri, Jan 13 2012 6:02 pm
Subject: Re: [ksoap2-android] Problem with adding SoapObject to SoapObject

I probably broke SoapObject.toString. Can you make a test service call and
see if the out body is correct?

On Friday, January 13, 2012, Dawid Drozd <drozddawid....@gmail.com> wrote:
> Sorry but i pull changes from you and they don't work i have exception:

> : org.ksoap2.serialization.SoapObject
> : java.lang.ClassCastException: org.ksoap2.serialization.SoapObject
> :       at

org.ksoap2.serialization.SoapObject.toString(SoapObject.java:518)
> :       at java.lang.StringBuilder.append(StringBuilder.java:203)
> :       at

jira.For.Android.Connector.Connector.getResponseFromServer(Connector.java:8 2)

connector.getToken());

--
Andrew Oppenlander

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Oppenlander  
View profile   Translate to Translated (View Original)
 More options Jan 13, 11:50 pm
From: Andrew Oppenlander <andrew.oppenlan...@gmail.com>
Date: Fri, 13 Jan 2012 23:50:13 -0500
Local: Fri, Jan 13 2012 11:50 pm
Subject: Re: [ksoap2-android] Problem with adding SoapObject to SoapObject

I was right with my assumption. SoapObject.toString was trying to convert
all object in properties to PropertyInfo. It should all be working now.
Again here is my github <https://github.com/Usagimaru57/ksoap2-android>,
and here is the jar with
dependencies<https://github.com/downloads/Usagimaru57/ksoap2-android/ksoap2-androi...>
.

On Fri, Jan 13, 2012 at 6:02 PM, Andrew Oppenlander <

--
Andrew Oppenlander

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dawid Drozd  
View profile   Translate to Translated (View Original)
 More options Jan 14, 4:23 am
From: Dawid Drozd <drozddawid....@gmail.com>
Date: Sat, 14 Jan 2012 10:23:04 +0100
Local: Sat, Jan 14 2012 4:23 am
Subject: Re: [ksoap2-android] Problem with adding SoapObject to SoapObject
Yeah it works great work! Thanks a lot.

2012/1/14 Andrew Oppenlander <andrew.oppenlan...@gmail.com>:

--
Pozdrawiam
Dawid Drozd.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Manfred Moser  
View profile  
 More options Jan 16, 2:34 pm
From: Manfred Moser <mosa...@gmail.com>
Date: Mon, 16 Jan 2012 11:34:29 -0800
Local: Mon, Jan 16 2012 2:34 pm
Subject: Re: [ksoap2-android] Problem with adding SoapObject to SoapObject
I am cutting the release right now...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »