Workaround for using SoapUi and SM WSDL’s without need to have an Internet

by Community Manager on ‎11-30-2012 10:32 AM

 

Workaround for using SoapUi and SM WSDL’s without need to have an Internet:

 

 

 

−     Save the WSDL and Common.XSD files locally for:

•      http://machinename:servletport/SM/7/IncidentManagement.wsdl)

•      http://machinename:servletport/SM/7/Common.xsd)

−     Save the XSD file for xmlmime locally(you can save it locally and then –rename it’s extension from xml –to xsd ) in same folder as above, downloading from:

•      http://www.w3.org/2005/05/xmlmime

 

 

−     Edit the Local WSDL and the parameter schemaLocation into this file as:

 

•      From: schemaLocation=“http://machinename:servletport/SM/7/Common.xsd”

•      To: schemaLocation=“Common.xsd”

 

Find the second usage of the parameter schemaLocation and correct it, so you to have at the end like that:

 

<xs:import namespace="http://www.w3.org/2005/05/xmlmime" schemaLocation="xmlmime.xsd"/>

 

<xs:import namespace="http://schemas.hp.com/SM/7/Common" schemaLocation="Common.xsd"/>

 

 

 

 

Edit the Common xsd XML documents changing the schema location for Common xsd and xmlmime xsd.

•      From: schemaLocation=“http://www.w3.org/2005/05/xmlmime

•      To:schemaLocation=“xmlmime.xsd”

•     Consume the local copy of the WSDL Open SoapUI and create a new Project, with

 

 

 

 

If working with IM wsdl, below is example of retrieving Incident, that has attachment on it.If you copy and paste the code – PLEASE check in advance if the ID you need, has attached file. Take one that has an attachment.

 

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://schemas.hp.com/SM/7" xmlns:com="http://schemas.hp.com/SM/7/Common" xmlns:xm="http://www.w3.org/2005/05/xmlmime">

   <soapenv:Header/>

   <soapenv:Body>

      <ns:RetrieveIncidentRequest attachmentInfo="true" attachmentData="true">

         <ns:model>

            <ns:keys>

               <ns:IncidentID>IM10002</ns:IncidentID>

               <ns:Category>incident</ns:Category>

            </ns:keys>

            <ns:instance>

            </ns:instance>

         </ns:model>

      </ns:RetrieveIncidentRequest>

   </soapenv:Body>

</soapenv:Envelope>

 

 

 

     

Search
Showing results for 
Search instead for 
Do you mean 
Follow Us


Contributors
HP Blog

IT Service Management Blog

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation