On Tue, Oct 12, 2010 at 3:56 PM, Christian Nolte <[email protected]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> I have the same or a similar problem like
>
> http://mail-archives.apache.org/mod_mbox/tuscany-user/201004.mbox/%[email protected]%3e
>
> So I have a WSDL port specified like this:
>
> ...
> <wsdl:portType name="IEMailAddressService">
>    <wsdl:operation name="isReserved">
>      <wsdl:input message="tns:isReserved">
>    </wsdl:input>
>      <wsdl:output message="tns:isReservedResponse">
>    </wsdl:output>
>      <wsdl:fault name="AccessDeniedException"
> message="ns4:AccessDeniedException">
>    </wsdl:fault>
>    </wsdl:operation>
>  </wsdl:portType>
> ...
>
> Running wsimport on this WSDL gives me an error because it cannot
> resolve AccessDeniedException which lies in the tns: namespace and not
> ns4: which is generated by tuscany. The solution is to change the namespace
>
>  message="ns4:AccessDeniedException"
>
> to
>
>  message="tns:AccessDeniedException"
>
>
> Is there a way to specifiy the namespace for Exceptions, for example
> using annotations? Or another way to get the Exception into the correct
> namespace?
>
> Regards,
> Christian
>
> - --
> "He's a globe-trotting guerilla house-husband haunted by an iconic dead
>  American confidante She's a vivacious foul-mouthed vampire from a
>  different time and place. They fight crime!"
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAky0dx4ACgkQCNjA0nfhW7w/5QCfSc2BdKf9B/YULq8mMc4EJnxQ
> LDoAniQxGkYJLKyS1MoRovfoNwAB/gU3
> =k3nu
> -----END PGP SIGNATURE-----
>

Hi Christian

Is the WSDL snippet you provide generated by Tuscany? What version of
Tuscany are you running on?

Regards

Simon

-- 
Apache Tuscany committer: tuscany.apache.org
Co-author of a book about Tuscany and SCA: tuscanyinaction.com

Reply via email to