You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-user@ws.apache.org by Kensky Schulz <ke...@googlemail.com> on 2006/11/22 17:05:19 UTC

Plain WSRF Service wih Muse 2.0

In MUSE supported specs apart from wsdm spec I have some questions
related to the development of wsrf services.

I want to write simple wsrf service which has wsdl and schema e.g.
filemanagementservice (fms) service (containing resource properties)
and business functions. And, a corresponding filemanagement factory
service which creates instance of fms resource.

As a newbie my question is,

- Can I use xmlbeans to generate xml classes and then use it in my
server side and client side code.

- I dont want to use ws-metadataxchange and wsdm specs, just wanna try
plain wsrf example. Do you have any sample (wsrf only) code or
example. Like one scenario shown above of  filemanagementservice and
fmfactory. Any hints or tests written.

- How muse manages ws-resource instances i.e. in-memory or in-database?

Thanks and Regards
Kensky

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org


Re: Plain WSRF Service wih Muse 2.0

Posted by kensky <ke...@googlemail.com>.
Exactly its a problem :)


Daniel Jemiolo wrote:
> 
> I think the root cause of your problem is described here:
> 
>         http://issues.apache.org/jira/browse/MUSE-119
> 
> If you look at the sample factory resource, for example, the 'factory 
> capability' doesn't have any properties or operations. It just 'exists' 
> and creates other ws-resources. Because wsdl2java does not yet handle code 
> creation for these 'empty capabilities', you get nothing when you try and 
> run the tool on the factory WSDL. To make the wsrf sample, I manually 
> created the factory capability class and added it to muse.xml. When 
> MUSE-119 is fixed, you should get code generated for your capability even 
> if it isn't referenced in the WSDL.
> 
> Dan
> 
> 
> 
> kensky <ke...@googlemail.com> wrote on 11/24/2006 04:33:16 AM:
> 
>> 
>> Hi there, 
>> 
>> In the example code of /samples/wsrf there are two wsdls used i.e.
>> WsResource.wsdl and WsResourceFactory.wsdl, hence in its src/ folder 
> there
>> are two interface implementations of respective portytypes (MyCapability 
> and
>> MyFactory) and further in muse.xml there are respective resource-types
>> specified. 
>> 
>> For my learning of muse and wsrf, I copied all wsdls into another folder 
> say
>> mywsrf and generated a code but that was not similar to yours example 
> code
>> in JavaSource folder. I am confused, if I have two wsdl's like here in 
> this
>> case how can I generate a source code that will generate two interfaces 
> each
>> for WsResource and WsResourceFactory?
>> 
>> And do the entries in muse.xml will automatically be populated or do I 
> need
>> to write it beforehand and provide it to wsdl2java at the time of code 
> gen? 
>> 
>> Thanks and Regards
>> Kensky
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> kensky wrote:
>> > 
>> > In MUSE supported specs apart from wsdm spec I have some questions
>> > related to the development of wsrf services.
>> > 
>> > I want to write simple wsrf service which has wsdl and schema e.g.
>> > filemanagementservice (fms) service (containing resource properties)
>> > and business functions. And, a corresponding filemanagement factory
>> > service which creates instance of fms resource.
>> > 
>> > As a newbie my question is,
>> > 
>> > - Can I use xmlbeans to generate xml classes and then use it in my
>> > server side and client side code.
>> > 
>> > - I dont want to use ws-metadataxchange and wsdm specs, just wanna try
>> > plain wsrf example. Do you have any sample (wsrf only) code or
>> > example. Like one scenario shown above of  filemanagementservice and
>> > fmfactory. Any hints or tests written.
>> > 
>> > - How muse manages ws-resource instances i.e. in-memory or 
> in-database?
>> > 
>> > Thanks and Regards
>> > Kensky
>> > 
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
>> > For additional commands, e-mail: muse-user-help@ws.apache.org
>> > 
>> > 
>> > 
>> 
>> -- 
>> View this message in context: 
> http://www.nabble.com/Plain-WSRF-Service-wih-
>> Muse-2.0-tf2687596.html#a7519989
>> Sent from the Muse User mailing list archive at Nabble.com.
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: muse-user-help@ws.apache.org
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Plain-WSRF-Service-wih-Muse-2.0-tf2687596.html#a7548400
Sent from the Muse User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org


