I added the following to MyCapability.java

public void initialize() throws SoapFault {
  super.initialize();
  WsResource res = this.getWsResource();

OperationalStatus stat = (OperationalStatus)res.getCapability(MuwsConstants.OP_STATUS_URI);
 stat.setOperationalStatus(OperationalStatus.AVAILABLE);
 this.getLog().info(stat.getOperationalStatus());
...
}

Which results in an AVAILABLE entry in the log file. However running a client when results in the following:

<soapenv:Body>
<wsrf-rp:GetResourcePropertyResponse xmlns:tns="http://ws.apache.org/axis2"; xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/rp-2";> <pfx0:OperationalStatus xmlns:pfx0="http://docs.oasis-open.org/wsdm/muws2-2.xsd";>Unknown</pfx0:OperationalStatus>
</wsrf-rp:GetResourcePropertyResponse>
</soapenv:Body>

I'm running 2.1.0 Trunk. Do you have any ideas what I'm doing wrong.

Jürgen

p.s.: great work

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to