Hi,
I modified the WsrfTestClient.java as following:
public static void main(String[] args)
{
...
ServiceGroupClient sg = new ServiceGroupClient(epr);
sg.setTrace(true);
//
// ping SG, wait a few seconds, then check for members
// that were added by the simulation factory
//
System.out.println("Pinging Muse to initialize the endpoint...");
// sg.getResourcePropertyDocument();
System.out.println("Waiting 10 seconds while simulation creates WS-resources...");
Thread.currentThread().sleep(10000);
System.out.println("Done waiting - reading service group entries...");
//cyl
sg.getResourcePropertyDocument();
...
}
I get SOAP response as following:
<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://www.w3.org/2005/08/addressing/role/anonymous</wsa:To>
<wsa:Action xmlns:wsa="
http://www.w3.org/2005/08/addressing">
http://docs.oasis-open.org/wsrf/rpw-2/GetResourcePropertyDocument/GetResourcePropertyDocumentResponse</wsa:Action>
<wsa:MessageID xmlns:wsa="
http://www.w3.org/2005/08/addressing">uuid:19e241b2-ff2f-3c6e-3dce-09300caee841</wsa:MessageID>
<wsa:RelatesTo RelationshipType="wsa:Reply" xmlns:wsa="
http://www.w3.org/2005/08/addressing">uuid:87802452-409c-4d08-47ef-4616534d4972</wsa:RelatesTo>
<wsa:From xmlns:wsa="
http://www.w3.org/2005/08/addressing">
<wsa:Address>
http://127.0.0.1:8086/wsrf/services/ServiceGroup</wsa:Address>
</wsa:From>
</soap:Header>
<soap:Body>
<wsrf-rp:GetResourcePropertyDocumentResponse xmlns:wsrf-rp="
http://docs.oasis-open.org/wsrf/rp-2">
<wsrf-sg:ServiceGroupRP xmlns:wsrf-sg="
http://docs.oasis-open.org/wsrf/sg-2">
<wsrf-rp:QueryExpressionDialect>
http://www.w3.org/TR/1999/REC-xpath-19991116</wsrf-rp:QueryExpressionDialect>
<wsrf-sg:Entry>
<wsrf-sg:ServiceGroupEntryEPR>
<wsa:Address xmlns:wsa="
http://www.w3.org/2005/08/addressing">
http://127.0.0.1:8086/wsrf/services/ServiceGroupEntry</wsa:Address>
<wsa:ReferenceParameters xmlns:wsa="
http://www.w3.org/2005/08/addressing">
<muse-wsa:ResourceId xmlns:muse-wsa="
http://ws.apache.org/muse/addressing">uuid:1df59833-3259-7a6c-3c3c-37a25e875e86</muse-wsa:ResourceId>
</wsa:ReferenceParameters>
</wsrf-sg:ServiceGroupEntryEPR>
<wsrf-sg:MemberServiceEPR>
<wsa:Address xmlns:wsa="
http://www.w3.org/2005/08/addressing">
http://127.0.0.1:8086/wsrf/services/WsResource</wsa:Address>
<wsa:ReferenceParameters xmlns:wsa="
http://www.w3.org/2005/08/addressing">
<muse-wsa:ResourceId xmlns:muse-wsa="
http://ws.apache.org/muse/addressing">uuid:bc2c6c6a-6557-a152-a6bd-b1fc164e31c2</muse-wsa:ResourceId>
</wsa:ReferenceParameters>
</wsrf-sg:MemberServiceEPR>
<wsrf-sg:Content>
<myns:MyProperty xmlns:myns="
http://ws.apache.org/muse/test/wsrf">This is the FIRST initial value</myns:MyProperty>
<myns:MyProperty xmlns:myns="
http://ws.apache.org/muse/test/wsrf">This is the SECOND initial value</myns:MyProperty>
</wsrf-sg:Content>
</wsrf-sg:Entry>
<wsrf-sg:MembershipContentRule
ContentElements="myns:MyProperty" xmlns:myns="
http://ws.apache.org/muse/test/wsrf"/>
</wsrf-sg:ServiceGroupRP>
</wsrf-rp:GetResourcePropertyDocumentResponse>
</soap:Body>
</soap:Envelope>
My question is MyFactoryImpl.java only creates "WsResource" in the run body, how is ServiceGroupEntry created and what does it stand for?
Thanks.
Sara