Closed
Bug 254897
Opened 20 years ago
Closed 20 years ago
SOAP encoding problem with complex structure and anyType
Categories
(Core Graveyard :: Web Services, defect)
Core Graveyard
Web Services
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 243904
People
(Reporter: chantepie, Assigned: chantepie)
References
Details
Attachments
(2 files)
3.86 KB,
patch
|
keeda
:
review+
|
Details | Diff | Splinter Review |
3.83 KB,
patch
|
keeda
:
review+
jst
:
superreview+
mkaply
:
approval1.7.5-
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7) Gecko/20040725 Firefox/0.9.1+ Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7) Gecko/20040725 Firefox/0.9.1+ When using SOAP with complex structure encoder does seem make proper SOAP response. Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: <enc:anyType> Expected Results: <ns1:myComplexType>
Assignee | ||
Comment 1•20 years ago
|
||
Assignee | ||
Comment 2•20 years ago
|
||
We may need to allow to provide JS SOAP encoder impl. so that complex js object would be encoded as user want
Comment 3•20 years ago
|
||
Great! This is something that I have seen also. I have been meaning to investigate. It's one of the biggest issues that we have with asmx services also. Thanks for doing this, I'll try to review and test this in the next few days. (In reply to comment #2) > We may need to allow to provide JS SOAP encoder impl. so that complex js object > would be encoded as user want Isn't this acutally possible if you just use the SOAP API? Its only the wsdlproxy stuff that doesn't expose that capability outside. No?
Assignee | ||
Comment 4•20 years ago
|
||
> Isn't this acutally possible if you just use the SOAP API? Its only the
> wsdlproxy stuff that doesn't expose that capability outside. No?
How would you do that ?
Assignee | ||
Updated•20 years ago
|
Attachment #155584 -
Flags: review?(keeda)
Comment 5•20 years ago
|
||
Comment on attachment 155584 [details] [diff] [review] Patch for the trunk I can't think of anything that this might break. But this stuff is very fragile so please test carefully before checkin. r=me if you fix the following nits. > nsresult rc; >- PRBool needType = PR_FALSE; >+ PRBool needType = PR_TRUE; Move declaration of needType below, closer to where it is first needed. [snip] > // find the base type and use the name of that as the element name. > ns = gSOAPStrings->kSOAPEncURI; > nsAutoString currentURI = ns; >- nsCOMPtr<nsISchemaType> currentType = aSchemaType; >+ nsCOMPtr<nsISchemaType> currentType = aSchemaType; Don't add unnecessary whitespace noise. >- rc = aEncoding->GetExternalSchemaURI(gSOAPStrings->kSOAPEncURI, ns); >+ >+ if (!typeNS.IsEmpty()) { >+ ns.Truncate(); >+ ns.SetIsVoid(true); >+ >+ rc = NS_OK; >+ } >+ else { >+ rc = aEncoding->GetExternalSchemaURI(gSOAPStrings->kSOAPEncURI, ns); >+ } SetIsVoid() is not needed as far as I can see. Get rid of it if its not doing anything useful. Truncate() is enough.
Attachment #155584 -
Flags: review?(keeda) → review+
Assignee | ||
Comment 6•20 years ago
|
||
Assignee | ||
Updated•20 years ago
|
Assignee: web-services → chantepie
Status: NEW → ASSIGNED
Assignee | ||
Updated•20 years ago
|
Attachment #158237 -
Flags: review?(keeda)
Updated•20 years ago
|
Attachment #158237 -
Flags: review?(keeda) → review+
Assignee | ||
Updated•20 years ago
|
Attachment #158237 -
Flags: superreview?(jst)
Comment 7•20 years ago
|
||
Comment on attachment 158237 [details] [diff] [review] Fixed patch [trunk] sr=jst
Attachment #158237 -
Flags: superreview?(jst) → superreview+
Assignee | ||
Updated•20 years ago
|
Attachment #158237 -
Flags: approval1.7.x?
Comment 8•20 years ago
|
||
Comment on attachment 158237 [details] [diff] [review] Fixed patch [trunk] This is a Gecko change that would cause a difference between 1.7 and Firefox.
Attachment #158237 -
Flags: approval1.7.x? → approval1.7.x-
Assignee | ||
Comment 9•20 years ago
|
||
*** This bug has been marked as a duplicate of 243904 ***
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Updated•7 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•