You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pubscribe-dev@ws.apache.org by "J. Patrick Bedell" <jp...@infoeng.org> on 2005/08/04 00:08:08 UTC

ResourceId creation failure with WsnWsdl2JavaTask-generated service

Hi,
 	I'm trying to use org.apache.ws.notification.tool.WsnWsdl2JavaTask 
to generate a service from my WSDL file, but I am apparently not able to 
get a random ResourceId to be created.  When I use an arbitrary 
resourceId, created with java.util.UUID.randomUUID().toString(), I get a 
ResourceUnknownFault.  Can anyone help?  Below is a sample 
UpdateResourceProperties transaction, with the wsdl file at the end of the 
email.  Thanks!

 	Patrick
 	jpb@infoeng.org

updateResourceProperties - request message:

<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:wsrp="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd" 
xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing" 
xmlns:tns="http://infoeng.org/service/ICTP/">
  <soapenv:Header>
   <wsa:To soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" 
soapenv:mustUnderstand="1">http://localhost:8080/pubscribe/services/ICTP</wsa:To>
   <wsa:Action soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" 
soapenv:mustUnderstand="1">http://docs.oasis-open.org/wsrf/2004/06/WS-ResourceProperties/SetResourceProperties</wsa:Action>
   <tns:ResourceIdentifier 
soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" 
soapenv:mustUnderstand="1">64e4285e-c05f-4184-9999-b121da0e7617</tns:ResourceIdentifier>
  </soapenv:Header>
  <soapenv:Body>
   <wsrp:SetResourceProperties>
    <wsrp:Update>
     <tns:PriceResource>0.7984477474484091</tns:PriceResource>
    </wsrp:Update>
    <wsrp:Update> 
<tns:StringResource>194b58ac119ad62edbb6379a916e61a4f4d531f897e58eb2247624b723afe18f4d2d10a94df9f776af7efa02c1029d7afc646f4c5a2d13dd17dd33b6f994eb0b7a26f8ef0c6f73ed9849e4d65d51c791b4e1461c20835bf00577d43b62b94b3d21b7b4573fa807c2ffdc8ee18ab4c256166ffcebcc5d90096371323cc5beebf5</tns:StringResource>
    </wsrp:Update>
   </wsrp:SetResourceProperties>
  </soapenv:Body>
</soapenv:Envelope>

updateResourceProperties - response message:

<?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:Client</faultcode>
    <faultstring>Resource Id 64e4285e-c05f-4184-9999-b121da0e7617 not found 
for service ICTP</faultstring>
    <detail>
     <ns1:ResourceUnknownFault 
xmlns:ns1="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd">
      <ns2:Timestamp 
xmlns:ns2="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd">2005-08-03T14:24:29.079-07:00</ns2:Timestamp>
      <ns3:Description 
xmlns:ns3="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd">Resource 
Id 64e4285e-c05f-4184-9999-b121da0e7617 not found for service 
ICTP</ns3:Description>
     </ns1:ResourceUnknownFault>
    </detail>
   </soapenv:Fault>
  </soapenv:Body>
</soapenv:Envelope>

WSDL file:

