Commit 7b5d8dcf authored by aw613's avatar aw613
Browse files

- namespace adaptions

parent 0c9d9982
......@@ -40,7 +40,7 @@ public class LightBulbClient extends DefaultClientGPIO {
public final static String DEVICE = "Sensor";
public final static String SERVICE = "SensorInterface";
public final static String SERVICE = "SunSPOTSensor";
boolean bound = false;
private Service service;
......@@ -154,7 +154,7 @@ public class LightBulbClient extends DefaultClientGPIO {
public void updateTemperature()
{
// we are looking for an Operation by its name
Operation op = service.getOperation(null, "LightAction", null, null);
Operation op = service.getOperation(null, "LightOperation", null, null);
ParameterValue input = op.createInputValue();
ParameterValue result;
......
......@@ -8,7 +8,7 @@ public class Constants {
public final static String NAMESPACE_DEMO = "http://www.demo.com/bbsr";
public final static String NAMESPACE = "http://www.ws4d.org/Device";
public final static String NAMESPACE = "http://www.demo.com/bbsr";
public final static String DEVICE = "LightBulb";
......
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:tns="http://www.ws4d.org/interface" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" name="Switch"
targetNamespace="http://www.ws4d.org/interface">
xmlns:tns="http://www.demo.com/bbsr" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" name="Lightbulb"
targetNamespace="http://www.demo.com/bbsr">
<wsdl:types>
<xs:schema targetNamespace="http://www.ws4d.org/interface">
<xs:schema targetNamespace="http://www.demo.com/bbsr">
<xs:element name="State" type="xs:boolean" />
......@@ -22,30 +22,30 @@
<wsdl:message name="ToggleRequest" />
<wsdl:portType name="Switch">
<wsdl:portType name="LightBulb">
<wsdl:operation name="GetState">
<wsdl:input message="tns:GetStateRequest" wsam:Action="http://www.ws4d.org/interface/Switch/GetState"/>
<wsdl:output message="tns:GetStateResponse" wsam:Action="http://www.ws4d.org/interface/Switch/GetStateResponse"/>
<wsdl:input message="tns:GetStateRequest" wsam:Action="http://www.demo.com/bbsr/LightBulb/GetState"/>
<wsdl:output message="tns:GetStateResponse" wsam:Action="http://www.demo.com/bbsr/LightBulb/GetStateResponse"/>
</wsdl:operation>
<wsdl:operation name="SetState">
<wsdl:input message="tns:SetStateRequest" wsam:Action="http://www.ws4d.org/interface/Switch/SetState"/>
<wsdl:input message="tns:SetStateRequest" wsam:Action="http://www.demo.com/bbsr/LightBulb/SetState"/>
</wsdl:operation>
<wsdl:operation name="Toggle">
<wsdl:input message="tns:ToggleRequest" wsam:Action="http://www.ws4d.org/interface/Switch/Toggle"/>
<wsdl:input message="tns:ToggleRequest" wsam:Action="http://www.demo.com/bbsr/LightBulb/Toggle"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="SwitchInterface" type="tns:Switch">
<wsdl:binding name="LightBulbInterface" type="tns:LightBulb">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="GetState">
<soap:operation soapAction="http://www.ws4d.org/interface/Switch/GetState" />
<soap:operation soapAction="http://www.demo.com/bbsr/LightBulb/GetState" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
......@@ -55,14 +55,14 @@
</wsdl:operation>
<wsdl:operation name="SetState">
<soap:operation soapAction="http://www.ws4d.org/interface/Switch/SetState" />
<soap:operation soapAction="http://www.demo.com/bbsr/LightBulb/SetState" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
</wsdl:operation>
<wsdl:operation name="Toggle">
<soap:operation soapAction="http://www.ws4d.org/interface/Switch/Toggle" />
<soap:operation soapAction="http://www.demo.com/bbsr/LightBulb/Toggle" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
......@@ -70,9 +70,9 @@
</wsdl:binding>
<wsdl:service name="Switch">
<wsdl:port binding="tns:SwitchInterface" name="SwitchInterface">
<soap:address location="http://www.ws4d.org/interface" />
<wsdl:service name="LightBulb">
<wsdl:port binding="tns:LightBulbInterface" name="LightBulbInterface">
<soap:address location="http://www.demo.com/bbsr" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment