Hi Tom,
Please find attached the WSDL both for the factory and the instance.
Best regards,
Kleopatra
Tom Howe wrote:
Sorry,
Can you also send the WSDL?
Thanks,
Tom
On Thu, Feb 26, 2009 at 9:17 AM, Kleopatra Konstanteli
<[email protected] <mailto:[email protected]>> wrote:
Hello Tom,
Here is the SOAP request:
SOAPEnvelope: <?xml version="1.0"
encoding="UTF-8"?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:MessageID>uuid:c0c41b50-0417-11de-9f72-87a92f1dd4a1</wsa:MessageID><wsa:To>http://localhost:8080/wsrf/services/factory/ApplicationServiceComponent</wsa:To><wsa:Action>http://www.ntua.gr/namespaces/ApplicationServiceComponentService/ApplicationServiceComponentPortType/startRequest</wsa:Action><From
xmlns="http://www.w3.org/2005/08/addressing"><Address>http://www.w3.org/2005/08/addressing/anonymous</Address></From><ns1:ApplicationServiceComponentResourceKey
wsa:IsReferenceParameter="true"
xmlns:ns1="http://www.ntua.gr/namespaces/ApplicationServiceComponentService">a3916fb0-0417-11de-9be0-b1bb8759f20c</ns1:ApplicationServiceComponentResourceKey></soapenv:Header><soapenv:Body><start
xmlns="http://www.ntua.gr/namespaces/ApplicationServiceComponentService"><simpleTypeInputA
xmlns="">simpleTypeInputA</simpleTypeInputA><simpleTypeInputB
xmlns="">1</simpleTypeInputB><complexTypeInput><name
xmlns="">name</name><value
xmlns="">10</value></complexTypeInput></start></soapenv:Body></soapenv:Envelope>
and the corresponding exception:
SOAPEnvelope: <?xml version="1.0"
encoding="UTF-8"?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server.userException</faultcode><faultstring>java.rmi.RemoteException:
; nested exception is:
org.globus.wsrf.ResourceContextException: ; nested exception is:
org.globus.wsrf.InvalidResourceKeyException: ; nested
exception is:
org.globus.wsrf.encoding.DeserializationException:
[JWSCORE-178] Deserialization failed [Caused by: For input string:
"a3916fb0-0417-11de-9be0-b1bb8759f20c"]</faultstring><detail><ns1:stackTrace
xmlns:ns1="http://xml.apache.org/axis/">java.rmi.RemoteException:
; nested exception is:
org.globus.wsrf.ResourceContextException: ; nested exception is:
org.globus.wsrf.InvalidResourceKeyException: ; nested
exception is:
org.globus.wsrf.encoding.DeserializationException:
[JWSCORE-178] Deserialization failed [Caused by: For input string:
"a3916fb0-0417-11de-9be0-b1bb8759f20c"]
at
ntua.irmos.wp4.services.factory.impl.ApplicationServiceComponentService.getResource(ApplicationServiceComponentService.java:25)
Many thanks in advance,
Kleopatra
Tom Howe wrote:
Can you send the SOAP request that is sent to the server and
produces this, please.
-Tom
On Thu, Feb 26, 2009 at 7:56 AM, Kleopatra Konstanteli
<[email protected] <mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>> wrote:
Hello All,
I have created a service that follows the factory
pattern on
GT4.2. The instance resources are created correctly but
when I
try to invoke an operation on them I get the following
error:
AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
<http://schemas.xmlsoap.org/soap/envelope/%7DServer.userException>
<http://schemas.xmlsoap.org/soap/envelope/%7DServer.userException>
faultSubcode:
faultString: java.rmi.RemoteException: ; nested
exception is:
org.globus.wsrf.ResourceContextException: ; nested
exception is:
org.globus.wsrf.InvalidResourceKeyException: ; nested
exception is:
org.globus.wsrf.encoding.DeserializationException:
[JWSCORE-178] Deserialization failed [Caused by: For input
string: "c2bc77d0-ff54-11dd-822e-c429a7360031"]
I don't remember ever having this error in GT4.0. Can
someone
please help me?
Thank you in advance,
Kleopatra
--
Tom Howe
Senior Software Engineer
Distributed Systems Lab
University of Chicago/Argonne National Laboratory
Sent from: Chicago Illinois United States.
--
Tom Howe
Senior Software Engineer
Distributed Systems Lab
University of Chicago/Argonne National Laboratory
Sent from: Chicago Illinois United States.
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="ApplicationServiceComponentFactory"
targetNamespace="http://www.ntua.gr/namespaces/ApplicationServiceComponentFactoryService"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://www.ntua.gr/namespaces/ApplicationServiceComponentFactoryService"
xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--============================================================
T Y P E S
============================================================-->
<types>
<xsd:schema targetNamespace="http://www.ntua.gr/namespaces/ApplicationServiceComponentFactoryService"
xmlns:tns="http://www.ntua.gr/namespaces/ApplicationServiceComponentFactoryService"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:import
namespace="http://www.w3.org/2005/08/addressing"
schemaLocation="../../../ws/addressing/ws-addr.xsd" />
<!-- REQUESTS AND RESPONSES -->
<xsd:element name="createResource">
<xsd:complexType/>
</xsd:element>
<xsd:element name="createResourceResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="wsa:EndpointReference"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</types>
<!--============================================================
M E S S A G E S
============================================================-->
<message name="CreateResourceRequest">
<part name="request" element="tns:createResource"/>
</message>
<message name="CreateResourceResponse">
<part name="response" element="tns:createResourceResponse"/>
</message>
<!--============================================================
P O R T T Y P E
============================================================-->
<portType name="ApplicationServiceComponentFactoryPortType">
<operation name="createResource">
<input message="tns:CreateResourceRequest"/>
<output message="tns:CreateResourceResponse"/>
</operation>
</portType>
</definitions>
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="ApplicationServiceComponent"
targetNamespace="http://www.ntua.gr/namespaces/ApplicationServiceComponentService"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://www.ntua.gr/namespaces/ApplicationServiceComponentService"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsrlw="http://docs.oasis-open.org/wsrf/rlw-2"
xmlns:wsrp="http://docs.oasis-open.org/wsrf/rp-2"
xmlns:wsrpw="http://docs.oasis-open.org/wsrf/rpw-2"
xmlns:wsntw="http://docs.oasis-open.org/wsn/bw-2"
xmlns:wsdlpp="http://www.globus.org/namespaces/2004/10/WSDLPreprocessor"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:import
namespace=
"http://docs.oasis-open.org/wsrf/rpw-2"
location="../../../wsrf/properties/rpw-2.wsdl" />
<wsdl:import
namespace=
"http://docs.oasis-open.org/wsn/bw-2"
location="../../../wsrf/notification/bw-2.wsdl"/>
<wsdl:import
namespace=
"http://docs.oasis-open.org/wsrf/rlw-2"
location="../../../wsrf/lifetime/rlw-2.wsdl" />
<!--============================================================
T Y P E S
============================================================-->
<types>
<xsd:schema targetNamespace="http://www.ntua.gr/namespaces/ApplicationServiceComponentService"
xmlns:tns="http://www.ntua.gr/namespaces/ApplicationServiceComponentService"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!-- REQUESTS AND RESPONSES -->
<xsd:element name="complexTypeInput">
<xsd:complexType>
<xsd:sequence>
<xsd:element type="xsd:string" name="name" />
<xsd:element type="xsd:int" name="value" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="configurationInput">
<xsd:complexType>
<xsd:sequence>
<xsd:element type="xsd:string" name="name" />
<xsd:element type="xsd:string" name="value" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="start">
<xsd:complexType>
<xsd:sequence>
<xsd:element type="xsd:string" name="simpleTypeInputA" minOccurs="1" maxOccurs="1"/>
<xsd:element type="xsd:int" name="simpleTypeInputB" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="tns:complexTypeInput" minOccurs="1" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="startResponse" type="xsd:int" />
<xsd:element name="stop">
<xsd:complexType/>
</xsd:element>
<xsd:element name="stopResponse" type="xsd:int" />
<xsd:element name="pause">
<xsd:complexType/>
</xsd:element>
<xsd:element name="pauseResponse" type="xsd:int" />
<xsd:element name="resume">
<xsd:complexType/>
</xsd:element>
<xsd:element name="resumeResponse" type="xsd:int"/>
<xsd:element name="configure">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="tns:configurationInput" minOccurs="1" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="configureResponse" type="xsd:int" />
<!--STATE PROPERTIES (OPTIONAL)-->
<xsd:element name="OneStateProperty" type="xsd:int"/>
<xsd:element name="AnotherStateProperty" type="xsd:string"/>
<!--MONITORING PROPERTIES -->
<xsd:element name="framesPerSecond" type="xsd:int"/>
<xsd:element name="computationTime" type="xsd:int"/>
<xsd:element name="ApplicationServiceComponentResourceProperties">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="tns:OneStateProperty" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="tns:AnotherStateProperty" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="tns:framesPerSecond" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="tns:computationTime" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</types>
<!--============================================================
M E S S A G E S
============================================================-->
<message name="StartInputMessage">
<part name="parameters" element="tns:start"/>
</message>
<message name="StartOutputMessage">
<part name="parameters" element="tns:startResponse"/>
</message>
<message name="StopInputMessage">
<part name="parameters" element="tns:stop"/>
</message>
<message name="StopOutputMessage">
<part name="parameters" element="tns:stopResponse"/>
</message>
<message name="PauseInputMessage">
<part name="parameters" element="tns:pause"/>
</message>
<message name="PauseOutputMessage">
<part name="parameters" element="tns:pauseResponse"/>
</message>
<message name="ResumeInputMessage">
<part name="parameters" element="tns:resume"/>
</message>
<message name="ResumeOutputMessage">
<part name="parameters" element="tns:resumeResponse"/>
</message>
<message name="ConfigureInputMessage">
<part name="parameters" element="tns:configure"/>
</message>
<message name="ConfigureOutputMessage">
<part name="parameters" element="tns:configureResponse"/>
</message>
<!--============================================================
P O R T T Y P E
============================================================-->
<portType name="ApplicationServiceComponentPortType"
wsdlpp:extends="wsrpw:GetResourceProperty
wsntw:NotificationProducer
wsrlw:ScheduledResourceTermination"
wsrp:ResourceProperties="tns:ApplicationServiceComponentResourceProperties">
<operation name="start">
<input message="tns:StartInputMessage"/>
<output message="tns:StopOutputMessage"/>
</operation>
<operation name="stop">
<input message="tns:StopInputMessage"/>
<output message="tns:StopOutputMessage"/>
</operation>
<operation name="pause">
<input message="tns:PauseInputMessage"/>
<output message="tns:PauseOutputMessage"/>
</operation>
<operation name="resume">
<input message="tns:ResumeInputMessage"/>
<output message="tns:ResumeOutputMessage"/>
</operation>
<operation name="configure">
<input message="tns:ConfigureInputMessage"/>
<output message="tns:ConfigureOutputMessage"/>
</operation>
</portType>
</definitions>