RE: Running simple soap sample

"Andrew Friebel" <andrewf-+dKjvwzIeH00n/[email protected]> Wed, 7 Nov 2007 09:29:53 +1100
Newsgroups gmane.comp.apache.webservices.wsif.user
Message-ID <[email protected]>
Alek,
	Cheers.  I am running the sample that I downloaded through the web
site.  There does not appear to be a service/endpoint/port tag, but there is
a service/port tag.  For convenience, I have posted the WSDL below:

<?xml version="1.0" encoding="UTF-8" ?> 
<definitions name="net.xmethods.services.stockquote.StockQuote"
targetNamespace="http://www.themindelectric.com/wsdl/net.xmethods.services.s
tockquote.StockQuote/"
xmlns:tns="http://www.themindelectric.com/wsdl/net.xmethods.services.stockqu
ote.StockQuote/" xmlns:electric="http://www.themindelectric.com/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns="http://schemas.xmlsoap.org/wsdl/">
	<message name="getQuoteResponse1">
		<part name="Result" type="xsd:float" /> 
	</message>
	<message name="getQuoteRequest1">
		<part name="symbol" type="xsd:string" /> 
	</message>
	<portType
name="net.xmethods.services.stockquote.StockQuotePortType">
		<operation name="getQuote" parameterOrder="symbol">
			<input message="tns:getQuoteRequest1" /> 
			<output message="tns:getQuoteResponse1" /> 
		</operation>
	</portType>
	<binding name="net.xmethods.services.stockquote.StockQuoteBinding"
type="tns:net.xmethods.services.stockquote.StockQuotePortType">
		<soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http" /> 
		<operation name="getQuote">
			<soap:operation
soapAction="urn:xmethods-delayed-quotes#getQuote" /> 
			<input>
				<soap:body use="encoded"
namespace="urn:xmethods-delayed-quotes"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> 
			</input>
			<output>
				<soap:body use="encoded"
namespace="urn:xmethods-delayed-quotes"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> 
			</output>
		</operation>
	</binding>
	<service name="net.xmethods.services.stockquote.StockQuoteService">
		<documentation>net.xmethods.services.stockquote.StockQuote
web service</documentation> 
		<port name="net.xmethods.services.stockquote.StockQuotePort"
binding="tns:net.xmethods.services.stockquote.StockQuoteBinding">
			<soap:address
location="http://66.28.98.121:9090/soap" /> 
		</port>
	</service>
</definitions>

Given that this is supposed to be a working example from WSIF, I would
expect that this is correct.

Regards,
Andrew

-----Original Message-----
From: Aleksander Slominski [mailto:[email protected]] 
Sent: Saturday, 3 November 2007 10:11 AM
To: [email protected]
Subject: Re: Running simple soap sample

On 11/2/07, *Andrew Friebel* <andrewf-+dKjvwzIeH00n/[email protected] 
<mailto:andrewf-+dKjvwzIeH00n/[email protected]>> wrote:

    Hi,Reading WSDL document from 'simplesoap/StockquoteSOAP.wsdl'

...
 

    I do not understand why it can't find an available port.  Is there
    something that I have not done?

 
make sure your WSDL has service/endpoint/port and you use the same porta 
name in your code.
 
if it idopes nto help please post exactly what WSDL are you using.
 
best,
 
Alek

-- 
The best way to predict the future is to invent it - Alan Kay


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]