List Info

Thread: RE: Running simple soap sample




RE: Running simple soap sample
user name
2007-11-06 16:29:53
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.serv
ices.s
tockquote.StockQuote/"
xmlns:tns="http://www.themindelectric.com/wsdl/net.xmethod
s.services.stockqu
ote.StockQuote/" xmlns:electric="http://www.them
indelectric.com/"
xmlns:soap="http://sc
hemas.xmlsoap.org/wsdl/soap/"
xmlnssd=&q
uot;http://www.w3.
org/2001/XMLSchema"
xmlns:soapenc="http:
//schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas
.xmlsoap.org/wsdl/"
xmlns="http://sch
emas.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.StockQuotePortTy
pe">
		<operation name="getQuote"
parameterOrder="symbol">
			<input message="tns:getQuoteRequest1" />

			<output message="tns:getQuoteResponse1"
/> 
		</operation>
	</portType>
	<binding
name="net.xmethods.services.stockquote.StockQuoteBindin
g"
type="tns:net.xmethods.services.stockquote.StockQuotePo
rtType">
		<soap:binding style="rpc"
transport="http://sch
emas.xmlsoap.org/soap/http" /> 
		<operation name="getQuote">
			<soap:operation
soapAction="urnmetho
ds-delayed-quotes#getQuote" /> 
			<input>
				<soap:body use="encoded"
namespace="urnmetho
ds-delayed-quotes"
encodingStyle="http:
//schemas.xmlsoap.org/soap/encoding/" /> 
			</input>
			<output>
				<soap:body use="encoded"
namespace="urnmetho
ds-delayed-quotes"
encodingStyle="http:
//schemas.xmlsoap.org/soap/encoding/" /> 
			</output>
		</operation>
	</binding>
	<service
name="net.xmethods.services.stockquote.StockQuoteServic
e">
		<documentation>net.xmethods.services.stockquote.Stoc
kQuote
web service</documentation> 
		<port
name="net.xmethods.services.stockquote.StockQuotePort&q
uot;
binding="tns:net.xmethods.services.stockquote.StockQuot
eBinding">
			<soap:address
location="http://66.28.98.1
21: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:aslomcs.indiana.edu] 
Sent: Saturday, 3 November 2007 10:11 AM
To: wsif-userws.apache.org
Subject: Re: Running simple soap sample

On 11/2/07, *Andrew Friebel* <andrewfreynolds.com.au 
<mailto:andrewfreynolds.com.au>> 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: wsif-user-unsubscribews.apache.org
For additional commands, e-mail: wsif-user-helpws.apache.org





------------------------------------------------------------
---------
To unsubscribe, e-mail: wsif-user-unsubscribews.apache.org
For additional commands, e-mail: wsif-user-helpws.apache.org


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )