Re: problems with WSDL Proxying
Doron Rosenberg <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
Could you post the request and response that is being generated (using say ethereal or some tcp/ip sniffer)? [email protected] wrote: > I've read the article on WSDL proxying at > http://web.archive.org/web/20031203040121/devedge.netscape.com/viewsource/2003/wsdl/01/ > and have successfully run a similar sample using the proxy with the > google web services api (on Mozilla 1.8b). I'm starting to run into > problems using it against my own WSDL though. > > The problem I'm having is identical to a previous posting here > (WSDL/SOAP and .NET?): > http://groups-beta.google.com/group/netscape.public.mozilla.xml/browse_thread/thread/8289cc542cdfb499/08aae14a8e707b5a?q=WSDL+.net+group:netscape.public.mozilla.*#08aae14a8e707b5a > > Here is my wsdl: > > <definitions > > targetNamespace="urn:myservice:stockQuoteService" > xmlns="http://schemas.xmlsoap.org/wsdl/" > xmlns:tns="urn:myservice:stockQuoteService" > xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" > > > <message name="response"> > <part name="quote" type="xsd:float"/> > </message> > <message name="request"> > <part name="symbol" type="xsd:string"/> > </message> > <portType name="StockQuotePT"> > <operation name="Quote"> > <input message="tns:request"/> > <output message="tns:response"/> > </operation> > </portType> > <binding name="StockQuotePTBinding" type="tns:StockQuotePT"> > <soap:binding style="rpc" > transport="http://schemas.xmlsoap.org/soap/http"/> > <operation name="Quote"> > <soap:operation style="rpc" soapAction="Quote"/> > <input> > > <soap:body use="literal" > namespace="urn:myservice:stockQuoteService"/> > </input> > <output> > <soap:body use="literal" > namespace="urn:myservice:stockQuoteService"/> > </output> > </operation> > </binding> > <service name="myservice"> > <port name="StockQuotePTPort" > binding="tns:StockQuotePTBinding"> > > <soap:address > location="http://localhost:9700/orabpel/default/myservice/1.0"/> > </port> > </service> > <plt:partnerLinkType name="StockQuoteSLT"> > <plt:role name="service"> > <plt:portType name="tns:StockQuotePT"/> > </plt:role> > </plt:partnerLinkType> > </definitions> > > the javascript mostly identical to that in the example, but here is > where i am having trouble: > > > function callService(value) > { > if (proxy) { > > netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead"); > > var request = new Object(); > request.symbol = 'SNE'; > proxy.Quote(request); <--- > > } > > proxy.Quote generates this error: > > Error: uncaught exception: [Exception... "Component returned failure > code: 0x80460001 (NS_ERROR_CANNOT_CONVERT_DATA) > [StockQuotePThttp_003a_002f_002flocalhost_003a9700_002forabpel_002fdefault_002fingenium_002fingenium_003fwsdlAsync.gimmeQuote]" > nsresult: "0x80460001 (NS_ERROR_CANNOT_CONVERT_DATA)" location: "JS > frame :: file:///C:/development/myWSDLProxy.html :: requestBooks :: > line 64" data: no] > > Any help on this would be greatly appreciated. >