[AWS] Problems following along with SOAP/WSDL example in user's guide

Pascal Obry pascal at obry.net
Thu Jul 27 18:39:33 CEST 2006


Jesse Lang a écrit :
> According to
> https://libre2.adacore.com/aws/aws-2.1a.html#Client-side-_0028stub_0029
> 
> 
> bash-3.00$ wsdl2aws -noskel
> http://www.xmethods.net/sd/2001/BNQuoteService.wsdl
> 
> Service BNQuoteService
>  Returns price of a book at BN.com given an ISBN number
> 
> Error in operation getPrice : Missing definition for namespace
> urn:xmethods-BNPriceCheck

Looks like a problem on the WSDL document. The urn:xmethods-BNPriceCheck
namespace is indeed not defined.

Solution:

1. download the WSDL
2. edit to add xmlns:ns1="urn:xmethods-BNPriceCheck" into definition tag
with others namespace definitions.

$ wsdl2aws BNQuoteService.wsdl

> Also, I notice that many WSDLs on xmethods.net do not work (especially
> services written in .NET or ColdFusion), but rather cause the wdsl2aws
> to exit with an error (exit code 1), but do not display an error.  The
> stubs created are started, but end at the beginning of the unit
> declaration, usually soon after

Either a problem like above or some unsupported WSDL construct. See the
documentation, there is some WSDL data type not supported like
multi-dimensional arrays.

These problems need to be analyzed one by one.

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|              http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595


More information about the AWS mailing list