This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Mozilla XML > April 2005 > problems with WSDL Proxying





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author problems with WSDL Proxying
jsleeuw@gmail.com

2005-04-04, 12:35 pm

I've read the article on WSDL proxying at
http://web.archive.org/web/20031203...e/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...8aae14a8e707b5a

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.

Doron Rosenberg

2005-04-04, 12:35 pm

Could you post the request and response that is being generated (using
say ethereal or some tcp/ip sniffer)?

jsleeuw@XXXXXXXXXX wrote:
> I've read the article on WSDL proxying at
> http://web.archive.org/web/20031203...e/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...8aae14a8e707b5a
>
> 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.
>

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews