You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Elizabeth DeLouise <ed...@gmail.com> on 2006/07/31 19:50:51 UTC
Can't do multiple import.sdo's
A problem I came across (not sure if it's on my end or Tuscany's), was that
I could not have more than one <import.sdo wsdlLocation="..."> tag in my
sca.module file. If <import.sdo> is used more than once, only the first
wsdl specified is used to register sdo types. The hack I came up with is to
copy-paste the type definitions from one wsdl into another, and declare them
like this:
<module>
<import.sdo wsdlLocation="File1.wsdl" />
<import.wsdl wsdlLocation="File2.wsdl" />
<import.wsdl wsdlLocation="File1.wsdl" />
</module>
File1 contains type definitions from both File1 and File2. Both files must
still be imported using import.wsdl for this to work, and using
import.wsdlmore than once IS successful.
Big Bank appears to use 2 import.wsdl tags, as well as
<import.sdo factory="com.bigbank.account.AccountFactory" />
<import.sdo factory="net.x.webservice.WebserviceFactory" />
I'm not sure if this gets around the problem of registering SDO types or
not. Does anyone have any thoughts on why import.sdo can only be used once?
Re: Can't do multiple import.sdo's
Posted by kelvin goodson <ke...@thegoodsons.org.uk>.
Hi Elizabeth,
can you send me your schema files please
Thanks, Kelvin.
On 02/08/06, Elizabeth Delouise <ed...@us.ibm.com> wrote:
>
> Ok so when trying to set up the simple test case, I realized that
> import.sdo was not the problem after all. You can in fact have multiple
> import.sdo tags, but only if the WSDL's you are specifying have different
> namespaces. My problem now is that I am trying to access 2 external web
> services, both from www.webserviceX.NET, and they both use that URL as
> their namespace. I have tried changing the namespaces to make them unique
> but then I run into problems connecting to the external service, located
> at
> that URL. Does anyone know a way to get around this?
> --
> Elizabeth DeLouise
> edelouise@us.ibm.com
>
>
>
>
> "kelvin goodson"
> <kelvin@thegoodso
> ns.org.uk> To
> Sent by: tuscany-dev@ws.apache.org
> kelvingoodson@gma cc
> il.com
> Subject
> Re: Can't do multiple import.sdo's
> 08/01/2006 05:29
> AM
>
>
> Please respond to
> tuscany-dev@ws.ap
> ache.org
>
>
>
>
>
>
> Hi Elizabeth,
> do you have a test case for this and I'll take a look.
> Regards, Kelvin.
>
> On 31/07/06, Elizabeth DeLouise <ed...@gmail.com> wrote:
> >
> > A problem I came across (not sure if it's on my end or Tuscany's), was
> > that
> > I could not have more than one <import.sdo wsdlLocation="..."> tag in my
> > sca.module file. If <import.sdo> is used more than once, only the first
> > wsdl specified is used to register sdo types. The hack I came up with
> is
> > to
> > copy-paste the type definitions from one wsdl into another, and declare
> > them
> > like this:
> >
> > <module>
> > <import.sdo wsdlLocation="File1.wsdl" />
> > <import.wsdl wsdlLocation="File2.wsdl" />
> > <import.wsdl wsdlLocation="File1.wsdl" />
> > </module>
> >
> > File1 contains type definitions from both File1 and File2. Both files
> > must
> > still be imported using import.wsdl for this to work, and using
> > import.wsdlmore than once IS successful.
> >
> > Big Bank appears to use 2 import.wsdl tags, as well as
> > <import.sdo factory="com.bigbank.account.AccountFactory" />
> > <import.sdo factory="net.x.webservice.WebserviceFactory" />
> >
> > I'm not sure if this gets around the problem of registering SDO types or
> > not. Does anyone have any thoughts on why import.sdo can only be used
> > once?
> >
> >
>
>
> --
> Best Regards
> Kelvin Goodson
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>
--
Best Regards
Kelvin Goodson
Re: Can't do multiple import.sdo's
Posted by Elizabeth Delouise <ed...@us.ibm.com>.
Ok so when trying to set up the simple test case, I realized that
import.sdo was not the problem after all. You can in fact have multiple
import.sdo tags, but only if the WSDL's you are specifying have different
namespaces. My problem now is that I am trying to access 2 external web
services, both from www.webserviceX.NET, and they both use that URL as
their namespace. I have tried changing the namespaces to make them unique
but then I run into problems connecting to the external service, located at
that URL. Does anyone know a way to get around this?
--
Elizabeth DeLouise
edelouise@us.ibm.com
"kelvin goodson"
<kelvin@thegoodso
ns.org.uk> To
Sent by: tuscany-dev@ws.apache.org
kelvingoodson@gma cc
il.com
Subject
Re: Can't do multiple import.sdo's
08/01/2006 05:29
AM
Please respond to
tuscany-dev@ws.ap
ache.org
Hi Elizabeth,
do you have a test case for this and I'll take a look.
Regards, Kelvin.
On 31/07/06, Elizabeth DeLouise <ed...@gmail.com> wrote:
>
> A problem I came across (not sure if it's on my end or Tuscany's), was
> that
> I could not have more than one <import.sdo wsdlLocation="..."> tag in my
> sca.module file. If <import.sdo> is used more than once, only the first
> wsdl specified is used to register sdo types. The hack I came up with is
> to
> copy-paste the type definitions from one wsdl into another, and declare
> them
> like this:
>
> <module>
> <import.sdo wsdlLocation="File1.wsdl" />
> <import.wsdl wsdlLocation="File2.wsdl" />
> <import.wsdl wsdlLocation="File1.wsdl" />
> </module>
>
> File1 contains type definitions from both File1 and File2. Both files
> must
> still be imported using import.wsdl for this to work, and using
> import.wsdlmore than once IS successful.
>
> Big Bank appears to use 2 import.wsdl tags, as well as
> <import.sdo factory="com.bigbank.account.AccountFactory" />
> <import.sdo factory="net.x.webservice.WebserviceFactory" />
>
> I'm not sure if this gets around the problem of registering SDO types or
> not. Does anyone have any thoughts on why import.sdo can only be used
> once?
>
>
--
Best Regards
Kelvin Goodson
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: Can't do multiple import.sdo's
Posted by kelvin goodson <ke...@thegoodsons.org.uk>.
Hi Elizabeth,
do you have a test case for this and I'll take a look.
Regards, Kelvin.
On 31/07/06, Elizabeth DeLouise <ed...@gmail.com> wrote:
>
> A problem I came across (not sure if it's on my end or Tuscany's), was
> that
> I could not have more than one <import.sdo wsdlLocation="..."> tag in my
> sca.module file. If <import.sdo> is used more than once, only the first
> wsdl specified is used to register sdo types. The hack I came up with is
> to
> copy-paste the type definitions from one wsdl into another, and declare
> them
> like this:
>
> <module>
> <import.sdo wsdlLocation="File1.wsdl" />
> <import.wsdl wsdlLocation="File2.wsdl" />
> <import.wsdl wsdlLocation="File1.wsdl" />
> </module>
>
> File1 contains type definitions from both File1 and File2. Both files
> must
> still be imported using import.wsdl for this to work, and using
> import.wsdlmore than once IS successful.
>
> Big Bank appears to use 2 import.wsdl tags, as well as
> <import.sdo factory="com.bigbank.account.AccountFactory" />
> <import.sdo factory="net.x.webservice.WebserviceFactory" />
>
> I'm not sure if this gets around the problem of registering SDO types or
> not. Does anyone have any thoughts on why import.sdo can only be used
> once?
>
>
--
Best Regards
Kelvin Goodson