NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
NuSoap and McAfeeASAP NOC Example


Joined: 06 May 2009
Posts: 2
Reply with quote
Hello,

I'm building an XML ordering system to communicate to a SAAS model solution of McAfee. McAfee has provided instructions in terms of how a well formed SOAP Request looks like. My knowledge of soap and nusoap is quite limited currently, and offcourse i will read into it, but i'm on a pretty tight schedule here.

So I realize this is quite bold, sorry Confused , but would someone please help me in creating a nusoap-based script that would generate the following Soap request:

Code:
POST /ws/saasmop/mop.asmx HTTP/1.1
Host: testdrive.mcafeeasap.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://McAfeeAsap.com/ProcessOrder"

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<SOAP-ENV:Envelope xmlns:SOAPSDK1="http://www.w3.org/2001/XMLSchema" xmlns:SOAPSDK2="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAPSDK3="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance">
  <SOAP-ENV:Header>
    <SOAPSDK4:AuthHeader xmlns:SOAPSDK4="http://McAfeeAsap.com">
      <SOAPSDK4:sToken xsi:type="xsd:string">1234567890</SOAPSDK4:sToken>
    </SOAPSDK4:AuthHeader>
  </SOAP-ENV:Header>
  <SOAP-ENV:Body>
    <method:ProcessOrder xmlns:method="http://McAfeeAsap.com">
      <method:sOrderXML>
<Root>
   <PartnerInfo>
      <PartnerCode>DRIV7820031021</PartnerCode>
      <Password>welcome</Password>      
   </PartnerInfo>
   <Contact>
      <PartnerCode>DRIV7820031021</PartnerCode>
      <PartnerGeneratedContactID>14807</PartnerGeneratedContactID>
      <EmailAddress>santhosh@mycio.com</EmailAddress>
      <Password>welcome</Password>
      <FirstName>Santhosh</FirstName>
      <LastName>P</LastName>
      <Phone>408-992-8345</Phone>
      <CompanyName>NAI Test</CompanyName>
      <AddressLine1>3965 Fredom Cir</AddressLine1>
      <AddressLine2>3965 Fredom Cir</AddressLine2>
      <SuiteFloor>3965 Fredom Cir</SuiteFloor>
      <CityName>Santa clara</CityName>
      <StateProvinceCD>CA</StateProvinceCD>
      <PostalCD>94086</PostalCD>
      <CountryCD>US</CountryCD>
      <ProductLanguageCode>E</ProductLanguageCode>
      <ManagedCustomer>1</ManagedCustomer>
   </Contact>
   <Product>
          <PartnerGeneratedOrderID>INT15Sep20080513</PartnerGeneratedOrderID>
          <OrderDate>2008-09-15</OrderDate>
          <DeskTopCount>5</DeskTopCount>
          <PaymentType>2</PaymentType>
          <ProductSku>TSBECE-AA</ProductSku>
          <ServiceStartDate>9/15/2008</ServiceStartDate>
      <ServiceEndDate>10/21/2009</ServiceEndDate>
          <OrderType>BUY</OrderType>
          <Action>NEW</Action>
     </Product>
</Root>
      </method:sOrderXML>
    </method:ProcessOrder>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>


Last edited by saasforce on Mon May 11, 2009 2:01 pm; edited 1 time in total
View user's profileFind all posts by saasforceSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7861
Reply with quote
ask them whether WSDL is available and if it is, proceed with any samples posted on this forum.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 06 May 2009
Posts: 2
Reply with quote
wsdl is available here:


I've tried all kinds of setups, but i cannot seem to build the right request: response always is 400 Bad Request.

I know the server is Windows IIS 6, so I suppose the soap server is .NET based.

Any assistance would be very much appreciated
View user's profileFind all posts by saasforceSend private message
McAfee SaaS WSDL


Joined: 14 Feb 2012
Posts: 1
Reply with quote
Hi,

I'm having the same problem. Managed to solve this? I appreciate the help. Tks!

saasforce wrote:
wsdl is available here:


I've tried all kinds of setups, but i cannot seem to build the right request: response always is 400 Bad Request.

I know the server is Windows IIS 6, so I suppose the soap server is .NET based.

Any assistance would be very much appreciated
View user's profileFind all posts by anderson.satSend private message
NuSoap and McAfeeASAP NOC Example
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic