Closed Bug 195001 Opened 23 years ago Closed 22 years ago

Test case for IMPORT element of WSDL 1.1 doesn't work.

Categories

(Core :: XML, defect, P2)

x86
Windows XP
defect

Tracking

()

RESOLVED FIXED
mozilla1.4beta

People

(Reporter: nisheeth_mozilla, Assigned: harishd)

References

()

Details

I've put together a test case for the IMPORT element of WSDL at the above url. It currently doesn't work properly on Mozilla (we tested using Harish's debug build on his machine with his WSDL patches). We don't know yet where the problem lies - in Mozilla or in my WSDL. I'll debug this more closely later this week once Harish checks in his WSDL patches into Mozilla. If any of you WSDL experts can spot an error in the test case, please let me know. The main WSDL file (stockquoteservice.wsdl) imports one file (stockquote.wsdl) which, in turn, imports another (stockquote.xsd). Based on my limited knowledge of WSDL, it seems ok to me...
While Harish checks in his patches, I'm going to exercise my web service using SOAP::Lite's WSDL client. If it works, then we know that Mozilla's WSDL implementation is the culprit, not the test case...
Blocks: 190182
OK, so I've debugged my test case enough to get a reproducible crash in Mozilla that Harish has validated on his build as well. He is getting the same crash before the SOAP request is sent out on Amazon.com's web service. Top frames from the stack trace: _js_LookupProperty(JSContext * 0x031f2858, JSObject * 0x02cd7de8, long 10740080, JSObject * * 0x0012a87c, JSProperty * * 0x0012a870, const char * 0x00ef2c00, unsigned int 2478) line 2264 + 11 bytes js_GetProperty(JSContext * 0x031f2858, JSObject * 0x02cd7de8, long 10740080, long * 0x0012a8cc) line 2478 + 35 bytes nsXPCWrappedJSClass::CallQueryInterfaceOnJSObject(XPCCallContext & {...}, JSObject * 0x02cd7de8, const nsID & {...}) line 233 + 27 bytes nsXPCWrappedJSClass::DelegatedQueryInterface(nsXPCWrappedJSClass * const 0x02d8cc48, nsXPCWrappedJS * 0x03387238, const nsID & {...}, void * * 0x0012a9f0) line 585 + 25 bytes nsXPCWrappedJS::QueryInterface(nsXPCWrappedJS * const 0x03387238, const nsID & {...}, void * * 0x0012a9f0) line 93 nsQueryInterface::operator()(const nsID & {...}, void * * 0x0012a9f0) line 47 + 25 bytes nsCOMPtr<nsIDOMFocusListener>::assign_from_helper(const nsCOMPtr_helper & {...}, const nsID & {...}) line 988 + 18 bytes nsCOMPtr<nsIDOMFocusListener>::nsCOMPtr<nsIDOMFocusListener>(const nsQueryInterface & {...}) line 573 nsEventListenerManager::HandleEvent(nsEventListenerManager * const 0x02dbb948, nsIPresContext * 0x0357fde0, nsEvent * 0x0012e0ec, nsIDOMEvent * * 0x0012dae0, nsIDOMEventTarget * 0x034a6888, unsigned int 4, nsEventStatus * 0x0012e118) line 1711 nsXULElement::HandleDOMEvent(nsXULElement * const 0x02dbb8d0, nsIPresContext * 0x0357fde0, nsEvent * 0x0012e0ec, nsIDOMEvent * * 0x0012dae0, unsigned int 4, nsEventStatus * 0x0012e118) line 3336 nsXULElement::HandleDOMEvent(nsXULElement * const 0x02dbbaa0, nsIPresContext * 0x0357fde0, nsEvent * 0x0012e0ec, nsIDOMEvent * * 0x0012dae0, unsigned int 4, nsEventStatus * 0x0012e118) line 3316 nsXULElement::HandleDOMEvent(nsXULElement * const 0x02dbbb18, nsIPresContext * 0x0357fde0, nsEvent * 0x0012e0ec, nsIDOMEvent * * 0x0012dae0, unsigned int 4, nsEventStatus * 0x0012e118) line 3316 nsXULElement::HandleDOMEvent(nsXULElement * const 0x02f54450, nsIPresContext * 0x0357fde0, nsEvent * 0x0012e0ec, nsIDOMEvent * * 0x0012dae0, unsigned int 4, nsEventStatus * 0x0012e118) line 3316 nsXULElement::HandleDOMEvent(nsXULElement * const 0x03142af0, nsIPresContext * 0x0357fde0, nsEvent * 0x0012e0ec, nsIDOMEvent * * 0x0012dae0, unsigned int 4, nsEventStatus * 0x0012e118) line 3316 The interesting thing is that the SOAP request gets formulated properly and dumped to the console. Then, before it is actually sent out, we crash. To reproduce, go to http://h-10-169-98-226.nscp.aoltw.net:8080/ws/import.html, type a ticker symbol and hit "Get Stock Quote".
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → mozilla1.4beta
Harish and I have worked together on this and figured out some smaller bugs in WSDL as well as errors in the way I was using SOAP::Lite on the server. At this point, the IMPORT test case works. So, I am closing out this bug. Will file two separate bugs to track the smaller problems which are: 1) The name attribute isn't inherited from the <element> element in an XML schema. 2) When a float value, 50.55 is returned in the SOAP response, it gets converted to a JS value of 50.54999923706055. Some conversion problems in XPC probably.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
bug 199555 filed to track problem 1) in comment 3. bug 199556 filed to track problem 2) in comment 3.
You need to log in before you can comment on or make changes to this bug.