You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-dev@ws.apache.org by SARA1232007 <cy...@foxmail.com> on 2009/03/02 14:25:30 UTC

Question about resource-instance-N.xml in example simple

Hi,
I get resource-instance-1.xml file generated by running wsdl2java.bat on
SimpleResource.wsdl in simple example. In resource-instance-1.xml, the
content is following:
<wsa:ReferenceParameters xmlns:wsa="http://www.w3.org/2005/08/addressing"/>

But in the simple example, the resource-instance-1.xml is modified as
following:
<wsa:ReferenceParameters xmlns:wsa="http://www.w3.org/2005/08/addressing">	
<muse-wsa:ResourceId
xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-1</muse-wsa:ResourceId>
</wsa:ReferenceParameters>
How does muse-wsa:ResourceId  bind with resource instance at server side?
Can I provide other xml elements other than muse-wsa:ResourceId and how will
be this integrated into server application?

Also, I find that resource-instance-*.xml that wsa:ReferenceParameters is
configured with NO child xml element. Then, how useful is this kind of
wsa:ReferenceParameters deployment?

Any advice is appreciated.

Thanks.

SARA
-- 
View this message in context: http://www.nabble.com/Question-about-resource-instance-N.xml-in-example-simple-tp22288066p22288066.html
Sent from the Muse - Dev mailing list archive at Nabble.com.


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


Re: Question about resource-instance-N.xml in example simple

Posted by Chris Twiner <ch...@gmail.com>.
Hi Sara,

The default routerfile persistence doesn't seem to do this unfortunately.

org.apache.muse.core.routing.RouterFilePersistence

protected Resource reloadResource(String contextPath, Element resourceXML)

can be overridden to add the reference parameters correctly.  I will
try to add this behaviour as default for 2.2.1.

cheers,
Chris

On 3/2/09, SARA1232007 <cy...@foxmail.com> wrote:
>
>  Hi,
>  I get resource-instance-1.xml file generated by running wsdl2java.bat on
>  SimpleResource.wsdl in simple example. In resource-instance-1.xml, the
>  content is following:
>  <wsa:ReferenceParameters xmlns:wsa="http://www.w3.org/2005/08/addressing"/>
>
>  But in the simple example, the resource-instance-1.xml is modified as
>  following:
>  <wsa:ReferenceParameters xmlns:wsa="http://www.w3.org/2005/08/addressing">
>  <muse-wsa:ResourceId
>  xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-1</muse-wsa:ResourceId>
>  </wsa:ReferenceParameters>
>  How does muse-wsa:ResourceId  bind with resource instance at server side?
>  Can I provide other xml elements other than muse-wsa:ResourceId and how will
>  be this integrated into server application?
>
>  Also, I find that resource-instance-*.xml that wsa:ReferenceParameters is
>  configured with NO child xml element. Then, how useful is this kind of
>  wsa:ReferenceParameters deployment?
>
>  Any advice is appreciated.
>
>  Thanks.
>
>  SARA
>
> --
>  View this message in context: http://www.nabble.com/Question-about-resource-instance-N.xml-in-example-simple-tp22288066p22288066.html
>  Sent from the Muse - Dev mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
>  For additional commands, e-mail: muse-dev-help@ws.apache.org
>
>

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