OT: SOAP::lite

Enrique Arredondo henry at vegena.net
Fri Apr 1 07:58:37 PST 2005


Hello,

For the Perl-SOAP::lite gurus out there, I have a customer that's sending 
me the following request for quote via SOAP protocol and I have to send 
back the requested information that is on my filepro database. I have 
setup an Apache web server and SOAP::lite webservices as the protocol to 
receive those kind of requests. But When I receive the request for quote 
it errors with this message :

Failed to access class (InternetPartsOrder): 
Can't locate InternetPartsOrder.pm in @INC (@INC contains:) at (eval 91) 
line 3.

How can I make that XML SOAP message visible to me so  I can parse it and 
run a filepro report and build a XML response and send it back ? With a 
simple cgi script using shell commands I can view the incoming request 
when I just do 'cat > FILE' , but how does SOAP handles the incoming 
requests? Do I have to create a perl script ? where should it be (cgi-bin) 
?

Should my script be something like this under the URL 
http:/12.12.12.12:8080/webservices/getxml.cgi ?:

# getxml.cgi
cat > file
perl -parsexml file > flatfile
report filename -f importascii -sr "1" -u
report prices -f createxmlwithprice -a -v quote.sel -u -p XMLout
perm -sendSOAPbackTOcustomer XMLout

-----------cut here ---------------------

Here's what the request for quote looks like :

<?xml version="1.0" encoding="UTF-8"?>
<aaia:AddRequestForQuote xmlns="http://www.openapplications.org/oagis" 
xmlns:aaia="http://www.aftermarket.org/oagis" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.aftermarket.org/oagis 
../BODs/AddRequestForQuote.xsd" revision="1.2" environment="null" 
lang="en">
 	<ApplicationArea>
 		<Sender>
 			<LogicalId>10-173-5868</LogicalId>
 			<ReferenceId>R-050401:104119</ReferenceId>
 			<Confirmation>0</Confirmation>
 		</Sender>

<CreationDateTime>2005-04-01T10:41:19-05:00</CreationDateTime>
 		<Signature qualifyingAgency="none"/>
 		<BODId>R-050401:104119</BODId>
 	</ApplicationArea>
 	<DataArea>
 		<Add confirm="Always"/>
 		<RequestForQuote>
 			<aaia:Header>
 				<DocumentIds>
 					<CustomerDocumentId>
 						<Id>R-050401:104119</Id>
 					</CustomerDocumentId>
 				</DocumentIds>

<DocumentDateTime>2005-04-01T10:41:19-05:00</DocumentDateTime>
 				<DropShipInd>0</DropShipInd>
 				<BackOrderedInd>0</BackOrderedInd>
 				<aaia:PaymentTerms>
 					<TermId>NET 30</TermId>
 				</aaia:PaymentTerms>
 				<Parties>
 					<BillToParty>
 						<PartyId>
 							<Id>57603</Id>
 						</PartyId>
 						<Name>test</Name>
 						<Addresses>
 							<Address>

<AddressLine>654654 test ave</AddressLine>

<City>santa ana</City>

<StateOrProvince>CA</StateOrProvince>

<Country>US</Country>

<PostalCode>92704</PostalCode>

<Telephone>7148501544</Telephone>
 							</Address>
 						</Addresses>
 					</BillToParty>
 					<ShipToParty>
 						<PartyId>
 							<Id>NY</Id>
 						</PartyId>
 						<Name>New York DC</Name>
 						<Addresses>
 							<Address>

<AddressLine>32 Apple Lane</AddressLine>
 								<City>New 
York</City>

<StateOrProvince>NY</StateOrProvince>

<Country>US</Country>

<PostalCode>10010</PostalCode>

<Telephone>212-212-2122</Telephone>
 							</Address>
 						</Addresses>
 					</ShipToParty>
 					<SoldToParty>
 						<PartyId>
 							<Id>CARQUEST</Id>
 						</PartyId>
 					</SoldToParty>
 					<aaia:HostParty>
 						<PartyId>
 							<Id>9</Id>
 						</PartyId>
 					</aaia:HostParty>
 				</Parties>
 			</aaia:Header>
 			<aaia:Line>
 				<LineNumber>1</LineNumber>
 				<OrderItem>
 					<aaia:ItemIds>
 						<CustomerItemId>
 							<Id>DF01</Id>
 						</CustomerItemId>
 						<aaia:ManufacturerItemId>
 							<Id>DF01</Id>
 						</aaia:ManufacturerItemId>
 					</aaia:ItemIds>
 				</OrderItem>
 				<OrderQuantity 
uom="EA">1.0</OrderQuantity>
 				<BackOrderedInd>0</BackOrderedInd>
 				<UserArea>
 					<CarrierParty>
 						<PartyId>

<SCAC>UPSNDE</SCAC>
 						</PartyId>
 					</CarrierParty>
 				</UserArea>
 			</aaia:Line>
 		</RequestForQuote>
 	</DataArea>
</aaia:AddRequestForQuote>


Thanks


More information about the Filepro-list mailing list