11 Replies Latest reply on Sep 29, 2011 2:33 PM by Sylvain YVON

    Problem testing WebService with SOAP UI

    Murthy Pendyala

      Hi,

       

      I 'm getting this error when trying to test with SOAP UI. Not sure what I need to check.

       

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

         <soapenv:Body>

            <soapenv:Fault>

               <faultcode>soapenv:Server.userException</faultcode>

               <faultstring>java.lang.NullPointerException</faultstring>

               <detail>

                  <ns1:hostname xmlns:ns1="USSDMT-MLMMT451http://xml.apache.org/axis/">USSDMT-MLMMT451</ns1:hostname>

               </detail>

            </soapenv:Fault>

         </soapenv:Body>

      </soapenv:Envelope>

       

      Thanks!!

        • 1. Problem testing WebService with SOAP UI

          Dear Bobby3090,

           

          Did you fix this issue. I'm testing my new webservice (create action) on to a form having just the core fields and trying to tests my WSDL in SOAP UI and got the same error.

           

          Basic info:

          User name and password in the authentication tab of mid-tier config are blank. I do not want to use any credentials.

          My Webservice has public permissions.

          There is a public keyword in my wsdl.

           

          https://mywebserver:myport/AR/WSDL/public/myarserver/Rohini:Ws_Create_records_Test_Form

           

          I'm able to view the xml format when I paste it in the browser. So, there is no problem with the wsdl.

           

           

          Thanks.

          Rohini

          • 2. Problem testing WebService with SOAP UI
            Sylvain YVON

            Bobby,

             

            You need to check your mid-tier logs (in the configuration pages or directly on the server hosting your Mid-Tier), and arerror.log on your AR server.

            Is your Mid-Tier operational ? Are you able to connect to the arsys application ?

            • 3. Problem testing WebService with SOAP UI
              Murthy Pendyala

              yes, my midtier is working also I can see the XML code when I click view.

               

              Rohini : I'm exactly in the same scenario as you, testing only core fields on Create and seeing the same error.

               

              I will check the Midtier & arerror logs & update you.

               

              Thanks!!

              • 4. Re: Problem testing WebService with SOAP UI
                Carl Wilson

                You have to supply credentials to the AR Server (unless you have anonymous logins enabled)..... Just as you would having to login via the User Tool or Browser.

                 

                This is either done through the soap header, or you setup a default user in the Mid Tier configuration to use with Web Services under "Web Service Settings".

                • 5. Problem testing WebService with SOAP UI
                  Murthy Pendyala

                  After I setup anonymous logins enabled and removed from soap heard I'm getting this errors

                  SEVERE (com.remedy.log.WEBSERVICES) : AxisFault : ARERR [623] Authentication failed

                   

                  Is thier any thing else I'm missing? Can you please help?

                  • 6. Problem testing WebService with SOAP UI
                    Carl Wilson

                    Hi,

                    I actually haven't tried anonymous logins and if it would work - it was a "maybe". 

                    I believe the soap calls all require authentication details, either supplied in the soap call or generated through the Mid Tier via the "Web Service Settings".

                    So, either supply the credentials in the header, or setup the Mid Tier to pass these in for all calls.

                    • 7. Problem testing WebService with SOAP UI

                      Carl,

                       

                      Perfectly executed. Thanks a lot.

                       

                      Bobby,

                       

                      It was just the user credentials.

                       

                      For a published webservice:

                       

                      it either looks at the authentication info ("ar user ID/Pwd) given in the soap header or at the mid-tier config authentication. I chose to give the credentials in the SOAP and it worked. I got the response "Request ID" which I gave in the output mapping. Event documentation (ar system integration doc) says that we need to mention the user credentials.

                       

                       

                      While Consuming a webservice:

                       

                      But While consuming an external webservice using a filter you have an option whether to use authentication or not.

                       

                      Here is the excerpt:(Integration Guide - pg 96)

                       

                      "When you add a Set Fields action to a filter or escalation and choose WEB SERVICE

                      as the data source, the Authentication field appears. Use this field to define the

                      authentication type required for the web service. The options are:

                       

                       

                       

                      None

                      Custom

                      AR Authentication

                      Username Token "

                       

                      Thanks.

                      Rohini

                       

                       

                      • 8. Problem testing WebService with SOAP UI
                        Murthy Pendyala

                        Can you please check this XML file. Same error even after I have authentication in SOAP header.

                         

                        <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:HPD_IncidentInterface_Test_Create_WS">

                           <soapenv:Header>

                              <urn:AuthenticationInfo>

                                 <urn:userName>vtech</urn:userName>

                                 <urn:password>vtech</urn:password>

                                 <!--Optional:-->

                                 <urn:authentication>?</urn:authentication>

                                 <!--Optional:-->

                                 <urn:locale>?</urn:locale>

                                 <!--Optional:-->

                                 <urn:timeZone>?</urn:timeZone>

                              </urn:AuthenticationInfo>

                           </soapenv:Header>

                           <soapenv:Body>

                              <urn:HelpDesk_Submit_Service>

                                 <!--Optional:-->

                                 <urn:Assigned_Group>?</urn:Assigned_Group>

                                 <!--Optional:-->

                                 <urn:Assigned_Group_Shift_Name>?</urn:Assigned_Group_Shift_Name>

                                 <!--Optional:-->

                                 <urn:Assigned_Support_Company>?</urn:Assigned_Support_Company>

                                 <!--Optional:-->

                                 <urn:Assigned_Support_Organization>?</urn:Assigned_Support_Organization>

                                 <!--Optional:-->

                                 <urn:Assignee>?</urn:Assignee>

                                 <!--Optional:-->

                                 <urn:Categorization_Tier_1>?</urn:Categorization_Tier_1>

                                 <!--Optional:-->

                                 <urn:Categorization_Tier_2>?</urn:Categorization_Tier_2>

                                 <!--Optional:-->

                                 <urn:Categorization_Tier_3>?</urn:Categorization_Tier_3>

                                 <!--Optional:-->

                                 <urn:CI_Name>?</urn:CI_Name>

                                 <!--Optional:-->

                                 <urn:Closure_Manufacturer>?</urn:Closure_Manufacturer>

                                 <!--Optional:-->

                                 <urn:Closure_Product_Category_Tier1>?</urn:Closure_Product_Category_Tier1>

                                 <!--Optional:-->

                                 <urn:Closure_Product_Category_Tier2>?</urn:Closure_Product_Category_Tier2>

                                 <!--Optional:-->

                                 <urn:Closure_Product_Category_Tier3>?</urn:Closure_Product_Category_Tier3>

                                 <!--Optional:-->

                                 <urn:Closure_Product_Model_Version>?</urn:Closure_Product_Model_Version>

                                 <!--Optional:-->

                                 <urn:Closure_Product_Name>?</urn:Closure_Product_Name>

                                 <!--Optional:-->

                                 <urn:Department>?</urn:Department>

                                 <urn:First_Name>vtech</urn:First_Name>

                                 <urn:Impact>4-Minor/Localized</urn:Impact>

                                 <urn:Last_Name>vtech</urn:Last_Name>

                                 <!--Optional:-->

                                 <urn:Lookup_Keyword>?</urn:Lookup_Keyword>

                                 <!--Optional:-->

                                 <urn:Manufacturer>?</urn:Manufacturer>

                                 <!--Optional:-->

                                 <urn:Product_Categorization_Tier_1>?</urn:Product_Categorization_Tier_1>

                                 <!--Optional:-->

                                 <urn:Product_Categorization_Tier_2>?</urn:Product_Categorization_Tier_2>

                                 <!--Optional:-->

                                 <urn:Product_Categorization_Tier_3>?</urn:Product_Categorization_Tier_3>

                                 <!--Optional:-->

                                 <urn:Product_Model_Version>?</urn:Product_Model_Version>

                                 <!--Optional:-->

                                 <urn:Product_Name>?</urn:Product_Name>

                                 <urn:Reported_Source>Web</urn:Reported_Source>

                                 <!--Optional:-->

                                 <urn:Resolution>?</urn:Resolution>

                                 <!--Optional:-->

                                 <urn:Resolution_Category_Tier_1>?</urn:Resolution_Category_Tier_1>

                                 <!--Optional:-->

                                 <urn:Resolution_Category_Tier_2>?</urn:Resolution_Category_Tier_2>

                                 <!--Optional:-->

                                 <urn:Resolution_Category_Tier_3>?</urn:Resolution_Category_Tier_3>

                                 <urn:Service_Type>User Service Request</urn:Service_Type>

                                 <urn:Status>New</urn:Status>

                                 <urn:Action>CREATE</urn:Action>

                                 <!--Optional:-->

                                 <urn:Create_Request>Yes</urn:Create_Request>

                                 <urn:Summary>Creating Incident from Webservice testing with SOAP</urn:Summary>

                                 <!--Optional:-->

                                 <urn:Notes>test Incident ticket</urn:Notes>

                                 <urn:Urgency>4-Low</urn:Urgency>

                                 <!--Optional:-->

                                 <urn:Work_Info_Summary>testing the summary</urn:Work_Info_Summary>

                                 <!--Optional:-->

                                 <urn:Work_Info_Notes>?</urn:Work_Info_Notes>

                                 <!--Optional:-->

                                 <urn:Work_Info_Type>Incident Task / Action</urn:Work_Info_Type>

                                 <!--Optional:-->

                                 <urn:Work_Info_Date>2011-09-26T13:00:00</urn:Work_Info_Date>

                                 <!--Optional:-->

                                 <urn:Work_Info_Source>Other</urn:Work_Info_Source>

                                 <!--Optional:-->

                                 <urn:Work_Info_Locked>No</urn:Work_Info_Locked>

                                 <!--Optional:-->

                                 <urn:Work_Info_View_Access>Public</urn:Work_Info_View_Access>

                                 <!--Optional:-->

                                 <urn:Middle_Initial>?</urn:Middle_Initial>

                                 <!--Optional:-->

                                 <urn:Status_Reason>Request</urn:Status_Reason>

                                 <!--Optional:-->

                                 <urn:Direct_Contact_First_Name>?</urn:Direct_Contact_First_Name>

                                 <!--Optional:-->

                                 <urn:Direct_Contact_Middle_Initial>?</urn:Direct_Contact_Middle_Initial>

                                 <!--Optional:-->

                                 <urn:Direct_Contact_Last_Name>?</urn:Direct_Contact_Last_Name>

                                 <!--Optional:-->

                                 <urn:TemplateID>?</urn:TemplateID>

                                 <!--Optional:-->

                                 <urn:ServiceCI>?</urn:ServiceCI>

                                 <!--Optional:-->

                                 <urn:ServiceCI_ReconID>?</urn:ServiceCI_ReconID>

                                 <!--Optional:-->

                                 <urn:HPD_CI>?</urn:HPD_CI>

                                 <!--Optional:-->

                                 <urn:HPD_CI_ReconID>?</urn:HPD_CI_ReconID>

                                 <!--Optional:-->

                                 <urn:HPD_CI_FormName>?</urn:HPD_CI_FormName>

                                 <!--Optional:-->

                                 <urn:WorkInfoAttachment1Name>?</urn:WorkInfoAttachment1Name>

                                 <!--Optional:-->

                                 <urn:WorkInfoAttachment1Data>cid:1311175231319</urn:WorkInfoAttachment1Data>

                                 <!--Optional:-->

                                 <urn:WorkInfoAttachment1OrigSize>3</urn:WorkInfoAttachment1OrigSize>

                              </urn:HelpDesk_Submit_Service>

                           </soapenv:Body>

                        </soapenv:Envelope>

                        • 9. Problem testing WebService with SOAP UI
                          Sylvain YVON

                          Bobby,

                          What version of ARS and Incident Management ?

                          Export your web service in a def file and post it.

                          1 of 1 people found this helpful
                          • 10. Problem testing WebService with SOAP UI
                            Carl Wilson

                            Hi,

                            refer to my recently posted WS document:

                             

                            https://communities.bmc.com/communities/docs/DOC-16648

                             

                            If you are receiving Authentication errors, then there is an issue with the supplied Username and Password.

                             

                            Also, break down the request to a simple create i.e. remove the WI data.  Also remove the "?" that are entered in the fields as default - again, refer to the above document.

                            • 11. Re: Problem testing WebService with SOAP UI
                              Murthy Pendyala

                              Awesome!!

                               

                              It worked after removing all the non-required fields.

                               

                              Thanks Carl!! & Syvon!!