Quantcast
Channel: PTC Community : Popular Discussions - Integrity
Viewing all articles
Browse latest Browse all 3432

Calling getItemsByNamedQuery in Webservice

$
0
0

Hi all,

I'm trying to execute a query via the webservice. I can excute the query using the client, it is visible and owned by my user and contains only one column ID.

I transfer the following SOAP using HTTP-post:

<SOAP-ENV:Envelope

  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"

  SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

  <SOAP-ENV:Body>

    <m:getItemsByNamedQuery xmlns:m="http://webservice.mks.com/2009/Integrity">

    <arg0>

      <Username>myuser</Username>

      <Password>password</Password>

      <InputField>ID</InputField>

      <QueryName>testq</QueryName>

     </arg0>

    </m:getItemsByNamedQuery>

  </SOAP-ENV:Body>

</SOAP-ENV:Envelope>

 

The answer of the server is a fault-message:

 

<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header>

<env:Body>

<env:Fault xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>

<faultcode>env:Server</faultcode>

<faultstring>Unable to retrieve items via query &quot;null&quot;.

</faultstring>

<detail>

<ns1:MKSException class='java.lang.NullPointerException' implication='Unable to retrieve items via query &quot;null&quot;.' xmlns:ns1='http://webservice.mks.com/2009/Integrity/fault'/>

</detail>

</env:Fault>

</env:Body>

</env:Envelope>

 

It seems that the server does not recognize my QueryName-tag. Do you have an idea? Is the request SOAP-message correct, or did I miss something there?

Any help would be highly appreciated,

kind regards

Matthias


Viewing all articles
Browse latest Browse all 3432

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>