Dynamic endpoints

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Dynamic endpoints

Jacques-Alexandre Gerber
Hi,

Is there a way I can dynamically provide the endpoint to invoke a web
service with the delegation processor?
By this I mean that I would like to avoid hard-coding the host name and
port number and use a reference/variable.
Is this possible and if so how? If not, any workaround?

Thanks,

JAG



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Dynamic endpoints

Alessandro  Vernet
Administrator
Hi Jacques-Alexandre,

You provide the description of the endpoint or web service you want to
call to the delegation processor through the "interface" input. That
document can be dynamically generated with XSLT based on the XForms
instance, or any other dynamic parameter you might have. Would using
XSLT work for your use case?

http://www.orbeon.com/ops/doc/processors-delegation

Alex

On 3/27/06, Jacques-Alexandre Gerber <[hidden email]> wrote:

> Hi,
>
> Is there a way I can dynamically provide the endpoint to invoke a web
> service with the delegation processor?
> By this I mean that I would like to avoid hard-coding the host name and
> port number and use a reference/variable.
> Is this possible and if so how? If not, any workaround?
>
> Thanks,
>
> JAG
>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>

--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

RE: Dynamic endpoints

Jacques-Alexandre Gerber
In reply to this post by Jacques-Alexandre Gerber
This should work, assuming that I can access from XSL an external
variable or file where the actual endpoint is defined. The endpoint is
not dynamic in the sense that it is defined in the form instance, but it
is defined in an external configuration file. I have multiple .xpl files
that need to reuse the same endpoint base, basically. I'd like to define
the base endpoint once and for all in some config file, and dynamically
construct the endpoint by reusing this.

Maybe there is another processor I should first use to parse an external
XML file, and then use the XSLT processor to create the "interface"
input with the right endpoint, before I give it to the delegation
processor?

JAG

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of
Alessandro Vernet
Sent: Monday, March 27, 2006 5:56 PM
To: [hidden email]
Subject: Re: [ops-users] Dynamic endpoints

Hi Jacques-Alexandre,

You provide the description of the endpoint or web service you want to
call to the delegation processor through the "interface" input. That
document can be dynamically generated with XSLT based on the XForms
instance, or any other dynamic parameter you might have. Would using
XSLT work for your use case?

http://www.orbeon.com/ops/doc/processors-delegation

Alex

On 3/27/06, Jacques-Alexandre Gerber <[hidden email]> wrote:

> Hi,
>
> Is there a way I can dynamically provide the endpoint to invoke a web
> service with the delegation processor?
> By this I mean that I would like to avoid hard-coding the host name
> and port number and use a reference/variable.
> Is this possible and if so how? If not, any workaround?
>
> Thanks,
>
> JAG
>
>
>
>
> --
> You receive this message as a subscriber of the
[hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page:
> http://www.objectweb.org/wws
>
>
>


--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Dynamic endpoints

Alessandro  Vernet
Administrator
If you can put the XML file with the definition of the web service to
call with other resources, then you can just reference it from XPL,
whenever you call the delegation processor:

<p:input name="instance" href="/config/my-webservice.xml"/>

Alex

On 3/27/06, Jacques-Alexandre Gerber <[hidden email]> wrote:

> This should work, assuming that I can access from XSL an external
> variable or file where the actual endpoint is defined. The endpoint is
> not dynamic in the sense that it is defined in the form instance, but it
> is defined in an external configuration file. I have multiple .xpl files
> that need to reuse the same endpoint base, basically. I'd like to define
> the base endpoint once and for all in some config file, and dynamically
> construct the endpoint by reusing this.
>
> Maybe there is another processor I should first use to parse an external
> XML file, and then use the XSLT processor to create the "interface"
> input with the right endpoint, before I give it to the delegation
> processor?
>
> JAG
>
> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On Behalf Of
> Alessandro Vernet
> Sent: Monday, March 27, 2006 5:56 PM
> To: [hidden email]
> Subject: Re: [ops-users] Dynamic endpoints
>
> Hi Jacques-Alexandre,
>
> You provide the description of the endpoint or web service you want to
> call to the delegation processor through the "interface" input. That
> document can be dynamically generated with XSLT based on the XForms
> instance, or any other dynamic parameter you might have. Would using
> XSLT work for your use case?
>
> http://www.orbeon.com/ops/doc/processors-delegation
>
> Alex
>
> On 3/27/06, Jacques-Alexandre Gerber <[hidden email]> wrote:
> > Hi,
> >
> > Is there a way I can dynamically provide the endpoint to invoke a web
> > service with the delegation processor?
> > By this I mean that I would like to avoid hard-coding the host name
> > and port number and use a reference/variable.
> > Is this possible and if so how? If not, any workaround?
> >
> > Thanks,
> >
> > JAG
> >
> >
> >
> >
> > --
> > You receive this message as a subscriber of the
> [hidden email] mailing list.
> > To unsubscribe: mailto:[hidden email]
> > For general help: mailto:[hidden email]?subject=help
> > ObjectWeb mailing lists service home page:
> > http://www.objectweb.org/wws
> >
> >
> >
>
>
> --
> Blog (XML, Web apps, Open Source):
> http://www.orbeon.com/blog/
>
>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>

--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

RE: Dynamic endpoints

Jacques-Alexandre Gerber
In reply to this post by Jacques-Alexandre Gerber
Got it. Thanks, I will try this. It sounds like it should work.

Thanks again,

JAG

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of
Alessandro Vernet
Sent: Monday, March 27, 2006 6:28 PM
To: [hidden email]
Subject: Re: [ops-users] Dynamic endpoints

If you can put the XML file with the definition of the web service to
call with other resources, then you can just reference it from XPL,
whenever you call the delegation processor:

<p:input name="instance" href="/config/my-webservice.xml"/>

Alex

On 3/27/06, Jacques-Alexandre Gerber <[hidden email]> wrote:
> This should work, assuming that I can access from XSL an external
> variable or file where the actual endpoint is defined. The endpoint is

> not dynamic in the sense that it is defined in the form instance, but
> it is defined in an external configuration file. I have multiple .xpl
> files that need to reuse the same endpoint base, basically. I'd like
> to define the base endpoint once and for all in some config file, and
> dynamically construct the endpoint by reusing this.
>
> Maybe there is another processor I should first use to parse an
> external XML file, and then use the XSLT processor to create the
"interface"

> input with the right endpoint, before I give it to the delegation
> processor?
>
> JAG
>
> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On Behalf Of
> Alessandro Vernet
> Sent: Monday, March 27, 2006 5:56 PM
> To: [hidden email]
> Subject: Re: [ops-users] Dynamic endpoints
>
> Hi Jacques-Alexandre,
>
> You provide the description of the endpoint or web service you want to

> call to the delegation processor through the "interface" input. That
> document can be dynamically generated with XSLT based on the XForms
> instance, or any other dynamic parameter you might have. Would using
> XSLT work for your use case?
>
> http://www.orbeon.com/ops/doc/processors-delegation
>
> Alex
>
> On 3/27/06, Jacques-Alexandre Gerber <[hidden email]> wrote:
> > Hi,
> >
> > Is there a way I can dynamically provide the endpoint to invoke a
> > web service with the delegation processor?
> > By this I mean that I would like to avoid hard-coding the host name
> > and port number and use a reference/variable.
> > Is this possible and if so how? If not, any workaround?
> >
> > Thanks,
> >
> > JAG
> >
> >
> >
> >
> > --
> > You receive this message as a subscriber of the
> [hidden email] mailing list.
> > To unsubscribe: mailto:[hidden email]
> > For general help: mailto:[hidden email]?subject=help
> > ObjectWeb mailing lists service home page:
> > http://www.objectweb.org/wws
> >
> >
> >
>
>
> --
> Blog (XML, Web apps, Open Source):
> http://www.orbeon.com/blog/
>
>
>
>
>
> --
> You receive this message as a subscriber of the
[hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page:
> http://www.objectweb.org/wws
>
>
>


--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws