« Return to Thread: about SimpleWsResource and SimpleResource

Re: about SimpleWsResource and SimpleResource

by Chris Twiner :: Rate this Message:

Reply to Author | View in Thread

On Wed, Apr 22, 2009 at 5:04 AM, SARA1232007 <cyl_axis@...> wrote:

>
> Hi,
>
> I modify the simple example to add a new property.
> For SimpleResource definition in muse.xml, I alter the java-resource-class
> definition as following:
>
>
> <java-id-factory-class>org.apache.muse.core.routing.CounterResourceIdFactory</java-id-factory-class>
>
> <java-resource-class>org.apache.muse.ws.resource.impl.SimpleWsResource</java-resource-class>
>
> I run the client which extends WsResourceClient class to invoke
> firstOperation, and I get "There is no resource available at the given EPR"
> exception from client.The trace information from client as following:
>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
>
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>    <soap:Header>
>        <wsa:To
> xmlns:wsa="http://www.w3.org/2005/08/addressing">http://127.0.0.1:8086/simple/services/SimpleResource</wsa:To>
>        <wsa:Action
> xmlns:wsa="http://www.w3.org/2005/08/addressing">http://ws.apache.org/muse/test/simple/first/FirstOperation</wsa:Action>
>        <wsa:MessageID
> xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:2ba3f950-9ab8-8759-1749-57cbe781cd1b</wsa:MessageID>
>        <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>
> <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>        </wsa:From>
>        <muse-wsa:ResourceId
>            xmlns:muse-wsa="http://ws.apache.org/muse/addressing"
>            xmlns:wsa="http://www.w3.org/2005/08/addressing"
> wsa:IsReferenceParameter="true">MuseResource-1</muse-wsa:ResourceId>

Do you have a resource with this resourceid? According to the result
from Muse you don't.  Depending on the routingpersistence settings you
should have a file somewhere under SimpleResource that has this
reference parameter.

In future posts to the mailing list can you please copy and paste the
actual text of available EPRS (not just the escaped xml), its
particularly difficult to read.

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

 « Return to Thread: about SimpleWsResource and SimpleResource