cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Claude Moissinac <moissi...@enst.fr>
Subject Re: Web service
Date Wed, 08 Sep 2004 17:22:24 GMT
Hello

Some more info

The following soap request work well outside cocoon, but all my attempt 
to map that request in the soap logicsheet fails
<SOAP-ENV:Envelope 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	<SOAP-ENV:Body>
		<m:getWeatherReport xmlns:m="capeconnect:GlobalWeather:GlobalWeather" 
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
			<code xsi:type="xsd:string">CYVR</code>
		</m:getWeatherReport>
	</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Is there someone which could help about the translation from a soap 
request to a soap logicsheet (a method, a link, a tutorial, ...)

Jean-Claude Moissinac

Jean-Claude Moissinac wrote:

> Hello
> 
> I'm trying to use the SOAP logicsheet
> I don't find documentation about it other than the sample.
> I'm trying to derive a test from the following sample
> http://...mycocoon.../samples/blocks/xsp/soap/temperature
> which is based on the following xsp
> <xsp:page
>   language="java"
>   xmlns:xsp="http://apache.org/xsp"
>   xmlns:xsp-request="http://apache.org/xsp/request/2.0"
>   xmlns:xscript="http://apache.org/xsp/xscript/1.0"
>   xmlns:soap="http://apache.org/xsp/soap/3.0"
>   >
> 
>   <page>
>       <soap:call          
> url="http://services.xmethods.net:80/soap/servlet/rpcrouter">
>         <ns1:getTemp xmlns:ns1="urn:xmethods-Temperature">
>           <soap:enc/>
>            <zipcode xsi_type="xsd:string">90210</zipcode>
>         </ns1:getTemp>
>       </soap:call>
>   </page>
> </xsp:page>
> I don't understand the semantic of <soap:enc/> and I don't find the 
> syntax and/or the semantic for the urn in 
> xmlns:ns1="urn:xmethods-Temperature"
> 
> for the capascience weather service 
> (http://www.capescience.com/webservices/globalweather/index.shtml, SOAP 
> technical details in the bottom of the page), I derive from above to
> 
> <xsp:page
>   language="java"
>   xmlns:xsp="http://apache.org/xsp"
>   xmlns:xsp-request="http://apache.org/xsp/request/2.0"
>   xmlns:xscript="http://apache.org/xsp/xscript/1.0"
>   xmlns:soap="http://apache.org/xsp/soap/3.0"
>   >
> 
>   <page>
>       <soap:call url="http://live.capescience.com:80/ccx/GlobalWeather">
>         <ns1:getWeatherReport xmlns:ns1="urn:capeconnect">
>           <soap:enc/>
>             <code xsi_type="xsd:string">CYVR</code>
>         </ns1:getWeatherReport>
>       </soap:call>
>     </page>
> </xsp:page>
> 
> The urn seems to be always false whatever I try.
> 


-- 
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: moissinac@enst.fr
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message