1 Reply Latest reply: Mar 17, 2014 3:32 PM by hoodlum7 RSS

    MVM API SDK problem

    hoodlum7

      I am working with the MVM SDK API. I am running into problems with the samples for PERL. I have followed all the instructions and have been debugging. We have the MVM3000 McAfee appliance running MVM 7.0.

       

       

      with debugging turned on the MVM appliance says it is sending this reponse to the userlogin:

       

       

       

      <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:hdr="http://www.foundstone.com/hdr.xsd" xmlns:fs="http://www.foundstone.com/foundscan.wsdl">
          <SOAP-ENV:Header>
              <hdr:credentials>
                  <name>FSAPI7.0</name>
                  <pass>FoundScan</pass>
              </hdr:credentials>
              <hdr:timestamps>
                  <methodEntryTime>Fri Mar 07 13:20:56.234 2014</methodEntryTime>
                  <methodDurationInSeconds>0.337</methodDurationInSeconds>
              </hdr:timestamps>
          </SOAP-ENV:Header>
          <SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
              <fs:UserLoginResponse>
                  <LoginInfo>
                      <CustomerID>2</CustomerID>
                      <AccountID>26</AccountID>
                      <SessionID>571440f0e4f84569ba58a17760d616a5</SessionID>
                      <ModulesFlag>255</ModulesFlag>
                      <EnableIAVA>0</EnableIAVA>
                      <AccessRights>
                          <Rights xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="fs:AccessRight[2]">
                              <item>
                                  <RightID>1</RightID>
                                  <ActorUserID>0</ActorUserID>
                                  <ActorGroupID>1</ActorGroupID>
                                  <RightCategory>1</RightCategory>
                                  <RightDetail>0</RightDetail>
                                  <ObjectOrgId>2</ObjectOrgId>
                                  <ObjectConfigId>0</ObjectConfigId>
                                  <OrgId>0</OrgId>
                              </item>
                              <item>
                                  <RightID>915</RightID>
                                  <ActorUserID>26</ActorUserID>
                                  <ActorGroupID>0</ActorGroupID>
                                  <RightCategory>8</RightCategory>
                                  <RightDetail>0</RightDetail>
                                  <ObjectOrgId>2</ObjectOrgId>
                                  <ObjectConfigId>0</ObjectConfigId>
                                  <OrgId>0</OrgId>
                              </item>
                          </Rights>
                          <RootOrgTree xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="fs:OrganizationParentNode[5]">
                              <item>
                                  <OrgID>2</OrgID>
                                  <ParentID>0</ParentID>
                              </item>
                              <item>
                                  <OrgID>3</OrgID>
                                  <ParentID>2</ParentID>
                              </item>
                              <item>
                                  <OrgID>4</OrgID>
                                  <ParentID>2</ParentID>
                              </item>
                              <item>
                                  <OrgID>5</OrgID>
                                  <ParentID>2</ParentID>
                              </item>
                              <item>
                                  <OrgID>6</OrgID>
                                  <ParentID>2</ParentID>
                              </item>
                          </RootOrgTree>
                      </AccessRights>
                      <AccountEmail></AccountEmail>
                      <AccountFirst></AccountFirst>
                      <AccountLast></AccountLast>
                      <AccountPhone1/>
                      <AccountPhone2/>
                      <IPCount>19101</IPCount>
                      <IPMax>26000</IPMax>
                      <ThreatIndex>1</ThreatIndex>
                      <MyFoundScore>0</MyFoundScore>
                      <AlertCriteria>
                          <NewHighVulns>3</NewHighVulns>
                          <NewMedVulns>2</NewMedVulns>
                          <NewLowVulns>1</NewLowVulns>
                          <NoHighVulns>3</NoHighVulns>
                          <NoMedVulns>2</NoMedVulns>
                          <NoLowVulns>1</NoLowVulns>
                          <NewServices>3</NewServices>
                          <NoServices>3</NoServices>
                          <NewHosts>2</NewHosts>
                          <NoHosts>2</NoHosts>
                          <NewOS>1</NewOS>
                          <NoOS>1</NoOS>
                          <NewInfoVulns>4</NewInfoVulns>
                          <NoInfoVulns>4</NoInfoVulns>
                      </AlertCriteria>
                  </LoginInfo>
              </fs:UserLoginResponse>
          </SOAP-ENV:Body>
      </SOAP-ENV:Envelope>
      

       

      However, the perl script is getting this back:

       

       

      <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:hdr="http://www.foundstone.com/hdr.xsd" xmlns:fs="http://www.foundstone.com/foundscan.wsdl">
          <SOAP-ENV:Header>
              <hdr:credentials>
                  <name>FSAPI7.0</name>
                  <pass>FoundScan</pass>
              </hdr:credentials>
              <hdr:timestamps>
                  <methodEntryTime>Fri Mar 07 13:43:19.937 2014</methodEntryTime>
                  <methodDurationInSeconds>0.334</methodDurationInSeconds>
              </hdr:timestamps>
          </SOAP-ENV:Header>
          <SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
              <fs:UserLoginResponse>
                  <LoginInfo>
                      <CustomerID>2</CustomerID>
                      <AccountID>26</AccountID>
                      <SessionID>8c158dd5f53244bdadc3113f20b0d488</SessionID>
                      <ModulesFlag>255</ModulesFlag>
                      <EnableIAVA>
      

      The above snippet is taken directly from a debugger right after the http response is read and before any other processing is done. (Yes I formated the response into an easy to read format.)

       

      Obviously, what the API server says it is sending out is not what the script is getting back. I would greatly appreaciate any help. I could have done something wrong, but I just cannot see how.