Thanks for pointing me to the Chrome Extension - this is really nice and 
will probably help debugging that.

At least it helps to illustrate the problem. When I call the webservice for 
a researcherpage, I get an output like this:
  <SOAP-ENV:Envelope 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";>
    <SOAP-ENV:Header/>
    <SOAP-ENV:Body>
        <cris:NormalAuthQueryResponse 
xmlns:cris="http://4science.github.io/dspace-cris/schemas"; hit="1397" 
rows="20" start="0" type="researcherPages">
            <rp:crisobjects 
xmlns:rp="http://4science.github.io/dspace-cris/researcherpage/schemas";>
                <rp:crisobject 
businessID="3004ebd3-b641-455b-ad04-329ba6ba7a76" publicID="763" type="9" 
uuid="3004ebd3-b641-455b-ad04-329ba6ba7a76">
                    <rp:fullName visibility="1">Researcher, 
First</rp:fullName>
                </rp:crisobject>
                <rp:crisobject 
businessID="88dce57e-5cc4-45d3-bb6e-c9f39625fa6c" publicID="764" type="9" 
uuid="88dce57e-5cc4-45d3-bb6e-c9f39625fa6c">
                    <rp:fullName visibility="1">Researcher, 
Second</rp:fullName>
                </rp:crisobject>
            </rp:crisobjects>
    </SOAP-ENV:Body>
  </SOAP-ENV:Envelope>

In PHP I get these objects:
array(2) {
  [0] =>
  class stdClass#5 (11) {
    public $fullName =>
    class stdClass#7 (2) {
      public $_ =>
      string(17) "Researcher, First"
      public $visibility =>
      int(1)
    }
    public $publicID =>
    string(4) "763"
    public $businessID =>
    string(32) "3004ebd3-b641-455b-ad04-329ba6ba7a76"
    public $uuid =>
    string(36) "3004ebd3-b641-455b-ad04-329ba6ba7a76"
    public $type =>
    string(1) "9"
  }
  [1] =>
  class stdClass#13 (11) {
    public $fullName =>
    class stdClass#7 (2) {
      public $_ =>
      string(17) "Researcher, Second"
      public $visibility =>
      int(1)
    }
    public $publicID =>
    string(4) "764"
    public $businessID =>
    string(32) "88dce57e-5cc4-45d3-bb6e-c9f39625fa6c"
    public $uuid =>
    string(36) "88dce57e-5cc4-45d3-bb6e-c9f39625fa6c"
    public $type =>
    string(1) "9"
  }
}

Everything's fine on that side.

When I call it for grants (projects), I get something like that:
  <SOAP-ENV:Envelope 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";>
    <SOAP-ENV:Header/>
    <SOAP-ENV:Body>
        <cris:NormalAuthQueryResponse 
xmlns:cris="http://4science.github.io/dspace-cris/schemas"; hit="513" 
rows="20" start="0" type="grants">
            <grant:crisobjects 
xmlns:grant="http://4science.github.io/dspace-cris/grant/schemas";>
                <grant:crisobject 
businessID="7528529dac6f76d696e2695691ee5eb7" publicID="2" type="10" 
uuid="044d6d46-51b6-43a3-a7ce-85f6b3bfca32">
                    <grant:title visibility="1">Project 1</grant:title>
                </grant:crisobject>
                <grant:crisobject 
businessID="654f5fb38cb40c9933d0f99da6284b50" publicID="3" type="10" 
uuid="80790b27-b048-41b1-8f31-b8048d386e0a">
                    <grant:title visibility="1">Project 2</grant:title>
                    <grant:principalinvestigator authority="rp00001" 
type="9" uuid="1e6de892-46f7-4e1e-9d54-1b1c5d4e2afc" 
visibility="1">Investigator, Principal</grant:principalinvestigator>
                </grant:crisobject>
            </grant:crisobjects>
    </SOAP-ENV:Body>
  </SOAP-ENV:Envelope>

But the PHP objects are missing the title and the principalinvestigator:
array(2) {
  [0] =>
  class stdClass#5 (4) {
    public $publicID =>
    string(1) "2"
    public $businessID =>
    string(32) "7528529dac6f76d696e2695691ee5eb7"
    public $uuid =>
    string(36) "044d6d46-51b6-43a3-a7ce-85f6b3bfca32"
    public $type =>
    string(2) "10"
  }
  [1] =>
  class stdClass#6 (4) {
    public $publicID =>
    string(1) "3"
    public $businessID =>
    string(32) "654f5fb38cb40c9933d0f99da6284b50"
    public $uuid =>
    string(36) "80790b27-b048-41b1-8f31-b8048d386e0a"
    public $type =>
    string(2) "10"
  }
}

So, this is looking like a PHP problem to me, but I have no idea, why this 
happens and how it could be resolved.

If anyone has any idea about that, I would appreciate more comments.

Thanks, best
Oliver

Am Donnerstag, 24. Mai 2018 15:25:09 UTC+2 schrieb Ciampa Yesce:
>
> Sorry to have misunderstood your needing. To check the reply from SOAP 
> I've installed an extension in Google Chrome: Wizdler
> With that I've pointed the browser to 
> <MySite>/webservices/wsdlforwsservices.wsdl then you can check the SOAP 
> queries using the Wizdler icon at the right of the URL bar in the browser.
> May be you can find your path to the solution.
> Best regards
>  
> Il giorno giovedì 24 maggio 2018 14:05:40 UTC+2, Oliver Goldschmidt ha 
> scritto:
>>
>> Hi,
>>
>> thanks for the information! Using REST could be an alternative to get 
>> publications, but not the other DSpace-CRIS specific entities like orgunits 
>> or projects. As I mentioned, I am getting these entities, but not the 
>> information for them that I want (like the title of a project or the name 
>> of an  organization unit), while it's working for researcher pages. 
>>
>> Maybe it's a PHP-problem, as we have found out, that the XML delievered 
>> from the Webservice is containing the information we want - but not the PHP 
>> objects, that are created by PHP's SOAPClient. That's why I was asking for 
>> someone using the SOAP webservice with PHP.
>>
>> Thanks,
>> Oliver
>>
>> Am Donnerstag, 24. Mai 2018 11:47:37 UTC+2 schrieb Ciampa Yesce:
>>>
>>> Hi, looking at the WSDL coming with CRIS looks like it supports only 
>>> those informations. I've activated REST API of DSpace to have access to the 
>>> information about items, collections and so on.
>>> Take a look to
>>> https://wiki.duraspace.org/display/DSDOC5x/REST+API
>>>
>>> In my case I've put the Context definition in server.xml because the 
>>> path of the application is out from the webapp path. You have to restart 
>>> Tomcat, after. Take a look to 
>>> https://tomcat.apache.org/tomcat-8.0-doc/config/context.html
>>>
>>> Of course you have to use REST instead of SOAP as a protocol for the 
>>> webservice communication
>>>
>>> Hope it helps.
>>>
>>> Best regards
>>>
>>>
>>> Il giorno giovedì 24 maggio 2018 10:36:35 UTC+2, Oliver Goldschmidt ha 
>>> scritto:
>>>>
>>>> Hi all,
>>>>
>>>> DSpace CRIS in Version 5 and 6 has a SOAP based webservice to get 
>>>> publications, researcherpages, projects and organization unit entities 
>>>> from 
>>>> the system. I would like to use this webservice with PHP, which has a SOAP 
>>>> client built in. It's working for researcher profiles, but for any other 
>>>> entity type I'm not getting the attributes I want, but only some basic 
>>>> attributes (like the CRIS ID or other internal information). 
>>>>
>>>> Is there anybody out there using this SOAP webservice with PHP, who can 
>>>> help me getting this to work?
>>>>
>>>> Thanks and best
>>>> Oliver
>>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to