Re: Plain WSRF Service wih Muse 2.0

Posted by Daniel Jemiolo <da...@us.ibm.com>.
I think the root cause of your problem is described here:

        http://issues.apache.org/jira/browse/MUSE-119

If you look at the sample factory resource, for example, the 'factory 
capability' doesn't have any properties or operations. It just 'exists' 
and creates other ws-resources. Because wsdl2java does not yet handle code 
creation for these 'empty capabilities', you get nothing when you try and 
run the tool on the factory WSDL. To make the wsrf sample, I manually 
created the factory capability class and added it to muse.xml. When 
MUSE-119 is fixed, you should get code generated for your capability even 
if it isn't referenced in the WSDL.

Dan



kensky <ke...@googlemail.com> wrote on 11/24/2006 04:33:16 AM:

> 
> Hi there, 
> 
> In the example code of /samples/wsrf there are two wsdls used i.e.
> WsResource.wsdl and WsResourceFactory.wsdl, hence in its src/ folder 
there
> are two interface implementations of respective portytypes (MyCapability 
and
> MyFactory) and further in muse.xml there are respective resource-types
> specified. 
> 
> For my learning of muse and wsrf, I copied all wsdls into another folder 
say
> mywsrf and generated a code but that was not similar to yours example 
code
> in JavaSource folder. I am confused, if I have two wsdl's like here in 
this
> case how can I generate a source code that will generate two interfaces 
each
> for WsResource and WsResourceFactory?
> 
> And do the entries in muse.xml will automatically be populated or do I 
need
> to write it beforehand and provide it to wsdl2java at the time of code 
gen? 
> 
> Thanks and Regards
> Kensky
> 
> 
> 
> 
> 
> 
> 
> kensky wrote:
> > 
> > In MUSE supported specs apart from wsdm spec I have some questions
> > related to the development of wsrf services.
> > 
> > I want to write simple wsrf service which has wsdl and schema e.g.
> > filemanagementservice (fms) service (containing resource properties)
> > and business functions. And, a corresponding filemanagement factory
> > service which creates instance of fms resource.
> > 
> > As a newbie my question is,
> > 
> > - Can I use xmlbeans to generate xml classes and then use it in my
> > server side and client side code.
> > 
> > - I dont want to use ws-metadataxchange and wsdm specs, just wanna try
> > plain wsrf example. Do you have any sample (wsrf only) code or
> > example. Like one scenario shown above of  filemanagementservice and
> > fmfactory. Any hints or tests written.
> > 
> > - How muse manages ws-resource instances i.e. in-memory or 
in-database?
> > 
> > Thanks and Regards
> > Kensky
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: muse-user-help@ws.apache.org
> > 
> > 
> > 
> 
> -- 
> View this message in context: 
http://www.nabble.com/Plain-WSRF-Service-wih-
> Muse-2.0-tf2687596.html#a7519989
> Sent from the Muse User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org


Re: Plain WSRF Service wih Muse 2.0

Posted by kensky <ke...@googlemail.com>.
Hi there, 

In the example code of /samples/wsrf there are two wsdls used i.e.
WsResource.wsdl and WsResourceFactory.wsdl, hence in its src/ folder there
are two interface implementations of respective portytypes (MyCapability and
MyFactory) and further in muse.xml there are respective resource-types
specified. 

For my learning of muse and wsrf, I copied all wsdls into another folder say
mywsrf and generated a code but that was not similar to yours example code
in JavaSource folder. I am confused, if I have two wsdl's like here in this
case how can I generate a source code that will generate two interfaces each
for WsResource and WsResourceFactory?

And do the entries in muse.xml will automatically be populated or do I need
to write it beforehand and provide it to wsdl2java at the time of code gen? 

Thanks and Regards
Kensky







kensky wrote:
> 
> In MUSE supported specs apart from wsdm spec I have some questions
> related to the development of wsrf services.
> 
> I want to write simple wsrf service which has wsdl and schema e.g.
> filemanagementservice (fms) service (containing resource properties)
> and business functions. And, a corresponding filemanagement factory
> service which creates instance of fms resource.
> 
> As a newbie my question is,
> 
> - Can I use xmlbeans to generate xml classes and then use it in my
> server side and client side code.
> 
> - I dont want to use ws-metadataxchange and wsdm specs, just wanna try
> plain wsrf example. Do you have any sample (wsrf only) code or
> example. Like one scenario shown above of  filemanagementservice and
> fmfactory. Any hints or tests written.
> 
> - How muse manages ws-resource instances i.e. in-memory or in-database?
> 
> Thanks and Regards
> Kensky
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Plain-WSRF-Service-wih-Muse-2.0-tf2687596.html#a7519989
Sent from the Muse User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org


Re: Plain WSRF Service wih Muse 2.0

Posted by José Antonio Sánchez <ge...@gmail.com>.
I don't know about the first and third question (I think in memory
since I haven't configured any database) but commenting the imports
you don't want (WS-Notification and WSDM) and all of its related
operations and properties should get you a WSRF service.

On 11/22/06, Kensky Schulz <ke...@googlemail.com> wrote:
> In MUSE supported specs apart from wsdm spec I have some questions
> related to the development of wsrf services.
>
> I want to write simple wsrf service which has wsdl and schema e.g.
> filemanagementservice (fms) service (containing resource properties)
> and business functions. And, a corresponding filemanagement factory
> service which creates instance of fms resource.
>
> As a newbie my question is,
>
> - Can I use xmlbeans to generate xml classes and then use it in my
> server side and client side code.
>
> - I dont want to use ws-metadataxchange and wsdm specs, just wanna try
> plain wsrf example. Do you have any sample (wsrf only) code or
> example. Like one scenario shown above of  filemanagementservice and
> fmfactory. Any hints or tests written.
>
> - How muse manages ws-resource instances i.e. in-memory or in-database?
>
> Thanks and Regards
> Kensky
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
>
>


-- 
Saludos.
José Antonio Sánchez

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org


Re: Plain WSRF Service wih Muse 2.0

Posted by kensky <ke...@googlemail.com>.
Thanks, but I read that after my email :)... 



Daniel Jemiolo wrote:
> 
> These questions were in your previous email too, so I just answered them 
> on that thread...
> 
> Dan
> 
> 
> 
> "Kensky Schulz" <ke...@googlemail.com> wrote on 11/22/2006 
> 11:05:19 AM:
> 
>> In MUSE supported specs apart from wsdm spec I have some questions
>> related to the development of wsrf services.
>> 
>> I want to write simple wsrf service which has wsdl and schema e.g.
>> filemanagementservice (fms) service (containing resource properties)
>> and business functions. And, a corresponding filemanagement factory
>> service which creates instance of fms resource.
>> 
>> As a newbie my question is,
>> 
>> - Can I use xmlbeans to generate xml classes and then use it in my
>> server side and client side code.
>> 
>> - I dont want to use ws-metadataxchange and wsdm specs, just wanna try
>> plain wsrf example. Do you have any sample (wsrf only) code or
>> example. Like one scenario shown above of  filemanagementservice and
>> fmfactory. Any hints or tests written.
>> 
>> - How muse manages ws-resource instances i.e. in-memory or in-database?
>> 
>> Thanks and Regards
>> Kensky
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: muse-user-help@ws.apache.org
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Plain-WSRF-Service-wih-Muse-2.0-tf2687596.html#a7507990
Sent from the Muse User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org


Re: Plain WSRF Service wih Muse 2.0

Posted by Daniel Jemiolo <da...@us.ibm.com>.
These questions were in your previous email too, so I just answered them 
on that thread...

Dan



"Kensky Schulz" <ke...@googlemail.com> wrote on 11/22/2006 
11:05:19 AM:

> In MUSE supported specs apart from wsdm spec I have some questions
> related to the development of wsrf services.
> 
> I want to write simple wsrf service which has wsdl and schema e.g.
> filemanagementservice (fms) service (containing resource properties)
> and business functions. And, a corresponding filemanagement factory
> service which creates instance of fms resource.
> 
> As a newbie my question is,
> 
> - Can I use xmlbeans to generate xml classes and then use it in my
> server side and client side code.
> 
> - I dont want to use ws-metadataxchange and wsdm specs, just wanna try
> plain wsrf example. Do you have any sample (wsrf only) code or
> example. Like one scenario shown above of  filemanagementservice and
> fmfactory. Any hints or tests written.
> 
> - How muse manages ws-resource instances i.e. in-memory or in-database?
> 
> Thanks and Regards
> Kensky
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org