Loading...
 
ESA > Join & Share > Forums > Toolbox Forum > Problems with test service.

Toolbox Forum

Help

Show posts:
Jump to forum:

Problems with test service.

Hi.
I tried to create a web-service for test. I did this in TOOLBOX
according to the documentation
(http://toolbox.esrin.esa.int/TOOLBOXDOC/):

1) Services Management -> Create a new Service (name = 'IKIService')
-> Interface = 'EOLI version 2.6' -> Suspend mode = 'SOFT';
2) TOOLBOX generates WSDL (IKIService.wsdl) and xsd (eoli.xds) files;
3) I pressed "ADD operation" in Operations Management -> EOLI_Search

As a first script I used the following:

<?xml version="1.0" encoding="UTF-8" ?>
 <sequence xmlns="http://pisa.intecs.it/mass/toolbox/xmlScript">
   <setVariable name="response">
     <eoli:response xmlns:eoli="http://earth.esa.int/XML/eoli">
       <eoli:status>success</eoli:status>
     </eoli:response>
   </setVariable>
   <variable name="response" />
 </sequence>

4) I tried to test the service
Test Center -> Toolbox Application Client -> Web services Generic Client

I chose web Service URL, SOAP Action, and SOAP message

<?xml version="1.0" encoding="UTF-8"?>
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
  <SOAP:Body>
    <searchRequest xmlns="http://earth.esa.int/XML/eoli">
      <simpleQuery></simpleQuery>
      <resultType>results</resultType>
      <iteratorSize>1000</iteratorSize>
      <cursor>1</cursor>
      <presentation>brief</presentation>
      <collectionId>ESA.EECF.ERSE_SER</collectionId>
    </searchRequest>
  </SOAP:Body>
</SOAP:Envelope>

The result was

<?xml version="1.0" encoding="UTF-8"?>
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
  <soap-env:Header/>
  <soap-env:Body><n1:response xmlns:n1="http://earth.esa.int/XML/eoli">
    <status xmlns="http://pisa.intecs.it/mass/toolbox/xmlScript">failure</status></n1:response>
  </soap-env:Body>
</soap-env:Envelope>

I receive the same answer on any requests I tried (of course, with
correct syntax of xml).
Moreover, i got this result even if SOAP message was

<?xml version="1.0" encoding="UTF-8"?>
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
</SOAP:Envelope>


Please, help me to understand where is a problem: either in the
request or in the script.
Where can I find examples of these xml-files?
How can I get log-files that generate by the script?


Re: Problems with test service.

Hi Nicolas,

the problem is here:

success

the content of setVariable shall be another Toolbox script tag. In your case you have to use the tag . Check the documentation for details.

Kind regards,
TOOLBOX Support Team



> Hi.
> I tried to create a web-service for test. I did this in TOOLBOX
> according to the documentation
> (http://toolbox.esrin.esa.int/TOOLBOXDOC/):
>
> 1) Services Management -> Create a new Service (name = 'IKIService')
> -> Interface = 'EOLI version 2.6' -> Suspend mode = 'SOFT';
> 2) TOOLBOX generates WSDL (IKIService.wsdl) and xsd (eoli.xds) files;
> 3) I pressed "ADD operation" in Operations Management -> EOLI_Search
>
> As a first script I used the following:

>
>  <?xml version="1.0" encoding="UTF-8" ?>
>  <sequence xmlns="http://pisa.intecs.it/mass/toolbox/xmlScript">
>    <setVariable name="response">
>      <eoli:response xmlns:eoli="http://earth.esa.int/XML/eoli">
>        <eoli:status>success</eoli:status>
>      </eoli:response>
>    </setVariable>
>    <variable name="response" />
>  </sequence>
>

> 4) I tried to test the service
> Test Center -> Toolbox Application Client -> Web services Generic Client
>
> I chose web Service URL, SOAP Action, and SOAP message

>
> <?xml version="1.0" encoding="UTF-8"?>
> <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
>   <SOAP:Body>
>     <searchRequest xmlns="http://earth.esa.int/XML/eoli">
>       <simpleQuery></simpleQuery>
>       <resultType>results</resultType>
>       <iteratorSize>1000</iteratorSize>
>       <cursor>1</cursor>
>       <presentation>brief</presentation>
>       <collectionId>ESA.EECF.ERSE_SER</collectionId>
>     </searchRequest>
>   </SOAP:Body>
> </SOAP:Envelope>
>

> The result was

>
> <?xml version="1.0" encoding="UTF-8"?>
> <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
>   <soap-env:Header/>
>   <soap-env:Body><n1:response xmlns:n1="http://earth.esa.int/XML/eoli">
>     <status xmlns="http://pisa.intecs.it/mass/toolbox/xmlScript">failure</status></n1:response>
>   </soap-env:Body>
> </soap-env:Envelope>
>

> I receive the same answer on any requests I tried (of course, with
> correct syntax of xml).
> Moreover, i got this result even if SOAP message was

>
> <?xml version="1.0" encoding="UTF-8"?>
> <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
> </SOAP:Envelope>
>

>
> Please, help me to understand where is a problem: either in the
> request or in the script.
> Where can I find examples of these xml-files?
> How can I get log-files that generate by the script?



Re: Problems with test service.

Hi Nicolas,

the problem is here:


success



the content of setVariable shall be another Toolbox script tag. In your case you have to use the tag . Check the documentation for details.

Kind regards,
TOOLBOX Support Team
> Hi.
> I tried to create a web-service for test. I did this in TOOLBOX
> according to the documentation
> (http://toolbox.esrin.esa.int/TOOLBOXDOC/):
>
> 1) Services Management -> Create a new Service (name = 'IKIService')
> -> Interface = 'EOLI version 2.6' -> Suspend mode = 'SOFT';
> 2) TOOLBOX generates WSDL (IKIService.wsdl) and xsd (eoli.xds) files;
> 3) I pressed "ADD operation" in Operations Management -> EOLI_Search
>
> As a first script I used the following:

>
>  <?xml version="1.0" encoding="UTF-8" ?>
>  <sequence xmlns="http://pisa.intecs.it/mass/toolbox/xmlScript">
>    <setVariable name="response">
>      <eoli:response xmlns:eoli="http://earth.esa.int/XML/eoli">
>        <eoli:status>success</eoli:status>
>      </eoli:response>
>    </setVariable>
>    <variable name="response" />
>  </sequence>
>

> 4) I tried to test the service
> Test Center -> Toolbox Application Client -> Web services Generic Client
>
> I chose web Service URL, SOAP Action, and SOAP message

>
> <?xml version="1.0" encoding="UTF-8"?>
> <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
>   <SOAP:Body>
>     <searchRequest xmlns="http://earth.esa.int/XML/eoli">
>       <simpleQuery></simpleQuery>
>       <resultType>results</resultType>
>       <iteratorSize>1000</iteratorSize>
>       <cursor>1</cursor>
>       <presentation>brief</presentation>
>       <collectionId>ESA.EECF.ERSE_SER</collectionId>
>     </searchRequest>
>   </SOAP:Body>
> </SOAP:Envelope>
>

> The result was

>
> <?xml version="1.0" encoding="UTF-8"?>
> <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
>   <soap-env:Header/>
>   <soap-env:Body><n1:response xmlns:n1="http://earth.esa.int/XML/eoli">
>     <status xmlns="http://pisa.intecs.it/mass/toolbox/xmlScript">failure</status></n1:response>
>   </soap-env:Body>
> </soap-env:Envelope>
>

> I receive the same answer on any requests I tried (of course, with
> correct syntax of xml).
> Moreover, i got this result even if SOAP message was

>
> <?xml version="1.0" encoding="UTF-8"?>
> <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
> </SOAP:Envelope>
>

>
> Please, help me to understand where is a problem: either in the
> request or in the script.
> Where can I find examples of these xml-files?
> How can I get log-files that generate by the script?



Show posts:
Jump to forum: