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
, but would someone please help me in creating a nusoap-based script that would generate the following Soap request:
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>
|