Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..
411 views

WSDL to retrive a list of incidents

Jump to solution

I am having a difficult time trying to setup a new WSDL to be consummed by another application we have.  I am trying to have a WSDL produce a list of incidents with an assignment group of Mobile and the ticket is still open.

I have the following using SOAPUI.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://schemas.hp.com/SM/7">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:RetrieveIncidentOOListRequest attachmentInfo="" attachmentData="" ignoreEmptyElements="true">
         <!--1 or more repetitions:-->
         <ns:keys query="flag=true" >
            <!--Optional:-->
            
         </ns:keys>
      </ns:RetrieveIncidentOOListRequest>
   </soapenv:Body>
</soapenv:Envelope>

 

When I try to update the query to query="flag=true and assignment=Mobile", I get no more records found.

I have tried

<ns:keys query="flag=true and assignment="Mobile"" >

But that returns the error,

<faultcode>SOAP-ENV:Server</faultcode>
         <faultstring>Unable to create envelope from given source:</faultstring>
         <faultactor>Server</faultactor>

 

What am I missing here?

 

I am using Service Manager 9.30.

0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

Hi,

When reading this again, I can see the issue now:

The request is an XML file - hence quotation marks are special character and need to be paraphrased. XML does not work with escape characters like backslash, neither.

So the correct formulation of the query in the query attribute is:

query="flag=true and assignment=&quot;Mobile&quot;"

View solution in original post

10 Replies
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Hello Anthony,

hope you are doing fine.

I am not sure if that is the best practice to accomplish this, just in case I will figure out if there is a better way to do it and create the list.

Carlos Villalobos R
Customer Support Engineer
If you find that this or any other post resolves your issue, please be sure to mark it as an accepted solution.
If you are satisfied with anyone’s response please remember to give them a KUDOS by clicking on the STAR at the bottom left of the post and show your appreciation.
Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..

AFAIK you need to follow the internal syntax rules, which means:

query="flag=true and assignment=\"Mobile\""
Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..

I was thinking it had to be a formatting issue to but this still returns the same error message.

I read a forum post that you can use the same query as is used doing an expert search but that doesn't seem to be the case.  Thanks for for the try though.

0 Likes
Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..

What is the return message on that query?

Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..

It returns the same error message.

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Body>
      <SOAP-ENV:Fault>
         <faultcode>SOAP-ENV:Server</faultcode>
         <faultstring>Unable to create envelope from given source:</faultstring>
         <faultactor>Server</faultactor>
      </SOAP-ENV:Fault>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

I'm wondering about this request name:    RetrieveIncidentOOListRequest

This appears to be related to Operation Orchestration integration, doesn't it?

Can you please use RetrieveIncidentListRequest instead?

0 Likes
Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..

RetrieveIncidentOOListRequest is a new WSDL I created specifically for this task.

0 Likes
Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..

Looking to see if anyone has some insight for this.

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Hi,

When reading this again, I can see the issue now:

The request is an XML file - hence quotation marks are special character and need to be paraphrased. XML does not work with escape characters like backslash, neither.

So the correct formulation of the query in the query attribute is:

query="flag=true and assignment=&quot;Mobile&quot;"

View solution in original post

Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..

Perfect.  That is exactly what I needed.  Thank you.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.