Ah, i mixed things up.
Find a soap message of a job attached.
What's probably missing is the ResourceID element in the soap header.

Nonetheless: the factoryEndpoint element in the job description
must contain reference properties.

I'm not really sure about the necessity of the MessageID element
in the header.

Martin

> Hi
> I have to look more but I don't think createManagedJob requires a
> resource key in the request.. Can you try with something simple like
> the Counter service and see if that works ?
> On Mar 6, 2008, at 11:55 AM, Miguel Julián wrote:
>
>> Hi everyone,
>> I'm "playing" with SoapUI in order to invoke the GRAM's factory
>> (managedJobFactory->createManagedJob). I only want to submit a very
>> simple work (without credentials or staging) but I'm not filling the
>> SOAP parameters properly. At this moment, the services responses
>> with a fault: resource key is missing.
>>
>> It would be great if someone could teach/show me how to fill the
>> request soap message out.
>>
>> Thank you in advance.
>>
>> ps: You can also find my SOAP request attached
>> <soapenv:Envelope
>> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
>> " xmlns:job="http://www.globus.org/namespaces/2004/10/gram/job";
>> xmlns:wsn="http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd
>> " xmlns:add="http://schemas.xmlsoap.org/ws/2004/03/addressing";
>> xmlns:des="http://www.globus.org/namespaces/2004/10/gram/job/description
>> " xmlns:typ="http://www.globus.org/namespaces/2004/10/gram/job/
>> types" xmlns:rft="http://www.globus.org/namespaces/2004/10/rft";>
>>    <soapenv:Header/>
>>    <soapenv:Body>
>>       <job:createManagedJob>
>>          <des:job>
>>             <des:factoryEndpoint>
>>                
>> <add:Address>https://host:8443/wsrf/services/ManagedJobFactoryService
>> </add:Address>
>>             </des:factoryEndpoint>
>>             <typ:localUserId>miguel</typ:localUserId>
>>             <des:executable>/bin/touch</des:executable>
>>             <des:directory>/home/miguel</des:directory>
>>             <des:argument>/home/miguel/victory</des:argument>
>>             <des:count>1</des:count>
>>             <des:jobType>single</des:jobType>
>>          </des:job>
>>       </job:createManagedJob>
>>    </soapenv:Body>
>> </soapenv:Envelope>
>> --
>> Miguel Julián Ramos(Miky)
>> http://www.mikysblog.com
>> http://www.youtube.com/watch?v=d6gmp8pf8k4 <soap.xml>
>
> --
> Ravi K Madduri
> The Globus Alliance | Argonne National Laboratory | University of
> Chicago
> http://www-unix.mcs.anl.gov/~madduri
>
>
<ns00:Envelope xmlns:ns00="http://schemas.xmlsoap.org/soap/envelope/";>
  <ns00:Header>
    <ns03:MessageID xmlns:ns03="http://schemas.xmlsoap.org/ws/2004/03/addressing";>uuid:f59dc944-ebbc-11dc-ae66-0013d4c3b957</ns03:MessageID>
    <ns03:To xmlns:ns03="http://schemas.xmlsoap.org/ws/2004/03/addressing";>https://localhost:8443/wsrf/services/ManagedJobFactoryService</ns03:To>
    <ns03:Action xmlns:ns03="http://schemas.xmlsoap.org/ws/2004/03/addressing";>http://www.globus.org/namespaces/2004/10/gram/job/ManagedJobFactoryPortType/createManagedJobResponse</ns03:Action>
    <ns03:From xmlns:ns03="http://schemas.xmlsoap.org/ws/2004/03/addressing";>
      <ns03:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</ns03:Address>
    </ns03:From>
    <ns01:ResourceID xmlns:ns01="http://www.globus.org/namespaces/2004/10/gram/job";>Fork</ns01:ResourceID>
  </ns00:Header>
  <ns00:Body>
    <ns01:createManagedJob xmlns:ns01="http://www.globus.org/namespaces/2004/10/gram/job";>
      <ns01:InitialTerminationTime>2008-03-07T20:36:11Z</ns01:InitialTerminationTime>
      <ns01:JobID>uuid:f57b9ee6-ebbc-11dc-ae66-0013d4c3b957</ns01:JobID>
      <ns02:Subscribe xmlns:ns02="http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd";>
        <ns02:ConsumerReference>
          <ns03:Address xmlns:ns03="http://schemas.xmlsoap.org/ws/2004/03/addressing";>https://osg-test1.unl.edu:40839/wsrf/services/NotificationConsumerService</ns03:Address>
          <ns03:ReferenceProperties xmlns:ns03="http://schemas.xmlsoap.org/ws/2004/03/addressing";>
            <ns06:ResourceID ns04:type="ns05:string" xmlns:ns04="http://www.w3.org/2001/XMLSchema-instance"; xmlns:ns05="http://www.w3.org/2001/XMLSchema"; xmlns:ns06="http://www.globus.org/docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.wsdl";>f5851fca-ebbc-11dc-ae66-0013d4c3b957</ns06:ResourceID>
          </ns03:ReferenceProperties>
        </ns02:ConsumerReference>
        <ns02:TopicExpression Dialect="http://docs.oasis-open.org/wsn/2004/06/TopicExpression/Simple"; xmlns:ns07="http://www.globus.org/namespaces/2004/10/gram/job/types";>ns07:state</ns02:TopicExpression>
        <ns02:UseNotify>true</ns02:UseNotify>
      </ns02:Subscribe>
      <ns08:job xmlns:ns08="http://www.globus.org/namespaces/2004/10/gram/job/description";>
        <ns08:factoryEndpoint>
          <ns03:Address xmlns:ns03="http://schemas.xmlsoap.org/ws/2004/03/addressing";>https://localhost:8443/wsrf/services/ManagedJobFactoryService</ns03:Address>
          <ns03:ReferenceProperties xmlns:ns03="http://schemas.xmlsoap.org/ws/2004/03/addressing";>
            <ns01:ResourceID ns04:type="ns05:string" xmlns:ns04="http://www.w3.org/2001/XMLSchema-instance"; xmlns:ns05="http://www.w3.org/2001/XMLSchema";>Fork</ns01:ResourceID>
          </ns03:ReferenceProperties>
        </ns08:factoryEndpoint>
        <ns08:executable>/bin/date</ns08:executable>
      </ns08:job>
    </ns01:createManagedJob>
  </ns00:Body>
</ns00:Envelope>

Reply via email to