<?xml version="1.0"?>
<definitions name="ICTPDefinition" targetNamespace="http://infoeng.org/service/ICTP/"
 	     xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://infoeng.org/service/ICTP/"
 	     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 	     xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
 	     xmlns:wsrp="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd"
 	     xmlns:wsrpw="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl"
 	     xmlns:wsrlw="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.wsdl"
 	     xmlns:wsntw="http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.wsdl"
 	     xmlns:mex="http://schemas.xmlsoap.org/ws/2004/09/mex"
 	     xmlns:wsa04="http://schemas.xmlsoap.org/ws/2004/08/addressing">

   <import namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl"
 	  location="../wsdl/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl"/>
   <import namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.wsdl"
 	  location="../wsdl/wsrf-WS-ResourceLifetime-1.2-draft-01.wsdl"/>
   <import namespace="http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.wsdl"
 	  location="../wsdl/wsn-WS-BaseNotification-1.2-draft-01.wsdl"/>

   <types>
     <schema elementFormDefault="qualified"
 	    targetNamespace="http://infoeng.org/service/ICTP/"
 	    xmlns="http://www.w3.org/2001/XMLSchema"
 	    xmlns:tns="http://infoeng.org/service/ICTP/"
 	    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 	    xmlns:wsrl="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd"
 	    xmlns:wsbf="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd"
 	    xmlns:wsnt="http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd">

       <xsd:import namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd"
 		  schemaLocation="../wsdl/wsrf-WS-BaseFaults-1.2-draft-01.xsd"/>
       <xsd:import namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd"
 		  schemaLocation="../wsdl/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd"/>
       <xsd:import namespace="http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd"
 		  schemaLocation="../wsdl/wsn-WS-BaseNotification-1.2-draft-01.xsd"/>

       <!-- String resource for RP testing. -->
       <element name="StringResource" type="xsd:string"/>
       <!-- Price resource for RP testing. -->
       <element name="PriceResource" type="xsd:double"/>

       <!-- Resource Properties Document Schema -->
       <element name="ResourceProperties">
 	<complexType>
 	  <sequence>

 	    <element ref="wsnt:Topic" maxOccurs="unbounded"/>
 	    <element ref="wsnt:FixedTopicSet" />
 	    <element ref="wsnt:TopicExpressionDialects" maxOccurs="unbounded" />
 	    <element ref="tns:StringResource" minOccurs="1" maxOccurs="1"/>
 	    <element ref="tns:PriceResource" minOccurs="1" maxOccurs="1"/>

 	  </sequence>
 	</complexType>
       </element>

       <!-- *** Add element definitions for custom request/response/fault types here *** -->
     </schema>
   </types>

   <!-- *** Add message definitions for custom request/response/fault types here *** -->

   <portType name="ICTPPortType" wsrp:ResourceProperties="tns:ResourceProperties">

     <operation name="GetResourceProperty">
       <input name="GetResourcePropertyRequest" message="wsrpw:GetResourcePropertyRequest"/>
       <output name="GetResourcePropertyResponse" message="wsrpw:GetResourcePropertyResponse"/>
       <fault name="ResourceUnknownFault" message="wsrpw:ResourceUnknownFault"/>
       <fault name="InvalidResourcePropertyQNameFault" message="wsrpw:InvalidResourcePropertyQNameFault"/>
     </operation>

     <!-- *** If you wish to implement the WSRP GetMultipleResourceProperties portType,
 	 uncomment the below operation block *** -->
     <!--  -->
     <operation name="GetMultipleResourceProperties">
       <input name="GetMultipleResourcePropertiesRequest" message="wsrpw:GetMultipleResourcePropertiesRequest"/>
       <output name="GetMultipleResourcePropertiesResponse" message="wsrpw:GetMultipleResourcePropertiesResponse"/>
       <fault name="ResourceUnknownFault" message="wsrpw:ResourceUnknownFault"/>
       <fault name="InvalidResourcePropertyQNameFault" message="wsrpw:InvalidResourcePropertyQNameFault"/>
     </operation>

     <!-- *** If you wish to implement the WSRP SetResourceProperties portType,
 	 uncomment the below operation block *** -->
     <!--    -->
     <operation name="SetResourceProperties">
       <input name="SetResourcePropertiesRequest" message="wsrpw:SetResourcePropertiesRequest"/>
       <output name="SetResourcePropertiesResponse" message="wsrpw:SetResourcePropertiesResponse"/>
       <fault name="ResourceUnknownFault" message="wsrpw:ResourceUnknownFault"/>
       <fault name="InvalidResourcePropertyQNameFault" message="wsrpw:InvalidResourcePropertyQNameFault"/>
       <fault name="InvalidSetResourcePropertiesRequestContentFault"
 	     message="wsrpw:InvalidSetResourcePropertiesRequestContentFault"/>
       <fault name="UnableToModifyResourcePropertyFault" message="wsrpw:UnableToModifyResourcePropertyFault"/>
       <fault name="SetResourcePropertyRequestFailedFault" message="wsrpw:SetResourcePropertyRequestFailedFault"/>
     </operation>

     <!-- *** If you wish to implement the WSNT NotificationProducer portType,
 	 uncomment the below two operation blocks *** -->

     <operation name="Subscribe">
       <input message="wsntw:SubscribeRequest" />
       <output message="wsntw:SubscribeResponse" />
       <fault name="ResourceUnknownFault" message="wsntw:ResourceUnknownFault" />
       <fault name="SubscribeCreationFailedFault" message="wsntw:SubscribeCreationFailedFault" />
       <fault name="TopicPathDialectUnknownFault" message="wsntw:TopicPathDialectUnknownFault" />
     </operation>

     <operation name="GetCurrentMessage">
       <input message="wsntw:GetCurrentMessageRequest" />
       <output message="wsntw:GetCurrentMessageResponse" />
       <fault name="ResourceUnknownFault" message="wsntw:ResourceUnknownFault" />
       <fault name="InvalidTopicExpressionFault" message="wsntw:InvalidTopicExpressionFault" />
       <fault name="TopicNotSupportedFault" message="wsntw:TopicNotSupportedFault" />
       <fault name="NoCurrentMessageOnTopicFault" message="wsntw:NoCurrentMessageOnTopicFault" />
     </operation>

   </portType>

   <binding name="ICTPSoapHttpBinding" type="tns:ICTPPortType">

     <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>

     <operation name="GetResourceProperty">
       <soap:operation style="document"/>
       <input>
 	<soap:body use="literal"/>
       </input>
       <output>
 	<soap:body use="literal"/>
       </output>
       <fault name="ResourceUnknownFault">
 	<soap:fault name="ResourceUnknownFault" use="literal"/>
       </fault>
       <fault name="InvalidResourcePropertyQNameFault">
 	<soap:fault name="InvalidResourcePropertyQNameFault" use="literal"/>
       </fault>
     </operation>

     <operation name="GetMultipleResourceProperties">
       <soap:operation style="document"/>
       <input>
 	<soap:body use="literal"/>
       </input>
       <output>
 	<soap:body use="literal"/>
       </output>
       <fault name="ResourceUnknownFault">
 	<soap:fault name="ResourceUnknownFault" use="literal"/>
       </fault>
       <fault name="InvalidResourcePropertyQNameFault">
 	<soap:fault name="InvalidResourcePropertyQNameFault" use="literal"/>
       </fault>
     </operation>

     <operation name="SetResourceProperties">
       <soap:operation style="document"/>
       <input>
 	<soap:body use="literal"/>
       </input>
       <output>
 	<soap:body use="literal"/>
       </output>
       <fault name="ResourceUnknownFault">
 	<soap:fault name="ResourceUnknownFault" use="literal"/>
       </fault>
       <fault name="InvalidResourcePropertyQNameFault">
 	<soap:fault name="InvalidResourcePropertyQNameFault" use="literal"/>
       </fault>
       <fault name="UnableToModifyResourcePropertyFault">
 	<soap:fault name="UnableToModifyResourcePropertyFault" use="literal"/>
       </fault>
       <fault name="InvalidSetResourcePropertiesRequestContentFault">
 	<soap:fault name="InvalidSetResourcePropertiesRequestContentFault" use="literal"/>
       </fault>
       <fault name="SetResourcePropertyRequestFailedFault">
 	<soap:fault name="SetResourcePropertyRequestFailedFault" use="literal"/>
       </fault>
     </operation>

     <operation name="Subscribe">
       <soap:operation style="document"/>
       <input>
 	<soap:body use="literal"/>
       </input>
       <output>
 	<soap:body use="literal"/>
       </output>
       <fault name="ResourceUnknownFault">
 	<soap:fault name="ResourceUnknownFault" use="literal"/>
       </fault>
       <fault name="SubscribeCreationFailedFault">
 	<soap:fault name="SubscribeCreationFailedFault" use="literal"/>
       </fault>
       <fault name="TopicPathDialectUnknownFault">
 	<soap:fault name="TopicPathDialectUnknownFault" use="literal"/>
       </fault>
     </operation>
     <operation name="GetCurrentMessage">
       <soap:operation style="document"/>
       <input>
 	<soap:body use="literal"/>
       </input>
       <output>
 	<soap:body use="literal"/>
       </output>
       <fault name="ResourceUnknownFault">
 	<soap:fault name="ResourceUnknownFault" use="literal"/>
       </fault>
       <fault name="InvalidTopicExpressionFault">
 	<soap:fault name="InvalidTopicExpressionFault" use="literal"/>
       </fault>
       <fault name="TopicNotSupportedFault">
 	<soap:fault name="TopicPathDialectUnknownFault" use="literal"/>
       </fault>
       <fault name="NoCurrentMessageOnTopicFault">
 	<soap:fault name="NoCurrentMessageOnTopicFault" use="literal"/>
       </fault>
     </operation>

   </binding>

   <service name="ICTPService">
     <!-- Note: the port name becomes the service name in the wsdd generated by Wsdl2Java -->
     <!-- *** Change the port name and the soap:address location below to reflect the desired endpoint URL *** -->
     <port name="ICTP" binding="tns:ICTPSoapHttpBinding">
       <soap:address location="https://localhost:8443/ictp/services/ICTPService" />
     </port>
   </service>
</definitions>









---------------------------------------------------------------------
To unsubscribe, e-mail: pubscribe-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: pubscribe-dev-help@ws.apache.org